16 #ifndef QGSMAPLAYERLEGEND_H
17 #define QGSMAPLAYERLEGEND_H
35 #include "qgis_core.h"
65 virtual QDomElement writeXml( QDomDocument &doc,
const QgsReadWriteContext &context )
const;
99 static void setLegendNodeOrder(
QgsLayerTreeLayer *nodeLayer,
const QList<int> &order );
103 static void setLegendNodeUserLabel(
QgsLayerTreeLayer *nodeLayer,
int originalIndex,
const QString &newLabel );
104 static QString legendNodeUserLabel(
QgsLayerTreeLayer *nodeLayer,
int originalIndex );
105 static bool hasLegendNodeUserLabel(
QgsLayerTreeLayer *nodeLayer,
int originalIndex );
132 static void setLegendNodeSymbolSize(
QgsLayerTreeLayer *nodeLayer,
int originalIndex, QSizeF size );
143 static QSizeF legendNodeSymbolSize(
QgsLayerTreeLayer *nodeLayer,
int originalIndex );
175 static void setLegendNodeColumnBreak(
QgsLayerTreeLayer *nodeLayer,
int originalIndex,
bool columnBreakBeforeNode );
183 static bool legendNodeColumnBreak(
QgsLayerTreeLayer *nodeLayer,
int originalIndex );
186 static void applyLayerNodeProperties(
QgsLayerTreeLayer *nodeLayer, QList<QgsLayerTreeModelLegendNode *> &nodes );
256 bool mTextOnSymbolEnabled =
false;
258 QHash<QString, QString> mTextOnSymbolContent;
301 #endif // QGSMAPLAYERLEGEND_H