Changeset 469 in PSPA for Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_sectionToExecute.cc
- Timestamp:
- Dec 19, 2013, 3:53:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_sectionToExecute.cc
r455 r469 8 8 #include "GWt_sectionToExecute.h" 9 9 #include "GWt_softwarePanel.h" 10 #include "GWt_sector.h" 10 11 11 GWt_sectionToExecute::GWt_sectionToExecute(Wt::WComboBox* first,Wt::WComboBox* last,Wt::WComboBox* soft,Wt::WContainerWidget* buttonPanel, GWt_softwarePanel* sPanel,GWt_sector* sect)12 GWt_sectionToExecute::GWt_sectionToExecute(Wt::WComboBox* first,Wt::WComboBox* last,Wt::WComboBox* soft,Wt::WContainerWidget* buttonPanel, sectionToExecute* section,GWt_sector* sector) 12 13 :WContainerWidget(), 13 firstElement (first),14 lastElement (last),15 soft ware(soft),16 s oftwarePanel(sPanel),17 UI _sector_(sect)14 firstElement_(first), 15 lastElement_(last), 16 softElement_(soft), 17 section_(section), 18 UIsector_(sector) 18 19 { 19 20 Wt::WGridLayout* mainContainerLayout = new Wt::WGridLayout(); … … 29 30 30 31 labelAndComboInsideContainerLayout->addWidget(new Wt::WText("from : ")); 31 labelAndComboInsideContainerLayout->addWidget(first );32 labelAndComboInsideContainerLayout->addWidget(firstElement_); 32 33 labelAndComboInsideContainerLayout->addWidget(new Wt::WText("to : ")); 33 labelAndComboInsideContainerLayout->addWidget(last );34 labelAndComboInsideContainerLayout->addWidget(soft );34 labelAndComboInsideContainerLayout->addWidget(lastElement_); 35 labelAndComboInsideContainerLayout->addWidget(softElement_); 35 36 36 37 // add buttons … … 86 87 87 88 // resize combo 88 firstElement ->setMinimumSize(80,12);89 lastElement ->setMinimumSize(80,12);90 soft ware->setMinimumSize(80,12);89 firstElement_->setMinimumSize(80,12); 90 lastElement_->setMinimumSize(80,12); 91 softElement_->setMinimumSize(80,12); 91 92 92 firstElement->activated().connect(softwarePanel,&GWt_softwarePanel::updateSections);93 lastElement->activated().connect(softwarePanel,&GWt_softwarePanel::updateSections);94 soft ware->activated().connect(softwarePanel,&GWt_softwarePanel::updateSections);93 // firstElement_->activated().connect(softwarePanel,&GWt_softwarePanel::updateSections); 94 // lastElement->activated().connect(softwarePanel,&GWt_softwarePanel::updateSections); 95 softElement_->activated().connect(this,&GWt_sectionToExecute::setSoftware); 95 96 96 97 manageWarningsAndErrors(); … … 99 100 100 101 void GWt_sectionToExecute::setFirstElementCurrentSelection(Wt::WString txt){ 101 for (int a=0; a< firstElement ->count(); a++) {102 if (firstElement ->itemText(a) == txt) {103 firstElement ->setCurrentIndex (a);102 for (int a=0; a< firstElement_->count(); a++) { 103 if (firstElement_->itemText(a) == txt) { 104 firstElement_->setCurrentIndex (a); 104 105 return; 105 106 } … … 108 109 109 110 void GWt_sectionToExecute::setLastElementCurrentSelection(Wt::WString txt){ 110 for (int a=0; a< lastElement ->count(); a++) {111 if (lastElement ->itemText(a) == txt) {112 lastElement ->setCurrentIndex (a);111 for (int a=0; a< lastElement_->count(); a++) { 112 if (lastElement_->itemText(a) == txt) { 113 lastElement_->setCurrentIndex (a); 113 114 return; 114 115 } … … 117 118 118 119 void GWt_sectionToExecute::setSoftwareElementCurrentSelection(Wt::WString txt){ 119 for (int a=0; a< soft ware->count(); a++) {120 if (soft ware->itemText(a) == txt) {121 soft ware->setCurrentIndex (a);120 for (int a=0; a< softElement_->count(); a++) { 121 if (softElement_->itemText(a) == txt) { 122 softElement_->setCurrentIndex (a); 122 123 return; 123 124 } … … 140 141 } 141 142 142 /* 143 void GWt_sectionToExecute::setSoftware( nomDeLogiciel logiciel)143 144 void GWt_sectionToExecute::setSoftware() 144 145 { 145 UI_sector_->getSectorControler()->setSoftware(logiciel);146 146 section_->setSoftware(softElement_->currentText().toUTF8()); 147 UIsector_->getBeamLineWidget()->buildBeamLineWidget(); 147 148 } 148 149 149 */
Note: See TracChangeset
for help on using the changeset viewer.