16 #ifndef QGSLEGENDRENDERER_H
17 #define QGSLEGENDRENDERER_H
60 void drawLegend( QPainter* painter );
99 Atom():
size( QSizeF( 0, 0 ) ), column( 0 ) {}
100 QList<Nucleon> nucleons;
106 QSizeF paintAndDetermineSize( QPainter* painter );
112 void setColumns( QList<Atom>& atomList );
117 QSizeF drawTitle( QPainter* painter = 0, QPointF point = QPointF(), Qt::AlignmentFlag halignment = Qt::AlignLeft,
double legendWidth = 0 );
119 double spaceAboveAtom( Atom atom );
124 QSizeF drawAtom( Atom atom, QPainter* painter = 0, QPointF point = QPointF() );
126 Nucleon drawSymbolItem(
QgsLayerTreeModelLegendNode* symbolItem, QPainter* painter = 0, QPointF point = QPointF(),
double labelXOffset = 0 );
129 QSizeF drawLayerTitle(
QgsLayerTreeLayer* nodeLayer, QPainter* painter = 0, QPointF point = QPointF() );
134 QSizeF drawGroupTitle(
QgsLayerTreeGroup* nodeGroup, QPainter* painter = 0, QPointF point = QPointF() );
147 #endif // QGSLEGENDRENDERER_H