X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/6a0ffdb10d7344d99e04c5518fca2b8295df94be..refs/heads/master:/AbstractBoxItem.h diff --git a/AbstractBoxItem.h b/AbstractBoxItem.h index e490088..e028728 100644 --- a/AbstractBoxItem.h +++ b/AbstractBoxItem.h @@ -17,7 +17,7 @@ class ConnectedInterface; #define ABI_TO_BI(ptr) ((BoxItem*)ptr) #define ABI_TO_GI(ptr) ((GroupItem*)ptr) -#define ABI_TO_SI(ptr) ((SourceItem*)ptr) +#define ABI_TO_SI(ptr) ((StimuliItem*)ptr) class AbstractBoxItem : public QGraphicsItem { @@ -57,6 +57,7 @@ public: void setRefBlock(AbstractBlock* _refBlock); inline void setId(int _id){ id = _id; } inline void setSelected(bool _selected) { selected = _selected; } + inline void setVisible(bool state) { visible = state; } void setRstClkVisible(bool b); void setWishboneVisible(bool b); void setDimension(int x, int y); @@ -76,7 +77,8 @@ public: // testers virtual bool isBoxItem(); virtual bool isGroupItem(); - virtual bool isSourceItem(); + virtual bool isStimuliItem(); + inline bool isVisible() { return visible; } inline bool isSelected() { return selected; } inline bool isRstClkVisible(){ return rstClkVisible;} inline bool isWishboneVisible(){ return wishboneVisible;} @@ -150,6 +152,7 @@ protected: int lock; bool selected; + bool visible; //! true if the box is shown bool rstClkVisible; //! true if clock/reset interfaces are visible bool wishboneVisible; //! true if wishbone interfaces are visible