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

Private GIT Repository
adding save to gitignore
[blast.git] / BlocksToConfigureWidget.h
1 #ifndef __BLOCKSTOCONFIGUREWIDGET_H__
2 #define __BLOCKSTOCONFIGUREWIDGET_H__
3
4 #include <QWidget>
5
6 #include <QTreeWidget>
7 #include <QGridLayout>
8 #include "Parameters.h"
9 #include "AbstractBlock.h"
10 #include <QPushButton>
11
12 class BlocksToConfigureWidget : public QWidget
13 {
14     Q_OBJECT
15 public:
16     BlocksToConfigureWidget(QList<AbstractBlock *> blocksList, Parameters *_params, QWidget *parent=0);
17
18     void updateNamesList();
19     void updateBlocksList();
20
21     inline QTreeWidget *getTree() { return tree; }
22     inline QList<AbstractBlock*> getBlocks() { return blocks; }
23
24 private:
25     void closeEvent(QCloseEvent * event);
26
27     QList<AbstractBlock*> blocks;
28     QTreeWidget *tree;
29     QGridLayout *layout;
30     QPushButton *configureButton;
31     Parameters *params;
32
33 private slots:
34     void clicked();
35     void doubleClicked();
36     void configure();
37 };
38
39 #endif // BLOCKSTOCONFIGUREWIDGET_H