1 #ifndef __GROUPWIDGET_H__
2 #define __GROUPWIDGET_H__
12 class GroupWidget : public QWidget {
16 explicit GroupWidget(GroupWidget* _upperGroup, Dispatcher* _dispatcher, Parameters* _params, QWidget *parent = 0);
19 inline GroupScene *getScene() {return scene;}
20 inline QToolButton* getButtonNewConnection(){return butAddConnection;}
23 inline bool isTopGroup() { return topGroup;}
26 void changeConnectionMode(int mode = -1);
31 void enableGroupButton(bool b);
34 void mousePressEvent(QMouseEvent *e);
35 void focusInEvent(QFocusEvent *e);
36 void closeEvent(QCloseEvent *e);
39 GroupWidget* upperGroup; // NB:for convenience. NULL if it contains the top scene
43 Dispatcher *dispatcher;
49 QToolButton* butAddConnection;
51 void updateBlockButton();
54 QAction *copyBlockAct;
56 QAction *newEmptyGroupAct;
60 QAction *selectAllAct;
61 QAction *unselectAllAct;
63 QToolBar *toolbarEditMode;
65 QToolBar *toolbarTools;
74 void slotAddConnection();
77 void slotNewEmptyGroup();
80 void slotDeleteItems();
82 void slotUnselectAll();
85 #endif // __GROUPWIDGET_H__