-
Notifications
You must be signed in to change notification settings - Fork 0
/
qrealpluginplugin.h
47 lines (38 loc) · 1.19 KB
/
qrealpluginplugin.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
/* Copyright 2016 Guzel Garifullina
*
* Licensed under the GNU General Public License, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.gnu.org/licenses/gpl-3.0.en.html */
#pragma once
#include "qrealplugin_global.h"
#include "verasettings.h"
#include "veratool.h"
#include <extensionsystem/iplugin.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/editormanager/ieditor.h>
#include <QSettings>
namespace QReal{
namespace Internal{
class QRealPlugin: public ExtensionSystem::IPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "qrealplugin.json")
public:
QRealPlugin();
~QRealPlugin();
bool initialize(const QStringList &arguments, QString *errorString) override;
void extensionsInitialized() override;
ShutdownFlag aboutToShutdown() override;
static void showOutput(const QString &output);
public slots:
void updateActions(Core::IEditor *editor = nullptr);
private:
VeraSettings *m_veraSettings;
VeraTool *m_veraTool;
QAction *m_checkFileAction;
QAction *m_checkProjectAction;
};
} // namespace Internal
} // namespace QReal