16 #ifndef QGSMAPLAYERSTYLEMANAGER_H
17 #define QGSMAPLAYERSTYLEMANAGER_H
19 #include "qgis_core.h"
25 #include <QStringList>
75 void readXml(
const QDomElement &mgrElement );
77 void writeXml( QDomElement &mgrElement )
const;
80 QStringList styles()
const;
87 QMap<QString, QgsMapLayerStyle> mapLayerStyles()
const;
102 bool addStyleFromLayer(
const QString &name );
108 bool removeStyle(
const QString &name );
114 bool renameStyle(
const QString &name,
const QString &newName );
117 QString currentStyle()
const;
123 bool setCurrentStyle(
const QString &name );
130 bool setOverrideStyle(
const QString &styleDef );
132 bool restoreOverrideStyle();
139 static bool isDefault(
const QString &styleName );
151 void styleAdded(
const QString &name );
153 void styleRemoved(
const QString &name );
155 void styleRenamed(
const QString &oldName,
const QString &newName );
157 void currentStyleChanged(
const QString ¤tName );
161 QMap<QString, QgsMapLayerStyle> mStyles;
162 QString mCurrentStyle;
164 static QString defaultStyleName();
167 #endif // QGSMAPLAYERSTYLEMANAGER_H