12 #include <QtCore/QObject>
13 #include <QtWidgets/QDialog>
14 #include <QtGui/QColor>
15 #include <QtGui/QFont>
56 QString cellLabelFontFamily =
"Arial";
57 int cellLabelFontSize = 18;
58 QColor cellLabelColor = QColor(0, 255, 0);
59 bool cellLabelBold =
false;
60 bool cellLabelItalic =
false;
61 bool cellLabelShadow =
false;
62 double cellLabelOpacity = 1.0;
63 QString cellLabelHorizontalJustification =
65 QString cellLabelVerticalJustification =
70 QString pointLabelFontFamily =
"Arial";
71 int pointLabelFontSize = 18;
72 QColor pointLabelColor = QColor(255, 255, 0);
73 bool pointLabelBold =
false;
74 bool pointLabelItalic =
false;
75 bool pointLabelShadow =
false;
76 double pointLabelOpacity = 1.0;
77 QString pointLabelHorizontalJustification =
79 QString pointLabelVerticalJustification =
84 bool showTooltips =
true;
85 int maxTooltipAttributes = 15;
89 bool isInteractive =
false);
109 void onApplyClicked();
110 void onResetClicked();
111 void onOpacitySliderChanged(
int value);
112 void onCellFontPropertiesChanged();
113 void onPointFontPropertiesChanged();
118 void updatePropertiesFromWidgets();
124 static void fontPropertiesToLabelProperties(
130 bool m_isInteractive;
135 QSlider* m_opacitySlider =
nullptr;
136 QDoubleSpinBox* m_opacitySpin =
nullptr;
137 QSpinBox* m_pointSizeSpin =
nullptr;
138 QSpinBox* m_lineWidthSpin =
nullptr;
142 QLineEdit* m_cellFormatEdit =
nullptr;
146 QLineEdit* m_pointFormatEdit =
nullptr;
149 QCheckBox* m_showTooltipsCheckBox =
nullptr;
150 QSpinBox* m_maxTooltipAttributesSpin =
nullptr;
153 QToolButton* m_refreshButton =
nullptr;
154 QToolButton* m_saveButton =
nullptr;
155 QPushButton* m_applyButton =
nullptr;
156 QPushButton* m_resetButton =
nullptr;
157 QPushButton* m_cancelButton =
nullptr;
158 QPushButton* m_okButton =
nullptr;
Dialog for editing selection label properties.
void propertiesApplied(const LabelProperties &props)
Emitted when Apply is clicked.
#define QPCL_ENGINE_LIB_API
Label properties structure.