QElectroTech  0.8-dev
Public Types | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Properties | Private Member Functions | Private Attributes | Friends | List of all members
DynamicElementTextItem Class Reference

The DynamicElementTextItem class This class provide a simple text field of element who can be added or removed directly from the diagram editor. This text is created to compensate a big lack of the ElementTextItem : ElementTextItem can't be added or removed directly in the diagram editor. More...

#include <dynamicelementtextitem.h>

Inheritance diagram for DynamicElementTextItem:
Inheritance graph
Collaboration diagram for DynamicElementTextItem:
Collaboration graph

Public Types

enum  TextFrom { UserText, ElementInfo, CompositeText }
 
enum  { Type = UserType + 1010 }
 
- Public Types inherited from DiagramTextItem
enum  { Type = UserType + 1004 }
 

Signals

void textChanged (QString text)
 
void textFromChanged (DynamicElementTextItem::TextFrom text_from)
 
void infoNameChanged (QString info)
 
void compositeTextChanged (QString text)
 
void frameChanged (bool frame)
 
void plainTextChanged ()
 
void textWidthChanged (qreal width)
 
- Signals inherited from DiagramTextItem
void colorChanged (QColor color)
 
void alignmentChanged (Qt::Alignment alignment)
 
void textEdited (const QString &old_str, const QString &new_str)
 
void fontChanged (QFont font)
 

Public Member Functions

int type () const override
 
 DynamicElementTextItem (Element *parent_element)
 DynamicElementTextItem::DynamicElementTextItem Constructor. More...
 
 ~DynamicElementTextItem () override
 
QDomElement toXml (QDomDocument &dom_doc) const override
 DynamicElementTextItem::toXml Export this text to xml. More...
 
void fromXml (const QDomElement &dom_elmt) override
 DynamicElementTextItem::fromXml Import this text from xml. More...
 
ElementparentElement () const
 DynamicElementTextItem::ParentElement. More...
 
ElementTextItemGroupparentGroup () const
 DynamicElementTextItem::parentGroup. More...
 
ElementelementUseForInfo () const
 DynamicElementTextItem::elementUseForInfo. More...
 
void refreshLabelConnection ()
 DynamicElementTextItem::refreshLabelConnection Refresh the connection of this text when the source of text is label, or composite text, with a variable %{label}. More...
 
DynamicElementTextItem::TextFrom textFrom () const
 DynamicElementTextItem::textFrom. More...
 
void setTextFrom (DynamicElementTextItem::TextFrom text_from)
 DynamicElementTextItem::setTextFrom Set the final text is created from. More...
 
QString text () const
 DynamicElementTextItem::text. More...
 
void setText (const QString &text)
 DynamicElementTextItem::setText Set the text of this text. More...
 
void setInfoName (const QString &info_name)
 DynamicElementTextItem::setInfoName Set the information name of the parent element. More...
 
QString infoName () const
 DynamicElementTextItem::infoName. More...
 
void setCompositeText (const QString &text)
 DynamicElementTextItem::setCompositeText Set the composite text of this text item to text. More...
 
QString compositeText () const
 DynamicElementTextItem::compositeText. More...
 
void setFrame (const bool frame)
 
bool frame () const
 
QUuid uuid () const
 
void updateXref ()
 DynamicElementTextItem::updateXref Create or delete the Xref according to the current properties of the project. More...
 
void setPlainText (const QString &text)
 
void setTextWidth (qreal width)
 
void setXref_item (Qt::AlignmentFlag m_exHrefPos)
 
- Public Member Functions inherited from DiagramTextItem
 DiagramTextItem (QGraphicsItem *=nullptr)
 DiagramTextItem::DiagramTextItem. More...
 
 DiagramTextItem (const QString &, QGraphicsItem *=nullptr)
 DiagramTextItem::DiagramTextItem. More...
 
int type () const override
 
Diagramdiagram () const
 DiagramTextItem::diagram. More...
 
void edit ()
 Edit the text with HtmlEditor. More...
 
QPointF mapMovementToScene (const QPointF &) const
 
QPointF mapMovementFromScene (const QPointF &) const
 
QPointF mapMovementToParent (const QPointF &) const
 
QPointF mapMovementFromParent (const QPointF &) const
 
void setFont (const QFont &font)
 
void setColor (const QColor &color)
 
QColor color () const
 
void setNoEditable (bool e=true)
 
void setAlignment (const Qt::Alignment &alignment)
 
Qt::Alignment alignment () const
 
QRectF frameRect () const
 DiagramTextItem::frameRect. More...
 
void setHtml (const QString &text)
 
void setPlainText (const QString &text)
 
bool isHtml () const
 

Static Public Member Functions

static QMetaEnum textFromMetaEnum ()
 DynamicElementTextItem::textFromMetaEnum. More...
 
static QString xmlTagName ()
 

Protected Member Functions

void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 DynamicElementTextItem::mousePressEvent. More...
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 DynamicElementTextItem::mouseMoveEvent. More...
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 DynamicElementTextItem::mouseReleaseEvent. More...
 
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override
 DynamicElementTextItem::mouseDoubleClickEvent Reimplemented functions, for add extra feature when this text is owned by a slave. In this case if the parent slave element is linked to a master, and this text display the label of the master (both if the 'text from' is 'element info' or 'composite text') the QGraphicsView go to master and select it. More...
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 DynamicElementTextItem::hoverEnterEvent If the parent element of this text is a folio report or a slave element, the element is linked and the text display the variable "label" we set the text blue for signal the user that the text act like a link when we double click on. More...
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 DynamicElementTextItem::hoverLeaveEvent. More...
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 
bool sceneEventFilter (QGraphicsItem *watched, QEvent *event) override
 
- Protected Member Functions inherited from DiagramTextItem
void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *) override
 DiagramTextItem::paint Draw this text field. This method draw the text by calling QGraphicsTextItem::paint. If text is hovered, this method draw the bounding rect in grey. More...
 
void focusInEvent (QFocusEvent *) override
 DiagramTextItem::focusInEvent. More...
 
void focusOutEvent (QFocusEvent *) override
 DiagramTextItem::focusOutEvent. More...
 
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 DiagramTextItem::mousePressEvent. More...
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 DiagramTextItem::mouseMoveEvent. More...
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 DiagramTextItem::mouseReleaseEvent. More...
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *) override
 
void hoverMoveEvent (QGraphicsSceneHoverEvent *) override
 
virtual void applyRotation (const qreal &)
 
void prepareAlignment ()
 DiagramTextItem::prepareAlignment Call this function before changing the bounding rect of this text. More...
 
void finishAlignment ()
 DiagramTextItem::finishAlignment Call this function after changing the bouding rect of this text to set the position of this text according to the alignment property. More...
 

Properties

QString text
 
TextFrom textFrom
 
QString infoName
 
QString compositeText
 
bool frame
 
qreal textWidth
 
- Properties inherited from DiagramTextItem
QColor color
 
Qt::Alignment alignment
 
QString plainText
 
QFont font
 

Private Member Functions

 DynamicElementTextItem ()
 
 DynamicElementTextItem (const DynamicElementTextItem &)
 
void elementInfoChanged ()
 
void masterChanged ()
 DynamicElementTextItem::masterChanged This function is only use when the parent element is a slave. Call when the master element linked to the parent slave element of this text change. More...
 
void reportChanged ()
 DynamicElementTextItem::reportChanged This function is only use when parent element of this text is a folio report The linked report of the parent element was changed. More...
 
void reportFormulaChanged ()
 DynamicElementTextItem::reportFormulaChanged The report formula use in the project was changed. More...
 
void setConnectionForReportFormula (const QString &formula)
 
void removeConnectionForReportFormula (const QString &formula)
 
void setupFormulaConnection ()
 DynamicElementTextItem::setupFormulaConnection Setup the required connection for the formula of the label. More...
 
void clearFormulaConnection ()
 
void updateReportFormulaConnection ()
 
void updateReportText ()
 DynamicElementTextItem::updateReportText This function is only use when this text is owned by a report, and this text have for info the Label. More...
 
void updateLabel ()
 DynamicElementTextItem::updateLabel Update the displayed text, when this dynamic text is based on the label of the parent element. This function is notably use when the label itself is based from a formula. If this dynamic text isn't based on label, this function do nothing. More...
 
void conductorWasAdded (Conductor *conductor)
 DynamicElementTextItem::conductorWasAdded Function only use when parent element is a folio report. More...
 
void conductorWasRemoved (Conductor *conductor)
 DynamicElementTextItem::conductorWasRemoved Function only use when parent element is a folio report. More...
 
void setPotentialConductor ()
 DynamicElementTextItem::setPotentialConductor This function is only used when the parent element of this text is a report element Get a conductor in the potential of the parent report. More...
 
void conductorPropertiesChanged ()
 DynamicElementTextItem::conductorPropertiesChanged This function is only used when the parent element of this text is a report element. More...
 
QString reportReplacedCompositeText () const
 DynamicElementTextItem::reportReplacedCompositeText This function is only used when the parent element of this text is a report element. More...
 
void zoomToLinkedElement ()
 DynamicElementTextItem::zoomToLinkedElement If the parent element is a folio report or a slave element, and is linked, zoom to the linked element. More...
 

Private Attributes

QPointer< Elementm_parent_element
 
QPointer< Elementm_master_element
 
QPointer< Elementm_other_report
 
QPointer< Conductorm_watched_conductor
 
QString m_text
 
QString m_info_name
 
QString m_composite_text
 
QString m_report_formula
 
QString m_F_str
 
DynamicElementTextItem::TextFrom m_text_from = UserText
 
QUuid m_uuid
 
QMetaObject::Connection m_report_formula_con
 
QList< QMetaObject::Connection > m_formula_connection
 
QList< QMetaObject::Connection > m_update_slave_Xref_connection
 
QColor m_user_color
 
bool m_frame = false
 
bool m_first_scene_change = true
 
CrossRefItemm_Xref_item = nullptr
 
QGraphicsTextItem * m_slave_Xref_item = nullptr
 
qreal m_text_width = -1
 
QPointF m_initial_position
 

Friends

class DynamicTextItemDelegate
 
class CompositeTextEditDialog
 
class Element
 

Additional Inherited Members

- Public Attributes inherited from DiagramTextItem
bool m_block_alignment = false
 
- Protected Attributes inherited from DiagramTextItem
bool m_mouse_hover = false
 
bool m_first_move = true
 
bool m_no_editable
 
bool m_is_html = false
 
QString m_previous_html_text
 
QString m_previous_text
 
QPointF m_mouse_to_origin_movement
 

Detailed Description

The DynamicElementTextItem class This class provide a simple text field of element who can be added or removed directly from the diagram editor. This text is created to compensate a big lack of the ElementTextItem : ElementTextItem can't be added or removed directly in the diagram editor.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

◆ TextFrom

Enumerator
UserText 
ElementInfo 
CompositeText 

Constructor & Destructor Documentation

◆ DynamicElementTextItem() [1/3]

DynamicElementTextItem::DynamicElementTextItem ( Element parent_element)

DynamicElementTextItem::DynamicElementTextItem Constructor.

Parameters
parent_element
Here is the call graph for this function:

◆ ~DynamicElementTextItem()

DynamicElementTextItem::~DynamicElementTextItem ( )
override

◆ DynamicElementTextItem() [2/3]

DynamicElementTextItem::DynamicElementTextItem ( )
private

◆ DynamicElementTextItem() [3/3]

DynamicElementTextItem::DynamicElementTextItem ( const DynamicElementTextItem )
private

Member Function Documentation

◆ clearFormulaConnection()

void DynamicElementTextItem::clearFormulaConnection ( )
private
Here is the caller graph for this function:

◆ compositeText()

QString DynamicElementTextItem::compositeText ( ) const

◆ compositeTextChanged

void DynamicElementTextItem::compositeTextChanged ( QString  text)
signal
Here is the caller graph for this function:

◆ conductorPropertiesChanged()

void DynamicElementTextItem::conductorPropertiesChanged ( )
private

DynamicElementTextItem::conductorPropertiesChanged This function is only used when the parent element of this text is a report element.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ conductorWasAdded()

void DynamicElementTextItem::conductorWasAdded ( Conductor conductor)
private

DynamicElementTextItem::conductorWasAdded Function only use when parent element is a folio report.

Parameters
conductor
Here is the call graph for this function:
Here is the caller graph for this function:

◆ conductorWasRemoved()

void DynamicElementTextItem::conductorWasRemoved ( Conductor conductor)
private

DynamicElementTextItem::conductorWasRemoved Function only use when parent element is a folio report.

Parameters
conductor
Here is the call graph for this function:
Here is the caller graph for this function:

◆ elementInfoChanged()

void DynamicElementTextItem::elementInfoChanged ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ elementUseForInfo()

Element * DynamicElementTextItem::elementUseForInfo ( ) const

DynamicElementTextItem::elementUseForInfo.

Returns
a pointer to the element we must use for the variable information. If this text is owned by a simple element, the simple element is returned, this is the same element returned by the function parentElement(). If this text is owned by a master element, the master element is returned, this is the same element returned by the function parentElement(). If this text is owned by a report element, the report element is returned, this is the same element returned by the function parentElement(). If this text is owned by a terminal element, the terminal element is returned, this is the same element returned by the function parentElement(). If this text is owned by a slave element, we return the master element set as master of the parent slave element, if the parent slave is not linked to a master, this function return a nullptr. If this text have no parent element, return nullptr
Here is the call graph for this function:
Here is the caller graph for this function:

◆ frame()

bool DynamicElementTextItem::frame ( ) const

◆ frameChanged

void DynamicElementTextItem::frameChanged ( bool  frame)
signal
Here is the caller graph for this function:

◆ fromXml()

void DynamicElementTextItem::fromXml ( const QDomElement &  dom_elmt)
overridevirtual

DynamicElementTextItem::fromXml Import this text from xml.

Parameters
dom_elmt

Implements DiagramTextItem.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hoverEnterEvent()

void DynamicElementTextItem::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotected

DynamicElementTextItem::hoverEnterEvent If the parent element of this text is a folio report or a slave element, the element is linked and the text display the variable "label" we set the text blue for signal the user that the text act like a link when we double click on.

Parameters
event
Here is the call graph for this function:

◆ hoverLeaveEvent()

void DynamicElementTextItem::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotected

DynamicElementTextItem::hoverLeaveEvent.

Parameters
event
Here is the call graph for this function:

◆ infoName()

QString DynamicElementTextItem::infoName ( ) const

DynamicElementTextItem::infoName.

Returns
the info name of this text

◆ infoNameChanged

void DynamicElementTextItem::infoNameChanged ( QString  info)
signal
Here is the caller graph for this function:

◆ itemChange()

QVariant DynamicElementTextItem::itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
overrideprotected
Here is the call graph for this function:

◆ masterChanged()

void DynamicElementTextItem::masterChanged ( )
private

DynamicElementTextItem::masterChanged This function is only use when the parent element is a slave. Call when the master element linked to the parent slave element of this text change.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mouseDoubleClickEvent()

void DynamicElementTextItem::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

DynamicElementTextItem::mouseDoubleClickEvent Reimplemented functions, for add extra feature when this text is owned by a slave. In this case if the parent slave element is linked to a master, and this text display the label of the master (both if the 'text from' is 'element info' or 'composite text') the QGraphicsView go to master and select it.

Parameters
event
Here is the call graph for this function:

◆ mouseMoveEvent()

void DynamicElementTextItem::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

DynamicElementTextItem::mouseMoveEvent.

Parameters
event
Here is the call graph for this function:

◆ mousePressEvent()

void DynamicElementTextItem::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

DynamicElementTextItem::mousePressEvent.

Parameters
event
Here is the call graph for this function:

◆ mouseReleaseEvent()

void DynamicElementTextItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

◆ paint()

void DynamicElementTextItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
overrideprotected
Here is the call graph for this function:

◆ parentElement()

Element * DynamicElementTextItem::parentElement ( ) const

DynamicElementTextItem::ParentElement.

Returns
a pointer to the parent element. Note the pointer can be null. Note that the text can return a parent element, even if the text belong to a group of this same element.
Here is the caller graph for this function:

◆ parentGroup()

ElementTextItemGroup * DynamicElementTextItem::parentGroup ( ) const

DynamicElementTextItem::parentGroup.

Returns
The group where this text belong, if this item is note in a group, return nullptr.
Here is the caller graph for this function:

◆ plainTextChanged

void DynamicElementTextItem::plainTextChanged ( )
signal
Here is the caller graph for this function:

◆ refreshLabelConnection()

void DynamicElementTextItem::refreshLabelConnection ( )

DynamicElementTextItem::refreshLabelConnection Refresh the connection of this text when the source of text is label, or composite text, with a variable %{label}.

Here is the call graph for this function:

◆ removeConnectionForReportFormula()

void DynamicElementTextItem::removeConnectionForReportFormula ( const QString &  formula)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reportChanged()

void DynamicElementTextItem::reportChanged ( )
private

DynamicElementTextItem::reportChanged This function is only use when parent element of this text is a folio report The linked report of the parent element was changed.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reportFormulaChanged()

void DynamicElementTextItem::reportFormulaChanged ( )
private

DynamicElementTextItem::reportFormulaChanged The report formula use in the project was changed.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reportReplacedCompositeText()

QString DynamicElementTextItem::reportReplacedCompositeText ( ) const
private

DynamicElementTextItem::reportReplacedCompositeText This function is only used when the parent element of this text is a report element.

Returns
the composite text with the variable replaced by the real value. If the parent element of this text is not a folio report, return a default QString.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sceneEventFilter()

bool DynamicElementTextItem::sceneEventFilter ( QGraphicsItem *  watched,
QEvent *  event 
)
overrideprotected
Here is the call graph for this function:

◆ setCompositeText()

void DynamicElementTextItem::setCompositeText ( const QString &  text)

DynamicElementTextItem::setCompositeText Set the composite text of this text item to text.

Parameters
text
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setConnectionForReportFormula()

void DynamicElementTextItem::setConnectionForReportFormula ( const QString &  formula)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFrame()

void DynamicElementTextItem::setFrame ( const bool  frame)
Here is the caller graph for this function:

◆ setInfoName()

void DynamicElementTextItem::setInfoName ( const QString &  info_name)

DynamicElementTextItem::setInfoName Set the information name of the parent element.

Parameters
info_name
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPlainText()

void DynamicElementTextItem::setPlainText ( const QString &  text)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPotentialConductor()

void DynamicElementTextItem::setPotentialConductor ( )
private

DynamicElementTextItem::setPotentialConductor This function is only used when the parent element of this text is a report element Get a conductor in the potential of the parent report.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setText()

void DynamicElementTextItem::setText ( const QString &  text)

DynamicElementTextItem::setText Set the text of this text.

Parameters
text
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTextFrom()

void DynamicElementTextItem::setTextFrom ( DynamicElementTextItem::TextFrom  text_from)

DynamicElementTextItem::setTextFrom Set the final text is created from.

Parameters
text_from
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTextWidth()

void DynamicElementTextItem::setTextWidth ( qreal  width)
Here is the caller graph for this function:

◆ setupFormulaConnection()

void DynamicElementTextItem::setupFormulaConnection ( )
private

DynamicElementTextItem::setupFormulaConnection Setup the required connection for the formula of the label.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setXref_item()

void DynamicElementTextItem::setXref_item ( Qt::AlignmentFlag  m_exHrefPos)
Here is the caller graph for this function:

◆ text()

QString DynamicElementTextItem::text ( ) const

DynamicElementTextItem::text.

Returns
the text of this text

◆ textChanged

void DynamicElementTextItem::textChanged ( QString  text)
signal
Here is the caller graph for this function:

◆ textFrom()

DynamicElementTextItem::TextFrom DynamicElementTextItem::textFrom ( ) const

DynamicElementTextItem::textFrom.

Returns
what the final text is created from.

◆ textFromChanged

void DynamicElementTextItem::textFromChanged ( DynamicElementTextItem::TextFrom  text_from)
signal
Here is the caller graph for this function:

◆ textFromMetaEnum()

QMetaEnum DynamicElementTextItem::textFromMetaEnum ( )
static

DynamicElementTextItem::textFromMetaEnum.

Returns
The QMetaEnum of the enum TextFrom
Here is the caller graph for this function:

◆ textWidthChanged

void DynamicElementTextItem::textWidthChanged ( qreal  width)
signal
Here is the caller graph for this function:

◆ toXml()

QDomElement DynamicElementTextItem::toXml ( QDomDocument &  dom_doc) const
overridevirtual

DynamicElementTextItem::toXml Export this text to xml.

Parameters
dom_doc
Returns

Reimplemented from DiagramTextItem.

Here is the call graph for this function:

◆ type()

int DynamicElementTextItem::type ( ) const
inlineoverride

◆ updateLabel()

void DynamicElementTextItem::updateLabel ( )
private

DynamicElementTextItem::updateLabel Update the displayed text, when this dynamic text is based on the label of the parent element. This function is notably use when the label itself is based from a formula. If this dynamic text isn't based on label, this function do nothing.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateReportFormulaConnection()

void DynamicElementTextItem::updateReportFormulaConnection ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateReportText()

void DynamicElementTextItem::updateReportText ( )
private

DynamicElementTextItem::updateReportText This function is only use when this text is owned by a report, and this text have for info the Label.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateXref()

void DynamicElementTextItem::updateXref ( )

DynamicElementTextItem::updateXref Create or delete the Xref according to the current properties of the project.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ uuid()

QUuid DynamicElementTextItem::uuid ( ) const
Here is the caller graph for this function:

◆ xmlTagName()

static QString DynamicElementTextItem::xmlTagName ( )
inlinestatic
Here is the caller graph for this function:

◆ zoomToLinkedElement()

void DynamicElementTextItem::zoomToLinkedElement ( )
private

DynamicElementTextItem::zoomToLinkedElement If the parent element is a folio report or a slave element, and is linked, zoom to the linked element.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ CompositeTextEditDialog

friend class CompositeTextEditDialog
friend

◆ DynamicTextItemDelegate

friend class DynamicTextItemDelegate
friend

◆ Element

friend class Element
friend

Member Data Documentation

◆ m_composite_text

QString DynamicElementTextItem::m_composite_text
private

◆ m_F_str

QString DynamicElementTextItem::m_F_str
private

◆ m_first_scene_change

bool DynamicElementTextItem::m_first_scene_change = true
private

◆ m_formula_connection

QList<QMetaObject::Connection> DynamicElementTextItem::m_formula_connection
private

◆ m_frame

bool DynamicElementTextItem::m_frame = false
private

◆ m_info_name

QString DynamicElementTextItem::m_info_name
private

◆ m_initial_position

QPointF DynamicElementTextItem::m_initial_position
private

◆ m_master_element

QPointer<Element> DynamicElementTextItem::m_master_element
private

◆ m_other_report

QPointer<Element> DynamicElementTextItem::m_other_report
private

◆ m_parent_element

QPointer<Element> DynamicElementTextItem::m_parent_element
private

◆ m_report_formula

QString DynamicElementTextItem::m_report_formula
private

◆ m_report_formula_con

QMetaObject::Connection DynamicElementTextItem::m_report_formula_con
private

◆ m_slave_Xref_item

QGraphicsTextItem* DynamicElementTextItem::m_slave_Xref_item = nullptr
private

◆ m_text

QString DynamicElementTextItem::m_text
private

◆ m_text_from

DynamicElementTextItem::TextFrom DynamicElementTextItem::m_text_from = UserText
private

◆ m_text_width

qreal DynamicElementTextItem::m_text_width = -1
private

◆ m_update_slave_Xref_connection

QList<QMetaObject::Connection> DynamicElementTextItem::m_update_slave_Xref_connection
private

◆ m_user_color

QColor DynamicElementTextItem::m_user_color
private

◆ m_uuid

QUuid DynamicElementTextItem::m_uuid
private

◆ m_watched_conductor

QPointer<Conductor> DynamicElementTextItem::m_watched_conductor
private

◆ m_Xref_item

CrossRefItem* DynamicElementTextItem::m_Xref_item = nullptr
private

Property Documentation

◆ compositeText

QString DynamicElementTextItem::compositeText
readwrite

◆ frame

bool DynamicElementTextItem::frame
readwrite

◆ infoName

QString DynamicElementTextItem::infoName
readwrite

◆ text

QString DynamicElementTextItem::text
readwrite

◆ textFrom

TextFrom DynamicElementTextItem::textFrom
readwrite

◆ textWidth

qreal DynamicElementTextItem::textWidth
readwrite

The documentation for this class was generated from the following files: