]> AND Private Git Repository - blast.git/blob - BlockLibraryWidget.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
nearly finished GroupBlock VHDL gen
[blast.git] / BlockLibraryWidget.h
1 #ifndef __BLOCKLIBRARYWIDGET_H__
2 #define __BLOCKLIBRARYWIDGET_H__
3
4 #include <iostream>
5
6 #include <QtCore>
7 #include <QtGui>
8
9 #include "Dispatcher.h"
10 class Dispatcher;
11 #include "Parameters.h"
12 class Parameters;
13 #include "BlockCategory.h"
14 class BlockCategory;
15
16 using namespace std;
17 using namespace Qt;
18
19 class BlockLibraryWidget : public QWidget {
20   Q_OBJECT
21
22 public:
23   explicit BlockLibraryWidget(Dispatcher* _dispatcher, Parameters* _params, QWidget *parent = 0);
24   ~BlockLibraryWidget();
25
26 public slots:
27   void updateComboScene();
28
29 private slots:
30     void addClicked();
31     void clicked();
32     void doubleClicked();
33
34
35 private:
36   Parameters* params;
37   Dispatcher* dispatcher;
38   QTreeWidget* tree;
39   QPushButton* buttonAdd;
40   QComboBox* comboScenes;
41   // other attributes
42   
43   void addChild(BlockCategory *catParent, QTreeWidgetItem* itemParent);
44   void addButtons();
45
46 };
47
48 #endif // __BLOCKLIBRARYWIDGET_H__