Changeset 7601 in orxonox.OLD for branches/qt_gui/src/lib/gui
- Timestamp:
- May 12, 2006, 8:58:20 AM (19 years ago)
- Location:
- branches/qt_gui/src/lib/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/gui/gtk_gui/gui_update.cc
r5766 r7601 51 51 52 52 this->updateFrame = new Frame("Update-Options:"); 53 this->updateFrame->setGroupName(CONFIG_SECTION_ DATA);53 this->updateFrame->setGroupName(CONFIG_SECTION_GENERAL); 54 54 this->updateBox = new Box('v'); 55 55 -
branches/qt_gui/src/lib/gui/qt_gui/gui_general.cc
r7595 r7601 31 31 32 32 #include "debug.h" 33 #include "globals.h" 33 34 34 35 #include "qt_gui_elements.h" … … 40 41 */ 41 42 GuiGeneral::GuiGeneral(OrxGui::Gui* gui) 42 : Element( "General", gui), QGroupBox()43 : Element(CONFIG_SECTION_GENERAL, gui), QGroupBox() 43 44 { 44 45 QGridLayout* layout = new QGridLayout(this); … … 46 47 QLabel* dataDirLabel = new QLabel("DataDirectory"); 47 48 layout->addWidget(dataDirLabel, 0,0); 48 QtGuiInputLine* dataDir = new QtGuiInputLine( "Data-Directory", this);49 QtGuiInputLine* dataDir = new QtGuiInputLine(CONFIG_NAME_DATADIR, this); 49 50 layout->addWidget(dataDir, 0, 1, 1, 2); 50 51 QPushButton* dataFileDialogButton = new QPushButton("browse"); … … 56 57 QLabel* debugLabel = new QLabel("debug-mode"); 57 58 layout->addWidget(debugLabel, 1,0); 58 QtGuiComboBox* debug = new QtGuiComboBox( "debug", this);59 QtGuiComboBox* debug = new QtGuiComboBox(CONFIG_NAME_DEBUG_LEVEL, this); 59 60 layout->addWidget(debug, 1, 1, 1, 2); 60 61 -
branches/qt_gui/src/lib/gui/qt_gui/gui_video.cc
r7598 r7601 52 52 53 53 { 54 QComboBox* resolution = new Q ComboBox();54 QComboBox* resolution = new QtGuiComboBox(CONFIG_NAME_RESOLUTION, this); 55 55 layout->addWidget(resolution, 2, 0); 56 56 std::vector<QString> resolutions; -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.cc
r7599 r7601 86 86 void QtGuiComboBox::load() 87 87 { 88 //TODO 88 Saveable::load(); 89 this->setCurrentIndex(this->findText(QString().fromStdString(this->value().getString()))); 89 90 } 90 91 91 92 void QtGuiComboBox::save() 92 93 { 94 this->value() = this->currentText().toStdString(); 95 Saveable::save(); 93 96 } 94 97
Note: See TracChangeset
for help on using the changeset viewer.