16 #ifndef QGSMAPLAYERSTYLEMANAGER_H
17 #define QGSMAPLAYERSTYLEMANAGER_H
24 #include <QStringList>
52 QString xmlData()
const;
60 void readXml(
const QDomElement& styleElement );
62 void writeXml( QDomElement& styleElement )
const;
104 void readXml(
const QDomElement& mgrElement );
106 void writeXml( QDomElement& mgrElement )
const;
109 QStringList styles()
const;
118 bool addStyleFromLayer(
const QString& name );
121 bool removeStyle(
const QString& name );
124 bool renameStyle(
const QString& name,
const QString& newName );
127 QString currentStyle()
const;
130 bool setCurrentStyle(
const QString& name );
135 bool setOverrideStyle(
const QString& styleDef );
137 bool restoreOverrideStyle();
141 void styleAdded(
const QString& name );
143 void styleRemoved(
const QString& name );
145 void styleRenamed(
const QString& oldName,
const QString& newName );
147 void currentStyleChanged(
const QString& currentName );
151 QMap<QString, QgsMapLayerStyle> mStyles;
152 QString mCurrentStyle;
156 #endif // QGSMAPLAYERSTYLEMANAGER_H