1 | /* |
---|
2 | Nom du Fichier: ModinspaceWindow.hpp |
---|
3 | Nom de classe: ModinspaceWindow |
---|
4 | Role: |
---|
5 | Functions: |
---|
6 | Attributs: |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | Copyright or © or Copr. Abdouramane MAYAKI |
---|
11 | |
---|
12 | mail of the author: mayakiyerima@yahoo.fr |
---|
13 | |
---|
14 | This software is a framework for variational data assimilation in |
---|
15 | numerical models. |
---|
16 | |
---|
17 | This software is governed by the CeCILL license under French law and |
---|
18 | abiding by the rules of distribution of free software. You can use, |
---|
19 | modify and/ or redistribute the software under the terms of the CeCILL |
---|
20 | license as circulated by CEA, CNRS and INRIA at the following URL |
---|
21 | "http://www.cecill.info". |
---|
22 | |
---|
23 | As a counterpart to the access to the source code and rights to copy, |
---|
24 | modify and redistribute granted by the license, users are provided only |
---|
25 | with a limited warranty and the software's author, the holder of the |
---|
26 | economic rights, and the successive licensors have only limited |
---|
27 | liability. |
---|
28 | |
---|
29 | In this respect, the user's attention is drawn to the risks associated |
---|
30 | with loading, using, modifying and/or developing or reproducing the |
---|
31 | software by the user in light of its specific status of free software, |
---|
32 | that may mean that it is complicated to manipulate, and that also |
---|
33 | therefore means that it is reserved for developers and experienced |
---|
34 | professionals having in-depth computer knowledge. Users are therefore |
---|
35 | encouraged to load and test the software's suitability as regards their |
---|
36 | requirements in conditions enabling the security of their systems and/or |
---|
37 | data to be ensured and, more generally, to use and operate it in the |
---|
38 | same conditions as regards security. |
---|
39 | |
---|
40 | The fact that you are presently reading this means that you have had |
---|
41 | knowledge of the CeCILL license and that you accept its terms. |
---|
42 | */ |
---|
43 | |
---|
44 | #ifndef MODINSPACEWINDOW_HPP |
---|
45 | #define MODINSPACEWINDOW_HPP |
---|
46 | #include <QStandardItemModel> |
---|
47 | #include <QMessageBox> |
---|
48 | #include <vector> |
---|
49 | #include "../../ui_modinspace.h" |
---|
50 | #include "../../../YAOObjects/Table.hpp" |
---|
51 | #include "../../../YAOObjects/Operator.hpp" |
---|
52 | #include "../../../YAOObjects/Modul.hpp" |
---|
53 | #include "../../../YAOObjects/Order.hpp" |
---|
54 | |
---|
55 | class QModelIndex; |
---|
56 | |
---|
57 | |
---|
58 | class ModinspaceWindow: public QWidget, public Ui::ModinspaceWindow { |
---|
59 | |
---|
60 | Q_OBJECT |
---|
61 | |
---|
62 | public : |
---|
63 | ModinspaceWindow(yao::Table <yao::Modul> *aModulTable, yao::Table <yao::Space> *aSpaceTable, yao::Table <yao::Operator> *anOperatorTable, yao::Table <yao::Order> *anOrderTable, yao::Order *anOrder, std::vector <std::string> *anOrderTokens, QWidget *parent=0); |
---|
64 | |
---|
65 | std::vector <std::string> getTokens() { return *m_localOrderTokens; } |
---|
66 | |
---|
67 | private slots: |
---|
68 | //void addInstructionRow(); |
---|
69 | //void selectedFunction(QModelIndex index); |
---|
70 | void addTheAxesRow(); |
---|
71 | void addTheModulRow(); |
---|
72 | void deleteAxesRow(); |
---|
73 | void deleteModulRow(); |
---|
74 | void addBlockEndRow(int anInt); |
---|
75 | void addOrder(); |
---|
76 | void addFOrder(); |
---|
77 | void initializeTheFields(); |
---|
78 | // void addEndRow(bool aBool); |
---|
79 | |
---|
80 | signals: |
---|
81 | //void orderWindowIsClosed(int ); |
---|
82 | |
---|
83 | //protected: |
---|
84 | //void closeEvent(QCloseEvent *event); |
---|
85 | |
---|
86 | private : |
---|
87 | yao::Table <yao::Modul> *m_localModulTable; |
---|
88 | yao::Table <yao::Space> *m_localSpaceTable; |
---|
89 | yao::Table <yao::Operator> *m_localOperaTable; |
---|
90 | yao::Table <yao::Order> *m_localOrderTable; |
---|
91 | yao::Order *m_localOrder; |
---|
92 | |
---|
93 | QStandardItemModel *m_axesModel; |
---|
94 | QStandardItemModel *m_modulNameModel; |
---|
95 | QStandardItemModel *m_outlineModel; |
---|
96 | QString theCode; |
---|
97 | QModelIndex indexForAxes; |
---|
98 | QModelIndex indexForModul; |
---|
99 | |
---|
100 | std::vector <std::string> *m_theLocalAxesTable; |
---|
101 | std::vector <std::string> *m_theLocalModulTable; |
---|
102 | std::string commonName;//Can be the spacename or operaname |
---|
103 | std::vector <std::string> m_localOrderTokens2; |
---|
104 | std::vector <std::string> *m_localOrderTokens; |
---|
105 | int orderCounter; |
---|
106 | int forderCounter; |
---|
107 | int axesCounter; |
---|
108 | }; |
---|
109 | #endif // MODINSPACEWINDOW_HPP |
---|