source: PSPA/Interface_Web/branches/12_03_12-managerComboBox/pspaWT/sources/userInterface/include/GWt_sectionToExecute.h @ 388

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

Etape 2 : Remplacement de la structure selectedSections par un vecteur de GWt_sectionToExecute

File size: 1.5 KB
Line 
1#ifndef GWT_SECTIONTOEXECUTE_SEEN
2#define GWT_SECTIONTOEXECUTE_SEEN
3
4#include <Wt/WContainerWidget>
5#include <Wt/WComboBox>
6#include <Wt/WLineEdit>
7
8class GWt_sectionToExecute : public Wt::WContainerWidget
9{
10    public :
11    GWt_sectionToExecute(Wt::WComboBox*,Wt::WComboBox*,Wt::WComboBox*);
12
13    /** DEPRECATED */
14    GWt_sectionToExecute(Wt::WLineEdit*,Wt::WLineEdit*,Wt::WComboBox*);
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 getFirstElementLineEditCurrentText() {
27        return firstElementLineEdit->text();
28    }
29   
30    inline Wt::WString getLastElementLineEditCurrentText() {
31        return lastElementLineEdit->text();
32    }
33   
34    inline Wt::WString getSoftwareCurrentText() {
35        return software->currentText();
36    }
37   
38    void setFirstElementCurrentSelection(Wt::WString);
39    void setLastElementCurrentSelection(Wt::WString);
40    void setSoftwareElementCurrentSelection(Wt::WString);
41   
42    void setFirstElementLineEditCurrentText(Wt::WString);
43    void setLastElementLineEditCurrentText(Wt::WString);
44
45    private :
46    Wt::WComboBox*  firstElement;
47    Wt::WComboBox*  lastElement;
48    Wt::WComboBox* software;
49
50    /** DEPRECATED */
51    Wt::WLineEdit*  firstElementLineEdit;
52    Wt::WLineEdit*  lastElementLineEdit;
53
54};
55
56#endif
Note: See TracBrowser for help on using the repository browser.