1 #ifndef __BLOCKLIBRARYWIDGET_H__
2 #define __BLOCKLIBRARYWIDGET_H__
9 #include "Dispatcher.h"
11 #include "Parameters.h"
13 #include "BlockCategory.h"
19 class BlockLibraryWidget : public QWidget {
23 explicit BlockLibraryWidget(Dispatcher* _dispatcher, Parameters* _params, QWidget *parent = 0);
24 ~BlockLibraryWidget();
28 void updateComboScene();
29 void updateClkRst(int idCat, int idBlock);
35 void enableAvailableClocks(bool state);
40 Dispatcher* dispatcher;
42 QPushButton* buttonAdd;
43 QComboBox* comboScenes;
45 QGroupBox* boxConnMode;
46 QRadioButton* radAutoClk;
47 QRadioButton* radChooseClk;
50 QGridLayout* layClkRst;
51 QComboBox** comboClkGen;
53 QComboBox** comboRstGen;
56 ReferenceBlock* currentRefBlock;
58 QStackedWidget* stack;
61 void addChild(BlockCategory *catParent, QTreeWidgetItem* itemParent);
66 #endif // __BLOCKLIBRARYWIDGET_H__