The PartDynamicTextField class This class represents an editable dynamic text field which may be used to compose the drawing of an electrical element within the element editor. The field will remain editable once the element is added onto a diagram.
More...
#include <partdynamictextfield.h>
|
enum | { Type = UserType + 1110
} |
|
The PartDynamicTextField class This class represents an editable dynamic text field which may be used to compose the drawing of an electrical element within the element editor. The field will remain editable once the element is added onto a diagram.
◆ anonymous enum
◆ PartDynamicTextField()
PartDynamicTextField::PartDynamicTextField |
( |
QETElementEditor * |
editor, |
|
|
QGraphicsItem * |
parent = nullptr |
|
) |
| |
◆ alignment()
Qt::Alignment PartDynamicTextField::alignment |
( |
| ) |
const |
◆ alignmentChanged
void PartDynamicTextField::alignmentChanged |
( |
Qt::Alignment |
alignment | ) |
|
|
signal |
◆ color()
QColor PartDynamicTextField::color |
( |
| ) |
const |
◆ colorChanged
void PartDynamicTextField::colorChanged |
( |
QColor |
color | ) |
|
|
signal |
◆ compositeText()
QString PartDynamicTextField::compositeText |
( |
| ) |
const |
◆ compositeTextChanged
void PartDynamicTextField::compositeTextChanged |
( |
QString |
text | ) |
|
|
signal |
◆ elementInfoChanged()
void PartDynamicTextField::elementInfoChanged |
( |
| ) |
|
|
private |
◆ finishAlignment()
void PartDynamicTextField::finishAlignment |
( |
| ) |
|
|
private |
◆ fontChanged
void PartDynamicTextField::fontChanged |
( |
QFont |
font | ) |
|
|
signal |
◆ frame()
bool PartDynamicTextField::frame |
( |
| ) |
const |
◆ frameChanged
void PartDynamicTextField::frameChanged |
( |
bool |
frame | ) |
|
|
signal |
◆ fromTextFieldXml()
void PartDynamicTextField::fromTextFieldXml |
( |
const QDomElement & |
dom_element | ) |
|
◆ fromXml()
void PartDynamicTextField::fromXml |
( |
const QDomElement & |
dom_elmt | ) |
|
|
overridevirtual |
◆ handleUserTransformation()
void PartDynamicTextField::handleUserTransformation |
( |
const QRectF & |
initial_selection_rect, |
|
|
const QRectF & |
new_selection_rect |
|
) |
| |
|
overridevirtual |
◆ infoName()
QString PartDynamicTextField::infoName |
( |
| ) |
const |
◆ infoNameChanged
void PartDynamicTextField::infoNameChanged |
( |
QString |
info | ) |
|
|
signal |
◆ isUseless()
bool PartDynamicTextField::isUseless |
( |
| ) |
const |
|
inlineoverridevirtual |
- Returns
- whether the primitive appears to be useless (e.g. 0-length line) Typically, useless primitives are discarded when saving the element.
Implements CustomElementPart.
◆ itemChange()
QVariant PartDynamicTextField::itemChange |
( |
GraphicsItemChange |
change, |
|
|
const QVariant & |
value |
|
) |
| |
|
overrideprotected |
◆ keepVisualRotation()
bool PartDynamicTextField::keepVisualRotation |
( |
| ) |
const |
◆ keepVisualRotationChanged
void PartDynamicTextField::keepVisualRotationChanged |
( |
bool |
keep | ) |
|
|
signal |
◆ mouseMoveEvent()
void PartDynamicTextField::mouseMoveEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mousePressEvent()
void PartDynamicTextField::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
void PartDynamicTextField::mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ name()
QString PartDynamicTextField::name |
( |
| ) |
const |
|
overridevirtual |
◆ paint()
void PartDynamicTextField::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget |
|
) |
| |
|
overrideprotected |
◆ prepareAlignment()
void PartDynamicTextField::prepareAlignment |
( |
| ) |
|
|
private |
◆ property()
QVariant PartDynamicTextField::property |
( |
const char * |
name | ) |
const |
|
inlineoverridevirtual |
◆ sceneGeometricRect()
QRectF PartDynamicTextField::sceneGeometricRect |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ setAlignment()
void PartDynamicTextField::setAlignment |
( |
Qt::Alignment |
alignment | ) |
|
◆ setColor()
void PartDynamicTextField::setColor |
( |
const QColor & |
color | ) |
|
◆ setCompositeText()
void PartDynamicTextField::setCompositeText |
( |
const QString & |
text | ) |
|
◆ setFont()
void PartDynamicTextField::setFont |
( |
const QFont & |
font | ) |
|
◆ setFrame()
void PartDynamicTextField::setFrame |
( |
bool |
frame | ) |
|
◆ setInfoName()
void PartDynamicTextField::setInfoName |
( |
const QString & |
info_name | ) |
|
◆ setKeepVisualRotation()
void PartDynamicTextField::setKeepVisualRotation |
( |
const bool & |
keep | ) |
|
◆ setPlainText()
void PartDynamicTextField::setPlainText |
( |
const QString & |
text | ) |
|
◆ setProperty()
void PartDynamicTextField::setProperty |
( |
const char * |
name, |
|
|
const QVariant & |
value |
|
) |
| |
|
inlineoverridevirtual |
◆ setText()
void PartDynamicTextField::setText |
( |
const QString & |
text | ) |
|
◆ setTextFrom()
◆ setTextWidth()
void PartDynamicTextField::setTextWidth |
( |
qreal |
width | ) |
|
◆ startUserTransformation()
void PartDynamicTextField::startUserTransformation |
( |
const QRectF & |
initial_selection_rect | ) |
|
|
overridevirtual |
◆ taggChanged
void PartDynamicTextField::taggChanged |
( |
QString |
tagg | ) |
|
|
signal |
◆ text()
QString PartDynamicTextField::text |
( |
| ) |
const |
◆ textChanged
void PartDynamicTextField::textChanged |
( |
QString |
text | ) |
|
|
signal |
◆ textFrom()
◆ textFromChanged
◆ textWidthChanged
void PartDynamicTextField::textWidthChanged |
( |
qreal |
width | ) |
|
|
signal |
◆ toXml()
const QDomElement PartDynamicTextField::toXml |
( |
QDomDocument & |
dom_doc | ) |
const |
|
overridevirtual |
◆ type()
int PartDynamicTextField::type |
( |
| ) |
const |
|
inlineoverride |
◆ xmlName()
QString PartDynamicTextField::xmlName |
( |
| ) |
const |
|
overridevirtual |
- Returns
- the name that will be used as XML tag when exporting the primitive
Implements CustomElementPart.
◆ xmlTaggName()
static QString PartDynamicTextField::xmlTaggName |
( |
| ) |
|
|
inlinestatic |
◆ m_alignment
Qt::Alignment PartDynamicTextField::m_alignment = Qt::AlignTop|Qt::AlignLeft |
|
private |
◆ m_alignment_rect
QRectF PartDynamicTextField::m_alignment_rect |
|
private |
◆ m_block_alignment
bool PartDynamicTextField::m_block_alignment = false |
|
private |
◆ m_composite_text
QString PartDynamicTextField::m_composite_text |
|
private |
◆ m_first_add
bool PartDynamicTextField::m_first_add = true |
|
private |
◆ m_frame
bool PartDynamicTextField::m_frame = false |
|
private |
◆ m_info_name
QString PartDynamicTextField::m_info_name |
|
private |
◆ m_keep_visual_rotation
bool PartDynamicTextField::m_keep_visual_rotation = false |
|
private |
◆ m_origine_pos
QPointF PartDynamicTextField::m_origine_pos |
|
private |
◆ m_saved_point
QPointF PartDynamicTextField::m_saved_point |
|
private |
◆ m_text
QString PartDynamicTextField::m_text |
|
private |
◆ m_text_from
◆ m_text_width
qreal PartDynamicTextField::m_text_width = -1 |
|
private |
◆ m_uuid
QUuid PartDynamicTextField::m_uuid |
|
private |
◆ alignment
Qt::Alignment PartDynamicTextField::alignment |
|
readwrite |
◆ color
QColor PartDynamicTextField::color |
|
readwrite |
◆ compositeText
QString PartDynamicTextField::compositeText |
|
readwrite |
◆ font
QFont PartDynamicTextField::font |
|
readwrite |
◆ frame
bool PartDynamicTextField::frame |
|
readwrite |
◆ infoName
QString PartDynamicTextField::infoName |
|
readwrite |
◆ keepVisualRotation
bool PartDynamicTextField::keepVisualRotation |
|
readwrite |
◆ text
QString PartDynamicTextField::text |
|
readwrite |
◆ textFrom
◆ textWidth
qreal PartDynamicTextField::textWidth |
|
readwrite |
The documentation for this class was generated from the following files: