-
Notifications
You must be signed in to change notification settings - Fork 37
/
plugin.h
36 lines (26 loc) · 833 Bytes
/
plugin.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
#ifndef PLUGIN_H
#define PLUGIN_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();
bool initialize(const QStringList &arguments, QString *errorString);
void extensionsInitialized() {}
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 // PLUGIN_H