MainWindow.hpp 526 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef MAINWINDOW_HPP
  2. #define MAINWINDOW_HPP
  3. #include <QMainWindow>
  4. #include <QAction>
  5. #include <QMenu>
  6. #include "WorkArea.hpp"
  7. class MainWindow: public QMainWindow
  8. {
  9. Q_OBJECT
  10. private:
  11. int screenWidth, screenHeight;
  12. QMenu *fileMenu;
  13. QAction *openAct;
  14. QAction *exitAct;
  15. WorkArea *waLeft;
  16. WorkArea *waRight;
  17. void createActions ();
  18. void createMenus ();
  19. private slots:
  20. void open ();
  21. public:
  22. MainWindow ();
  23. void openC (QString image, QString leftSL, QString rightSL);
  24. };
  25. #endif