Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 11, 2006, 5:37:13 PM (18 years ago)
Author:
bensch
Message:

qt_gui: loading works so far for the CheckBox

File:
1 edited

Legend:

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

    r7555 r7598  
    2828
    2929#include <QtGui/QLayout>
    30 #include "sdlincl.h"
     30#include "globals.h"
    3131#include "debug.h"
    3232
     
    3939  */
    4040  GuiVideo::GuiVideo(OrxGui::Gui* gui)
    41       : Element("Video", gui), QGroupBox()
     41  : Element(CONFIG_SECTION_VIDEO, gui), QGroupBox()
    4242  {
    4343    QGridLayout* layout = new QGridLayout(this);
    4444
    4545    {
    46       QtGuiCheckBox* fullscreen = new QtGuiCheckBox("FullScreen", this);
     46      QtGuiCheckBox* fullscreen = new QtGuiCheckBox(CONFIG_NAME_FULLSCREEN, this);
    4747      //fullscreen->setName();
    4848      layout->addWidget(fullscreen, 0, 0);
    4949
    50       QtGuiCheckBox* wireframe = new QtGuiCheckBox("Wireframe mode", this);
     50      QtGuiCheckBox* wireframe = new QtGuiCheckBox(CONFIG_NAME_WIREFRAME, this);
    5151      layout->addWidget(wireframe, 1, 0);
    5252
     
    6161
    6262
    63       QGroupBox* advanced = new QGroupBox("advanced");
    64       {
    65         QGridLayout* advLayout = new QGridLayout(advanced);              //!< Advanced Layout
    66         {
    67           QtGuiCheckBox* shadows = new QtGuiCheckBox("Shadows", this);         //!< CheckBox for shadows
    68           advLayout->addWidget(shadows, 0,0);
    69           QtGuiCheckBox* fog = new QtGuiCheckBox("Fog", this);                 //!< CheckBox for fog.
    70           advLayout->addWidget(fog, 1,0);
    71           QtGuiCheckBox* reflections = new QtGuiCheckBox("reflections", this);  //!< CheckBox for reflections
    72           advLayout->addWidget(reflections, 2, 0);
    73           QtGuiCheckBox* textures = new QtGuiCheckBox("textures", this);       //!< CheckBox for textures
    74           advLayout->addWidget(textures, 3, 0);
    75           /*
    76           Menu* textureDetail;      //!< Menu for the Texture-Detail.
    77           Label* modelDetailLabel;  //!< Label for model-detail.
    78           Menu* modelDetail;        //!< model-detail.
    79           CheckBox* particles;   //!< If the Particles should be enabled
    80           Label* antiAliasingLabel; //!< Label for the anti-aliasing mode.
    81           Menu* antiAliasing;       //!< Menu for the Antialiasing-mode.
    82           Label* filterMethodLabel; //!< Label for filtering-Method.
    83           Menu* filterMethod;       //!< Menu for filtering Method.
    84           Button* closeButton;      //!< A Button to close the Advanced-settingsWindow.
    85           */
    86         }
    87       }
     63      QGroupBox* advanced = new GuiAdvancedVideo(gui);
     64
    8865
    8966      layout->addWidget(advanced, 0, 2, 4, 1);
     
    146123  }
    147124
     125
     126
     127  GuiAdvancedVideo::GuiAdvancedVideo(OrxGui::Gui* gui)
     128  : Element(CONFIG_SECTION_VIDEO_ADVANCED ,gui)
     129  {
     130    {
     131      QGridLayout* advLayout = new QGridLayout(this);              //!< Advanced Layout
     132      {
     133        QtGuiCheckBox* shadows = new QtGuiCheckBox(CONFIG_NAME_SHADOWS, this);         //!< CheckBox for shadows
     134        advLayout->addWidget(shadows, 0,0);
     135        QtGuiCheckBox* fog = new QtGuiCheckBox(CONFIG_NAME_FOG, this);                 //!< CheckBox for fog.
     136        advLayout->addWidget(fog, 1,0);
     137        QtGuiCheckBox* reflections = new QtGuiCheckBox(CONFIG_NAME_REFLECTIONS, this);  //!< CheckBox for reflections
     138        advLayout->addWidget(reflections, 2, 0);
     139        QtGuiCheckBox* textures = new QtGuiCheckBox(CONFIG_NAME_TEXTURES, this);       //!< CheckBox for textures
     140        advLayout->addWidget(textures, 3, 0);
     141          /*
     142        Menu* textureDetail;      //!< Menu for the Texture-Detail.
     143        Label* modelDetailLabel;  //!< Label for model-detail.
     144        Menu* modelDetail;        //!< model-detail.
     145        CheckBox* particles;   //!< If the Particles should be enabled
     146        Label* antiAliasingLabel; //!< Label for the anti-aliasing mode.
     147        Menu* antiAliasing;       //!< Menu for the Antialiasing-mode.
     148        Label* filterMethodLabel; //!< Label for filtering-Method.
     149        Menu* filterMethod;       //!< Menu for filtering Method.
     150        Button* closeButton;      //!< A Button to close the Advanced-settingsWindow.
     151          */
     152      }
     153    }
     154  }
     155
     156  GuiAdvancedVideo::~GuiAdvancedVideo()
     157  {
     158  }
     159
    148160}
Note: See TracChangeset for help on using the changeset viewer.