Loading...
Searching...
No Matches
SkinEditorWidget.hpp
1#pragma once
2#include <score_plugin_scenario_export.h>
3
4#include <verdigris>
5
6#include <QWidget>
7
8class QComboBox;
9class QLineEdit;
10class QPlainTextEdit;
11class QLabel;
12class QListWidget;
13class QSpinBox;
14class QCheckBox;
15namespace color_widgets
16{
17class ColorWheel;
18}
19
20namespace Scenario
21{
22namespace Settings
23{
31class SCORE_PLUGIN_SCENARIO_EXPORT SkinEditorWidget final : public QWidget
32{
33 W_OBJECT(SkinEditorWidget)
34public:
35 explicit SkinEditorWidget(QWidget* parent = nullptr);
36
38 void setSkin(const QString& skin);
39
42 static int selectedParts() noexcept;
43
44 void skinChanged(const QString& arg_1) W_SIGNAL(skinChanged, arg_1);
45
46private:
47 QWidget* makeSkinRow();
48 QWidget* makeColorEditor();
49 QWidget* makeFontEditor();
50
52 void reloadFromSkin();
54 void loadFontRole();
56 void applyFontRole();
57 void refreshFontPreview();
58
59 QComboBox* m_skin{};
60 QCheckBox* m_applyColours{};
61 QCheckBox* m_applyFonts{};
62
63 QListWidget* m_colorList{};
64 color_widgets::ColorWheel* m_wheel{};
65 QLineEdit* m_hex{};
66
67 QListWidget* m_fontList{};
68 QComboBox* m_fontFamily{};
69 QComboBox* m_fontStyle{};
70 QSpinBox* m_fontSize{};
71 QCheckBox* m_fontAntialias{};
72 QComboBox* m_fontHinting{};
73 QPlainTextEdit* m_fontPreview{};
74 QLabel* m_fontHint{};
75
77 bool m_loading{false};
80 bool m_applying{false};
81};
82}
83}
The skin editor, inlined as a settings sub-tab.
Definition SkinEditorWidget.hpp:32
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13