Line | |
---|
1 | #include <Wt/WText> |
---|
2 | #include "GWt_sectionToExecute.h" |
---|
3 | |
---|
4 | |
---|
5 | GWt_sectionToExecute::GWt_sectionToExecute(Wt::WComboBox* first,Wt::WComboBox* last,Wt::WComboBox* soft) |
---|
6 | :WContainerWidget(), |
---|
7 | firstElement(first), |
---|
8 | lastElement(last), |
---|
9 | software(soft) |
---|
10 | { |
---|
11 | addWidget(new Wt::WText(" fromC : ")); |
---|
12 | addWidget(first); |
---|
13 | addWidget(new Wt::WText(" toC : ")); |
---|
14 | addWidget(last); |
---|
15 | addWidget(soft); |
---|
16 | } |
---|
17 | |
---|
18 | |
---|
19 | GWt_sectionToExecute::GWt_sectionToExecute(Wt::WLineEdit* first,Wt::WLineEdit* last,Wt::WComboBox* soft) |
---|
20 | :WContainerWidget(), |
---|
21 | firstElementLineEdit(first), |
---|
22 | lastElementLineEdit(last), |
---|
23 | software(soft) |
---|
24 | {; |
---|
25 | addWidget(new Wt::WText(" fromLE : ")); |
---|
26 | addWidget(first); |
---|
27 | addWidget(new Wt::WText(" toLE : ")); |
---|
28 | addWidget(last); |
---|
29 | addWidget(soft); |
---|
30 | } |
---|
31 | |
---|
32 | |
---|
33 | |
---|
34 | void GWt_sectionToExecute::setFirstElementCurrentSelection(Wt::WString txt){ |
---|
35 | } |
---|
36 | |
---|
37 | void GWt_sectionToExecute::setLastElementCurrentSelection(Wt::WString txt){ |
---|
38 | } |
---|
39 | |
---|
40 | void GWt_sectionToExecute::setSoftwareElementCurrentSelection(Wt::WString txt){ |
---|
41 | for (int a=0; a< software->count(); a++) { |
---|
42 | if (software->itemText(a) == txt) { |
---|
43 | software->setCurrentIndex (a); |
---|
44 | return; |
---|
45 | } |
---|
46 | } |
---|
47 | } |
---|
48 | |
---|
49 | |
---|
50 | void GWt_sectionToExecute::setFirstElementLineEditCurrentText(Wt::WString txt){ |
---|
51 | firstElementLineEdit->setText(txt); |
---|
52 | } |
---|
53 | |
---|
54 | void GWt_sectionToExecute::setLastElementLineEditCurrentText(Wt::WString txt){ |
---|
55 | lastElementLineEdit->setText(txt); |
---|
56 | } |
---|
57 | |
---|
Note: See
TracBrowser
for help on using the repository browser.