gui.h 780 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. private:
  17. Ui::GUI *ui_;
  18. QGraphicsScene *scene_;
  19. RecruitmentScene *rq_scene_;
  20. QImage left_border_;
  21. QImage left_up_corner_;
  22. QImage up_border_;
  23. QImage up_right_corner_;
  24. QImage right_border_;
  25. QImage right_bottom_corner_;
  26. QImage bottom_border_;
  27. QImage bottom_left_corner_;
  28. protected:
  29. void mouseMoveEvent( QMouseEvent* e );
  30. void mousePressEvent( QMouseEvent* e );
  31. void mouseReleaseEvent( QMouseEvent* e );
  32. private:
  33. int dx_;
  34. int dy_;
  35. };
  36. #endif // GUI_H