]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/gui/YACSGui_RunMode.h
Salome HOME
merge from branch DEV tag mergeto_trunk_04apr08
[modules/yacs.git] / src / gui / YACSGui_RunMode.h
index 0c255f9403843275ade5f17da00dbf915a8f3094..e5aa6b17f40f63e9aa9fe6a54113004672ae15a5 100644 (file)
 #include <string>
 #include <set>
 
-class YACSGui_Executor;
-class YACS::ENGINE::ElementaryNode;
-
-class ComposedNodeViewItem: public QListViewItem
-{
- public:
-  ComposedNodeViewItem(QListView *parent, QString label);
-  ComposedNodeViewItem(QListViewItem *parent, QString label);
-  void setState(int state);
-  virtual void paintCell( QPainter *p, const QColorGroup &cg,
-                          int column, int width, int alignment );
-
- protected:
-  int _state;
-  QColor _cf;
-};
+class YACSGui_ComposedNodeViewItem;
 
-class NodeViewItem: public QCheckListItem
-{
- public:
-  NodeViewItem(QListView *parent,
-               const QString &text,
-               Type tt = RadioButtonController,
-               YACS::ENGINE::ElementaryNode *node = 0);
-  NodeViewItem(QListViewItem *parent,
-               const QString &text,
-               Type tt = RadioButtonController,
-               YACS::ENGINE::ElementaryNode *node = 0);
-  void setState(int state); 
-  virtual void paintCell( QPainter *p, const QColorGroup &cg,
-                          int column, int width, int alignment );
-  YACS::ENGINE::ElementaryNode* getNode() { return _node;};
-
- protected:
-  int _state;
-  QColor _cf;
-  YACS::ENGINE::ElementaryNode *_node;
-};
+class YACSGui_Executor;
 
 class YACSGui_RunMode : public runMode
 {
@@ -83,7 +48,7 @@ public:
 
  protected:
   void resetTreeNode();
-  void addTreeNode(ComposedNodeViewItem *parent,
+  void addTreeNode(YACSGui_ComposedNodeViewItem *parent,
                    YACS::ENGINE::ComposedNode* father);
 
   YACSGui_Executor* _guiExec;