Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/proxy/src/lib/gui/qt/qt_gui_elements.h @ 9468

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

trunk: merged the gui back
merged with command:
svn merge -r8114:HEAD https://svn.orxonox.net/orxonox/branches/gui .
→ no conflicts

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();
36    virtual void 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, int defaultValue = 0, Qt::Orientation orientation = Qt::Horizontal);
51    virtual ~QtGuiSlider();
52
53    virtual void load();
54    virtual void save();
55
56  public slots:
57    //   void setSliderValue(float);
58
59  signals:
60    //    void sliderValueChanged(float);
61  };
62
63
64  class QtGuiComboBox : public QComboBox, public OrxGui::Saveable
65  {
66    Q_OBJECT
67
68  public:
69    QtGuiComboBox(const std::string& name, SaveableGroup* group, const std::string& defaultValue);
70
71    virtual void load();
72    virtual void save();
73  };
74
75  class QtGuiInputLine : public QLineEdit, public OrxGui::Saveable
76  {
77    Q_OBJECT
78
79  public:
80    QtGuiInputLine(const std::string& name, SaveableGroup* group, const std::string& defaultValue);
81
82    virtual void load();
83    virtual void save();
84  };
85
86}
87
88#endif /* __QT_GUI_ELEMENTS_H */
Note: See TracBrowser for help on using the repository browser.