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

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

Désormais il est de nouveau possible d'ajouter des sections et dy affecter des softwares (ne marche pour le moment quavec la 1ere sectionToExecute. Autres améliorations et renommages

File size: 1.6 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
21    inline Wt::WString getFirstElementCurrentText() {
22        return firstElement_->currentText();
23    }
24   
25    inline Wt::WString getLastElementCurrentText() {
26        return lastElement_->currentText();
27    }
28   
29    inline Wt::WComboBox * getFirstElement() {
30        return firstElement_;
31    }
32   
33    inline Wt::WComboBox * getLastElement() {
34        return lastElement_;
35    }
36   
37    void setFirstElementCurrentSelection(Wt::WString);
38    void setLastElementCurrentSelection(Wt::WString);
39    void setSoftwareElementCurrentSelection(Wt::WString);
40   
41    inline void setWarnings(Wt::WString warn){
42        warningsLabel_->setText(warn);
43        manageWarningsAndErrors();
44    }
45
46    inline void setErrors(Wt::WString err){
47        errorsLabel_->setText(err);
48        manageWarningsAndErrors();
49    }
50
51    private :
52   
53    void manageWarningsAndErrors();
54    Wt::WComboBox*  firstElement_;
55    Wt::WComboBox*  lastElement_;
56    Wt::WComboBox*  softElement_;
57    sectionToExecute* section_;
58    GWt_sector* UIsector_;
59
60    Wt::WText* errorsLabel_;
61    Wt::WText* warningsLabel_;
62
63    Wt::WContainerWidget* warningsContainer_;
64    Wt::WContainerWidget* errorsContainer_;
65};
66
67#endif
Note: See TracBrowser for help on using the repository browser.