mainwindow.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. public slots:
  24. void PostDatFileCheckTransactions(int check_result);
  25. private:
  26. private slots:
  27. void minimize();
  28. void saveSkin();
  29. void on_mainButton_clicked();
  30. void on_optButton_clicked();
  31. void on_newsButton_clicked();
  32. void on_helpButton_clicked();
  33. void on_aboutButton_clicked();
  34. void on_minimizeButton_clicked();
  35. void on_closeButton_clicked();
  36. void on_checkFonts_stateChanged(int arg1);
  37. void on_checkTexts_stateChanged(int arg1);
  38. void on_checkSounds_stateChanged(int arg1);
  39. void on_checkMaps_stateChanged(int arg1);
  40. void on_checkScreens_stateChanged(int arg1);
  41. void on_checkVideos_stateChanged(int arg1);
  42. void on_checkMicro_stateChanged(int arg1);
  43. void on_lotropathButton_clicked();
  44. void on_okButton_clicked();
  45. void on_couponButton_clicked();
  46. void on_cancelButton_clicked();
  47. void on_enButton_clicked();
  48. void on_deButton_clicked();
  49. void on_frButton_clicked();
  50. void on_enterButton_clicked();
  51. void on_goCancel_clicked();
  52. void on_goOriginal_clicked();
  53. void on_goLocal_clicked();
  54. void on_repairButton_clicked();
  55. void on_designButton_clicked();
  56. protected:
  57. void mouseMoveEvent( QMouseEvent* e );
  58. void mousePressEvent( QMouseEvent* e );
  59. void mouseReleaseEvent( QMouseEvent* e );
  60. void closeEvent( QCloseEvent * e );
  61. private:
  62. int dx;
  63. int dy;
  64. };
  65. #endif // MAINWINDOW_H