#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 {
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);
// 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;}
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