Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.h @ 7585

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

orxonox/qt_gui: more guo-elements

File size: 1.7 KB
Line 
1/*!
2 * @file qt_gui_elements.h
3 * @brief Definition of ...
4*/
5
6#ifndef __QT_GUI_ELEMENTS_H
7#define __QT_GUI_ELEMENTS_H
8
9#include "../gui_saveable.h"
10#include <list>
11
12// grouping
13#include <QtGui/QGroupBox>
14#include <QtGui/QProgressBar>
15#include <QtGui/QLabel>
16
17// events
18#include <QtGui/QPushButton>
19
20// options
21#include <QtGui/QCheckBox>
22#include <QtGui/QSlider>
23#include <QtGui/QLineEdit>
24#include <QtGui/QComboBox>
25
26namespace OrxGui
27{
28  class QtGuiCheckBox : public QCheckBox, public Saveable
29  {
30    Q_OBJECT
31  public:
32    QtGuiCheckBox(const std::string& name, SaveableGroup* group, bool defaultValue = false);
33    virtual ~QtGuiCheckBox() {};
34
35    virtual void load(const MultiType& value);
36    virtual const MultiType& save();
37
38  public slots:
39    //    void setCheckValue(int);
40
41  signals:
42    //    void checkValueChanged();
43  };
44
45  class QtGuiSlider : public QSlider, public Saveable
46  {
47    Q_OBJECT
48
49  public:
50    QtGuiSlider(const std::string& name, SaveableGroup* group, Qt::Orientation orientation = Qt::Horizontal);
51    virtual ~QtGuiSlider();
52
53  public slots:
54    //   void setSliderValue(float);
55
56  signals:
57    //    void sliderValueChanged(float);
58  };
59
60
61  class QtGuiComboBox : public QComboBox, public OrxGui::Saveable
62  {
63    Q_OBJECT
64
65  public:
66    QtGuiComboBox(const std::string& name, SaveableGroup* group);
67
68    virtual void load(const MultiType& value);
69    virtual const MultiType& save();
70  };
71
72  class QtGuiInputLine : public QLineEdit, public OrxGui::Saveable
73  {
74    Q_OBJECT
75
76  public:
77    QtGuiInputLine(const std::string& name, SaveableGroup* group);
78
79    virtual void load(const MultiType& value);
80    virtual const MultiType& save();
81  };
82
83}
84
85#endif /* __QT_GUI_ELEMENTS_H */
Note: See TracBrowser for help on using the repository browser.