Last change
on this file since 399 was
399,
checked in by garnier, 11 years ago
|
Mise en place des comboBox et changement de l'aspect visuel
|
File size:
1.2 KB
|
Rev | Line | |
---|
[302] | 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> |
---|
[388] | 15 | #include "GWt_sectionToExecute.h" |
---|
[302] | 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(); |
---|
[395] | 30 | void updateSections(); |
---|
[302] | 31 | |
---|
| 32 | private : |
---|
[367] | 33 | // void disableSectionExecute(); |
---|
[358] | 34 | // void checkSectionSelection(); |
---|
[367] | 35 | bool updateSectionSelection(); |
---|
[302] | 36 | void deleteSectionToExecuteW(); |
---|
| 37 | string getSelection(); |
---|
| 38 | void executer(); |
---|
| 39 | bool areDataCoherent(); |
---|
[395] | 40 | void fillComboWithElements(Wt::WComboBox* cBox); |
---|
| 41 | void fillComboWithSoftwares(Wt::WComboBox* cBox); |
---|
[399] | 42 | Wt::WContainerWidget* createAddDeletePushButtons(); |
---|
| 43 | |
---|
[302] | 44 | dataManager* dtmanage_; |
---|
| 45 | WPushButton *exec_go_; |
---|
| 46 | WContainerWidget* contenuSections_; |
---|
| 47 | PspaApplication* pspa_; |
---|
| 48 | |
---|
[388] | 49 | std::vector <GWt_sectionToExecute*> sections; |
---|
[302] | 50 | }; |
---|
| 51 | |
---|
| 52 | #endif /* defined(__PSPA__GWt_softwarePanel__) */ |
---|
Note: See
TracBrowser
for help on using the repository browser.