Advertisement
Guest User

Untitled

a guest
Apr 10th, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1. #include <QApplication>
  2. #include <QMainWindow>
  3.  
  4. class QSettings;
  5. class QGLWidget;
  6. class QMenuBar;
  7. class QToolBar;
  8.  
  9. namespace noggit
  10. {
  11.   class application : public QApplication
  12.   {
  13.     Q_OBJECT
  14.  
  15.   public:
  16.     application (int& argc, char** argv);
  17.     ~application();
  18.  
  19.     QGLWidget* _dummy_gl_widget;
  20.  
  21.   public slots:
  22.     void create_main_window();
  23.  
  24.   private:
  25.     void initialize_video();
  26.  
  27.     QSettings* _settings;
  28.   };
  29.  
  30.   class MainWindow : public QMainWindow
  31.   {
  32.     Q_OBJECT
  33.    
  34.   public:
  35.     MainWindow(QGLWidget* _dummy_gl_widget, QSettings* _settings);
  36.  
  37.     QToolBar* tool_bar();
  38.  
  39.   private:
  40.     QMenuBar* _menuBar;
  41.     QToolBar* _toolBar;
  42.   };
  43.  
  44.   application& app();
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement