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

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

merge avec la branche 12_03_12-managerComboBox

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