-
Notifications
You must be signed in to change notification settings - Fork 0
/
tabbededitor.h
42 lines (30 loc) · 1004 Bytes
/
tabbededitor.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
#ifndef TABBEDEDITORPLUGIN_H
#define TABBEDEDITORPLUGIN_H
#include "tabbededitor_global.h"
#include <extensionsystem/iplugin.h>
namespace TabbedEditor {
namespace Internal {
class TabBar;
class TabbedEditorPlugin : public ExtensionSystem::IPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "TabbedEditor.json")
public:
TabbedEditorPlugin();
~TabbedEditorPlugin() override;
bool initialize(const QStringList &arguments, QString *errorString) override;
void extensionsInitialized() override;
ShutdownFlag aboutToShutdown() override;
bool delayedInitialize() ;
private slots:
QString getStylesheetPatternFromFile(const QString& filepath);
void updateStyleToBaseColor();
void showTabBar();
private:
static inline QString getQssStringFromColor(const QColor& color);
TabBar* m_tabBar;
bool m_styleUpdatedToBaseColor;
};
} // namespace Internal
} // namespace TabbedEditor
#endif // TABBEDEDITORPLUGIN_H