1 | #ifndef GWT_SECTIONTOEXECUTE_SEEN |
---|
2 | #define GWT_SECTIONTOEXECUTE_SEEN |
---|
3 | |
---|
4 | #include <Wt/WContainerWidget> |
---|
5 | #include <Wt/WComboBox> |
---|
6 | #include <Wt/WText> |
---|
7 | #include <Wt/WSignal> |
---|
8 | |
---|
9 | class GWt_softwarePanel; |
---|
10 | class GWt_sector; |
---|
11 | class sectionToExecute; |
---|
12 | |
---|
13 | class GWt_sectionToExecute : public Wt::WContainerWidget |
---|
14 | { |
---|
15 | public : |
---|
16 | GWt_sectionToExecute(Wt::WComboBox* ,Wt::WComboBox* ,Wt::WComboBox*,Wt::WContainerWidget* ,sectionToExecute*,GWt_sector* ); |
---|
17 | |
---|
18 | ~GWt_sectionToExecute() {;} |
---|
19 | |
---|
20 | void setSoftware(); |
---|
21 | void changeFirstElement(); |
---|
22 | |
---|
23 | inline Wt::WString getFirstElementCurrentText() { |
---|
24 | return firstElement_->currentText(); |
---|
25 | } |
---|
26 | |
---|
27 | inline Wt::WString getLastElementCurrentText() { |
---|
28 | return lastElement_->currentText(); |
---|
29 | } |
---|
30 | |
---|
31 | inline Wt::WComboBox * getFirstElement() { |
---|
32 | return firstElement_; |
---|
33 | } |
---|
34 | |
---|
35 | inline Wt::WComboBox * getLastElement() { |
---|
36 | return lastElement_; |
---|
37 | } |
---|
38 | |
---|
39 | void setFirstElementCurrentSelection_deprecated(Wt::WString); |
---|
40 | void setLastElementCurrentSelection_deprecated(Wt::WString); |
---|
41 | void setSoftwareElementCurrentSelection_deprecated(Wt::WString); |
---|
42 | |
---|
43 | inline void setWarnings(Wt::WString warn){ |
---|
44 | warningsLabel_->setText(warn); |
---|
45 | manageWarningsAndErrors(); |
---|
46 | } |
---|
47 | |
---|
48 | inline void setErrors(Wt::WString err){ |
---|
49 | errorsLabel_->setText(err); |
---|
50 | manageWarningsAndErrors(); |
---|
51 | } |
---|
52 | |
---|
53 | Wt::Signal<void> redraw_; |
---|
54 | |
---|
55 | private : |
---|
56 | |
---|
57 | void manageWarningsAndErrors(); |
---|
58 | Wt::WComboBox* firstElement_; |
---|
59 | Wt::WComboBox* lastElement_; |
---|
60 | Wt::WComboBox* softElement_; |
---|
61 | sectionToExecute* section_; |
---|
62 | GWt_sector* UIsector_; |
---|
63 | |
---|
64 | Wt::WText* errorsLabel_; |
---|
65 | Wt::WText* warningsLabel_; |
---|
66 | |
---|
67 | Wt::WContainerWidget* warningsContainer_; |
---|
68 | Wt::WContainerWidget* errorsContainer_; |
---|
69 | }; |
---|
70 | |
---|
71 | #endif |
---|