Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7472 in orxonox.OLD for branches/qt_gui/src/lib


Ignore:
Timestamp:
May 2, 2006, 9:29:30 AM (19 years ago)
Author:
bensch
Message:

qt_gui: renaming

Location:
branches/qt_gui/src/lib/gui/qt_gui
Files:
2 edited
1 moved

Legend:

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

    r7470 r7472  
    77#define __QT_GUI_H
    88
    9 #include "base_object.h"
    10 #include "../gui_saveable.h"
     9#include "../gui.h"
    1110#include <list>
    12 
    13 // grouping
    14 #include <qgroupbox.h>
    15 #include <qprogressbar.h>
    16 #include <qlabel.h>
    17 
    18 // events
    19 #include <qpushbutton.h>
    20 
    21 // options
    22 #include <qcheckbox.h>
    23 #include <qslider.h>
    24 #include <qlineedit.h>
    2511
    2612namespace OrxGui
    2713{
    28 
    29   class QtGuiWidget : virtual public BaseObject
    30   {
    31   public:
    32   };
    33 
    34 
    35   class QtGuiContainer : public QtGuiWidget
    36   {
    37   public:
    38     virtual bool pack(QtGuiWidget* widget) = 0;
    39 
    40   protected:
    41     QtGuiContainer();
    42     ~QtGuiContainer();
    43 
    44   private:
    45 
    46   };
    47 
    48 
    49   typedef enum Orientation
    50   {
    51     horizontal,
    52     vertical
    53   };
    54 
    55   class QtGuiBox : public QtGuiContainer, public GuiSaveableGroup
    56   {
    57 
    58   public:
    59     QtGuiBox(Orientation orientation);
    60     ~QtGuiBox();
    61 
    62     virtual bool pack(QtGuiWidget* widget);
    63 
    64   private:
    65     std::list<QtGuiWidget*>   children;
    66 
    67   };
    68 
    69   class QtGuiGroupBox : public QtGuiContainer, public GuiSaveableGroup
    70   {
    71   public:
    72     QtGuiGroupBox(const std::string& groupName);
    73     ~QtGuiGroupBox();
    74 
    75     virtual bool pack(QtGuiWidget* widget);
    76 
    77   private:
    78     QtGuiWidget*              child;
    79   };
    80 
    81 
    82 
    83   class QtGuiCheckBox : public QCheckBox, public QtGuiWidget, public GuiSaveable
    84   {
    85   public:
    86     QtGuiCheckBox(const std::string& name, bool defaultValue = false);
    87     ~QtGuiCheckBox();
    88 
    89   public slots:
    90     void setCheckValue(int);
    91 
    92   signals:
    93     void checkValueChanged();
    94   };
    95 
    96 
    97   class QtGuiPushButtom : public QPushButton, public QtGuiWidget
    98   {
    99   public:
    100     QtGuiPushButtom();
    101     ~QtGuiPushButtom();
    102   };
    103 
    104   class QtGuiSlider : public QSlider, public QtGuiWidget, public GuiSaveable
    105   {
    106   public:
    107     QtGuiSlider();
    108     ~QtGuiSlider();
    109 
    110   public slots:
    111     void setSliderValue(float);
    112 
    113   signals:
    114     void sliderValueChanged(float);
    115   };
    116 
    117   class QtGuiTextLine : public QLineEdit, public QtGuiWidget, public GuiSaveable
    118   {
    119   public:
    120     QtGuiTextLine();
    121     ~QtGuiTextLine();
    122 
    123   public slots:
    124     void setTextLineValue(const char*);
    125   signals:
    126     void textLineChanged(const char*);
    127   };
    128 
    129 
    130 
    131   class QtGuiImage : public QtGuiWidget
    132   {
    133   }
    134   ;
    13514}
    13615
  • branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.h

    r7471 r7472  
    11/*!
    2  * @file qt_gui.h
     2 * @file qt_gui_elements.h
    33 * @brief Definition of ...
    44*/
    55
    6 #ifndef __QT_GUI_H
    7 #define __QT_GUI_H
     6#ifndef __QT_GUI_ELEMENTS_H
     7#define __QT_GUI_ELEMENTS_H
    88
    99#include "base_object.h"
     
    135135}
    136136
    137 #endif /* __QT_GUI_H */
     137#endif /* __QT_GUI_ELEMENTS_H */
Note: See TracChangeset for help on using the changeset viewer.