Changeset 8749 in orxonox.OLD for trunk/src/lib/gui/qt
- Timestamp:
- Jun 23, 2006, 5:08:04 PM (18 years ago)
- Location:
- trunk/src/lib/gui/qt
- Files:
-
- 1 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/qt/Makefile.am
r8145 r8749 25 25 gui_general_moc.cc \ 26 26 gui_control.cc \ 27 gui_control_moc.cc 27 gui_control_moc.cc \ 28 \ 29 qt_gui_datadir_fallback.cc \ 30 qt_gui_datadir_fallback_moc.cc 31 28 32 29 33 … … 36 40 gui_audio.h \ 37 41 gui_general.h \ 38 gui_control.h 42 gui_control.h \ 43 \ 44 qt_gui_datadir_fallback.cc 39 45 40 46 -
trunk/src/lib/gui/qt/qt_gui_datadir_fallback.cc
r8746 r8749 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include "qt_gui .h"18 #include "qt_gui_datadir_fallback.h" 19 19 20 20 #include <QtGui/QApplication> … … 34 34 namespace OrxGui 35 35 { 36 QtGui ::QtGui(int argc, char** argv)36 QtGuiDataDirFallback::QtGuiDataDirFallback(int argc, char** argv) 37 37 : QApplication(argc, argv) 38 38 { … … 50 50 mainLayout->addWidget(bannerWidget, 0,0, 3, 1); 51 51 52 53 QToolBox* toolBox = new QToolBox(groupBox); 54 { 55 toolBox->addItem(new GuiGeneral(this), "General"); 56 toolBox->addItem(new GuiVideo(this), "Video"); 57 toolBox->addItem(new GuiAudio(this), "Audio"); 58 toolBox->addItem(new GuiControl(this), "Control"); 59 } 60 mainLayout->addWidget(toolBox,1,1, 1, 3); 61 52 mainLayout->addWidget(new GuiGeneral(this), 1, 1, 1, 3); 62 53 63 54 QPushButton* start = new QPushButton("start"); … … 81 72 } 82 73 83 QtGui ::~QtGui()74 QtGuiDataDirFallback::~QtGuiDataDirFallback() 84 75 { 85 76 delete this->mainWindow; 86 77 } 87 78 88 void QtGui ::startGui()79 void QtGuiDataDirFallback::startGui() 89 80 { 90 81 } 91 82 92 void QtGui ::stopGui()83 void QtGuiDataDirFallback::stopGui() 93 84 {} 94 85 95 void QtGui ::suspend()86 void QtGuiDataDirFallback::suspend() 96 87 {} 97 88 98 89 //! Update the Gui. 99 void QtGui ::update()90 void QtGuiDataDirFallback::update() 100 91 { 101 92 this->processEvents(); … … 103 94 104 95 105 void QtGui ::quitApp()96 void QtGuiDataDirFallback::quitApp() 106 97 { 107 98 Gui::quitEvent(); … … 109 100 } 110 101 111 void QtGui ::startApp()102 void QtGuiDataDirFallback::startApp() 112 103 { 113 104 Gui::startEvent(); -
trunk/src/lib/gui/qt/qt_gui_datadir_fallback.h
r8746 r8749 1 1 /*! 2 * @file qt_gui .h2 * @file qt_gui_datadir_fallback.h 3 3 * @brief Definition of ... 4 4 */ 5 5 6 #ifndef __QT_GUI_ H7 #define __QT_GUI_ H6 #ifndef __QT_GUI_DATADIR_FALLBACK_H 7 #define __QT_GUI_DATADIR_FALLBACK_H 8 8 9 9 #include "../gui.h" … … 14 14 namespace OrxGui 15 15 { 16 class QtGui : public QApplication, public OrxGui::Gui16 class QtGuiDataDirFallback : public QApplication, public OrxGui::Gui 17 17 { 18 18 Q_OBJECT 19 19 public: 20 QtGui (int argc, char** argv);21 virtual ~QtGui ();20 QtGuiDataDirFallback(int argc, char** argv); 21 virtual ~QtGuiDataDirFallback(); 22 22 23 23 //! Start the Gui … … 40 40 } 41 41 42 #endif /* __QT_GUI_ H */42 #endif /* __QT_GUI_DATADIR_FALLBACK_H */
Note: See TracChangeset
for help on using the changeset viewer.