Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.cc @ 7551

Last change on this file since 7551 was 7551, checked in by bensch, 18 years ago

orxonox/qt_gui: more gui-stuff

File size: 1.3 KB
RevLine 
[4744]1/*
[1853]2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
[1855]10
11   ### File Specific:
[7149]12   main-programmer: Benjamin Grauer
[1855]13   co-programmer: ...
[1853]14*/
15
[3955]16//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
[1853]17
[7539]18#include "qt_gui_elements.h"
[1853]19
[7539]20
[7447]21namespace OrxGui
22{
[1853]23
[7447]24
25
[7539]26  QtGuiCheckBox::QtGuiCheckBox(const std::string& name, bool defaultValue)
27  : QCheckBox(QString().fromStdString(name)), Saveable(name)
28  {
29    //this->load(this->value());
30  }
[7531]31
[7539]32  void QtGuiCheckBox::load(const MultiType& value)
33  {
34    this->setTristate(value.getBool());
35        this->value() = value;
36  }
[7531]37
[7539]38
39
40  const MultiType& QtGuiCheckBox::save()
[7531]41  {
[7539]42    return this->value();
43  }
[7531]44
[7549]45
46
47
48
[7551]49  QtGuiSlider::QtGuiSlider(const std::string& name, Qt::Orientation orientation)
50  : QSlider(orientation), Saveable(name)
[7549]51  {
52
53  }
54  QtGuiSlider::~QtGuiSlider()
55  {}
56
57
58
59
60
61
62
63
[7539]64  QtGuiComboBox::QtGuiComboBox(const std::string& name)
65  : QComboBox(), Saveable(name)
66  {
[7531]67
[7539]68
[7531]69  }
70
[7539]71  void QtGuiComboBox::load(const MultiType& value)
72  {
73    this->value() = value;
74    //TODO
75  }
[7531]76
[7539]77  const MultiType& QtGuiComboBox::save()
78  {
79    return this->value();
80  }
[7531]81
[7539]82
[7447]83}
Note: See TracBrowser for help on using the repository browser.