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;
protected:
void draw(QPainter& thePainter);
- void drawShape(QPainter& thePainter);
+ virtual void drawShape(QPainter& thePainter);
virtual void drawTitle(QPainter& thePainter);
virtual void drawLabel(QPainter& thePainter);
virtual void drawTitleShape(QPainter& thePainter);
virtual void drawStatusShape(QPainter& thePainter);
+ bool myPortVisible;
+
private:
SUPERVGUI_CanvasNode* myNode;
int myGateHeight;
bool myLabelVisible;
- bool myPortVisible;
+ bool myCellPrs;
bool myMoving;
QString myStatus;