Line | |
---|
1 | // |
---|
2 | // GWt_softwarePanel.h |
---|
3 | // PSPA |
---|
4 | // |
---|
5 | // Created by Garnier Laurent on 30/01/13. |
---|
6 | // Copyright (c) 2013 Garnier Laurent. All rights reserved. |
---|
7 | // |
---|
8 | |
---|
9 | #ifndef __PSPA__GWt_softwarePanel__ |
---|
10 | #define __PSPA__GWt_softwarePanel__ |
---|
11 | |
---|
12 | #include <iostream> |
---|
13 | #include <Wt/WContainerWidget> |
---|
14 | #include <Wt/WPushButton> |
---|
15 | #include "GWt_sectionToExecute.h" |
---|
16 | #include "dataManager.h" |
---|
17 | |
---|
18 | using namespace Wt; |
---|
19 | using namespace std; |
---|
20 | |
---|
21 | class PspaApplication; |
---|
22 | |
---|
23 | class GWt_softwarePanel : public WContainerWidget |
---|
24 | { |
---|
25 | public : |
---|
26 | GWt_softwarePanel(dataManager*, PspaApplication*); |
---|
27 | virtual ~GWt_softwarePanel(); |
---|
28 | |
---|
29 | void addSectionToExecuteW(); |
---|
30 | void updateSections(); |
---|
31 | |
---|
32 | private : |
---|
33 | // void disableSectionExecute(); |
---|
34 | // void checkSectionSelection(); |
---|
35 | bool updateSectionSelection(); |
---|
36 | void deleteSectionToExecuteW(); |
---|
37 | string getSelection(); |
---|
38 | void executer(); |
---|
39 | bool areDataCoherent(); |
---|
40 | void fillComboWithElements(Wt::WComboBox* cBox); |
---|
41 | void fillComboWithSoftwares(Wt::WComboBox* cBox); |
---|
42 | |
---|
43 | dataManager* dtmanage_; |
---|
44 | WPushButton *exec_go_; |
---|
45 | WContainerWidget* contenuSections_; |
---|
46 | PspaApplication* pspa_; |
---|
47 | |
---|
48 | std::vector <GWt_sectionToExecute*> sections; |
---|
49 | }; |
---|
50 | |
---|
51 | #endif /* defined(__PSPA__GWt_softwarePanel__) */ |
---|
Note: See
TracBrowser
for help on using the repository browser.