-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtabbededitorplugin.h
40 lines (31 loc) · 1.01 KB
/
tabbededitorplugin.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
#ifndef TABBEDEDITOR_H
#define TABBEDEDITOR_H
#include <extensionsystem/iplugin.h>
#include <QFrame>
#include <coreplugin/editormanager/editormanager.h>
namespace TabbedEditor {
namespace Internal {
class TabsForEditorsWidget;
class TabbedEditorPlugin : public ExtensionSystem::IPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "TabbedEditor.json")
private:
TabsForEditorsWidget *tabbedWidget;
QFrame *backgroundFrame;
bool styleUpdatedToBaseColor;
Core::EditorManager *em;
QString getQssStringFromColor(const QColor &color);
public:
TabbedEditorPlugin();
~TabbedEditorPlugin();
bool initialize(const QStringList &arguments, QString *errorString);
void extensionsInitialized();
ShutdownFlag aboutToShutdown();
private slots:
QString getStylesheetPatternFromFile(const QString &filepath);
void updateStyleToBaseColor();
};
} // namespace Internal
} // namespace TabbedEditor
#endif // TABBEDEDITOR_H