-
Notifications
You must be signed in to change notification settings - Fork 3
/
mainwindow.h
executable file
·79 lines (58 loc) · 1.62 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <qldd.h>
#include <QShortcut>
#include <QScopedPointer>
#include <QMap>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QString fileName, QWidget *parent = nullptr);
~MainWindow() override;
void fillExportTable(const QString &filter);
const RulesMap &demangleRules() const;
QFont getFixedFont() const;
void saveDemangleRules(const RulesMap &rules);
void initDemangleRules();
void reset();
private slots:
void open();
void about();
void find();
void myClose();
void showContextMenu(const QPoint &pos);
void copyExportItem();
void on_checkBoxOwnerRead_clicked(bool checked);
void on_checkBoxOwnerWrite_clicked(bool checked);
void on_checkBoxOwnerExec_clicked(bool checked);
void on_checkBoxGroupRead_clicked(bool checked);
void on_checkBoxGroupWrite_clicked(bool checked);
void on_checkBoxGroupExec_clicked(bool checked);
void on_checkBoxOtherRead_clicked(bool checked);
void on_checkBoxOtherWrite_clicked(bool checked);
void on_checkBoxOtherExec_clicked(bool checked);
void on_filterButton_clicked();
void on_resetButton_clicked();
void on_rulesButton_clicked();
private:
void createActions();
void createMenus();
Ui::MainWindow *ui;
QString _fileName;
QScopedPointer<QLdd> qldd;
QShortcut *shortcutClose;
QShortcut *shortcutFind;
QMenu *fileMenu;
QMenu *helpMenu;
QAction *openAct;
QAction *aboutAct;
QAction *aboutQtAct;
QAction *exitAct;
QFont fixedFont;
RulesMap _demangleRules;
};
#endif // MAINWINDOW_H