dialogbigpic.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #ifndef DIALOGBIGPIC_H
  2. #define DIALOGBIGPIC_H
  3. #include <QDialog>
  4. #include "pluginapp.h"
  5. namespace Ui {
  6. class DialogBigPic;
  7. }
  8. #include "ivpicview.h"
  9. #include "myview.h"
  10. class DialogBigPic : public QDialog
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit DialogBigPic(QWidget *parent = nullptr);
  15. ~DialogBigPic();
  16. private slots:
  17. virtual void paintEvent(QPaintEvent *);
  18. void onTimerPic();
  19. void onPainterUpdate();
  20. public:
  21. void resizeEvent(QResizeEvent *event);
  22. void setRefresh(bool brefresh);
  23. void setCamera(int n);
  24. void SetFront();
  25. void SetRear();
  26. private:
  27. Ui::DialogBigPic *ui;
  28. MyView * mpview;
  29. QGraphicsScene *mscene;
  30. IVPicView * mpPicView;
  31. MyView * mpviewLeft;
  32. QGraphicsScene *msceneLeft;
  33. IVPicView * mpPicViewLeft;
  34. MyView * mpviewRight;
  35. QGraphicsScene *msceneRight;
  36. IVPicView * mpPicViewRight;
  37. // qint64 mnLastPicTime;
  38. qint64 mnLastPicTime[3];
  39. // bool mbDraw;
  40. bool mbDraw[3];
  41. bool mbRefresh= false;
  42. int mnCamera = 0;
  43. bool mbFront = true; //if false, rear drive
  44. pluginapp * mppicshow[3];
  45. };
  46. #endif // DIALOGBIGPIC_H