18#ifndef QGSLABELINGGUI_H
19#define QGSLABELINGGUI_H
28class QDialogButtonBox;
70 void setLabelMode( LabelMode mode );
72 virtual void setLayer( QgsMapLayer *layer );
74 void setSettings(
const QgsPalLayerSettings &settings );
76 void setContext(
const QgsSymbolWidgetContext &context )
override;
99 QgsLabelingGui( QgsMapCanvas *mapCanvas, QWidget *parent, QgsMapLayer *layer )
SIP_SKIP;
108 void blockInitSignals(
bool block );
109 void syncDefinedCheckboxFrame( QgsPropertyOverrideButton *ddBtn, QCheckBox *chkBx, QFrame *f );
110 bool eventFilter( QObject *
object, QEvent *event )
override;
122 void updateGeometryTypeBasedWidgets();
123 void showGeometryGeneratorExpressionBuilder();
124 void validateGeometryGeneratorExpression();
125 void determineGeometryGeneratorType();
130 void calloutTypeChanged();
133 QgsPalLayerSettings mSettings;
134 QgsFeature mPreviewFeature;
136 QgsLabelObstacleSettings mObstacleSettings;
137 QgsLabelLineSettings mLineSettings;
138 QgsLabelThinningSettings mThinningSettings;
144 void updateCalloutWidget( QgsCallout *callout );
145 void showObstacleSettings();
146 void showLineAnchorSettings();
147 void showDuplicateSettings();
150class GUI_EXPORT QgsLabelSettingsDialog :
public QDialog
157 QgsPalLayerSettings settings()
const {
return mWidget->layerSettings(); }
162 QDialogButtonBox *buttonBox()
const;
165 QgsLabelingGui *mWidget =
nullptr;
166 QDialogButtonBox *mButtonBox =
nullptr;
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
Map canvas is a class for displaying all GIS data types on a canvas.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
Contains settings for how a map layer will be labeled.
StyleEntity
Enum for Entities involved in a style.
A widget for customizing text formatting settings.
QgsExpressionContext createExpressionContext() const override
This method needs to be reimplemented in all classes which implement this interface and return an exp...
virtual void setContext(const QgsSymbolWidgetContext &context)
Sets the context in which the widget is shown, e.g., the associated map canvas and expression context...
virtual void setFormatFromStyle(const QString &name, QgsStyle::StyleEntity type, const QString &stylePath)
Sets the current text settings from a style entry.
virtual void saveFormat()
Saves the current text settings to a style entry.
Represents a vector layer which manages a vector based dataset.
Implements a map layer that is dedicated to rendering of vector tiles.