C++ main module for gpm Package  1.0
GPMG_EdgeWindow.h
Go to the documentation of this file.
1 #ifndef GPMG_EdgeWindow_H
2 #define GPMG_EdgeWindow_H
3 
4 
6 
7 #include "GPM_Edge.h"
8 
9 
16 
17 class GPMG_EdgeWindow : public GPMG_GraphElementWindow { // class
18  SP_OBJECT(GPMG_EdgeWindow);
19 
20  // ATTRIBUTES
21 
22 private:
23 
24  static const tFlag SOURCE,TARGET;
25 
26 private:
27 
28 
29  // ASSOCIATIONS
30 
31 
32  // METHODS
33 
34 
35 protected:
36  // CONSTRUCTORS
37 
41 
42 
43 
44 
45  // DESTRUCTORS
49  virtual ~GPMG_EdgeWindow(void);
50 
51 
52 
53 public:
54  // NEW
57  static inline SP::GPMG_EdgeWindow New() {
58  SP::GPMG_EdgeWindow win(new GPMG_EdgeWindow(),
59  GPMG_EdgeWindow::Delete());
60  win->setThis(win);
61  return win;
62  };
63 
64  // SET
65 
68  inline void setEdge(GPM_Graph *pGraph,GPM_Graph *tGraph,const tFlag& graphType,GPM_Graph* graph,SP::GPM_Edge item) {
69  GPMG_GraphElementWindow::setGraphElement(pGraph,tGraph,graphType,graph,item);
70  }
71 
72  // GET
73 
74 
75  // OTHERS
76 
79  virtual void componentClicked(GUI_ActionComponent& compo);
80 
83  virtual void enableComponents(const tBoolean& isReadOnly);
84 
88  virtual void updateValues();
89 
90 
91 protected:
94  virtual void createComponentsInLayout(const int& index,GUI_VBoxLayout& layout);
95 
96 
99  virtual void resetValues();
100 
101 private:
102 
105  void showVertex(SP::GPM_Vertex vertex);
106 
107 
108 };
109 #endif
static SP::GPMG_EdgeWindow New()
create a visualization window
Definition: GPMG_EdgeWindow.h:57
virtual void createComponentsInLayout(const int &index, GUI_VBoxLayout &layout)
create the components in special rows at index
Definition: GPMG_EdgeWindow.cpp:33
boost::adjacency_list< boost::listS, boost::vecS, boost::undirectedS, VertexProperties, EdgeProperties > tGraph
Definition: GPM_Types.h:36
void setEdge(GPM_Graph *pGraph, GPM_Graph *tGraph, const tFlag &graphType, GPM_Graph *graph, SP::GPM_Edge item)
set the edge properties
Definition: GPMG_EdgeWindow.h:68
#define tBoolean
Definition: types.h:35
virtual void resetValues()
reset values
Definition: GPMG_EdgeWindow.cpp:111
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
DEFINE_SPTR(GPMG_EdgeWindow)
virtual void componentClicked(GUI_ActionComponent &compo)
method called when a component are clicked on
Definition: GPMG_EdgeWindow.cpp:78
virtual void updateValues()
update the components values put the values of model object to gui components
Definition: GPMG_EdgeWindow.cpp:130
virtual ~GPMG_EdgeWindow(void)
destroy a GPMG_EdgeWindow
Definition: GPMG_EdgeWindow.cpp:28
virtual void enableComponents(const tBoolean &isReadOnly)
enable the components
Definition: GPMG_EdgeWindow.cpp:161
This class describes a graph which is a list of nodes & ports.
Definition: GPM_Graph.h:19
this class describes a window to display edge properties
Definition: GPMG_EdgeWindow.h:17
tBoolean isReadOnly() const
return true if the graph element is read only
Definition: GPMG_GraphElementWindow.cpp:824
GPMG_EdgeWindow()
build a GPMG_EdgeWindow
Definition: GPMG_EdgeWindow.cpp:22
#define tFlag
Definition: types.h:14