Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/qt/qt_gui_elements.h @ 8145

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