19 #pragma once |
19 #pragma once |
20 #include "hierarchyelement.h" |
20 #include "hierarchyelement.h" |
21 #include "main.h" |
21 #include "main.h" |
22 #include "mainwindow.h" |
22 #include "mainwindow.h" |
23 |
23 |
|
24 /* |
|
25 * GuiUtilities |
|
26 * |
|
27 * Contains generic state-aware GUI functions. |
|
28 */ |
24 class GuiUtilities : public QObject, public HierarchyElement |
29 class GuiUtilities : public QObject, public HierarchyElement |
25 { |
30 { |
26 Q_OBJECT |
31 Q_OBJECT |
27 public: |
32 public: |
28 explicit GuiUtilities (QObject* parent); |
33 explicit GuiUtilities (QObject* parent); |
29 |
34 |
30 QIcon makeColorIcon (LDColor ldcolor, int size); |
35 QIcon makeColorIcon (LDColor ldcolor, int size); |
31 void fillUsedColorsToComboBox (class QComboBox* box); |
36 void fillUsedColorsToComboBox (class QComboBox* box); |
32 QColor mainColorRepresentation(); |
37 QColor mainColorRepresentation(); |
33 QList<ColorToolbarItem> loadQuickColorList(); |
38 QVector<ColorToolbarItem> loadQuickColorList(); |
34 }; |
39 }; |