Changeset 7598 in orxonox.OLD for branches/qt_gui/src/lib/gui/qt_gui/gui_video.cc
- Timestamp:
- May 11, 2006, 5:37:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/gui/qt_gui/gui_video.cc
r7555 r7598 28 28 29 29 #include <QtGui/QLayout> 30 #include " sdlincl.h"30 #include "globals.h" 31 31 #include "debug.h" 32 32 … … 39 39 */ 40 40 GuiVideo::GuiVideo(OrxGui::Gui* gui) 41 : Element("Video", gui), QGroupBox()41 : Element(CONFIG_SECTION_VIDEO, gui), QGroupBox() 42 42 { 43 43 QGridLayout* layout = new QGridLayout(this); 44 44 45 45 { 46 QtGuiCheckBox* fullscreen = new QtGuiCheckBox( "FullScreen", this);46 QtGuiCheckBox* fullscreen = new QtGuiCheckBox(CONFIG_NAME_FULLSCREEN, this); 47 47 //fullscreen->setName(); 48 48 layout->addWidget(fullscreen, 0, 0); 49 49 50 QtGuiCheckBox* wireframe = new QtGuiCheckBox( "Wireframe mode", this);50 QtGuiCheckBox* wireframe = new QtGuiCheckBox(CONFIG_NAME_WIREFRAME, this); 51 51 layout->addWidget(wireframe, 1, 0); 52 52 … … 61 61 62 62 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 88 65 89 66 layout->addWidget(advanced, 0, 2, 4, 1); … … 146 123 } 147 124 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 148 160 }
Note: See TracChangeset
for help on using the changeset viewer.