18 #ifndef DYNAMICELEMENTTEXTITEM_H 19 #define DYNAMICELEMENTTEXTITEM_H 60 enum {
Type = UserType + 1010};
81 QDomElement
toXml(QDomDocument &dom_doc)
const override;
82 void fromXml(
const QDomElement &dom_elmt)
override;
93 static QString
xmlTaggName() {
return QString(
"dynamic_elmt_text");}
112 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget)
override;
113 QVariant
itemChange(GraphicsItemChange change,
const QVariant &value)
override;
160 #endif // DYNAMICELEMENTTEXTITEM_H The CrossRefItem class This clas provide an item, for show the cross reference, like the contacts lin...
void refreshLabelConnection()
DynamicElementTextItem::refreshLabelConnection Refresh the connection of this text when the source of...
bool sceneEventFilter(QGraphicsItem *watched, QEvent *event) override
ElementTextItemGroup * parentGroup() const
DynamicElementTextItem::parentGroup.
QPointer< Conductor > m_watched_conductor
The CompositeTextEditDialog class CompositeTextEditDialog display a dialog use to write the complex t...
The DynamicElementTextItem class This class provide a simple text field of element who can be added o...
QMetaObject::Connection m_report_formula_con
QList< QMetaObject::Connection > m_formula_connection
void textFromChanged(DynamicElementTextItem::TextFrom text_from)
void setPotentialConductor()
DynamicElementTextItem::setPotentialConductor This function is only used when the parent element of t...
void updateReportFormulaConnection()
bool m_first_scene_change
void conductorWasAdded(Conductor *conductor)
DynamicElementTextItem::conductorWasAdded Function only use when parent element is a folio report...
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override
DynamicElementTextItem::hoverLeaveEvent.
void setCompositeText(const QString &text)
DynamicElementTextItem::setCompositeText Set the composite text of this text item to ...
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
DynamicElementTextItem::mouseMoveEvent.
static QString xmlTaggName()
QGraphicsTextItem * m_slave_Xref_item
void setPlainText(const QString &text)
void reportFormulaChanged()
DynamicElementTextItem::reportFormulaChanged The report formula use in the project was changed...
QVariant itemChange(GraphicsItemChange change, const QVariant &value) override
Element * elementUseForInfo() const
DynamicElementTextItem::elementUseForInfo.
QDomElement toXml(QDomDocument &dom_doc) const override
DynamicElementTextItem::toXml Export this text to xml.
void frameChanged(bool frame)
void setFrame(const bool frame)
void reportChanged()
DynamicElementTextItem::reportChanged This function is only use when parent element of this text is a...
void masterChanged()
DynamicElementTextItem::masterChanged This function is only use when the parent element is a slave...
~DynamicElementTextItem() override
void updateXref()
DynamicElementTextItem::updateXref Create or delete the Xref according to the current properties of t...
void updateReportText()
DynamicElementTextItem::updateReportText This function is only use when this text is owned by a repor...
void conductorWasRemoved(Conductor *conductor)
DynamicElementTextItem::conductorWasRemoved Function only use when parent element is a folio report...
QPointer< Element > m_parent_element
int type() const override
QPointer< Element > m_other_report
void conductorPropertiesChanged()
DynamicElementTextItem::conductorPropertiesChanged This function is only used when the parent element...
void elementInfoChanged()
void setInfoName(const QString &info_name)
DynamicElementTextItem::setInfoName Set the information name of the parent element.
void zoomToLinkedElement()
DynamicElementTextItem::zoomToLinkedElement If the parent element is a folio report or a slave elemen...
QString compositeText() const
CrossRefItem * m_Xref_item
static QMetaEnum textFromMetaEnum()
DynamicElementTextItem::textFromMetaEnum.
QPointer< Element > m_master_element
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
DynamicElementTextItem::mouseDoubleClickEvent Reimplemented functions, for add extra feature when thi...
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
DynamicElementTextItem::mouseReleaseEvent.
QPointF m_initial_position
void removeConnectionForReportFormula(const QString &formula)
Element * parentElement() const
DynamicElementTextItem::ParentElement.
The ElementTextItemGroup class This class represent a group of element text Texts in the group can be...
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
DynamicElementTextItem::mousePressEvent.
void setConnectionForReportFormula(const QString &formula)
void textWidthChanged(qreal width)
DynamicElementTextItem::TextFrom textFrom() const
void textChanged(QString text)
void setTextFrom(DynamicElementTextItem::TextFrom text_from)
DynamicElementTextItem::setTextFrom Set the final text is created from.
void infoNameChanged(QString info)
QString reportReplacedCompositeText() const
DynamicElementTextItem::reportReplacedCompositeText This function is only used when the parent elemen...
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override
DynamicElementTextItem::hoverEnterEvent If the parent element of this text is a folio report or a sla...
void compositeTextChanged(QString text)
QList< QMetaObject::Connection > m_update_slave_Xref_connection
void fromXml(const QDomElement &dom_elmt) override
DynamicElementTextItem::fromXml Import this text from xml.
DynamicElementTextItem::TextFrom m_text_from
void setupFormulaConnection()
DynamicElementTextItem::setupFormulaConnection Setup the required connection for the formula of the l...
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
void setText(const QString &text)
DynamicElementTextItem::setText Set the text of this text.
void setTextWidth(qreal width)
void updateLabel()
DynamicElementTextItem::updateLabel Update the displayed text, when this dynamic text is based on the...
void clearFormulaConnection()