18 #ifndef QGSCOLORSCHEME_H
19 #define QGSCOLORSCHEME_H
47 ShowInColorDialog = 0x01,
48 ShowInColorButtonMenu = 0x02,
49 ShowInAllContexts = ShowInColorDialog | ShowInColorButtonMenu
51 Q_DECLARE_FLAGS( SchemeFlags, SchemeFlag )
55 virtual ~QgsColorScheme();
60 virtual QString schemeName() const = 0;
65 virtual SchemeFlags flags()
const {
return ShowInColorDialog; }
78 const QColor &baseColor = QColor() ) = 0;
93 virtual bool setColors(
const QgsNamedColorList &colors,
const QString &context = QString(),
const QColor &baseColor = QColor() );
101 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsColorScheme::SchemeFlags )
117 const QColor &baseColor = QColor() )
override;
119 virtual bool setColors(
const QgsNamedColorList &colors,
const QString &context = QString(),
const QColor &baseColor = QColor() )
override;
126 virtual QString gplFilePath() = 0;
156 void setName(
const QString &name ) { mName = name; }
186 virtual QString
schemeName()
const override {
return QT_TR_NOOP(
"Recent colors" ); }
191 const QColor &baseColor = QColor() )
override;
209 virtual QString
schemeName()
const override {
return QT_TR_NOOP(
"Standard colors" ); }
214 const QColor &baseColor = QColor() )
override;
218 virtual bool setColors(
const QgsNamedColorList &colors,
const QString &context = QString(),
const QColor &baseColor = QColor() )
override;
236 virtual QString
schemeName()
const override {
return QT_TR_NOOP(
"Project colors" ); }
241 const QColor &baseColor = QColor() )
override;
245 virtual bool setColors(
const QgsNamedColorList &colors,
const QString &context = QString(),
const QColor &baseColor = QColor() )
override;