Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7493 in orxonox.OLD for branches


Ignore:
Timestamp:
May 3, 2006, 12:45:13 AM (19 years ago)
Author:
bensch
Message:

some Widgets work

Location:
branches/qt_gui/src/lib/gui
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/gui/gui_saveable.cc

    r7480 r7493  
    6464  }
    6565
     66  void SaveableGroup::load(const MultiType& value)
     67  {}
     68
     69  const MultiType& SaveableGroup::save()
     70  {}
     71
     72
     73
    6674  std::vector<SaveableGroup*>  SaveableGroup::saveableGroups;
    6775
     
    7280
    7381
     82
    7483}
  • branches/qt_gui/src/lib/gui/gui_saveable.h

    r7489 r7493  
    4848    void removeSaveable(Saveable* saveable);
    4949
     50    virtual void load(const MultiType& value);
     51    virtual const MultiType& save();
     52
    5053  protected:
    5154    SaveableGroup(const std::string& name);
  • branches/qt_gui/src/lib/gui/qt_gui/gui_video.cc

    r7484 r7493  
    4040   *  Creates the Video-Option-Frame
    4141  */
    42   GuiVideo::GuiVideo()
    43   : Element("Video")
     42  GuiVideo::GuiVideo(QWidget* parent)
     43  : Element("Video"), QGroupBox(parent)
    4444  {
    4545    QGridLayout* layout = new QGridLayout(this);
     46
    4647    {
    47       QCheckBox* fullscreen = new QCheckBox(QString("FullScreen"), NULL);
     48      QCheckBox* fullscreen = new QCheckBox(QString("FullScreen"), this);
    4849      //fullscreen->setName();
    49       layout->addWidget(fullscreen, 1, 1);
     50      layout->addWidget(fullscreen, 0, 0);
     51
     52      QCheckBox* wireframe = new QCheckBox("Wireframe mode", this);
     53      layout->addWidget(wireframe, 1, 0);
     54
     55      QComboBox* resolution = new QComboBox("Resolution", this);
     56      layout->addWidget(resolution, 2, 0);
     57
    5058
    5159    }
  • branches/qt_gui/src/lib/gui/qt_gui/gui_video.h

    r7484 r7493  
    1717  {
    1818  public:
    19     GuiVideo();
     19    GuiVideo(QWidget* parent = NULL);
    2020    virtual ~GuiVideo();
    2121
  • branches/qt_gui/src/lib/gui/qt_gui/qt_gui.cc

    r7484 r7493  
    2323#include <qtoolbox.h>
    2424
     25#include <qpushbutton.h>
    2526
    2627#include "gui_video.h"
     
    3536
    3637
    37     QGroupBox* groupBox = new QGroupBox;
     38    QGroupBox* groupBox = new QGroupBox(this->mainWindow);
    3839    QGridLayout* mainLayout = new QGridLayout(groupBox);
    3940    {
    40       QToolBox* toolBox = new QToolBox();
     41      QToolBox* toolBox = new QToolBox(groupBox);
    4142      {
    42        // toolBox->addItem(new GuiVideo(), "Video");
     43
     44        toolBox->addItem(new GuiVideo(toolBox), "Video");
    4345      }
     46      mainLayout->addWidget(toolBox,1,1);
    4447    }
    4548
  • branches/qt_gui/src/lib/gui/qt_gui/qt_gui.h

    r7489 r7493  
    3232    private:
    3333      QMainWindow*              mainWindow;
    34       std::list<Element*>       elements;   //!< A List of Elements within the QTGui
     34      std::list<Element*>       elements;       //!< A List of Elements within the QTGui
    3535  };
    3636}
Note: See TracChangeset for help on using the changeset viewer.