Advertisement
Max13

Custom MainWindow class

Apr 11th, 2011
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3.  
  4. #include "conf.h"
  5.  
  6. class DbManager;
  7. class DragNDrop;
  8. class MainMenuBar;
  9.  
  10. class MainWindow : public QMainWindow
  11. {
  12.     Q_OBJECT
  13.  
  14.     private:
  15.         MainMenuBar * mainMenuBar;
  16.         //DragNDrop * drag;
  17.         DbManager * db;
  18.  
  19.     public:
  20.         MainWindow(QWidget *parent = 0);
  21.         ~MainWindow();
  22.  
  23.         void start();
  24.         void main();
  25.  
  26.         DbManager * database();
  27.  
  28.     public slots:
  29.         void newDatabase();
  30.         void openDatabase();
  31.         void makeDrag();
  32.  
  33.     protected:
  34.         void dropEvent(QDropEvent *de);
  35.         void dragMoveEvent(QDragMoveEvent *de);
  36.         void dragEnterEvent(QDragEnterEvent *event);
  37. };
  38.  
  39. #endif // MAINWINDOW_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement