123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
- #include <QMainWindow>
- #include <QMouseEvent>
- #include <QCloseEvent>
- #include <QWidget>
- namespace Ui {
- class MainWindow;
- }
- class MainWindow : public QMainWindow
- {
- Q_OBJECT
- public:
- Ui::MainWindow *ui;
- explicit MainWindow(double scale_factor, QMainWindow *parent = 0);
- ~MainWindow();
- bool eventFilter(QObject *obj, QEvent *event);
- QString hint = "";
- QString exthint = "";
- double scale_factor_;
- signals:
- void datFileChecked(int result);
- private slots:
- void lotro_manager_finished(QString command, QString args, QString name, QString result);
- void lotro_manager_started(QString command, QString args, QString name);
- void patches_updated(QStringList patches);
- void change_patch_status(QString patch_name, QString new_status);
- void change_hint(QString title, QString hint);
- private:
- void PostDatFileCheckTransactions(int check_result);
- private slots:
- void minimize();
- void saveSkin();
- void on_mainButton_clicked();
- void on_optButton_clicked();
- void on_newsButton_clicked();
- void on_helpButton_clicked();
- void on_aboutButton_clicked();
- void on_minimizeButton_clicked();
- void on_closeButton_clicked();
- void on_checkFonts_stateChanged(int arg1);
- void on_checkTexts_stateChanged(int arg1);
- void on_checkSounds_stateChanged(int arg1);
- void on_checkMaps_stateChanged(int arg1);
- void on_checkScreens_stateChanged(int arg1);
- void on_checkVideos_stateChanged(int arg1);
- void on_checkMicro_stateChanged(int arg1);
- void on_lotropathButton_clicked();
- void on_okButton_clicked();
- void on_couponButton_clicked();
- void on_cancelButton_clicked();
- void on_enButton_clicked();
- void on_deButton_clicked();
- void on_frButton_clicked();
- void on_enterButton_clicked();
- void on_goCancel_clicked();
- void on_goOriginal_clicked();
- void on_goLocal_clicked();
- void on_repairButton_clicked();
- void on_designButton_clicked();
- protected:
- void mouseMoveEvent( QMouseEvent* e );
- void mousePressEvent( QMouseEvent* e );
- void mouseReleaseEvent( QMouseEvent* e );
- void closeEvent( QCloseEvent * e );
- private:
- int dx;
- int dy;
- };
- #endif // MAINWINDOW_H
|