source: PSPA/Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_sectionToExecute.h @ 455

Last change on this file since 455 was 455, checked in by garnier, 11 years ago

grosse modification pour intégrer les sections

File size: 1.8 KB
Line 
1#ifndef GWT_SECTIONTOEXECUTE_SEEN
2#define GWT_SECTIONTOEXECUTE_SEEN
3
4#include <Wt/WContainerWidget>
5#include <Wt/WComboBox>
6#include <Wt/WText>
7
8class GWt_softwarePanel;
9class GWt_sector;
10
11class GWt_sectionToExecute : public Wt::WContainerWidget
12{
13    public :
14    GWt_sectionToExecute(Wt::WComboBox*,Wt::WComboBox*,Wt::WComboBox*,Wt::WContainerWidget* buttonPanel,GWt_softwarePanel* sPanel,GWt_sector*);
15
16    ~GWt_sectionToExecute() {;}
17
18    inline Wt::WString getFirstElementCurrentText() {
19        return firstElement->currentText();
20    }
21   
22    inline Wt::WString getLastElementCurrentText() {
23        return lastElement->currentText();
24    }
25   
26    inline Wt::WString getSoftwareCurrentText() {
27        return software->currentText();
28    }
29   
30    inline Wt::WComboBox * getFirstElement() {
31        return firstElement;
32    }
33   
34    inline Wt::WComboBox * getLastElement() {
35        return lastElement;
36    }
37   
38    inline Wt::WComboBox * getSoftware() {
39        return software;
40    }
41    void setFirstElementCurrentSelection(Wt::WString);
42    void setLastElementCurrentSelection(Wt::WString);
43    void setSoftwareElementCurrentSelection(Wt::WString);
44   
45    inline void setWarnings(Wt::WString warn){
46        warningsLabel_->setText(warn);
47        manageWarningsAndErrors();
48    }
49
50    inline void setErrors(Wt::WString err){
51        errorsLabel_->setText(err);
52        manageWarningsAndErrors();
53    }
54
55    private :
56   
57    void manageWarningsAndErrors();
58    Wt::WComboBox*  firstElement;
59    Wt::WComboBox*  lastElement;
60    Wt::WComboBox* software;
61    GWt_softwarePanel* softwarePanel;
62
63    Wt::WText* errorsLabel_;
64    Wt::WText* warningsLabel_;
65
66    Wt::WContainerWidget* warningsContainer_;
67    Wt::WContainerWidget* errorsContainer_;
68    GWt_sector* UI_sector_;
69};
70
71#endif
Note: See TracBrowser for help on using the repository browser.