Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: Quit button Works… more like start button, but it works

File size: 1.3 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:
[7539]32    QtGuiCheckBox(const std::string& name, bool defaultValue = false);
33    virtual ~QtGuiCheckBox() {};
[2036]34
[7539]35    virtual void load(const MultiType& value);
36    virtual const MultiType& save();
[7149]37
[7447]38  public slots:
[7543]39//    void setCheckValue(int);
[7149]40
[7447]41  signals:
[7543]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:
50    QtGuiSlider();
[7539]51    virtual ~QtGuiSlider() {};
[7150]52
[7447]53  public slots:
[7543]54 //   void setSliderValue(float);
[7150]55
[7447]56  signals:
[7543]57//    void sliderValueChanged(float);
[7447]58  };
[7150]59
[7531]60
61  class QtGuiComboBox : public QComboBox, public OrxGui::Saveable
62  {
[7543]63    Q_OBJECT
64
[7539]65    public:
66    QtGuiComboBox(const std::string& name);
[7531]67
[7539]68    virtual void load(const MultiType& value);
69    virtual const MultiType& save();
[7447]70  };
71
72}
73
[7472]74#endif /* __QT_GUI_ELEMENTS_H */
Note: See TracBrowser for help on using the repository browser.