Changeset 428 in PSPA for Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_globalParameters.cc
- Timestamp:
- Nov 4, 2013, 12:21:18 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_globalParameters.cc
r427 r428 15 15 } 16 16 17 GWt_globalParameters::GWt_globalParameters(dataManager* dt,WContainerWidget* wt)17 void GWt_globalParameters::setText(WContainerWidget* wt) 18 18 { 19 dt_ = dt;20 19 status_ = new WText("Go ahead...",wt); 21 20 } … … 23 22 void GWt_globalParameters::initilializeDialog() 24 23 { 24 dialog_ = new WDialog("global parameters"); 25 25 string* param = dialogBegin(); 26 26 27 dialog_ = new WDialog("global parameters");28 27 new WText("Enter frequency (MHz) : ",dialog_->contents()); 29 28 frequencyEdit_ = new WLineEdit(param[1].c_str(),dialog_->contents()); … … 72 71 envoi_[3] = param[3].c_str(); 73 72 envoi_[4] = param[4].c_str(); 74 setStatus();75 73 return param; 76 74 } … … 78 76 void GWt_globalParameters::dialogDone(WDialog::DialogCode code) 79 77 { 80 if (code == WDialog::Accepted) updateGlobals(); 78 if (code == WDialog::Accepted) { 79 updateGlobals(); 80 setStatus(); 81 } 81 82 return; 82 83 } … … 89 90 envoi_[3] = nstepMAxEdit_->text().toUTF8(); 90 91 envoi_[4] = nscEdit_->text().toUTF8(); 91 92 setStatus();93 92 dt_->getGlobalParameters()->setParametersString(envoi_); 94 93 } … … 97 96 { 98 97 string* param = dialogBegin(); 99 100 frequencyEdit_->setText(param[1].c_str()); 101 stepEdit_->setText(param[2].c_str()); 102 nstepMAxEdit_->setText(param[3].c_str()); 103 nscEdit_->setText(param[4].c_str()); 104 } 105 106 string* GWt_globalParameters::getGlobalParameters() 107 { 108 return envoi_; 98 setStatus(); 99 frequencyEdit_ = new WLineEdit(param[1].c_str()); 100 stepEdit_ = new WLineEdit(param[2].c_str()); 101 nstepMAxEdit_ = new WLineEdit(param[3].c_str()); 102 nscEdit_ = new WLineEdit(param[4].c_str()); 109 103 } 110 104
Note: See TracChangeset
for help on using the changeset viewer.