17 #ifndef QGSTEXTFORMATWIDGET_H 18 #define QGSTEXTFORMATWIDGET_H 20 #include "ui_qgstextformatwidgetbase.h" 25 #include <QFontDatabase> 77 void setDockMode(
bool enabled );
111 void setPreviewBackground(
const QColor &color );
117 void enableDataDefinedAlignment(
bool enable );
122 QButtonGroup *mQuadrantBtnGrp =
nullptr;
124 QButtonGroup *mDirectSymbBtnGrp =
nullptr;
126 QButtonGroup *mUpsidedownBtnGrp =
nullptr;
128 QButtonGroup *mPlacePointBtnGrp =
nullptr;
130 QButtonGroup *mPlaceLineBtnGrp =
nullptr;
132 QButtonGroup *mPlacePolygonBtnGrp =
nullptr;
134 int mMinPixelLimit = 0;
139 void updateLinePlacementOptions();
142 void updatePlacementWidgets();
145 Mode mWidgetMode = Text;
148 std::unique_ptr< QgsPaintEffect > mBufferEffect;
149 std::unique_ptr< QgsPaintEffect > mBackgroundEffect;
151 QFontDatabase mFontDB;
157 bool mLoadSvgParams =
false;
160 void setWidgetMode(
Mode mode );
161 void toggleDDButtons(
bool visible );
162 void blockFontChangeSignals(
bool blk );
163 void populateFontCapitalsComboBox();
164 void populateFontStyleComboBox();
165 void updateFont(
const QFont &font );
166 void connectValueChanged(
const QList<QWidget *> &widgets,
const char *slot );
169 void optionsStackedWidget_CurrentChanged(
int indx );
170 void showBackgroundRadius(
bool show );
171 void showBackgroundPenStyle(
bool show );
172 void mShapeSVGPathLineEdit_textChanged(
const QString &text );
174 void previewScaleChanged(
double scale );
175 void mFontSizeSpinBox_valueChanged(
double d );
176 void mFontCapitalsComboBox_currentIndexChanged(
int index );
177 void mFontFamilyCmbBx_currentFontChanged(
const QFont &
f );
178 void mFontStyleComboBox_currentIndexChanged(
const QString &text );
179 void mFontUnderlineBtn_toggled(
bool ckd );
180 void mFontStrikethroughBtn_toggled(
bool ckd );
181 void mFontWordSpacingSpinBox_valueChanged(
double spacing );
182 void mFontLetterSpacingSpinBox_valueChanged(
double spacing );
183 void mFontSizeUnitWidget_changed();
184 void mFontMinPixelSpinBox_valueChanged(
int px );
185 void mFontMaxPixelSpinBox_valueChanged(
int px );
186 void mBufferUnitWidget_changed();
187 void mCoordXDDBtn_activated(
bool active );
188 void mCoordYDDBtn_activated(
bool active );
189 void mShapeTypeCmbBx_currentIndexChanged(
int index );
190 void mShapeRotationCmbBx_currentIndexChanged(
int index );
191 void mShapeSVGParamsBtn_clicked();
192 void mShapeSVGSelectorBtn_clicked();
193 void mPreviewTextEdit_textChanged(
const QString &text );
194 void mPreviewTextBtn_clicked();
195 void mPreviewBackgroundBtn_colorChanged(
const QColor &color );
196 void mDirectSymbLeftToolBtn_clicked();
197 void mDirectSymbRightToolBtn_clicked();
198 void mChkNoObstacle_toggled(
bool active );
199 void chkLineOrientationDependent_toggled(
bool active );
200 void mToolButtonConfigureSubstitutes_clicked();
201 void collapseSample(
bool collapse );
202 void changeTextColor(
const QColor &color );
203 void changeBufferColor(
const QColor &color );
204 void updatePreview();
205 void scrollPreview();
206 void updateSvgWidgets(
const QString &svgPath );
287 #endif //QGSTEXTFORMATWIDGET_H
A dialog for selecting a single character from a single font.
A widget for customising text formatting settings.
Map canvas is a class for displaying all GIS data types on a canvas.
Show labeling settings in addition to text formatting settings.
QgsStringReplacementCollection mSubstitutions
Text substitution list.
A collection of string replacements (specified using QgsStringReplacement objects).
A panel widget for customising text formatting settings.
Container for all settings relating to text rendering.
A simple dialog for customising text formatting settings.