16 #ifndef QGSLEGENDRENDERER_H
17 #define QGSLEGENDRENDERER_H
60 void drawLegend( QPainter* painter );
76 Nucleon() : item( 0 ), labelXOffset( 0.0 ) {}
100 Atom():
size( QSizeF( 0, 0 ) ), column( 0 ) {}
101 QList<Nucleon> nucleons;
107 QSizeF paintAndDetermineSize( QPainter* painter );
113 void setColumns( QList<Atom>& atomList );
118 QSizeF drawTitle( QPainter* painter = 0, QPointF point = QPointF(), Qt::AlignmentFlag halignment = Qt::AlignLeft,
double legendWidth = 0 );
120 double spaceAboveAtom( Atom atom );
125 QSizeF drawAtom( Atom atom, QPainter* painter = 0, QPointF point = QPointF() );
127 Nucleon drawSymbolItem(
QgsLayerTreeModelLegendNode* symbolItem, QPainter* painter = 0, QPointF point = QPointF(),
double labelXOffset = 0 );
130 QSizeF drawLayerTitle(
QgsLayerTreeLayer* nodeLayer, QPainter* painter = 0, QPointF point = QPointF() );
135 QSizeF drawGroupTitle(
QgsLayerTreeGroup* nodeGroup, QPainter* painter = 0, QPointF point = QPointF() );
148 #endif // QGSLEGENDRENDERER_H