QElectroTech  0.8-dev
dynamicelementtextitem.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 The QElectroTech Team
3  This file is part of QElectroTech.
4 
5  QElectroTech is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 2 of the License, or
8  (at your option) any later version.
9 
10  QElectroTech is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef DYNAMICELEMENTTEXTITEM_H
19 #define DYNAMICELEMENTTEXTITEM_H
20 
21 #include "diagramtextitem.h"
22 #include "xrefproperties.h"
23 #include "element.h"
24 #include <QUuid>
25 #include <QPointer>
26 
27 class Element;
28 class Conductor;
30 class CrossRefItem;
31 
39 {
42  friend class Element;
43 
44  Q_OBJECT
45 
46  Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
47  Q_PROPERTY(TextFrom textFrom READ textFrom WRITE setTextFrom NOTIFY textFromChanged)
48  Q_PROPERTY(QString infoName READ infoName WRITE setInfoName NOTIFY infoNameChanged)
49  Q_PROPERTY(QString compositeText READ compositeText WRITE setCompositeText NOTIFY compositeTextChanged)
50  Q_PROPERTY(bool frame READ frame WRITE setFrame NOTIFY frameChanged)
51  Q_PROPERTY(qreal textWidth READ textWidth WRITE setTextWidth NOTIFY textWidthChanged)
52 
53  public:
54 
55  enum TextFrom {
59  };
60  Q_ENUM (TextFrom)
61  enum {Type = UserType + 1010};
62  int type() const override {return Type;}
63 
64  signals:
65  void textChanged(QString text);
67  void infoNameChanged(QString info);
68  void compositeTextChanged(QString text);
69  void frameChanged(bool frame);
71  void textWidthChanged(qreal width);
72 
73  public:
74  DynamicElementTextItem(Element *parent_element);
75  ~DynamicElementTextItem() override;
76  static QMetaEnum textFromMetaEnum();
77  private:
80 
81  public:
82  QDomElement toXml(QDomDocument &dom_doc) const override;
83  void fromXml(const QDomElement &dom_elmt) override;
84 
85  Element *parentElement() const;
87  Element *elementUseForInfo() const;
89 
92  QString text() const;
93  void setText(const QString &text);
94  static QString xmlTagName() {return QString("dynamic_elmt_text");}
95  void setInfoName(const QString &info_name);
96  QString infoName() const;
97  void setCompositeText(const QString &text);
98  QString compositeText() const;
99  void setFrame(const bool frame);
100  bool frame() const;
101  QUuid uuid() const;
102  void updateXref();
103  void setPlainText(const QString &text);
104  void setTextWidth(qreal width);
105  void setXref_item(Qt::AlignmentFlag m_exHrefPos);
106 
107  protected:
108  void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
109  void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override;
110  void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override;
111  void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override;
112  void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override;
113  void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override;
114  void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
115  QVariant itemChange(GraphicsItemChange change, const QVariant &value) override;
116  bool sceneEventFilter(QGraphicsItem *watched, QEvent *event) override;
117 
118  private:
119  void elementInfoChanged();
120  void masterChanged();
121  void reportChanged();
122  void reportFormulaChanged();
123  void setConnectionForReportFormula(const QString &formula);
124  void removeConnectionForReportFormula(const QString &formula);
125  void setupFormulaConnection();
126  void clearFormulaConnection();
128  void updateReportText();
129  void updateLabel();
130  void conductorWasAdded(Conductor *conductor);
131  void conductorWasRemoved(Conductor *conductor);
132  void setPotentialConductor();
134  QString reportReplacedCompositeText() const;
135  void zoomToLinkedElement();
136 
137  private:
138  QPointer <Element>
142  QPointer <Conductor> m_watched_conductor;
143  QString
150  QUuid m_uuid;
151  QMetaObject::Connection m_report_formula_con;
152  QList<QMetaObject::Connection>
155  QColor m_user_color;
156  bool
157  m_frame = false,
160  QGraphicsTextItem *m_slave_Xref_item = nullptr;
161  qreal m_text_width = -1;
163 };
164 
165 #endif // DYNAMICELEMENTTEXTITEM_H
Element::Terminale
@ Terminale
Definition: element.h:57
DynamicElementTextItem::sceneEventFilter
bool sceneEventFilter(QGraphicsItem *watched, QEvent *event) override
Definition: dynamicelementtextitem.cpp:744
QETApp::dynamicTextsItemFont
static QFont dynamicTextsItemFont(qreal=-1.0)
QETApp::dynamicTextsFont the default font of dynamic element text item.
Definition: qetapp.cpp:1169
Element::linkType
virtual kind linkType() const
Definition: element.h:159
QETProject::ProjectParsingRunning
@ ProjectParsingRunning
XML parsing failed.
Definition: qetproject.h:59
DynamicElementTextItem::hoverEnterEvent
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override
DynamicElementTextItem::hoverEnterEvent If the parent element of this text is a folio report or a sla...
Definition: dynamicelementtextitem.cpp:614
DiagramTextItem::hoverLeaveEvent
void hoverLeaveEvent(QGraphicsSceneHoverEvent *) override
Definition: diagramtextitem.cpp:486
Terminal::conductorWasRemoved
void conductorWasRemoved(Conductor *conductor)
DynamicElementTextItem
The DynamicElementTextItem class This class provide a simple text field of element who can be added o...
Definition: dynamicelementtextitem.h:39
DynamicElementTextItem::refreshLabelConnection
void refreshLabelConnection()
DynamicElementTextItem::refreshLabelConnection Refresh the connection of this text when the source of...
Definition: dynamicelementtextitem.cpp:293
DiagramTextItem::mousePressEvent
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
DiagramTextItem::mousePressEvent.
Definition: diagramtextitem.cpp:319
ElementTextsMover::continueMovement
void continueMovement(QGraphicsSceneMouseEvent *event)
Definition: elementtextsmover.cpp:82
DynamicElementTextItem::setPlainText
void setPlainText(const QString &text)
Definition: dynamicelementtextitem.cpp:1322
CrossRefItem::autoPos
void autoPos()
CrossRefItem::autoPos Calculate and set position automaticaly.
Definition: crossrefitem.cpp:235
QETProject::projectDiagramsOrderChanged
void projectDiagramsOrderChanged(QETProject *, int, int)
DynamicElementTextItem::zoomToLinkedElement
void zoomToLinkedElement()
DynamicElementTextItem::zoomToLinkedElement If the parent element is a folio report or a slave elemen...
Definition: dynamicelementtextitem.cpp:1206
BorderTitleBlock::titleBlockFolioChanged
void titleBlockFolioChanged(const QString &)
titleBlockFolioChanged Signal emitted after Folio has changed
DynamicElementTextItem::m_text_width
qreal m_text_width
Definition: dynamicelementtextitem.h:161
Element::linkedElements
QList< Element * > linkedElements()
Element::linkedElements.
Definition: element.h:258
DiagramTextItem::diagram
Diagram * diagram() const
DiagramTextItem::diagram.
Definition: diagramtextitem.cpp:63
XRefProperties::getXrefPos
Qt::AlignmentFlag getXrefPos() const
Definition: xrefproperties.h:65
DynamicElementTextItem::infoName
QString infoName
Definition: dynamicelementtextitem.h:48
Element::elementInformations
DiagramContext elementInformations() const
Definition: element.h:97
QetGraphicsItem::diagram
Diagram * diagram() const
Definition: qetgraphicsitem.cpp:40
conductor.h
Element::NextReport
@ NextReport
Definition: element.h:52
Diagram::elementTextsMover
ElementTextsMover & elementTextsMover()
Diagram::elementTextsMover.
Definition: diagram.cpp:2065
DynamicElementTextItem::updateLabel
void updateLabel()
DynamicElementTextItem::updateLabel Update the displayed text, when this dynamic text is based on the...
Definition: dynamicelementtextitem.cpp:1042
DynamicElementTextItem::m_initial_position
QPointF m_initial_position
Definition: dynamicelementtextitem.h:162
Element::isFreezeLabel
bool isFreezeLabel() const
Definition: element.h:114
DynamicElementTextItem::textWidth
qreal textWidth
Definition: dynamicelementtextitem.h:51
DynamicElementTextItem::m_uuid
QUuid m_uuid
Definition: dynamicelementtextitem.h:150
DynamicElementTextItem::xmlTagName
static QString xmlTagName()
Definition: dynamicelementtextitem.h:94
Element::setHighlighted
virtual void setHighlighted(bool)
Definition: element.cpp:178
Element::actualLabel
QString actualLabel()
Element::actualLabel Always return the current label to be displayed. This function is usefull when l...
Definition: element.cpp:1738
QETProject::diagramRemoved
void diagramRemoved(QETProject *, Diagram *)
Diagram::showMe
void showMe()
Definition: diagram.h:161
elementtextitemgroup.h
DynamicElementTextItem::mousePressEvent
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
DynamicElementTextItem::mousePressEvent.
Definition: dynamicelementtextitem.cpp:527
DiagramTextItem::color
QColor color
Definition: diagramtextitem.h:37
DynamicElementTextItem::~DynamicElementTextItem
~DynamicElementTextItem() override
Definition: dynamicelementtextitem.cpp:65
DynamicElementTextItem::masterChanged
void masterChanged()
DynamicElementTextItem::masterChanged This function is only use when the parent element is a slave....
Definition: dynamicelementtextitem.cpp:813
DynamicElementTextItem::setFrame
void setFrame(const bool frame)
Definition: dynamicelementtextitem.cpp:506
CompositeTextEditDialog
The CompositeTextEditDialog class CompositeTextEditDialog display a dialog use to write the complex t...
Definition: compositetexteditdialog.h:20
DiagramTextItem::setPlainText
void setPlainText(const QString &text)
Definition: diagramtextitem.cpp:218
DynamicElementTextItem::m_F_str
QString m_F_str
Definition: dynamicelementtextitem.h:148
DynamicElementTextItem::conductorWasAdded
void conductorWasAdded(Conductor *conductor)
DynamicElementTextItem::conductorWasAdded Function only use when parent element is a folio report.
Definition: dynamicelementtextitem.cpp:1068
DynamicElementTextItem::m_first_scene_change
bool m_first_scene_change
Definition: dynamicelementtextitem.h:158
DynamicElementTextItem::mouseDoubleClickEvent
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
DynamicElementTextItem::mouseDoubleClickEvent Reimplemented functions, for add extra feature when thi...
Definition: dynamicelementtextitem.cpp:601
DynamicElementTextItem::reportFormulaChanged
void reportFormulaChanged()
DynamicElementTextItem::reportFormulaChanged The report formula use in the project was changed.
Definition: dynamicelementtextitem.cpp:886
DynamicElementTextItem::frameChanged
void frameChanged(bool frame)
Element::elementInfoChange
void elementInfoChange(DiagramContext old_info, DiagramContext new_info)
Element::linkedElementChanged
void linkedElementChanged()
Element::Simple
@ Simple
Definition: element.h:51
DynamicElementTextItem::fromXml
void fromXml(const QDomElement &dom_elmt) override
DynamicElementTextItem::fromXml Import this text from xml.
Definition: dynamicelementtextitem.cpp:154
DynamicElementTextItem::compositeTextChanged
void compositeTextChanged(QString text)
Element::Slave
@ Slave
Definition: element.h:56
DynamicElementTextItem::m_text_from
DynamicElementTextItem::TextFrom m_text_from
Definition: dynamicelementtextitem.h:149
DynamicElementTextItem::setConnectionForReportFormula
void setConnectionForReportFormula(const QString &formula)
Definition: dynamicelementtextitem.cpp:894
XRefProperties::Label
@ Label
Definition: xrefproperties.h:40
DiagramTextItem::alignment
Qt::Alignment alignment
Definition: diagramtextitem.h:38
DynamicElementTextItem::plainTextChanged
void plainTextChanged()
Diagram::border_and_titleblock
BorderTitleBlock border_and_titleblock
Diagram dimensions and title block.
Definition: diagram.h:83
Diagram::project
QETProject * project() const
Diagram::project.
Definition: diagram.cpp:2326
qetapp.h
DynamicElementTextItem::conductorPropertiesChanged
void conductorPropertiesChanged()
DynamicElementTextItem::conductorPropertiesChanged This function is only used when the parent element...
Definition: dynamicelementtextitem.cpp:1143
DynamicElementTextItem::setupFormulaConnection
void setupFormulaConnection()
DynamicElementTextItem::setupFormulaConnection Setup the required connection for the formula of the l...
Definition: dynamicelementtextitem.cpp:953
DynamicElementTextItem::m_master_element
QPointer< Element > m_master_element
Definition: dynamicelementtextitem.h:140
DynamicElementTextItem::m_frame
bool m_frame
Definition: dynamicelementtextitem.h:157
autonum::AssignVariables::replaceVariable
static QString replaceVariable(const QString &formula, const DiagramContext &dc)
AssignVariables::replaceVariable Replace the variables in formula in form %{my-var} to the correspond...
Definition: assignvariables.cpp:208
DynamicElementTextItem::m_report_formula
QString m_report_formula
Definition: dynamicelementtextitem.h:147
Diagram
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
DynamicElementTextItem::Type
@ Type
Definition: dynamicelementtextitem.h:61
DynamicElementTextItem::updateReportText
void updateReportText()
DynamicElementTextItem::updateReportText This function is only use when this text is owned by a repor...
Definition: dynamicelementtextitem.cpp:1012
XRefProperties
The XRefProperties class this class store properties used by XrefItem.
Definition: xrefproperties.h:29
DynamicElementTextItem::m_composite_text
QString m_composite_text
Definition: dynamicelementtextitem.h:146
qet.h
DynamicElementTextItem::uuid
QUuid uuid() const
Definition: dynamicelementtextitem.cpp:518
ElementTextsMover::beginMovement
int beginMovement(Diagram *diagram, QGraphicsItem *driver_item=nullptr)
ElementTextsMover::beginMovement Begin a movement.
Definition: elementtextsmover.cpp:46
DynamicElementTextItem::setText
void setText(const QString &text)
DynamicElementTextItem::setText Set the text of this text.
Definition: dynamicelementtextitem.cpp:387
DynamicElementTextItem::textWidthChanged
void textWidthChanged(qreal width)
DiagramTextItem::m_first_move
bool m_first_move
Definition: diagramtextitem.h:111
XRefProperties::slaveLabel
QString slaveLabel() const
Definition: xrefproperties.h:73
DynamicElementTextItem::text
QString text
Definition: dynamicelementtextitem.h:46
xrefproperties.h
DynamicElementTextItem::setInfoName
void setInfoName(const QString &info_name)
DynamicElementTextItem::setInfoName Set the information name of the parent element.
Definition: dynamicelementtextitem.cpp:400
DynamicElementTextItem::m_text
QString m_text
Definition: dynamicelementtextitem.h:144
DynamicElementTextItem::m_update_slave_Xref_connection
QList< QMetaObject::Connection > m_update_slave_Xref_connection
Definition: dynamicelementtextitem.h:154
QET::correctAngle
qreal correctAngle(const qreal &)
Definition: qet.cpp:545
Conductor::propertiesChange
void propertiesChange()
DynamicElementTextItem::conductorWasRemoved
void conductorWasRemoved(Conductor *conductor)
DynamicElementTextItem::conductorWasRemoved Function only use when parent element is a folio report.
Definition: dynamicelementtextitem.cpp:1079
DiagramTextItem::setAlignment
void setAlignment(const Qt::Alignment &alignment)
Definition: diagramtextitem.cpp:177
DynamicElementTextItem::m_parent_element
QPointer< Element > m_parent_element
Definition: dynamicelementtextitem.h:139
Element::Master
@ Master
Definition: element.h:55
crossrefitem.h
DynamicElementTextItem::setCompositeText
void setCompositeText(const QString &text)
DynamicElementTextItem::setCompositeText Set the composite text of this text item to text.
Definition: dynamicelementtextitem.cpp:454
DynamicElementTextItem::textFromChanged
void textFromChanged(DynamicElementTextItem::TextFrom text_from)
BorderTitleBlock::folio
QString folio() const
Definition: bordertitleblock.h:113
element.h
DynamicElementTextItem::m_user_color
QColor m_user_color
Definition: dynamicelementtextitem.h:155
DynamicElementTextItem::frame
bool frame
Definition: dynamicelementtextitem.h:50
DynamicElementTextItem::CompositeText
@ CompositeText
Definition: dynamicelementtextitem.h:58
qpropertyundocommand.h
DynamicElementTextItem::elementUseForInfo
Element * elementUseForInfo() const
DynamicElementTextItem::elementUseForInfo.
Definition: dynamicelementtextitem.cpp:258
DynamicElementTextItem::updateXref
void updateXref()
DynamicElementTextItem::updateXref Create or delete the Xref according to the current properties of t...
Definition: dynamicelementtextitem.cpp:1251
DiagramContext::value
QVariant value(const QString &key) const
Definition: diagramcontext.cpp:100
Element
Definition: element.h:41
QETProject::reportPropertiesChanged
void reportPropertiesChanged(const QString &old_str, const QString &new_str)
Element::terminals
QList< Terminal * > terminals() const
Element::terminals.
Definition: element.cpp:136
DynamicElementTextItem::DynamicElementTextItem
DynamicElementTextItem()
Definition: dynamicelementtextitem.cpp:78
DynamicElementTextItem::TextFrom
TextFrom
Definition: dynamicelementtextitem.h:55
autonum::AssignVariables::formulaToLabel
static QString formulaToLabel(QString formula, sequentialNumbers &seqStruct, Diagram *diagram, const Element *elmt=nullptr)
AssignVariables::formulaToLabel Return the formula with variable assigned (ready to be displayed)
Definition: assignvariables.cpp:187
DynamicElementTextItem::m_info_name
QString m_info_name
Definition: dynamicelementtextitem.h:145
DiagramTextItem::setColor
void setColor(const QColor &color)
Definition: diagramtextitem.cpp:167
DynamicElementTextItem::reportReplacedCompositeText
QString reportReplacedCompositeText() const
DynamicElementTextItem::reportReplacedCompositeText This function is only used when the parent elemen...
Definition: dynamicelementtextitem.cpp:1170
DynamicElementTextItem::UserText
@ UserText
Definition: dynamicelementtextitem.h:56
Element::AllReport
@ AllReport
Definition: element.h:54
DynamicElementTextItem::parentElement
Element * parentElement() const
DynamicElementTextItem::ParentElement.
Definition: dynamicelementtextitem.cpp:227
DiagramTextItem::finishAlignment
void finishAlignment()
DiagramTextItem::finishAlignment Call this function after changing the bouding rect of this text to s...
Definition: diagramtextitem.cpp:410
DynamicElementTextItem::infoNameChanged
void infoNameChanged(QString info)
DiagramTextItem::paint
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) override
DiagramTextItem::paint Draw this text field. This method draw the text by calling QGraphicsTextItem::...
Definition: diagramtextitem.cpp:236
DynamicElementTextItem::itemChange
QVariant itemChange(GraphicsItemChange change, const QVariant &value) override
Definition: dynamicelementtextitem.cpp:682
DynamicElementTextItem::m_other_report
QPointer< Element > m_other_report
Definition: dynamicelementtextitem.h:141
DynamicElementTextItem::type
int type() const override
Definition: dynamicelementtextitem.h:62
DiagramTextItem
Definition: diagramtextitem.h:34
DynamicElementTextItem::toXml
QDomElement toXml(QDomDocument &dom_doc) const override
DynamicElementTextItem::toXml Export this text to xml.
Definition: dynamicelementtextitem.cpp:87
DynamicTextItemDelegate
Definition: dynamicelementtextmodel.h:131
Terminal::conductorWasAdded
void conductorWasAdded(Conductor *conductor)
DynamicElementTextItem::m_slave_Xref_item
QGraphicsTextItem * m_slave_Xref_item
Definition: dynamicelementtextitem.h:160
DynamicElementTextItem::updateReportFormulaConnection
void updateReportFormulaConnection()
Definition: dynamicelementtextitem.cpp:998
DynamicElementTextItem::m_report_formula_con
QMetaObject::Connection m_report_formula_con
Definition: dynamicelementtextitem.h:151
ElementTextItemGroup
The ElementTextItemGroup class This class represent a group of element text Texts in the group can be...
Definition: elementtextitemgroup.h:36
DynamicElementTextItem::reportChanged
void reportChanged()
DynamicElementTextItem::reportChanged This function is only use when parent element of this text is a...
Definition: dynamicelementtextitem.cpp:841
DynamicElementTextItem::textFrom
TextFrom textFrom
Definition: dynamicelementtextitem.h:47
DynamicElementTextItem::m_formula_connection
QList< QMetaObject::Connection > m_formula_connection
Definition: dynamicelementtextitem.h:153
DiagramTextItem::mouseDoubleClickEvent
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
Definition: diagramtextitem.cpp:303
DynamicElementTextItem::textFromMetaEnum
static QMetaEnum textFromMetaEnum()
DynamicElementTextItem::textFromMetaEnum.
Definition: dynamicelementtextitem.cpp:72
QET::Icons::ro
QIcon ro
Definition: qeticons.cpp:200
DynamicElementTextItem::m_Xref_item
CrossRefItem * m_Xref_item
Definition: dynamicelementtextitem.h:159
DynamicElementTextItem::setTextFrom
void setTextFrom(DynamicElementTextItem::TextFrom text_from)
DynamicElementTextItem::setTextFrom Set the final text is created from.
Definition: dynamicelementtextitem.cpp:324
DynamicElementTextItem::m_watched_conductor
QPointer< Conductor > m_watched_conductor
Definition: dynamicelementtextitem.h:142
DynamicElementTextItem::DynamicElementTextItem
DynamicElementTextItem(const DynamicElementTextItem &)
DiagramTextItem::setNoEditable
void setNoEditable(bool e=true)
Definition: diagramtextitem.h:75
DynamicElementTextItem::mouseReleaseEvent
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
DynamicElementTextItem::mouseReleaseEvent.
Definition: dynamicelementtextitem.cpp:582
DiagramTextItem::setFont
void setFont(const QFont &font)
Definition: diagramtextitem.cpp:153
DiagramTextItem::prepareAlignment
void prepareAlignment()
DiagramTextItem::prepareAlignment Call this function before changing the bounding rect of this text.
Definition: diagramtextitem.cpp:400
DynamicElementTextItem::mouseMoveEvent
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
DynamicElementTextItem::mouseMoveEvent.
Definition: dynamicelementtextitem.cpp:546
diagramtextitem.h
Diagram::snapToGrid
static QPointF snapToGrid(const QPointF &p)
Diagram::snapToGrid Return a nearest snap point of p.
Definition: diagram.cpp:2240
QETApp::diagramTextsFont
static QFont diagramTextsFont(qreal=-1.0)
QETApp::diagramTextsFont The font to use By default the font is "sans Serif" and size 9.
Definition: qetapp.cpp:1111
DiagramTextItem::frameRect
QRectF frameRect() const
DiagramTextItem::frameRect.
Definition: diagramtextitem.cpp:192
DynamicElementTextItem::paint
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
Definition: dynamicelementtextitem.cpp:650
DynamicElementTextItem::clearFormulaConnection
void clearFormulaConnection()
Definition: dynamicelementtextitem.cpp:991
QET::GIBuildingFromXml
@ GIBuildingFromXml
Item is currently building from a xml description (element)
Definition: qet.h:40
QET::GILoadingFromXml
@ GILoadingFromXml
Item is loading her properties from a xml description.
Definition: qet.h:41
QETProject::XRefPropertiesChanged
void XRefPropertiesChanged()
DiagramTextItem::font
QFont font
Definition: diagramtextitem.h:40
DynamicElementTextItem::parentGroup
ElementTextItemGroup * parentGroup() const
DynamicElementTextItem::parentGroup.
Definition: dynamicelementtextitem.cpp:236
dynamicelementtextitem.h
Conductor
Definition: conductor.h:43
QETProject::defaultReportProperties
QString defaultReportProperties() const
Definition: qetproject.cpp:466
terminal.h
DynamicElementTextItem::compositeText
QString compositeText
Definition: dynamicelementtextitem.h:49
XRefProperties::snapTo
SnapTo snapTo() const
Definition: xrefproperties.h:62
Element::rSequenceStruct
autonum::sequentialNumbers & rSequenceStruct()
Definition: element.h:108
DiagramTextItem::hoverEnterEvent
void hoverEnterEvent(QGraphicsSceneHoverEvent *) override
Definition: diagramtextitem.cpp:472
DynamicElementTextItem::removeConnectionForReportFormula
void removeConnectionForReportFormula(const QString &formula)
Definition: dynamicelementtextitem.cpp:923
DynamicElementTextItem::setTextWidth
void setTextWidth(qreal width)
Definition: dynamicelementtextitem.cpp:1369
QETProject::defaultXRefProperties
XRefProperties defaultXRefProperties(const QString &type) const
Definition: qetproject.h:106
QET::Icons::tr
QIcon tr
Definition: qeticons.cpp:206
Element::PreviousReport
@ PreviousReport
Definition: element.h:53
DynamicElementTextItem::ElementInfo
@ ElementInfo
Definition: dynamicelementtextitem.h:57
DiagramContext
Definition: diagramcontext.h:56
diagram.h
DiagramTextItem::textEdited
void textEdited(const QString &old_str, const QString &new_str)
DynamicElementTextItem::textChanged
void textChanged(QString text)
CrossRefItem
The CrossRefItem class This clas provide an item, for show the cross reference, like the contacts lin...
Definition: crossrefitem.h:47
DynamicElementTextItem::hoverLeaveEvent
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override
DynamicElementTextItem::hoverLeaveEvent.
Definition: dynamicelementtextitem.cpp:638
DynamicElementTextItem::elementInfoChanged
void elementInfoChanged()
Definition: dynamicelementtextitem.cpp:765
DynamicElementTextItem::setXref_item
void setXref_item(Qt::AlignmentFlag m_exHrefPos)
Definition: dynamicelementtextitem.cpp:1376
DynamicElementTextItem::setPotentialConductor
void setPotentialConductor()
DynamicElementTextItem::setPotentialConductor This function is only used when the parent element of t...
Definition: dynamicelementtextitem.cpp:1094