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();
569 , mUseOrigin( false )
571 , mRotationOffset( 0.0 )
572 , mUseRotation( false )
574 , mUseCenter( false )
578 , mPictureBuffer( 0.0 )
582 const QString&
text() {
return mText; }
583 void setText(
const QString& text ) { mText = text; }
612 const QPicture*
picture() {
return mPicture; }
671 void numCandidatePositions(
int& candPoint,
int& candLine,
int& candPolygon );
672 void setNumCandidatePositions(
int candPoint,
int candLine,
int candPolygon );
674 enum Search { Chain, Popmusic_Tabu, Popmusic_Chain, Popmusic_Tabu_Chain, Falp };
676 void setSearchMethod( Search s );
677 Search searchMethod()
const;
681 const QList<QgsLabelCandidate>&
candidates() {
return mCandidates; }
724 void drawLabelCandidateRect( pal::LabelPosition* lp, QPainter* painter,
const QgsMapToPixel* xform );
743 void loadEngineSettings();
744 void saveEngineSettings();
745 void clearEngineSettings();
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 );
768 const QMap< QgsPalLayerSettings::DataDefinedProperties, QVariant >& ddValues );
793 #endif // QGSPALLABELING_H