1 #ifndef H_EXTENSIONS_CUTEHMI_GUI_1_INCLUDE_CUTEHMI_GUI_PALETTE_HPP
2 #define H_EXTENSIONS_CUTEHMI_GUI_1_INCLUDE_CUTEHMI_GUI_PALETTE_HPP
4 #include "internal/common.hpp"
5 #include "ColorSet.hpp"
28 Q_PROPERTY(
QColor background READ background WRITE setBackground NOTIFY backgroundChanged)
33 Q_PROPERTY(
ColorSet * alarm READ alarm WRITE setAlarm NOTIFY alarmChanged RESET resetAlarm)
38 Q_PROPERTY(
ColorSet * warning READ warning WRITE setWarning NOTIFY warningChanged RESET resetWarning)
43 Q_PROPERTY(
ColorSet * active READ active WRITE setActive NOTIFY activeChanged RESET resetActive)
48 Q_PROPERTY(
ColorSet * inactive READ inactive WRITE setInactive NOTIFY inactiveChanged RESET resetInactive)
53 Q_PROPERTY(
ColorSet * neutral READ neutral WRITE setNeutral NOTIFY neutralChanged RESET resetNeutral)
59 void setBackground(
QColor background);
81 void setInactive(
ColorSet * inactive);
92 void backgroundChanged();
96 void warningChanged();
100 void inactiveChanged();
102 void neutralChanged();
111 static
ColorSet & DefaultInactive();
126 background(Qt::white),
127 alarm(& DefaultAlarm()),
128 warning(& DefaultWarning()),
129 active(& DefaultActive()),
130 inactive(& DefaultInactive()),
131 neutral(& DefaultNeutral())