gui.h 814 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef GUI_H
  2. #define GUI_H
  3. #include <QMainWindow>
  4. #include <QGraphicsScene>
  5. #include <QMouseEvent>
  6. #include "recruitmentscene.h"
  7. namespace Ui {
  8. class GUI;
  9. }
  10. class GUI : public QMainWindow
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit GUI(QWidget *parent = 0);
  15. ~GUI();
  16. QWidget* mainContentScene();
  17. private:
  18. Ui::GUI *ui_;
  19. QGraphicsScene *scene_;
  20. RecruitmentScene *rq_scene_;
  21. QImage left_border_;
  22. QImage left_up_corner_;
  23. QImage up_border_;
  24. QImage up_right_corner_;
  25. QImage right_border_;
  26. QImage right_bottom_corner_;
  27. QImage bottom_border_;
  28. QImage bottom_left_corner_;
  29. protected:
  30. void mouseMoveEvent( QMouseEvent* e );
  31. void mousePressEvent( QMouseEvent* e );
  32. void mouseReleaseEvent( QMouseEvent* e );
  33. private:
  34. int dx_;
  35. int dy_;
  36. };
  37. #endif // GUI_H