21 #ifndef QGSPALLABELING_H
22 #define QGSPALLABELING_H
35 #include <QFontDatabase>
175 FontLetterSpacing = 28,
176 FontWordSpacing = 29,
180 MultiLineWrapChar = 31,
181 MultiLineHeight = 32,
182 MultiLineAlignment = 33,
186 DirSymbPlacement = 37,
198 BufferJoinStyle = 44,
199 BufferBlendMode = 45,
209 ShapeRotationType = 52,
212 ShapeOffsetUnits = 55,
214 ShapeRadiiUnits = 57,
215 ShapeTransparency = 63,
218 ShapeBorderColor = 59,
219 ShapeBorderWidth = 60,
220 ShapeBorderWidthUnits = 61,
226 ShadowOffsetAngle = 67,
227 ShadowOffsetDist = 68,
228 ShadowOffsetUnits = 69,
230 ShadowRadiusUnits = 71,
231 ShadowTransparency = 72,
234 ShadowBlendMode = 75,
244 CurvedCharAngleInOut = 83,
253 ScaleVisibility = 23,
407 void calculateLabelSize(
const QFontMetricsF* fm, QString text,
double& labelX,
double& labelY,
QgsFeature* f = 0 );
424 bool active,
bool useExpr,
const QString& expr,
const QString& field );
432 QString updateDataDefinedString(
const QString& value );
487 QMap<QgsPalLayerSettings::DataDefinedProperties, QPair<QString, int> >
dataDefinedNames()
const {
return mDataDefinedNames; }
522 bool dataDefinedValEval(
const QString& valType,
526 void parseTextStyle( QFont& labelFont,
530 void parseTextBuffer();
532 void parseTextFormatting();
534 void parseShapeBackground();
536 void parseDropShadow();
568 , mUseOrigin( false )
570 , mRotationOffset( 0.0 )
571 , mUseRotation( false )
573 , mUseCenter( false )
577 , mPictureBuffer( 0.0 )
581 const QString&
text() {
return mText; }
582 void setText(
const QString& text ) { mText = text; }
611 const QPicture*
picture() {
return mPicture; }
670 void numCandidatePositions(
int& candPoint,
int& candLine,
int& candPolygon );
671 void setNumCandidatePositions(
int candPoint,
int candLine,
int candPolygon );
673 enum Search { Chain, Popmusic_Tabu, Popmusic_Chain, Popmusic_Tabu_Chain, Falp };
675 void setSearchMethod( Search s );
676 Search searchMethod()
const;
680 const QList<QgsLabelCandidate>&
candidates() {
return mCandidates; }
720 void drawLabelCandidateRect( pal::LabelPosition* lp, QPainter* painter,
const QgsMapToPixel* xform );
739 void loadEngineSettings();
740 void saveEngineSettings();
741 void clearEngineSettings();
748 const QMap< QgsPalLayerSettings::DataDefinedProperties, QVariant >& ddValues );
752 const QMap< QgsPalLayerSettings::DataDefinedProperties, QVariant >& ddValues );
756 const QMap< QgsPalLayerSettings::DataDefinedProperties, QVariant >& ddValues );
760 const QMap< QgsPalLayerSettings::DataDefinedProperties, QVariant >& ddValues );
764 const QMap< QgsPalLayerSettings::DataDefinedProperties, QVariant >& ddValues );
788 #endif // QGSPALLABELING_H