-
Notifications
You must be signed in to change notification settings - Fork 1
/
cheatshplugin.h
51 lines (38 loc) · 1.13 KB
/
cheatshplugin.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
#pragma once
#include "settings.h"
#include <extensionsystem/iplugin.h>
#include <memory>
class QAction;
namespace CheatSh {
namespace Internal {
class OptionsPage;
class QueryManager;
class CheatFilter;
class CheatOutputPlane;
class UpdateChecker;
class CheatShPlugin : public ExtensionSystem::IPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "CheatSh.json")
public:
CheatShPlugin();
~CheatShPlugin() override;
bool initialize(const QStringList &arguments, QString *errorString) override;
void extensionsInitialized() override;
ShutdownFlag aboutToShutdown() override;
private slots:
void changeSettings(const CheatSh::Internal::Settings &settings);
private:
void createMenus();
Settings settings_;
std::unique_ptr<CheatFilter> cheat_filter_;
UpdateChecker* update_checker_ = nullptr;
QAction* action_cheat_sh_ = nullptr;
QAction* action_paste_ = nullptr;
CheatOutputPlane* out_plane_ = nullptr;
OptionsPage* options_page_ = nullptr;
QueryManager* cheat_sh_ = nullptr;
QString paste_value_;
};
} // namespace Internal
} // namespace CheatSh