Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 5, 2006, 10:44:18 AM (18 years ago)
Author:
bensch
Message:

orxonox/qt_gui: elements defined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.cc

    r7531 r7539  
    1616//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
    1717
    18 #include "qt_gui.h"
     18#include "qt_gui_elements.h"
     19
    1920
    2021namespace OrxGui
     
    2324
    2425
     26  QtGuiCheckBox::QtGuiCheckBox(const std::string& name, bool defaultValue)
     27  : QCheckBox(QString().fromStdString(name)), Saveable(name)
     28  {
     29    //this->load(this->value());
     30  }
     31
     32  void QtGuiCheckBox::load(const MultiType& value)
     33  {
     34    this->setTristate(value.getBool());
     35        this->value() = value;
     36  }
    2537
    2638
    27   QtGuiComboBox::QtGuiComboBox(QWidget* parent, const std::string& name)
    28   : QComboBox(parent), Saveable(name)
     39
     40  const MultiType& QtGuiCheckBox::save()
     41  {
     42    return this->value();
     43  }
     44
     45  QtGuiComboBox::QtGuiComboBox(const std::string& name)
     46  : QComboBox(), Saveable(name)
    2947  {
    3048
     
    3250  }
    3351
     52  void QtGuiComboBox::load(const MultiType& value)
     53  {
     54    this->value() = value;
     55    //TODO
     56  }
     57
     58  const MultiType& QtGuiComboBox::save()
     59  {
     60    return this->value();
     61  }
    3462
    3563
Note: See TracChangeset for help on using the changeset viewer.