lotroprocessdialog.h 659 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef PROCESSDIALOG_H
  2. #define PROCESSDIALOG_H
  3. #include <QDialog>
  4. #include <QMovie>
  5. #include <QTimer>
  6. namespace Ui {
  7. class ProcessDialog;
  8. }
  9. class LotroManager;
  10. class LotroProcessDialog : public QDialog
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit LotroProcessDialog(LotroManager* mgr, QWidget *parent = 0);
  15. ~LotroProcessDialog();
  16. protected:
  17. void mouseMoveEvent(QMouseEvent *event) override;
  18. void mousePressEvent(QMouseEvent *event) override;
  19. public slots:
  20. void updateUI();
  21. private:
  22. Ui::ProcessDialog *ui;
  23. QMovie loader;
  24. LotroManager* lotro_manager;
  25. QPoint dragPosition;
  26. QTimer uiUpdateTimer;
  27. };
  28. #endif // PROCESSDIALOG_H