74 QgsTextFormat format(
bool includeDataDefinedProperties =
true )
const;
111 void setDockMode(
bool enabled );
152 void setPreviewBackground(
const QColor &color );
177 QButtonGroup *mQuadrantBtnGrp =
nullptr;
179 QButtonGroup *mDirectSymbBtnGrp =
nullptr;
181 QButtonGroup *mUpsidedownBtnGrp =
nullptr;
183 int mMinPixelLimit = 0;
205 void updateLinePlacementOptions();
208 void updatePlacementWidgets();
214 virtual void setFormatFromStyle(
const QString &name,
QgsStyle::StyleEntity type,
const QString &stylePath );
219 virtual void saveFormat();
225 void updatePreview();
235 void populateDataDefinedButtons();
239 Mode mWidgetMode = Text;
242 std::unique_ptr< QgsPaintEffect > mBufferEffect;
243 std::unique_ptr< QgsPaintEffect > mMaskEffect;
244 std::unique_ptr< QgsPaintEffect > mBackgroundEffect;
245 QColor mPreviewBackgroundColor;
247 QFontDatabase mFontDB;
251 bool mDockMode =
false;
253 bool mLoadSvgParams =
false;
256 QMap<QgsPalLayerSettings::Property, QgsPropertyOverrideButton *> mButtons;
259 void setWidgetMode(
Mode mode );
260 void toggleDDButtons(
bool visible );
261 void blockFontChangeSignals(
bool blk );
262 void populateFontCapitalsComboBox();
263 void populateFontStyleComboBox();
264 void updateFont(
const QFont &font );
265 void connectValueChanged(
const QList<QWidget *> &widgets );
270 void optionsStackedWidget_CurrentChanged(
int indx );
271 void showBackgroundRadius(
bool show );
272 void mShapeSVGPathLineEdit_textChanged(
const QString &text );
274 void previewScaleChanged(
double scale );
275 void mFontSizeSpinBox_valueChanged(
double d );
276 void mFontFamilyCmbBx_currentFontChanged(
const QFont &f );
277 void mFontStyleComboBox_currentIndexChanged(
const QString &text );
278 void mFontUnderlineBtn_toggled(
bool ckd );
279 void mFontStrikethroughBtn_toggled(
bool ckd );
280 void kerningToggled(
bool checked );
281 void mFontWordSpacingSpinBox_valueChanged(
double spacing );
282 void mFontLetterSpacingSpinBox_valueChanged(
double spacing );
283 void mFontSizeUnitWidget_changed();
284 void mFontMinPixelSpinBox_valueChanged(
int px );
285 void mFontMaxPixelSpinBox_valueChanged(
int px );
286 void mBufferUnitWidget_changed();
287 void mMaskBufferUnitWidget_changed();
288 void mCoordXDDBtn_changed();
289 void mCoordXDDBtn_activated(
bool isActive );
290 void mCoordYDDBtn_changed();
291 void mCoordYDDBtn_activated(
bool isActive );
292 void mCoordPointDDBtn_changed();
293 void mCoordPointDDBtn_activated(
bool isActive );
294 void mShapeTypeCmbBx_currentIndexChanged(
int index );
295 void mShapeRotationCmbBx_currentIndexChanged(
int index );
296 void mShapeSVGParamsBtn_clicked();
297 void mShapeSVGSelectorBtn_clicked();
298 void mPreviewTextEdit_textChanged(
const QString &text );
299 void mPreviewTextBtn_clicked();
300 void mPreviewBackgroundBtn_colorChanged(
const QColor &color );
301 void mDirectSymbLeftToolBtn_clicked();
302 void mDirectSymbRightToolBtn_clicked();
303 void chkLineOrientationDependent_toggled(
bool active );
304 void mToolButtonConfigureSubstitutes_clicked();
305 void configureTabStops();
306 void collapseSample(
bool collapse );
307 void changeTextColor(
const QColor &color );
308 void changeBufferColor(
const QColor &color );
309 void scrollPreview();
310 void updateSvgWidgets(
const QString &svgPath );
311 void updateAvailableShadowPositions();
312 void updateProperty();
313 void createAuxiliaryField();
314 void updateShapeFrameStatus();
315 void updateBufferFrameStatus();
316 void updateShadowFrameStatus();
317 void updateCalloutFrameStatus();
318 void updateDataDefinedAlignment();
319 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...