72 QgsTextFormat format(
bool includeDataDefinedProperties =
true )
const;
109 void setDockMode(
bool enabled );
149 void setPreviewBackground(
const QColor &color );
173 void setPropertyOverrideButtonsVisible(
bool visible );
181 QButtonGroup *mQuadrantBtnGrp =
nullptr;
183 QButtonGroup *mDirectSymbBtnGrp =
nullptr;
185 QButtonGroup *mUpsidedownBtnGrp =
nullptr;
187 int mMinPixelLimit = 0;
207 QListWidgetItem *mTextItem =
nullptr;
209 QListWidgetItem *mFormattingItem =
nullptr;
211 QListWidgetItem *mBufferItem =
nullptr;
213 QListWidgetItem *mMaskItem =
nullptr;
215 QListWidgetItem *mBackgroundItem =
nullptr;
217 QListWidgetItem *mShadowItem =
nullptr;
219 QListWidgetItem *mCalloutItem =
nullptr;
221 QListWidgetItem *mPlacementItem =
nullptr;
223 QListWidgetItem *mRenderingItem =
nullptr;
228 void updateLinePlacementOptions();
231 void updatePlacementWidgets();
237 virtual void setFormatFromStyle(
const QString &name,
QgsStyle::StyleEntity type,
const QString &stylePath );
242 virtual void saveFormat();
248 void updatePreview();
258 void populateDataDefinedButtons();
262 Mode mWidgetMode = Text;
265 std::unique_ptr<QgsPaintEffect> mBufferEffect;
266 std::unique_ptr<QgsPaintEffect> mMaskEffect;
267 std::unique_ptr<QgsPaintEffect> mBackgroundEffect;
268 QColor mPreviewBackgroundColor;
270 QFontDatabase mFontDB;
274 bool mDockMode =
false;
276 bool mLoadSvgParams =
false;
279 QMap<QgsPalLayerSettings::Property, QgsPropertyOverrideButton *> mButtons;
282 void setWidgetMode(
Mode mode );
283 void blockFontChangeSignals(
bool blk );
284 void populateFontCapitalsComboBox();
285 void populateFontStyleComboBox();
286 void updateFont(
const QFont &font );
287 void connectValueChanged(
const QList<QWidget *> &widgets );
292 void optionsStackedWidget_CurrentChanged(
int indx );
293 void showBackgroundRadius(
bool show );
294 void mShapeSVGPathLineEdit_textChanged(
const QString &text );
296 void previewScaleChanged(
double scale );
297 void mFontSizeSpinBox_valueChanged(
double d );
298 void mFontFamilyCmbBx_currentFontChanged(
const QFont &f );
299 void mFontStyleComboBox_currentIndexChanged(
const QString &text );
300 void mFontUnderlineBtn_toggled(
bool ckd );
301 void mFontStrikethroughBtn_toggled(
bool ckd );
302 void kerningToggled(
bool checked );
303 void mFontWordSpacingSpinBox_valueChanged(
double spacing );
304 void mFontLetterSpacingSpinBox_valueChanged(
double spacing );
305 void mFontSizeUnitWidget_changed();
306 void mFontMinPixelSpinBox_valueChanged(
int px );
307 void mFontMaxPixelSpinBox_valueChanged(
int px );
308 void mBufferUnitWidget_changed();
309 void mMaskBufferUnitWidget_changed();
310 void mCoordXDDBtn_changed();
311 void mCoordXDDBtn_activated(
bool isActive );
312 void mCoordYDDBtn_changed();
313 void mCoordYDDBtn_activated(
bool isActive );
314 void mCoordPointDDBtn_changed();
315 void mCoordPointDDBtn_activated(
bool isActive );
316 void mShapeTypeCmbBx_currentIndexChanged(
int index );
317 void mShapeRotationCmbBx_currentIndexChanged(
int index );
318 void mShapeSVGParamsBtn_clicked();
319 void mShapeSVGSelectorBtn_clicked();
320 void mPreviewTextEdit_textChanged(
const QString &text );
321 void mPreviewTextBtn_clicked();
322 void mPreviewBackgroundBtn_colorChanged(
const QColor &color );
323 void mDirectSymbLeftToolBtn_clicked();
324 void mDirectSymbRightToolBtn_clicked();
325 void chkLineOrientationDependent_toggled(
bool active );
326 void mToolButtonConfigureSubstitutes_clicked();
327 void configureTabStops();
328 void collapseSample(
bool collapse );
329 void changeTextColor(
const QColor &color );
330 void changeBufferColor(
const QColor &color );
331 void scrollPreview();
332 void updateSvgWidgets(
const QString &svgPath );
333 void updateAvailableShadowPositions();
334 void updateProperty();
335 void createAuxiliaryField();
336 void updateShapeFrameStatus();
337 void updateBufferFrameStatus();
338 void updateShadowFrameStatus();
339 void updateCalloutFrameStatus();
340 void updateDataDefinedAlignment();
341 void overlapModeChanged();
Abstract interface for generating an expression context.
virtual QgsExpressionContext createExpressionContext() const =0
This method needs to be reimplemented in all classes which implement this interface and return an exp...
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...