| 
                Last change
                  on this file since 9240 was
                  8749,
                  checked in by bensch, 19 years ago
           | 
        
        
          | 
               
orxonox/trunk: fallback test for ORXONOX-data-directory 
 
           | 
        
        | 
            File size:
            934 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 | /*! | 
|---|
| 2 |  * @file qt_gui_datadir_fallback.h | 
|---|
| 3 |  * @brief Definition of ... | 
|---|
| 4 | */ | 
|---|
| 5 |  | 
|---|
| 6 | #ifndef __QT_GUI_DATADIR_FALLBACK_H | 
|---|
| 7 | #define __QT_GUI_DATADIR_FALLBACK_H | 
|---|
| 8 |  | 
|---|
| 9 | #include "../gui.h" | 
|---|
| 10 | #include "../gui_element.h" | 
|---|
| 11 | #include <QtGui/QApplication> | 
|---|
| 12 | #include <QtGui/QMainWindow> | 
|---|
| 13 |  | 
|---|
| 14 | namespace OrxGui | 
|---|
| 15 | { | 
|---|
| 16 |   class QtGuiDataDirFallback : public QApplication, public OrxGui::Gui | 
|---|
| 17 |   { | 
|---|
| 18 |     Q_OBJECT | 
|---|
| 19 |     public: | 
|---|
| 20 |       QtGuiDataDirFallback(int argc, char** argv); | 
|---|
| 21 |       virtual ~QtGuiDataDirFallback(); | 
|---|
| 22 |  | 
|---|
| 23 |     //! Start the Gui | 
|---|
| 24 |       virtual void startGui(); | 
|---|
| 25 |     //! Stop the gui | 
|---|
| 26 |       virtual void stopGui(); | 
|---|
| 27 |     //! Suspend the Gui. | 
|---|
| 28 |       virtual void suspend(); | 
|---|
| 29 |     //! Update the Gui. | 
|---|
| 30 |       virtual void update(); | 
|---|
| 31 |  | 
|---|
| 32 |     public slots: | 
|---|
| 33 |       void quitApp(); | 
|---|
| 34 |       void startApp(); | 
|---|
| 35 |  | 
|---|
| 36 |     private: | 
|---|
| 37 |       QMainWindow*              mainWindow; | 
|---|
| 38 |       std::list<Element*>       elements;       //!< A List of Elements within the QTGui | 
|---|
| 39 |   }; | 
|---|
| 40 | } | 
|---|
| 41 |  | 
|---|
| 42 | #endif /* __QT_GUI_DATADIR_FALLBACK_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.