X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/d30c9cf675ad7141d1c8e31d2e72315267d45cf2..1df76ccc8673a2760af17b88ebfba4bfd7f5c11d:/AbstractBoxItem.h?ds=inline diff --git a/AbstractBoxItem.h b/AbstractBoxItem.h index 375e9dc..c061487 100644 --- a/AbstractBoxItem.h +++ b/AbstractBoxItem.h @@ -22,6 +22,7 @@ public: enum ChangeType { Resize = 0, InterfaceMove }; AbstractBoxItem(AbstractBlock *_refBlock, Dispatcher *_dispatcher, Parameters *_params, QGraphicsItem* parent = Q_NULLPTR); + AbstractBoxItem(Dispatcher *_dispatcher, Parameters *_params, QGraphicsItem* parent = Q_NULLPTR); virtual ~AbstractBoxItem(); @@ -40,9 +41,11 @@ public: inline QPointF getOriginPoint() { return originPoint; } // setters - inline void setId(int id){ this->id = id; } + void setRefBlock(AbstractBlock* _refBlock); + inline void setId(int _id){ id = _id; } inline void setSelected(bool _selected) { selected = _selected; } - inline void setRstClkVisible(bool b){ rstClkVisible = b;} + void setRstClkVisible(bool b); + void setWishboneVisible(bool b); void setDimension(int x, int y); inline void setCurrentInterface(InterfaceItem* iface) { currentInterface = iface; } @@ -51,6 +54,7 @@ public: virtual bool isGroupItem(); inline bool isSelected() { return selected; } inline bool isRstClkVisible(){ return rstClkVisible;} + inline bool isWishboneVisible(){ return wishboneVisible;} bool isInterfaces(int orientation) const; // others @@ -114,7 +118,8 @@ protected: QPointF originPoint; // the left-top point that is the origin of the bounding box bool selected; - bool rstClkVisible; + bool rstClkVisible; //! true if clock/reset interfaces are visible + bool wishboneVisible; //! true if wishbone interfaces are visible QPointF currentPosition; // the start point for resize