source: PSPA/Interface_Web/branches/12_03_12-managerComboBox/pspaWT/sources/userInterface/src/GWt_sectionToExecute.cc @ 390

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

testing

File size: 1.3 KB
Line 
1#include <Wt/WText>
2#include "GWt_sectionToExecute.h"
3
4
5GWt_sectionToExecute::GWt_sectionToExecute(Wt::WComboBox* first,Wt::WComboBox* last,Wt::WComboBox* soft)
6:WContainerWidget(),
7firstElement(first),
8lastElement(last),
9software(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
19GWt_sectionToExecute::GWt_sectionToExecute(Wt::WLineEdit* first,Wt::WLineEdit* last,Wt::WComboBox* soft)
20:WContainerWidget(),
21firstElementLineEdit(first),
22lastElementLineEdit(last),
23software(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
34void GWt_sectionToExecute::setFirstElementCurrentSelection(Wt::WString txt){
35}
36
37void GWt_sectionToExecute::setLastElementCurrentSelection(Wt::WString txt){
38}
39
40void 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
50void GWt_sectionToExecute::setFirstElementLineEditCurrentText(Wt::WString txt){
51    firstElementLineEdit->setText(txt);
52}
53
54void GWt_sectionToExecute::setLastElementLineEditCurrentText(Wt::WString txt){
55    lastElementLineEdit->setText(txt);
56}
57
Note: See TracBrowser for help on using the repository browser.