-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
45 lines (38 loc) · 967 Bytes
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QPointer>
#include <QMainWindow>
#include "QHotkey"
#include "config_ui/settingsdialog.h"
#ifdef OCR_ADDED
#include "eliteocr.h"
#endif
namespace Ui
{
class MainWindow;
}
class MainWindow : public QMainWindow, protected utility::SaveableWidget<MainWindow>
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
protected:
void changeEvent(QEvent *e);
void recurseWrite(QSettings& settings, QObject* object) override;
void recurseRead(QSettings& settings, QObject* object) override;
private:
Ui::MainWindow *ui;
QPointer<SettingsDialog> settDialog;
#ifdef OCR_ADDED
QPointer<QHotkey> ocrKey;
EliteOCR ocrElite;
#endif
private slots:
void settingsHidden();
void settingsBeforeShow();
void doScreenOCR();
void on_actionClear_Cache_triggered();
void on_actionCarrier_Calculator_triggered();
};
#endif // MAINWINDOW_H