Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7149 in orxonox.OLD for branches/qt_gui/src/lib/gui/qt_gui/qt_gui.h


Ignore:
Timestamp:
Feb 16, 2006, 12:51:42 AM (18 years ago)
Author:
bensch
Message:

qt_gui:more gui work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/gui/qt_gui/qt_gui.h

    r7142 r7149  
    88
    99#include "base_object.h"
     10#include "gui_saveable.h"
     11#include <list>
     12
     13// grouping
     14#include <qgroupbox.h>
     15#include <qprogressbar.h>
     16#include <qlabel.h>
     17
     18// events
    1019#include <qpushbutton.h>
     20
     21// options
    1122#include <qcheckbox.h>
    1223#include <qslider.h>
     24#include <qlineedit.h>
    1325
    1426
     27class QtGuiWidget : virtual public BaseObject
     28{
     29  public:
     30};
     31
     32
     33class QtGuiContainer
     34{
     35public:
     36  virtual bool pack(QtGuiWidget* widget) = 0;
     37
     38protected:
     39  QtGuiContainer();
     40  ~QtGuiContainer();
     41
     42private:
     43
     44};
     45
     46
     47class QtGuiBox : public QtGuiContainer
     48{
     49public:
     50  typedef enum Orientation
     51  {
     52    horizontal,
     53    vertical
     54  };
     55
     56public:
     57  QtGuiBox(Orientation orientation);
     58  ~QtGuiBox();
     59
     60  virtual bool pack(QtGuiWidget* widget);
     61
     62private:
     63  std::list<QtGuiWidget*>   children;
     64
     65};
     66
     67class QtGuiGroupBox : public QtGuiContainer, public GuiGroup
     68{
     69public:
     70  QtGuiGroupBox(const char* groupName);
     71  ~QtGuiGroupBox();
     72
     73  virtual bool pack(QtGuiWidget* widget);
     74
     75private:
     76  QtGuiWidget*              child;
     77};
     78
     79
     80class QtGuiCheckBox : public QtGuiWidget, public GuiSaveable
     81{
     82public:
     83  QtGuiCheckBox(const char* name, bool defaultValue = false);
     84  ~QtGuiCheckBox();
     85
     86  //slot
     87
     88private:
     89
     90};
    1591
    1692
Note: See TracChangeset for help on using the changeset viewer.