17 #ifndef QGSTEXTFORMATWIDGET_H 18 #define QGSTEXTFORMATWIDGET_H 20 #include "ui_qgstextformatwidgetbase.h" 25 #include <QFontDatabase> 83 void setDockMode(
bool enabled );
117 void setPreviewBackground(
const QColor &color );
123 void enableDataDefinedAlignment(
bool enable );
128 QButtonGroup *mQuadrantBtnGrp =
nullptr;
130 QButtonGroup *mDirectSymbBtnGrp =
nullptr;
132 QButtonGroup *mUpsidedownBtnGrp =
nullptr;
134 QButtonGroup *mPlacePointBtnGrp =
nullptr;
136 QButtonGroup *mPlaceLineBtnGrp =
nullptr;
138 QButtonGroup *mPlacePolygonBtnGrp =
nullptr;
140 int mMinPixelLimit = 0;
145 void updateLinePlacementOptions();
148 void updatePlacementWidgets();
151 Mode mWidgetMode = Text;
154 std::unique_ptr< QgsPaintEffect > mBufferEffect;
155 std::unique_ptr< QgsPaintEffect > mBackgroundEffect;
157 QFontDatabase mFontDB;
163 bool mLoadSvgParams =
false;
166 void setWidgetMode(
Mode mode );
167 void toggleDDButtons(
bool visible );
168 void blockFontChangeSignals(
bool blk );
169 void populateFontCapitalsComboBox();
170 void populateFontStyleComboBox();
171 void updateFont(
const QFont &font );
172 void connectValueChanged(
const QList<QWidget *> &widgets,
const char *slot );
175 void optionsStackedWidget_CurrentChanged(
int indx );
176 void showBackgroundRadius(
bool show );
177 void showBackgroundPenStyle(
bool show );
178 void mShapeSVGPathLineEdit_textChanged(
const QString &text );
180 void previewScaleChanged(
double scale );
181 void mFontSizeSpinBox_valueChanged(
double d );
182 void mFontCapitalsComboBox_currentIndexChanged(
int index );
183 void mFontFamilyCmbBx_currentFontChanged(
const QFont &f );
184 void mFontStyleComboBox_currentIndexChanged(
const QString &text );
185 void mFontUnderlineBtn_toggled(
bool ckd );
186 void mFontStrikethroughBtn_toggled(
bool ckd );
187 void mFontWordSpacingSpinBox_valueChanged(
double spacing );
188 void mFontLetterSpacingSpinBox_valueChanged(
double spacing );
189 void mFontSizeUnitWidget_changed();
190 void mFontMinPixelSpinBox_valueChanged(
int px );
191 void mFontMaxPixelSpinBox_valueChanged(
int px );
192 void mBufferUnitWidget_changed();
193 void mCoordXDDBtn_activated(
bool active );
194 void mCoordYDDBtn_activated(
bool active );
195 void mShapeTypeCmbBx_currentIndexChanged(
int index );
196 void mShapeRotationCmbBx_currentIndexChanged(
int index );
197 void mShapeSVGParamsBtn_clicked();
198 void mShapeSVGSelectorBtn_clicked();
199 void mPreviewTextEdit_textChanged(
const QString &text );
200 void mPreviewTextBtn_clicked();
201 void mPreviewBackgroundBtn_colorChanged(
const QColor &color );
202 void mDirectSymbLeftToolBtn_clicked();
203 void mDirectSymbRightToolBtn_clicked();
204 void mChkNoObstacle_toggled(
bool active );
205 void chkLineOrientationDependent_toggled(
bool active );
206 void mToolButtonConfigureSubstitutes_clicked();
207 void collapseSample(
bool collapse );
208 void changeTextColor(
const QColor &color );
209 void changeBufferColor(
const QColor &color );
210 void updatePreview();
211 void scrollPreview();
212 void updateSvgWidgets(
const QString &svgPath );
293 #endif //QGSTEXTFORMATWIDGET_H
A dialog for selecting a single character from a single font.
A widget for customizing 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 customizing text formatting settings.
Container for all settings relating to text rendering.
A simple dialog for customizing text formatting settings.