1 #ifndef GPMG_ShowGraphWindow_H
2 #define GPMG_ShowGraphWindow_H
4 #include "GUI2D_Window.h"
5 #include "GUI_ChildWindow.h"
9 #include "GUI2D_MenuPanel.h"
54 static inline SP::GPMG_ShowGraphWindow
New() {
62 GUI_ChildWindow::toDoAfterThisSetting();
71 GUI2D_MenuPanel *menuPanel=
dynamic_cast<GUI2D_MenuPanel*
>(getMenuPanel());
72 if (menuPanel!=
null) {
73 if (v) menuPanel->enableMoveInButton();
74 else menuPanel->disableMoveInButton();
153 void initComponents();
void updateEnvironments(const GPMG_Project *project)
void update the environments
Definition: GPMG_ShowGraphWindow.h:118
void showGraph(GPM_ModelGraph &graph, const tBoolean &isForce)
show the rule
Definition: GPMG_ShowGraphPanel.cpp:22
void resetSelectedEdge()
reset the selected edge
Definition: GPMG_ShowGraphWindow.h:105
virtual void resetSelectedObjects()
reset the selected objects
Definition: GPMG_ShowGraphWindow.h:112
virtual void setIsMovingEnabled(const tBoolean &v)
set if the moving drawing area is enabled
Definition: GPMG_ShowGraphWindow.h:70
virtual void toDoAfterThisSetting()
method called after setThis() method this method can oly be called once.
Definition: GPMG_ShowGraphWindow.h:61
virtual void saveToUIClass(UI_Class &mclass) const
how to save the object from a mate model class
Definition: GPMG_ShowGraphWindow.cpp:74
This class describes a model graph.
Definition: GPM_ModelGraph.h:21
void setSelectedVertex(SP::GPM_Vertex obj)
set the selected vertex
Definition: GPMG_ShowGraphWindow.h:87
static SP::GPMG_ShowGraphWindow New()
create a visualization window
Definition: GPMG_ShowGraphWindow.h:54
#define tBoolean
Definition: types.h:35
#define null
Definition: types.h:13
this class describes a interface for graph windows
Definition: GPMG_GraphWindowInterface.h:12
this class describes the root panel of the graph window
Definition: GPMG_GraphPanel.h:17
this class describes a window to show graph
Definition: GPMG_ShowGraphWindow.h:17
void showGraph(GPM_ModelGraph &graph, const tBoolean &isForce)
show the graph
Definition: GPMG_ShowGraphWindow.h:81
void resetSelectedVertex()
reset the selected vertex
Definition: GPMG_ShowGraphWindow.h:93
this class describes the root panel of the rule graph window
Definition: GPMG_ShowGraphPanel.h:15
void setSelectedEdge(SP::GPM_Edge obj)
set the selected edge
Definition: GPMG_GraphPanel.h:89
virtual const GUI2D_DrawPanel * getDrawPanel() const
Definition: GPMG_ShowGraphWindow.cpp:51
void setSelectedVertex(SP::GPM_Vertex obj)
set the selected vertex
Definition: GPMG_GraphPanel.h:79
This class describes a project.
Definition: GPMG_Project.h:22
void resetSelectedEdge()
reset the selected edge
Definition: GPMG_GraphPanel.h:94
abstract base class for most classes.
Definition: CORE_Object.h:30
void setSelectedEdge(SP::GPM_Edge obj)
set the selected edge
Definition: GPMG_ShowGraphWindow.h:99
DEFINE_SPTR(GPMG_ShowGraphWindow)
virtual void modalWindowClosed(const tFlag &id, const CORE_Object *value)
load the components of the windows from saving file
Definition: GPMG_ShowGraphWindow.cpp:79
void resetSelectedVertex()
reset the selected vertex
Definition: GPMG_GraphPanel.h:84
virtual void loadFromUIClass(const UI_Class &mclass)
how to load the object from a Meta Model class
Definition: GPMG_ShowGraphWindow.cpp:70
virtual ~GPMG_ShowGraphWindow(void)
destroy a GPMG_ShowGraphWindow
Definition: GPMG_ShowGraphWindow.cpp:19
GPMG_ShowGraphWindow()
build a GPMG_ShowGraphWindow
Definition: GPMG_ShowGraphWindow.cpp:14
void updateEnvironments(const GPMG_Project *project)
update the environments from a graph
Definition: GPMG_GraphPanel.cpp:136
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14