[442] | 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" |
---|
[460] | 15 | #include "../../../YAOObjects/Table.hpp" |
---|
| 16 | #include "../../../YAOObjects/Operator.hpp" |
---|
| 17 | #include "../../../YAOObjects/Modul.hpp" |
---|
[471] | 18 | #include "../../../YAOObjects/Order.hpp" |
---|
[442] | 19 | |
---|
| 20 | |
---|
| 21 | class ModinspaceWindow: public QWidget, public Ui::ModinspaceWindow { |
---|
| 22 | |
---|
| 23 | Q_OBJECT |
---|
| 24 | |
---|
| 25 | public : |
---|
[472] | 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); |
---|
[442] | 27 | |
---|
| 28 | private slots: |
---|
| 29 | //void addInstructionRow(); |
---|
| 30 | //void selectedFunction(QModelIndex index); |
---|
[464] | 31 | void addTheAxesRow(); |
---|
| 32 | void addTheModulRow(); |
---|
| 33 | void deleteAxesRow(); |
---|
| 34 | void deleteModulRow(); |
---|
[469] | 35 | void addBlockEndRow(int anInt); |
---|
| 36 | // void addEndRow(bool aBool); |
---|
[468] | 37 | |
---|
[442] | 38 | signals: |
---|
| 39 | //void orderWindowIsClosed(int ); |
---|
| 40 | |
---|
| 41 | //protected: |
---|
| 42 | //void closeEvent(QCloseEvent *event); |
---|
| 43 | |
---|
| 44 | private : |
---|
[471] | 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; |
---|
[472] | 49 | yao::Order *m_localOrder; |
---|
[460] | 50 | |
---|
| 51 | QStandardItemModel *m_axesModel; |
---|
| 52 | QStandardItemModel *m_modulNameModel; |
---|
| 53 | QStandardItemModel *m_outlineModel; |
---|
[464] | 54 | |
---|
| 55 | QModelIndex indexForAxes; |
---|
| 56 | QModelIndex indexForModul; |
---|
[465] | 57 | |
---|
| 58 | std::vector <std::string> *m_theLocalAxesTable; |
---|
| 59 | std::vector <std::string> *m_theLocalModulTable; |
---|
[442] | 60 | }; |
---|
| 61 | #endif // MODINSPACEwINDOW_HPP |
---|