16 #ifndef QGSLEGENDSETTINGS_H    17 #define QGSLEGENDSETTINGS_H   155     int dpi()
 const { 
return mDpi; }
   179     void drawText( 
QPainter* p, 
const QRectF& rect, 
const QString& text, 
const QFont& font, Qt::AlignmentFlag halignment = Qt::AlignLeft, Qt::AlignmentFlag valignment = Qt::AlignTop, 
int flags = Qt::TextWordWrap ) 
const;
   182     QFont scaledFontPixelSize( 
const QFont& font ) 
const;
   185     double pixelFontSize( 
double pointSize ) 
const;
   188     double textWidthMillimeters( 
const QFont& font, 
const QString& text ) 
const;
   191     double fontHeightCharacterMM( 
const QFont& font, 
QChar c ) 
const;
   194     double fontAscentMillimeters( 
const QFont& font ) 
const;
   197     double fontDescentMillimeters( 
const QFont& font ) 
const;
   204     Qt::AlignmentFlag mTitleAlignment;
   232     bool mEqualColumnWidth;
   234     bool mRasterSymbolBorder;
   235     QColor mRasterBorderColor;
   236     double mRasterBorderWidth;
   241     double mMmPerMapUnit;
   244     bool mUseAdvancedEffects;
   255 #endif // QGSLEGENDSETTINGS_H void setTitleAlignment(Qt::AlignmentFlag alignment)
Sets the alignment of the legend title. 
 
void setWrapChar(const QString &t)
 
void setEqualColumnWidth(bool s)
 
void setBoxSpace(double s)
 
void setMmPerMapUnit(double mmPerMapUnit)
 
bool useAdvancedEffects() const
 
QgsComposerLegendStyle & rstyle(QgsComposerLegendStyle::Style s)
Returns reference to modifiable style. 
 
void setSymbolSize(QSizeF s)
 
double rasterBorderWidth() const
Returns the border width (in millimeters) for the border drawn around raster symbol items...
 
void setStyle(QgsComposerLegendStyle::Style s, const QgsComposerLegendStyle &style)
 
QSizeF wmsLegendSize() const
 
void setRasterBorderWidth(double width)
Sets the border width for the border drawn around raster symbol items. 
 
void setMapScale(double scale)
 
The QgsLegendSettings class stores the appearance and layout settings for legend drawing with QgsLege...
 
QgsComposerLegendStyle style(QgsComposerLegendStyle::Style s) const
Returns style. 
 
void setTitle(const QString &t)
 
Qt::AlignmentFlag titleAlignment() const
Returns the alignment of the legend title. 
 
void setDrawRasterBorder(bool enabled)
Sets whether a border will be drawn around raster symbol items. 
 
void setFontColor(const QColor &c)
 
void setColumnSpace(double s)
 
Abstract base class for the legend item types. 
 
QSizeF symbolSize() const
 
void setLineSpacing(double s)
 
Composer legend components style. 
 
void setWmsLegendSize(QSizeF s)
 
void setUseAdvancedEffects(bool use)
 
bool equalColumnWidth() const
 
void setColumnCount(int c)
 
double columnSpace() const
 
QColor rasterBorderColor() const
Returns the border color for the border drawn around raster symbol items. 
 
double lineSpacing() const
 
bool drawRasterBorder() const
Returns whether a border will be drawn around raster symbol items. 
 
double mmPerMapUnit() const
 
void setSplitLayer(bool s)
 
void setRasterBorderColor(const QColor &color)
Sets the border color for the border drawn around raster symbol items.