[388] | 1 | #ifndef GWT_SECTIONTOEXECUTE_SEEN |
---|
| 2 | #define GWT_SECTIONTOEXECUTE_SEEN |
---|
| 3 | |
---|
| 4 | #include <Wt/WContainerWidget> |
---|
| 5 | #include <Wt/WComboBox> |
---|
[399] | 6 | #include <Wt/WText> |
---|
[388] | 7 | |
---|
[396] | 8 | class GWt_softwarePanel; |
---|
[455] | 9 | class GWt_sector; |
---|
[396] | 10 | |
---|
[388] | 11 | class GWt_sectionToExecute : public Wt::WContainerWidget |
---|
| 12 | { |
---|
| 13 | public : |
---|
[455] | 14 | GWt_sectionToExecute(Wt::WComboBox*,Wt::WComboBox*,Wt::WComboBox*,Wt::WContainerWidget* buttonPanel,GWt_softwarePanel* sPanel,GWt_sector*); |
---|
[388] | 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 | |
---|
[395] | 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 | } |
---|
[388] | 41 | void setFirstElementCurrentSelection(Wt::WString); |
---|
| 42 | void setLastElementCurrentSelection(Wt::WString); |
---|
| 43 | void setSoftwareElementCurrentSelection(Wt::WString); |
---|
| 44 | |
---|
[396] | 45 | inline void setWarnings(Wt::WString warn){ |
---|
| 46 | warningsLabel_->setText(warn); |
---|
| 47 | manageWarningsAndErrors(); |
---|
| 48 | } |
---|
[388] | 49 | |
---|
[396] | 50 | inline void setErrors(Wt::WString err){ |
---|
| 51 | errorsLabel_->setText(err); |
---|
| 52 | manageWarningsAndErrors(); |
---|
| 53 | } |
---|
| 54 | |
---|
[388] | 55 | private : |
---|
[396] | 56 | |
---|
| 57 | void manageWarningsAndErrors(); |
---|
[388] | 58 | Wt::WComboBox* firstElement; |
---|
| 59 | Wt::WComboBox* lastElement; |
---|
| 60 | Wt::WComboBox* software; |
---|
[396] | 61 | GWt_softwarePanel* softwarePanel; |
---|
[388] | 62 | |
---|
[399] | 63 | Wt::WText* errorsLabel_; |
---|
| 64 | Wt::WText* warningsLabel_; |
---|
[388] | 65 | |
---|
[396] | 66 | Wt::WContainerWidget* warningsContainer_; |
---|
| 67 | Wt::WContainerWidget* errorsContainer_; |
---|
[455] | 68 | GWt_sector* UI_sector_; |
---|
[388] | 69 | }; |
---|
| 70 | |
---|
| 71 | #endif |
---|