16 #ifndef QGSMAPLAYERSTYLEMANAGER_H 17 #define QGSMAPLAYERSTYLEMANAGER_H 24 #include <QStringList> 27 #include "qgis_core.h" 57 QString xmlData()
const;
65 void readXml(
const QDomElement &styleElement );
67 void writeXml( QDomElement &styleElement )
const;
114 void readXml(
const QDomElement &mgrElement );
116 void writeXml( QDomElement &mgrElement )
const;
119 QStringList styles()
const;
126 QMap<QString, QgsMapLayerStyle> mapLayerStyles()
const;
141 bool addStyleFromLayer(
const QString &name );
147 bool removeStyle(
const QString &name );
153 bool renameStyle(
const QString &name,
const QString &newName );
156 QString currentStyle()
const;
162 bool setCurrentStyle(
const QString &name );
169 bool setOverrideStyle(
const QString &styleDef );
171 bool restoreOverrideStyle();
178 bool isDefault(
const QString &styleName )
const;
182 void styleAdded(
const QString &name );
184 void styleRemoved(
const QString &name );
186 void styleRenamed(
const QString &oldName,
const QString &newName );
188 void currentStyleChanged(
const QString ¤tName );
192 QMap<QString, QgsMapLayerStyle> mStyles;
193 QString mCurrentStyle;
195 QString defaultStyleName()
const;
198 #endif // QGSMAPLAYERSTYLEMANAGER_H Base class for all map layer types.
Stores style information (renderer, opacity, labeling, diagrams etc.) applicable to a map layer...
QgsMapLayer * layer() const
Get pointer to the associated map layer.
Management of styles for use with one map layer.