Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.h @ 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.2 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  public:
31    QtGuiCheckBox(const std::string& name, bool defaultValue = false);
32    virtual ~QtGuiCheckBox() {};
33
34    virtual void load(const MultiType& value);
35    virtual const MultiType& save();
36
37  public slots:
38    void setCheckValue(int);
39
40  signals:
41    void checkValueChanged();
42  };
43
44  class QtGuiSlider : public QSlider, public Saveable
45  {
46  public:
47    QtGuiSlider();
48    virtual ~QtGuiSlider() {};
49
50  public slots:
51    void setSliderValue(float);
52
53  signals:
54    void sliderValueChanged(float);
55  };
56
57
58  class QtGuiComboBox : public QComboBox, public OrxGui::Saveable
59  {
60    public:
61    QtGuiComboBox(const std::string& name);
62
63    virtual void load(const MultiType& value);
64    virtual const MultiType& save();
65  };
66
67}
68
69#endif /* __QT_GUI_ELEMENTS_H */
Note: See TracBrowser for help on using the repository browser.