]> SALOME platform Git repositories - modules/superv.git/blobdiff - src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.h
Salome HOME
Merging with JR_ASV_2_1_0_deb_with_KERNEL_Head branch, which contains many bug fixes...
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_CanvasNodePrs.h
index de23786e818c106ef55dad93f9319e24d7383ff5..d8aa906e78e927607bda0b63cfb822d94d4401c0 100644 (file)
@@ -50,12 +50,18 @@ class SUPERVGUI_CanvasNode;
 class SUPERVGUI_CanvasNodePrs: public QCanvasPolygonalItem {
 
   public:
-    SUPERVGUI_CanvasNodePrs(QCanvas* theCanvas, SUPERVGUI_CanvasNode* theNode);
+    SUPERVGUI_CanvasNodePrs(QCanvas* theCanvas, SUPERVGUI_CanvasNode* theNode, bool theCellPrs=false);
     virtual ~SUPERVGUI_CanvasNodePrs();
 
     SUPERVGUI_CanvasNode* getNode() const { return myNode; }
     QObject* getObject(const QPoint& thePos) const;
 
+    QString getStatus() const { return myStatus; }
+    QColor getStatusColor() const { return myStatusColor; }
+
+    void setStatus(QString theStatus) { myStatus = theStatus; }
+    void setStatusColor(QColor theStatusColor) { myStatusColor = theStatusColor; }
+    
     virtual int width() const;
     virtual int height() const;
 
@@ -104,7 +110,7 @@ class SUPERVGUI_CanvasNodePrs: public QCanvasPolygonalItem {
 
   protected:
     void draw(QPainter& thePainter);
-    void drawShape(QPainter& thePainter);
+    virtual void drawShape(QPainter& thePainter);
 
     virtual void drawTitle(QPainter& thePainter);
     virtual void drawLabel(QPainter& thePainter);
@@ -116,6 +122,8 @@ class SUPERVGUI_CanvasNodePrs: public QCanvasPolygonalItem {
     virtual void drawTitleShape(QPainter& thePainter);
     virtual void drawStatusShape(QPainter& thePainter);
 
+    bool myPortVisible;
+
   private:
     SUPERVGUI_CanvasNode* myNode;
 
@@ -129,7 +137,7 @@ class SUPERVGUI_CanvasNodePrs: public QCanvasPolygonalItem {
     int myGateHeight;
 
     bool myLabelVisible;
-    bool myPortVisible;
+    bool myCellPrs;
     bool myMoving;
 
     QString myStatus;