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

Last change on this file since 476 was 476, checked in by garnier, 10 years ago

Impleméntation en partie de setFirstElement

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