16 #ifndef QGSLEGENDSETTINGS_H
17 #define QGSLEGENDSETTINGS_H
41 void setTitle(
const QString& t ) { mTitle = t; }
42 QString
title()
const {
return mTitle; }
100 int dpi()
const {
return mDpi; }
107 QStringList splitStringForWrapping( QString stringToSplt )
const;
111 void drawText( QPainter* p,
double x,
double y,
const QString& text,
const QFont& font )
const;
122 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;
125 QFont scaledFontPixelSize(
const QFont& font )
const;
128 double pixelFontSize(
double pointSize )
const;
131 double textWidthMillimeters(
const QFont& font,
const QString& text )
const;
134 double fontHeightCharacterMM(
const QFont& font,
const QChar& c )
const;
137 double fontAscentMillimeters(
const QFont& font )
const;
140 double fontDescentMillimeters(
const QFont& font )
const;
147 Qt::AlignmentFlag mTitleAlignment;
160 QSizeF mWmsLegendSize;
175 bool mEqualColumnWidth;
177 QMap<QgsComposerLegendStyle::Style, QgsComposerLegendStyle> mStyleMap;
180 double mMmPerMapUnit;
183 bool mUseAdvancedEffects;
194 #endif // QGSLEGENDSETTINGS_H