Changeset 7603 in orxonox.OLD for branches/qt_gui
- Timestamp:
- May 12, 2006, 9:14:47 AM (19 years ago)
- Location:
- branches/qt_gui/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/defs/globals.h
r7601 r7603 38 38 #define CONFIG_SECTION_VIDEO_ADVANCED "video_advanced" 39 39 #define CONFIG_SECTION_AUDIO "audio" 40 #define CONFIG_SECTION_GENERAL " data"40 #define CONFIG_SECTION_GENERAL "general" 41 41 42 42 /* -
branches/qt_gui/src/lib/gui/qt_gui/gui_general.cc
r7601 r7603 47 47 QLabel* dataDirLabel = new QLabel("DataDirectory"); 48 48 layout->addWidget(dataDirLabel, 0,0); 49 QtGuiInputLine*dataDir = new QtGuiInputLine(CONFIG_NAME_DATADIR, this);49 this->dataDir = new QtGuiInputLine(CONFIG_NAME_DATADIR, this); 50 50 layout->addWidget(dataDir, 0, 1, 1, 2); 51 51 QPushButton* dataFileDialogButton = new QPushButton("browse"); 52 52 layout->addWidget(dataFileDialogButton, 0, 3, 1, 1); 53 53 connect(dataFileDialogButton, SIGNAL(released()), this, SLOT(openDataFileDialog())); 54 55 54 56 55 … … 83 82 "Choose the ORXONOX DATA DIRECTORY", 84 83 ".", 85 "ORXONOX DATA INDEX (data.oxd)"); 84 "ORXONOX DATA INDEX (" DEFAULT_DATA_DIR_CHECKFILE ")" ); 85 86 s.remove("data.oxd"); 87 if (!s.isNull()) 88 this->dataDir->setText(s); 86 89 } 87 90 -
branches/qt_gui/src/lib/gui/qt_gui/gui_general.h
r7593 r7603 11 11 #include <QtGui/QGroupBox> 12 12 13 13 14 namespace OrxGui 14 15 { 16 class QtGuiInputLine; 17 15 18 //! Class that creates the Audio-Options. 16 19 class GuiGeneral : public QGroupBox, public OrxGui::Element … … 22 25 virtual ~GuiGeneral(); 23 26 24 25 27 public slots: 28 void openDataFileDialog(); 26 29 30 private: 31 QtGuiInputLine* dataDir; 27 32 }; 28 33 } -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.cc
r7601 r7603 107 107 void QtGuiInputLine::load() 108 108 { 109 this->setText(this->value().getString().c_str()); 109 Saveable::load(); 110 this->setText(QString().fromStdString(this->value().getString())); 110 111 } 111 112 … … 114 115 void QtGuiInputLine::save() 115 116 { 117 this->value() = this->text().toStdString(); 118 Saveable::save(); 116 119 } 117 120
Note: See TracChangeset
for help on using the changeset viewer.