1 | /* |
---|
2 | Nom du Fichier: ModinspaceWindow.hpp |
---|
3 | Nom de classe: ModinspaceWindow |
---|
4 | Role: |
---|
5 | Functions: |
---|
6 | Attributs: |
---|
7 | */ |
---|
8 | |
---|
9 | #ifndef MODINSPACEWINDOW_HPP |
---|
10 | #define MODINSPACEWINDOW_HPP |
---|
11 | #include <QStandardItemModel> |
---|
12 | #include <QModelIndex> |
---|
13 | #include <QMessageBox> |
---|
14 | #include "../../ui_modinspace.h" |
---|
15 | #include "../../../YAOObjects/Table.hpp" |
---|
16 | #include "../../../YAOObjects/Operator.hpp" |
---|
17 | #include "../../../YAOObjects/Modul.hpp" |
---|
18 | #include "../../../YAOObjects/Order.hpp" |
---|
19 | |
---|
20 | |
---|
21 | class ModinspaceWindow: public QWidget, public Ui::ModinspaceWindow { |
---|
22 | |
---|
23 | Q_OBJECT |
---|
24 | |
---|
25 | public : |
---|
26 | ModinspaceWindow(yao::Table <yao::Modul> *aModulTable, yao::Table <yao::Space> *aSpaceTable, yao::Table <yao::Operator> *anOperatorTable, yao::Table <yao::Order> *anOrderTable, yao::Order *anOrder, QWidget *parent=0); |
---|
27 | |
---|
28 | private slots: |
---|
29 | //void addInstructionRow(); |
---|
30 | //void selectedFunction(QModelIndex index); |
---|
31 | void addTheAxesRow(); |
---|
32 | void addTheModulRow(); |
---|
33 | void deleteAxesRow(); |
---|
34 | void deleteModulRow(); |
---|
35 | void addBlockEndRow(int anInt); |
---|
36 | // void addEndRow(bool aBool); |
---|
37 | |
---|
38 | signals: |
---|
39 | //void orderWindowIsClosed(int ); |
---|
40 | |
---|
41 | //protected: |
---|
42 | //void closeEvent(QCloseEvent *event); |
---|
43 | |
---|
44 | private : |
---|
45 | yao::Table <yao::Modul> *m_localModulTable; |
---|
46 | yao::Table <yao::Space> *m_localSpaceTable; |
---|
47 | yao::Table <yao::Operator> *m_localOperaTable; |
---|
48 | yao::Table <yao::Order> *m_localOrderTable; |
---|
49 | yao::Order *m_localOrder; |
---|
50 | |
---|
51 | QStandardItemModel *m_axesModel; |
---|
52 | QStandardItemModel *m_modulNameModel; |
---|
53 | QStandardItemModel *m_outlineModel; |
---|
54 | |
---|
55 | QModelIndex indexForAxes; |
---|
56 | QModelIndex indexForModul; |
---|
57 | |
---|
58 | std::vector <std::string> *m_theLocalAxesTable; |
---|
59 | std::vector <std::string> *m_theLocalModulTable; |
---|
60 | }; |
---|
61 | #endif // MODINSPACEwINDOW_HPP |
---|