- Timestamp:
- May 11, 2006, 10:18:13 AM (19 years ago)
- Location:
- branches/qt_gui/src/lib/gui/qt_gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/gui/qt_gui/Makefile.am
r7585 r7593 22 22 gui_video.cc \ 23 23 gui_audio.cc \ 24 gui_general.cc 24 gui_general.cc \ 25 gui_general_moc.cc 26 25 27 26 28 noinst_HEADERS= \ -
branches/qt_gui/src/lib/gui/qt_gui/gui_general.cc
r7586 r7593 28 28 29 29 #include <QtGui/QLayout> 30 #include <QtGui/QFileDialog> 31 30 32 #include "debug.h" 31 33 … … 47 49 QtGuiInputLine* dataDir = new QtGuiInputLine("Data-Directory", this); 48 50 layout->addWidget(dataDir, 0, 1, 1, 2); 51 QPushButton* dataFileDialogButton = new QPushButton("browse"); 52 layout->addWidget(dataFileDialogButton, 0, 3, 1, 1); 53 connect(dataFileDialogButton, SIGNAL(released()), this, SLOT(openDataFileDialog())); 54 55 49 56 50 57 QLabel* debugLabel = new QLabel("debug-mode"); … … 72 79 } 73 80 81 void GuiGeneral::openDataFileDialog() 82 { 83 QString s = QFileDialog::getOpenFileName( 84 this, 85 "Choose a file", 86 "/home", 87 "Images (*.png *.xpm *.jpg)"); 88 } 89 74 90 75 91 } -
branches/qt_gui/src/lib/gui/qt_gui/gui_general.h
r7585 r7593 14 14 { 15 15 //! Class that creates the Audio-Options. 16 class GuiGeneral : public OrxGui::Element, public QGroupBox16 class GuiGeneral : public QGroupBox, public OrxGui::Element 17 17 { 18 Q_OBJECT 19 18 20 public: 19 21 GuiGeneral(OrxGui::Gui* gui); 20 22 virtual ~GuiGeneral(); 23 24 public slots: 25 void openDataFileDialog(); 21 26 22 27 };
Note: See TracChangeset
for help on using the changeset viewer.