![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
A reusable font property widget matching ParaView's font editor style. More...
#include <ecvFontPropertyWidget.h>


Classes | |
| struct | FontProperties |
| Font property structure for convenience. More... | |
Signals | |
| void | fontPropertiesChanged () |
| Emitted when any font property changes. More... | |
| void | fontFamilyChanged (const QString &family) |
| Individual property change signals. More... | |
| void | fontFamilyIndexChanged (int index) |
| void | fontSizeChanged (int size) |
| void | fontColorChanged (const QColor &color) |
| void | fontOpacityChanged (double opacity) |
| void | boldChanged (bool bold) |
| void | italicChanged (bool italic) |
| void | shadowChanged (bool shadow) |
| void | horizontalJustificationChanged (const QString &justification) |
| void | verticalJustificationChanged (const QString &justification) |
Public Member Functions | |
| ecvFontPropertyWidget (QWidget *parent=nullptr) | |
| ~ecvFontPropertyWidget () override | |
| void | setColorPickerVisible (bool visible) |
| Show/hide the color picker button. More... | |
| void | setControlsEnabled (bool enabled) |
| Enable/disable all controls. More... | |
| FontProperties | fontProperties () const |
| void | setFontProperties (const FontProperties &props) |
| QString | fontFamily () const |
| int | fontFamilyIndex () const |
| int | fontSize () const |
| QColor | fontColor () const |
| double | fontOpacity () const |
| bool | isBold () const |
| bool | isItalic () const |
| bool | hasShadow () const |
| QString | horizontalJustification () const |
| QString | verticalJustification () const |
| void | setFontFamily (const QString &family, bool blockSignal=false) |
| void | setFontFamilyIndex (int index, bool blockSignal=false) |
| void | setFontSize (int size, bool blockSignal=false) |
| void | setFontColor (const QColor &color, bool blockSignal=false) |
| void | setFontOpacity (double opacity, bool blockSignal=false) |
| void | setBold (bool bold, bool blockSignal=false) |
| void | setItalic (bool italic, bool blockSignal=false) |
| void | setShadow (bool shadow, bool blockSignal=false) |
| void | setHorizontalJustification (const QString &justification, bool blockSignal=false) |
| void | setVerticalJustification (const QString &justification, bool blockSignal=false) |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *event) override |
A reusable font property widget matching ParaView's font editor style.
This widget provides controls for:
The widget can be used with or without color picker. When color picker is hidden, only font styling properties are shown.
Usage:
Definition at line 48 of file ecvFontPropertyWidget.h.
|
explicit |
Definition at line 53 of file ecvFontPropertyWidget.cpp.
|
override |
Definition at line 115 of file ecvFontPropertyWidget.cpp.
|
signal |
| QColor ecvFontPropertyWidget::fontColor | ( | ) | const |
Definition at line 181 of file ecvFontPropertyWidget.cpp.
Referenced by fontProperties().
|
signal |
Referenced by setFontColor().
| QString ecvFontPropertyWidget::fontFamily | ( | ) | const |
Individual property getters
Definition at line 168 of file ecvFontPropertyWidget.cpp.
Referenced by fontProperties().
|
signal |
Individual property change signals.
| int ecvFontPropertyWidget::fontFamilyIndex | ( | ) | const |
Definition at line 173 of file ecvFontPropertyWidget.cpp.
|
signal |
| double ecvFontPropertyWidget::fontOpacity | ( | ) | const |
Definition at line 183 of file ecvFontPropertyWidget.cpp.
Referenced by fontProperties().
|
signal |
| ecvFontPropertyWidget::FontProperties ecvFontPropertyWidget::fontProperties | ( | ) | const |
Get/Set all font properties at once
Definition at line 136 of file ecvFontPropertyWidget.cpp.
References ecvFontPropertyWidget::FontProperties::bold, ecvFontPropertyWidget::FontProperties::color, ecvFontPropertyWidget::FontProperties::family, fontColor(), fontFamily(), fontOpacity(), fontSize(), hasShadow(), ecvFontPropertyWidget::FontProperties::horizontalJustification, horizontalJustification(), isBold(), isItalic(), ecvFontPropertyWidget::FontProperties::italic, ecvFontPropertyWidget::FontProperties::opacity, ecvFontPropertyWidget::FontProperties::shadow, ecvFontPropertyWidget::FontProperties::size, ecvFontPropertyWidget::FontProperties::verticalJustification, and verticalJustification().
Referenced by ecvMeasurementTool::applyFontToTools().
|
signal |
Emitted when any font property changes.
Referenced by ecvMeasurementTool::ecvMeasurementTool(), setFontColor(), setFontProperties(), setHorizontalJustification(), and setVerticalJustification().
| int ecvFontPropertyWidget::fontSize | ( | ) | const |
Definition at line 177 of file ecvFontPropertyWidget.cpp.
Referenced by fontProperties().
|
signal |
| bool ecvFontPropertyWidget::hasShadow | ( | ) | const |
Definition at line 195 of file ecvFontPropertyWidget.cpp.
Referenced by fontProperties().
| QString ecvFontPropertyWidget::horizontalJustification | ( | ) | const |
Definition at line 199 of file ecvFontPropertyWidget.cpp.
Referenced by fontProperties().
|
signal |
Referenced by setHorizontalJustification().
| bool ecvFontPropertyWidget::isBold | ( | ) | const |
Definition at line 187 of file ecvFontPropertyWidget.cpp.
Referenced by fontProperties().
| bool ecvFontPropertyWidget::isItalic | ( | ) | const |
Definition at line 191 of file ecvFontPropertyWidget.cpp.
Referenced by fontProperties().
|
signal |
|
overrideprotected |
Definition at line 407 of file ecvFontPropertyWidget.cpp.
References event.
| void ecvFontPropertyWidget::setBold | ( | bool | bold, |
| bool | blockSignal = false |
||
| ) |
Definition at line 277 of file ecvFontPropertyWidget.cpp.
Referenced by setFontProperties().
| void ecvFontPropertyWidget::setColorPickerVisible | ( | bool | visible | ) |
Show/hide the color picker button.
Definition at line 339 of file ecvFontPropertyWidget.cpp.
Referenced by ecvMeasurementTool::ecvMeasurementTool().
| void ecvFontPropertyWidget::setControlsEnabled | ( | bool | enabled | ) |
Enable/disable all controls.
Definition at line 345 of file ecvFontPropertyWidget.cpp.
| void ecvFontPropertyWidget::setFontColor | ( | const QColor & | color, |
| bool | blockSignal = false |
||
| ) |
Definition at line 249 of file ecvFontPropertyWidget.cpp.
References color, fontColorChanged(), and fontPropertiesChanged().
Referenced by setFontProperties().
| void ecvFontPropertyWidget::setFontFamily | ( | const QString & | family, |
| bool | blockSignal = false |
||
| ) |
Individual property setters (with signal blocking option)
Definition at line 207 of file ecvFontPropertyWidget.cpp.
Referenced by setFontProperties().
| void ecvFontPropertyWidget::setFontFamilyIndex | ( | int | index, |
| bool | blockSignal = false |
||
| ) |
Definition at line 223 of file ecvFontPropertyWidget.cpp.
| void ecvFontPropertyWidget::setFontOpacity | ( | double | opacity, |
| bool | blockSignal = false |
||
| ) |
Definition at line 265 of file ecvFontPropertyWidget.cpp.
Referenced by setFontProperties().
| void ecvFontPropertyWidget::setFontProperties | ( | const FontProperties & | props | ) |
Definition at line 151 of file ecvFontPropertyWidget.cpp.
References ecvFontPropertyWidget::FontProperties::bold, ecvFontPropertyWidget::FontProperties::color, ecvFontPropertyWidget::FontProperties::family, fontPropertiesChanged(), ecvFontPropertyWidget::FontProperties::horizontalJustification, ecvFontPropertyWidget::FontProperties::italic, ecvFontPropertyWidget::FontProperties::opacity, setBold(), setFontColor(), setFontFamily(), setFontOpacity(), setFontSize(), setHorizontalJustification(), setItalic(), setShadow(), setVerticalJustification(), ecvFontPropertyWidget::FontProperties::shadow, ecvFontPropertyWidget::FontProperties::size, and ecvFontPropertyWidget::FontProperties::verticalJustification.
Referenced by cvSelectionLabelPropertiesDialog::setProperties(), and ecvMeasurementTool::updateUIFromTool().
| void ecvFontPropertyWidget::setFontSize | ( | int | size, |
| bool | blockSignal = false |
||
| ) |
Definition at line 237 of file ecvFontPropertyWidget.cpp.
References size.
Referenced by setFontProperties().
| void ecvFontPropertyWidget::setHorizontalJustification | ( | const QString & | justification, |
| bool | blockSignal = false |
||
| ) |
Definition at line 313 of file ecvFontPropertyWidget.cpp.
References fontPropertiesChanged(), and horizontalJustificationChanged().
Referenced by setFontProperties().
| void ecvFontPropertyWidget::setItalic | ( | bool | italic, |
| bool | blockSignal = false |
||
| ) |
Definition at line 289 of file ecvFontPropertyWidget.cpp.
Referenced by setFontProperties().
| void ecvFontPropertyWidget::setShadow | ( | bool | shadow, |
| bool | blockSignal = false |
||
| ) |
Definition at line 301 of file ecvFontPropertyWidget.cpp.
Referenced by setFontProperties().
| void ecvFontPropertyWidget::setVerticalJustification | ( | const QString & | justification, |
| bool | blockSignal = false |
||
| ) |
Definition at line 326 of file ecvFontPropertyWidget.cpp.
References fontPropertiesChanged(), and verticalJustificationChanged().
Referenced by setFontProperties().
|
signal |
| QString ecvFontPropertyWidget::verticalJustification | ( | ) | const |
Definition at line 203 of file ecvFontPropertyWidget.cpp.
Referenced by fontProperties().
|
signal |
Referenced by setVerticalJustification().