18#ifndef ELEMENTTEXTITEMGROUP_H
19#define ELEMENTTEXTITEMGROUP_H
21#include <QGraphicsItemGroup>
76 QList<DynamicElementTextItem *>
texts()
const;
80 QDomElement
toXml(QDomDocument &dom_document)
const;
81 void fromXml(QDomElement &dom_element);
84 void paint(QPainter *painter,
85 const QStyleOptionGraphicsItem *option,
86 QWidget *widget)
override;
90 void setPos(qreal x, qreal y);
96 QGraphicsSceneMouseEvent *event)
override;
98 QGraphicsSceneMouseEvent *event)
override;
The CrossRefItem class This clas provide an item, for show the cross reference, like the contacts lin...
Definition crossrefitem.h:47
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:56
The DynamicElementTextItem class This class provide a simple text field of element who can be added o...
Definition dynamicelementtextitem.h:40
The ElementTextItemGroup class This class represent a group of element text Texts in the group can be...
Definition elementtextitemgroup.h:36
void setPos(const QPointF &pos)
Definition elementtextitemgroup.cpp:580
bool holdToBottomPage
Definition elementtextitemgroup.h:44
QList< DynamicElementTextItem * > texts() const
ElementTextItemGroup::texts.
Definition elementtextitemgroup.cpp:370
QPointF m_initial_position
Definition elementtextitemgroup.h:115
static QString xmlTaggName()
Definition elementtextitemgroup.h:82
int verticalAdjustment
Definition elementtextitemgroup.h:41
QGraphicsTextItem * m_slave_Xref_item
Definition elementtextitemgroup.h:120
void setAlignment(Qt::Alignment alignement)
ElementTextItemGroup::setAlignement Set the alignement of this group.
Definition elementtextitemgroup.cpp:166
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override
Definition elementtextitemgroup.cpp:736
Element * parentElement() const
ElementTextItemGroup::parentElement.
Definition elementtextitemgroup.cpp:397
void setVerticalAdjustment(int v)
ElementTextItemGroup::setVerticalAdjustment Set the value of the vertical adjustment to v....
Definition elementtextitemgroup.cpp:278
void updateAlignment()
ElementTextItemGroup::setAlignment Update the alignement of the items in this group,...
Definition elementtextitemgroup.cpp:184
QRectF boundingRect() const override
ElementTextItemGroup::boundingRect.
Definition elementtextitemgroup.cpp:557
void setFrame(const bool frame)
Definition elementtextitemgroup.cpp:354
void alignmentChanged(Qt::Alignment)
QPointF pos
Definition elementtextitemgroup.h:39
Element * m_parent_element
Definition elementtextitemgroup.h:118
Qt::Alignment alignment
Definition elementtextitemgroup.h:42
QMetaObject::Connection m_XrefChanged_timer
Definition elementtextitemgroup.h:121
void setRotation(qreal angle)
Definition elementtextitemgroup.cpp:574
QList< QMetaObject::Connection > m_update_slave_Xref_connection
Definition elementtextitemgroup.h:119
QDomElement toXml(QDomDocument &dom_document) const
ElementTextItemGroup::toXml Export data of this group to xml.
Definition elementtextitemgroup.cpp:411
void frameChanged(bool frame)
QString m_name
Definition elementtextitemgroup.h:110
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
ElementTextItemGroup::mousePressEvent.
Definition elementtextitemgroup.cpp:604
CrossRefItem * m_Xref_item
Definition elementtextitemgroup.h:117
void rotationChanged(qreal)
void blockAlignmentUpdate(bool block)
ElementTextItemGroup::blockAlignmentUpdate If true, the texts in this group are never aligned,...
Definition elementtextitemgroup.cpp:156
void autoPos()
Definition elementtextitemgroup.cpp:844
Qt::Alignment m_alignment
Definition elementtextitemgroup.h:109
void setHoldToBottomPage(bool hold)
Definition elementtextitemgroup.cpp:296
QString name
Definition elementtextitemgroup.h:43
void fromXml(QDomElement &dom_element)
ElementTextItemGroup::fromXml Import data of this group from xml.
Definition elementtextitemgroup.cpp:446
Diagram * diagram() const
ElementTextItemGroup::diagram.
Definition elementtextitemgroup.cpp:385
void addToGroup(QGraphicsItem *item)
ElementTextItemGroup::addToGroup.
Definition elementtextitemgroup.cpp:71
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
ElementTextItemGroup::mouseReleaseEvent.
Definition elementtextitemgroup.cpp:657
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override
Definition elementtextitemgroup.cpp:747
void setName(QString name)
ElementTextItemGroup::setName.
Definition elementtextitemgroup.cpp:290
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
ElementTextItemGroup::mouseMoveEvent.
Definition elementtextitemgroup.cpp:620
void holdToBottomPageChanged(bool)
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
Definition elementtextitemgroup.cpp:670
qreal rotation
Definition elementtextitemgroup.h:40
bool m_hold_to_bottom_of_page
Definition elementtextitemgroup.h:112
void keyPressEvent(QKeyEvent *event) override
ElementTextItemGroup::keyPressEvent.
Definition elementtextitemgroup.cpp:707
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
ElementTextItemGroup::paint.
Definition elementtextitemgroup.cpp:501
bool holdToBottomPage() const
Definition elementtextitemgroup.h:73
bool m_block_alignment_update
Definition elementtextitemgroup.h:113
void nameChanged(QString)
bool m_frame
Definition elementtextitemgroup.h:114
bool m_first_move
Definition elementtextitemgroup.h:111
void verticalAdjustmentChanged(int)
void removeFromGroup(QGraphicsItem *item)
ElementTextItemGroup::removeFromGroup.
Definition elementtextitemgroup.cpp:111
int m_vertical_adjustment
Definition elementtextitemgroup.h:116
QMetaObject::Connection m_linked_changed_timer
Definition elementtextitemgroup.h:122
QString name() const
Definition elementtextitemgroup.h:71
void updateXref()
Definition elementtextitemgroup.cpp:755
void adjustSlaveXrefPos()
Definition elementtextitemgroup.cpp:836
bool frame
Definition elementtextitemgroup.h:45