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