mainwindow.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include <QMouseEvent>
  5. #include <QCloseEvent>
  6. #include <QWidget>
  7. namespace Ui {
  8. class MainWindow;
  9. }
  10. class MainWindow : public QMainWindow
  11. {
  12. Q_OBJECT
  13. public:
  14. Ui::MainWindow *ui;
  15. explicit MainWindow(double scale_factor, QMainWindow *parent = 0);
  16. ~MainWindow();
  17. bool eventFilter(QObject *obj, QEvent *event);
  18. QString hint = "";
  19. QString exthint = "";
  20. double scale_factor_;
  21. signals:
  22. void datFileChecked(int result);
  23. private slots:
  24. void lotro_manager_finished(QString command, QString args, QString name, QString result);
  25. void lotro_manager_started(QString command, QString args, QString name);
  26. void patches_updated(QStringList patches);
  27. void change_patch_status(QString patch_name, QString new_status);
  28. void change_hint(QString title, QString hint);
  29. private:
  30. void PostDatFileCheckTransactions(int check_result);
  31. private slots:
  32. void minimize();
  33. void saveSkin();
  34. void on_mainButton_clicked();
  35. void on_optButton_clicked();
  36. void on_newsButton_clicked();
  37. void on_helpButton_clicked();
  38. void on_aboutButton_clicked();
  39. void on_minimizeButton_clicked();
  40. void on_closeButton_clicked();
  41. void on_checkFonts_stateChanged(int arg1);
  42. void on_checkTexts_stateChanged(int arg1);
  43. void on_checkSounds_stateChanged(int arg1);
  44. void on_checkMaps_stateChanged(int arg1);
  45. void on_checkScreens_stateChanged(int arg1);
  46. void on_checkVideos_stateChanged(int arg1);
  47. void on_checkMicro_stateChanged(int arg1);
  48. void on_lotropathButton_clicked();
  49. void on_okButton_clicked();
  50. void on_couponButton_clicked();
  51. void on_cancelButton_clicked();
  52. void on_enButton_clicked();
  53. void on_deButton_clicked();
  54. void on_frButton_clicked();
  55. void on_enterButton_clicked();
  56. void on_goCancel_clicked();
  57. void on_goOriginal_clicked();
  58. void on_goLocal_clicked();
  59. void on_repairButton_clicked();
  60. void on_designButton_clicked();
  61. protected:
  62. void mouseMoveEvent( QMouseEvent* e );
  63. void mousePressEvent( QMouseEvent* e );
  64. void mouseReleaseEvent( QMouseEvent* e );
  65. void closeEvent( QCloseEvent * e );
  66. private:
  67. int dx;
  68. int dy;
  69. };
  70. #endif // MAINWINDOW_H