C++ main module for gpm Package  1.0
GPMG_VertexWindow.h
Go to the documentation of this file.
1 #ifndef GPMG_VertexWindow_H
2 #define GPMG_VertexWindow_H
3 
4 
6 
7 #include "GPM_ModelNode.h"
8 
9 
16 
17 class GPMG_VertexWindow : public GPMG_GraphElementWindow { // class
18  SP_OBJECT(GPMG_VertexWindow);
19 
20  // ATTRIBUTES
21 
22 private:
23  static const tFlag X,Y,Z;
24  static const tFlag EDGES;
25  static const tFlag AUTOMATIC_COORD;
26 
27 private:
28 
29 
30  // ASSOCIATIONS
31 
32 
33  // METHODS
34 
35 
36 protected:
37  // CONSTRUCTORS
38 
42 
43 
44 
45 
46  // DESTRUCTORS
50  virtual ~GPMG_VertexWindow(void);
51 
52 
53 
54 public:
55  // NEW
58  static inline SP::GPMG_VertexWindow New() {
59  SP::GPMG_VertexWindow win(new GPMG_VertexWindow(),
60  GPMG_VertexWindow::Delete());
61  win->setThis(win);
62  return win;
63  };
64 
65  virtual void toDoAfterThisSetting() {
67  };
68 
69 
70  // SET
71 
74  inline void setNode(GPM_Graph* pGraph,GPM_Graph *tGraph,const tFlag& graphType,GPM_Graph *graph,SP::GPM_Vertex item) {
75  GPMG_GraphElementWindow::setGraphElement(pGraph,tGraph,graphType,graph,item);
76  }
77 
78  // GET
79 
80 
81  // OTHERS
82 
85  virtual void componentClicked(GUI_ActionComponent& compo);
86 
87 
90  virtual void enableComponents(const tBoolean& isReadOnly);
94  virtual void updateValues();
95 protected:
96 
99  virtual void createComponentsInLayout(const int& index,
100  GUI_VBoxLayout& layout);
103  virtual void resetValues();
106  virtual void updateTriggerVariables(const tString& letter,GUI_ComboBox& cb);
107 
108 private:
111  void showEdge(GPM_Edge& edge);
112 
113 
114 
115 
116 };
117 #endif
virtual void updateValues()
update the components values put the values of model object to gui components
Definition: GPMG_VertexWindow.cpp:177
GPMG_VertexWindow()
build a GPMG_VertexWindow
Definition: GPMG_VertexWindow.cpp:28
virtual void updateTriggerVariables(const tString &letter, GUI_ComboBox &cb)
update trigger variables
Definition: GPMG_VertexWindow.cpp:304
virtual void toDoAfterThisSetting()
Definition: GPMG_VertexWindow.h:65
static SP::GPMG_VertexWindow New()
create a visualization window
Definition: GPMG_VertexWindow.h:58
virtual void createComponentsInLayout(const int &index, GUI_VBoxLayout &layout)
create the components in special rows at index
Definition: GPMG_VertexWindow.cpp:38
boost::adjacency_list< boost::listS, boost::vecS, boost::undirectedS, VertexProperties, EdgeProperties > tGraph
Definition: GPM_Types.h:36
void setNode(GPM_Graph *pGraph, GPM_Graph *tGraph, const tFlag &graphType, GPM_Graph *graph, SP::GPM_Vertex item)
set the node properties
Definition: GPMG_VertexWindow.h:74
#define tBoolean
Definition: types.h:35
void setGraphElement(GPM_Graph *pGraph, GPM_Graph *tGraph, const tFlag &graphType, GPM_Graph *graph, SP::GPM_GraphElement item)
set the graph element properties
Definition: GPMG_GraphElementWindow.cpp:48
this class describes a window to display graph element properties
Definition: GPMG_GraphElementWindow.h:21
virtual void enableComponents(const tBoolean &isReadOnly)
enable the components
Definition: GPMG_VertexWindow.cpp:257
This class describes a edge.
Definition: GPM_Edge.h:15
virtual ~GPMG_VertexWindow(void)
destroy a GPMG_VertexWindow
Definition: GPMG_VertexWindow.cpp:34
DEFINE_SPTR(GPMG_VertexWindow)
#define tString
Definition: types.h:36
this class describes a window to display node properties
Definition: GPMG_VertexWindow.h:17
virtual void toDoAfterThisSetting()
Definition: GPMG_GraphElementWindow.h:69
This class describes a graph which is a list of nodes & ports.
Definition: GPM_Graph.h:19
virtual void componentClicked(GUI_ActionComponent &compo)
method called when a component are clicked on
Definition: GPMG_VertexWindow.cpp:97
tBoolean isReadOnly() const
return true if the graph element is read only
Definition: GPMG_GraphElementWindow.cpp:824
virtual void resetValues()
reset values
Definition: GPMG_VertexWindow.cpp:145
#define tFlag
Definition: types.h:14