forked from trollixx/qtcreator-tabbededitor-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtabbededitorplugin.h
48 lines (35 loc) · 1.11 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
41
42
43
44
45
46
47
48
#ifndef TABBEDEDITORPLUGIN_H
#define TABBEDEDITORPLUGIN_H
#include "tabbededitor_global.h"
#include <extensionsystem/iplugin.h>
QT_BEGIN_NAMESPACE
class QFrame;
QT_END_NAMESPACE
namespace Core {
class EditorManager;
}
namespace TabbedEditor {
namespace Internal {
class TabsForEditorsWidget;
class TABBEDEDITORSHARED_EXPORT TabbedEditorPlugin : public ExtensionSystem::IPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "TabbedEditor.json")
public:
TabbedEditorPlugin();
bool initialize(const QStringList &arguments, QString *errorString);
void extensionsInitialized();
ShutdownFlag aboutToShutdown();
private slots:
QString getStylesheetPatternFromFile(const QString &filepath);
void updateStyleToBaseColor();
private:
QString getQssStringFromColor(const QColor &color);
TabsForEditorsWidget *m_tabbedWidget;
QFrame *m_backgroundFrame;
bool m_styleUpdatedToBaseColor;
Core::EditorManager *m_editorManager;
};
} // namespace Internal
} // namespace TabbedEditor
#endif // TABBEDEDITORPLUGIN_H