Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/qt_gui: elements defined

File size: 1.1 KB
Line 
1/*
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.
10
11   ### File Specific:
12   main-programmer: Benjamin Grauer
13   co-programmer: ...
14*/
15
16//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
17
18#include "qt_gui_elements.h"
19
20
21namespace OrxGui
22{
23
24
25
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  }
37
38
39
40  const MultiType& QtGuiCheckBox::save()
41  {
42    return this->value();
43  }
44
45  QtGuiComboBox::QtGuiComboBox(const std::string& name)
46  : QComboBox(), Saveable(name)
47  {
48
49
50  }
51
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  }
62
63
64}
Note: See TracBrowser for help on using the repository browser.