Changeset 5104 in ntrip for trunk


Ignore:
Timestamp:
Apr 12, 2013, 4:54:29 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/inpedit/keyword.cpp

    r5102 r5104  
    152152////////////////////////////////////////////////////////////////////////////
    153153QStringList t_keyword::values() const {
    154   return _origValues;
     154
     155  QStringList values;
     156
     157  if (_widget == 0) {
     158    // TODO: exception
     159  }
     160
     161  QString widgetType = _desc.value("widget");
     162
     163  if      (widgetType == "checkbox") {
     164    QCheckBox* chBox = static_cast<QCheckBox*>(_widget);
     165  }
     166  else if (widgetType == "combobox") {
     167    QComboBox* cmbBox = static_cast<QComboBox*>(_widget);
     168  }
     169  else if (widgetType == "lineedit") {
     170    t_lineEdit* lineEdit = static_cast<t_lineEdit*>(_widget);
     171  }
     172  else if (widgetType == "radiobutton") {
     173    QRadioButton* radButt = static_cast<QRadioButton*>(_widget);
     174  }
     175  else if (widgetType == "selwin") {
     176    t_selWin* selWin = static_cast<t_selWin*>(_widget);
     177  }
     178  else if (widgetType == "spinbox") {
     179    QSpinBox* spinBox = static_cast<QSpinBox*>(_widget);
     180  }
     181  else if (widgetType == "uniline") {
     182    t_uniLine* uniLine = static_cast<t_uniLine*>(_widget);
     183  }
     184
     185  return values;
    155186}
    156187
Note: See TracChangeset for help on using the changeset viewer.