|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
46 class DiagramFolioList;
137 QGraphicsSceneMouseEvent *event)
override;
141 QGraphicsSceneMouseEvent *event)
override;
142 void wheelEvent (QGraphicsSceneWheelEvent *event)
override;
171 QDomDocument
toXml(
bool =
true);
201 virtual void addItem (QGraphicsItem *item);
202 virtual void removeItem (QGraphicsItem *item);
220 QString
title()
const;
222 Qt::AspectRatioMode = Qt::KeepAspectRatio);
253 const QString&
title,
257 const QString&
title,
const QString& seq,
266 const QString & = QString());
300 inline
void Diagram::setConductor(
bool adding) {
302 if (!conductor_setter_ -> scene()) addItem(conductor_setter_);
304 if (conductor_setter_ -> scene()) removeItem(conductor_setter_);
NumerotationType
Represents available option of Numerotation type.
Definition: diagram.h:79
QHash< QString, QStringList > m_elmt_tenfolio_max
Definition: diagram.h:102
static bool clipboardMayContainDiagram()
Diagram::clipboardMayContainDiagram.
Definition: diagram.cpp:2312
int beginMovement(Diagram *, QGraphicsItem *=nullptr)
ElementsMover::beginMovement Start a new movement.
Definition: elementsmover.cpp:65
static QColor background_color
background color of diagram
Definition: diagram.h:99
QList< Element * > elements() const
Diagram::elements.
Definition: diagram.cpp:2031
@ ProjectParsingRunning
XML parsing failed.
Definition: qetproject.h:59
static int xKeyGridFine
Key grid fine x step size.
Definition: diagram.h:93
void addElementAutoNum(const QString &key, const NumerotationContext &context)
QETProject::addElementAutoNum Add a new element numerotation context. If key already exist,...
Definition: qetproject.cpp:598
static int yKeyGridFine
Key grid fine y step size.
Definition: diagram.h:95
void setEventInterface(DiagramEventInterface *event_interface)
Diagram::setEventInterface Set event_interface has current interface. Diagram become the ownership of...
Definition: diagram.cpp:531
@ Images
Definition: diagramcontent.h:57
projectDataBase * dataBase()
QETProject::dataBase.
Definition: qetproject.cpp:124
bool draw_grid_
Definition: diagram.h:120
Terminal * terminal2
Definition: conductor.h:68
QUndoStack * undoStack()
Definition: qetproject.h:168
The DynamicElementTextItem class This class provide a simple text field of element who can be added o...
Definition: dynamicelementtextitem.h:39
QDomDocument xml_document_
Definition: diagram.h:116
DiagramEventInterface * m_event_interface
Definition: diagram.h:126
bool canRotateSelection() const
Diagram::canRotateSelection.
Definition: diagram.cpp:2395
void titleChanged(const QString &)
Diagram::titleChanged emit(diagramTitleChanged(this, title));.
Definition: diagram.cpp:1611
@ ElementsArea
Export the content of the diagram only.
Definition: qet.h:141
void setDrawColoredConductors(bool)
Diagram::setDrawColoredConductors Defines whether or not to respect the colors of the conductors....
Definition: diagram.cpp:2288
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition: diagrameventinterface.cpp:42
QHash< QString, QStringList > m_cnd_unitfolio_max
Hash containing max values for folio sequential autonums in this diagram.
Definition: diagram.h:105
bool m_freeze_new_elements
Definition: diagram.h:128
void titleBlockFolioChanged(const QString &)
titleBlockFolioChanged Signal emitted after Folio has changed
void setPosition(const QPointF &)
Definition: diagramposition.cpp:52
Q_DECLARE_METATYPE(NamesList)
void freezeElements(bool freeze)
Diagram::freezeElements Freeze every existent element label.
Definition: diagram.cpp:2104
@ Type
Definition: independenttextitem.h:39
void adjustSceneRect()
Diagram::adjustSceneRect Recalcul and adjust the size of the scene.
Definition: diagram.cpp:2166
void setConductorStop(QPointF)
Diagram::setConductorStop Set the end point of the conductor setter.
Definition: diagram.h:324
void displayColumns(bool)
BorderTitleBlock::displayColumns.
Definition: bordertitleblock.cpp:442
bool fromXml(QDomDocument &, QPointF=QPointF(), bool=true, DiagramContent *=nullptr)
Diagram::fromXml Imports the described schema into an XML document. If a position is specified,...
Definition: diagram.cpp:1029
Definition: elementprovider.h:37
void deselectAll()
Diagram::deselectAll Deselects all selected objects.
Definition: diagram.cpp:1690
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
Diagram::mousePressEvent This event is managed by diagram event interface if any.
Definition: diagram.cpp:247
QString path() const
ElementsLocation::path.
Definition: elementslocation.cpp:206
bool draw_colored_conductors
Whether to render conductors colors.
Definition: exportproperties.h:49
The QetGraphicsTableItem class This item display a table destined to represent the content of a QAbst...
Definition: qetgraphicstableitem.h:43
qreal declaredQElectroTechVersion(bool=true) const
Diagram::declaredQElectroTechVersion.
Definition: diagram.cpp:2348
QDomDocument toXml(bool=true)
Diagram::toXml Exports all or part of the schema.
Definition: diagram.cpp:721
QList< Conductor * > m_conductors_to_move
Definition: diagramcontent.h:74
const QString version
QElectroTech version (as string, used to mark projects and elements XML documents)
Definition: qet.h:32
QString m_conductors_autonum_name
Definition: diagram.h:125
@ TitleBlock
Definition: diagram.h:77
ElementTextsMover & elementTextsMover()
Diagram::elementTextsMover.
Definition: diagram.cpp:2065
QGIManager * qgi_manager_
Definition: diagram.h:113
void addConductorAutoNum(const QString &key, const NumerotationContext &context)
QETProject::addConductorAutoNum Add a new conductor numerotation context. If key already exist,...
Definition: qetproject.cpp:587
void draw(QPainter *painter)
BorderTitleBlock::draw Draw the border and the titleblock.
Definition: bordertitleblock.cpp:504
bool freezeNewConductors()
Diagram::freezeNewConductors.
Definition: diagram.cpp:2158
static int yKeyGrid
Key grid y step size.
Definition: diagram.h:91
~Diagram() override
Diagram::~Diagram Destructor.
Definition: diagram.cpp:120
@ Raise
Raise item one layer above their current one; zValues are incremented.
Definition: qet.h:47
void setConductorsAutonumName(const QString &name)
Diagram::setConductorsAutonumName.
Definition: diagram.cpp:572
QRectF borderAndTitleBlockRect() const
BorderTitleBlock::borderAndTitleBlockRect.
Definition: bordertitleblock.cpp:134
void showMe()
Definition: diagram.h:161
void setConductor(bool)
Diagram::setConductor Display or hide the conductor setter, i.e. a dashed conductor stub which appear...
Definition: diagram.h:300
virtual void addItem(QGraphicsItem *item)
Diagram::addItem Réimplemented from QGraphicsScene::addItem(QGraphicsItem *item) Do some specific ope...
Definition: diagram.cpp:1550
void titleBlockFromXml(const QDomElement &)
BorderTitleBlock::titleBlockFromXml Reads the title block values from XML.
Definition: bordertitleblock.cpp:212
@ Type
Definition: qetshapeitem.h:63
Definition: diagramcontent.h:46
Definition: elementsmover.h:38
TitleBlockTemplate * getTemplate(const QString &) override
Definition: templatescollection.cpp:191
void wheelEvent(QGraphicsSceneWheelEvent *event) override
Diagram::wheelEvent This event is managed by diagram event interface if any.
Definition: diagram.cpp:304
static bool valideXml(QDomElement &)
Definition: conductor.cpp:575
QList< Element * > m_elements
Definition: diagramcontent.h:69
static int xKeyGrid
Key grid x step size.
Definition: diagram.h:89
void replaceValue(int, QString)
NumerotationContext::replaceValue This class replaces the current NC field value with content.
Definition: numerotationcontext.cpp:183
bool isEmpty() const
Diagram::isEmpty An empty schema contains no element, conductor, or text field.
Definition: diagram.cpp:680
QString title() const
Definition: bordertitleblock.h:111
static const qreal Z
Definition: terminal.h:109
QETProject * m_project
Definition: diagram.h:114
bool m_freeze_new_conductors_
Definition: diagram.h:129
virtual void keyReleaseEvent(QKeyEvent *event)
Definition: diagrameventinterface.cpp:70
void endMovement()
ElementsMover::endMovement Ended the current movement by creating an undo added to the undostack of t...
Definition: elementsmover.cpp:150
bool draw_border
Whether to render the border (along with rows/columns headers)
Definition: exportproperties.h:46
QString numerotationContextToFormula(const NumerotationContext &nc)
numerotationContextToFormula
Definition: assignvariables.cpp:473
QString elementCurrentAutoNum() const
QETProject::elementCurrentAutoNum.
Definition: qetproject.cpp:531
void loadFolioSeqHash(QHash< QString, QStringList > *hash, const QString &title, const QString &seq, NumerotationContext *nc)
Diagram::loadFolioSeqHash This class loads all folio sequential variables related to the current auto...
Definition: diagram.cpp:1760
bool usesTitleBlockTemplate(const QString &)
Diagram::usesTitleBlockTemplate.
Definition: diagram.cpp:2096
void titleBlockTemplateChanged(const QString &)
Diagram::titleBlockTemplateChanged This slot may be used to inform the diagram object that the given ...
Definition: diagram.cpp:1622
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition: diagrameventinterface.cpp:38
Definition: numerotationcontext.h:31
void displayTitleBlock(bool)
BorderTitleBlock::displayTitleBlock.
Definition: bordertitleblock.cpp:431
QString titleBlockTemplateName() const
BorderTitleBlock::titleBlockTemplateName.
Definition: bordertitleblock.cpp:387
@ Type
Definition: element.h:74
QList< QDomElement > findInDomElement(const QDomElement &, const QString &)
Definition: qet.cpp:333
QList< Conductor * > conductors(int=AnyConductor) const
DiagramContent::conductors.
Definition: diagramcontent.cpp:167
@ Conductors
Definition: diagram.h:79
bool draw_colored_conductors_
Definition: diagram.h:123
bool draw_titleblock
Whether to render the title block.
Definition: exportproperties.h:47
void borderToXml(QDomElement &)
BorderTitleBlock::borderToXml Exports the border current settings to XML.
Definition: bordertitleblock.cpp:223
bool importFromProject(QETProject *project, ElementsLocation &location)
ElementCollectionHandler::importFromProject Import the element represented by location to the embedde...
Definition: elementcollectionhandler.cpp:405
void freezeConductors(bool freeze)
Diagram::freezeConductors Freeze every existent conductor label.
Definition: diagram.cpp:2140
void updateLabels()
Diagram::updateLabels Update elements and conductors that reference folio field in their labels.
Definition: diagram.cpp:1716
bool drawTerminals() const
Diagram::drawTerminals.
Definition: diagram.h:413
QSize imageSize() const
Diagram::imageSize Allows you to know the dimensions that the image generated by the toImage() method...
Definition: diagram.cpp:651
BorderTitleBlock border_and_titleblock
Diagram dimensions and title block.
Definition: diagram.h:83
QETProject * project() const
Diagram::project.
Definition: diagram.cpp:2326
void titleBlockToXml(QDomElement &)
BorderTitleBlock::titleBlockToXml Exports the title block current values to XML.
Definition: bordertitleblock.cpp:203
void usedTitleBlockTemplateChanged(const QString &)
int size() const
NumerotationContext::size.
Definition: numerotationcontext.cpp:93
QUuid m_uuid
Definition: diagram.h:130
TitleBlockTemplatesProjectCollection * embeddedTitleBlockTemplatesCollection()
Definition: qetproject.cpp:243
void loadCndFolioSeq()
Diagram::loadCndFolioSeq This class loads all conductor folio sequential variables related to the cur...
Definition: diagram.cpp:1942
Terminal * terminal1
Definition: conductor.h:67
void titleBlockTemplateRemoved(const QString &, const TitleBlockTemplate *=nullptr)
BorderTitleBlock::titleBlockTemplateRemoved This slot has to be used to inform this class that the gi...
Definition: bordertitleblock.cpp:414
bool toPaintDevice(QPaintDevice &, int=-1, int=-1, Qt::AspectRatioMode=Qt::KeepAspectRatio)
Definition: diagram.cpp:580
Definition: diagramimageitem.h:31
QRectF insideBorderRect() const
BorderTitleBlock::insideBorderRect.
Definition: bordertitleblock.cpp:185
QVector< QDomElement > subChild(const QDomElement &element, const QString parent_tag_name, const QString &children_tag_name)
QETXML::subChild.
Definition: qetxml.cpp:341
@ SendBackward
Send item to the background so they have the lowest zValue.
Definition: qet.h:49
The ElementCollectionHandler class Provide several method to copy element or directory from a collect...
Definition: elementcollectionhandler.h:109
Diagram(QETProject *project)
Diagram::Diagram Constructor.
Definition: diagram.cpp:64
void continueMovement(const QPointF &)
ElementsMover::continueMovement Add a move to the current movement.
Definition: elementsmover.cpp:112
The TitleBlockTemplate class This class represents an title block template for an electric diagram....
Definition: titleblocktemplate.h:36
void keyReleaseEvent(QKeyEvent *) override
Diagram::keyReleaseEvent This event is managed by diagram event interface if any. Else move selected ...
Definition: diagram.cpp:479
friend DiagramFolioList
Definition: diagram.h:57
void selectAll()
Diagram::selectAll Select all schema objects.
Definition: diagram.cpp:1676
void setUseBorder(bool)
Diagram::setUseBorder Set whether the diagram border (including rows/colums headers and the title blo...
Definition: diagram.h:353
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
@ BringForward
Bring item to the foreground so they have the highest zValue.
Definition: qet.h:46
@ Type
Definition: dynamicelementtextitem.h:61
QGraphicsLineItem * conductor_setter_
Definition: diagram.h:110
void clearEventInterface()
Diagram::clearEventInterface Clear the current event interface.
Definition: diagram.cpp:551
void setBorderOptions(BorderOptions)
Diagram::setBorderOptions Set the rendering options for the diagram border (including rows/colums hea...
Definition: diagram.h:373
void titleBlockTemplateRemoved(const QString &, const QString &=QString())
Diagram::titleBlockTemplateRemoved This slot has to be be used to inform this class that the given ti...
Definition: diagram.cpp:1639
@ Columns
Definition: diagram.h:77
void addElement(Element *element)
projectDataBase::addElement
Definition: projectdatabase.cpp:91
void calculateTextItemPosition()
Conductor::calculateTextItemPosition Move the text at middle of conductor (if is vertical or horizont...
Definition: conductor.cpp:1290
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
Diagram::mouseMoveEvent This event is managed by diagram event interface if any.
Definition: diagram.cpp:266
QIcon Conductor
Definition: qeticons.cpp:35
@ Type
Definition: qetgraphicstableitem.h:57
virtual void removeItem(QGraphicsItem *item)
Diagram::removeItem Reimplemented from QGraphicsScene::removeItem(QGraphicsItem *item) Do some specif...
Definition: diagram.cpp:1581
bool isReadOnly() const
Diagram::isReadOnly.
Definition: diagram.cpp:2363
virtual bool fromXml(QDomElement &, QHash< int, Terminal * > &, bool=false)
Element::fromXml Import the parameters of this element from a xml document. When call this function e...
Definition: element.cpp:684
void removeConductor(Conductor *conductor)
Terminal::removeConductor Remove a conductor from this terminal.
Definition: terminal.cpp:239
void insertFolioSeqHash(QHash< QString, QStringList > *hash, const QString &title, const QString &seq, NumerotationContext *nc)
Diagram::insertFolioSeqHash This class inserts a stringlist containing all sequential variables relat...
Definition: diagram.cpp:1733
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
Definition: diagrameventinterface.cpp:34
@ EmptyBorder
Definition: diagram.h:77
void editElementRequired(const ElementsLocation &)
Signal emitted when users wish to edit an element from the diagram.
@ BorderArea
Export the diagram along with its border and title block.
Definition: qet.h:140
void changeZValue(QET::DepthOption option)
Diagram::changeZValue Change the Z value of the current selected item, according to option.
Definition: diagram.cpp:1784
void invertSelection()
Diagram::invertSelection Reverses the selection state of all schema objects Inverse l'etat de selecti...
Definition: diagram.cpp:1701
DiagramPosition convertPosition(const QPointF &)
Diagram::convertPosition.
Definition: diagram.cpp:2223
void fromXml(QDomElement &)
ConductorProperties::fromXml Import conductor propertie, from the attribute of the xml element 'e'.
Definition: conductorproperties.cpp:307
DepthOption
List the various kind of changes for the zValue.
Definition: qet.h:45
static int projectId(const QETProject *)
QETApp::projectId.
Definition: qetapp.cpp:2433
QString conductorsAutonumName() const
Diagram::conductorsAutonumName.
Definition: diagram.cpp:564
ElementTextsMover m_element_texts_mover
Definition: diagram.h:112
Definition: elementtextsmover.h:35
The AlignmentTextsGroupCommand class.
Definition: addelementtextcommand.h:145
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Definition: diagrameventinterface.cpp:46
void toXml(QDomElement &) const
ConductorProperties::toXml Export conductor propertie, in the XML element 'e'.
Definition: conductorproperties.cpp:264
void borderChanged(QRectF old_border, QRectF new_border)
borderChanged Signal emitted after the border has changed
BorderOptions
The BorderOptions enum Represents available options when rendering a particular diagram: EmptyBorder:...
Definition: diagram.h:77
void refreshContents()
Diagram::refreshContents refresh all content of diagram.
Definition: diagram.cpp:1526
QHash< QString, QStringList > m_cnd_tenfolio_max
Definition: diagram.h:106
virtual void wheelEvent(QGraphicsSceneWheelEvent *event)
Definition: diagrameventinterface.cpp:50
ExportProperties applyProperties(const ExportProperties &)
Diagram::applyProperties This method allows you to apply new rendering options while accessing the cu...
Definition: diagram.cpp:2186
QUndoStack & undoStack()
Diagram::undoStack.
Definition: diagram.h:397
QHash< QString, NumerotationContext > conductorAutoNum() const
QETProject::conductorAutoNum.
Definition: qetproject.cpp:493
ConductorProperties defaultConductorProperties
Default properties for new conductors.
Definition: diagram.h:81
void removeElement(Element *element)
projectDataBase::removeElement
Definition: projectdatabase.cpp:122
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
Diagram::mouseDoubleClickEvent This event is managed by diagram event interface if any.
Definition: diagram.cpp:228
@ Lower
Send item one layer below their current one; zValues are decremented.
Definition: qet.h:48
bool freezeNewElements()
Diagram::freezeNewElements.
Definition: diagram.cpp:2132
bool addConductor(Conductor *conductor)
Terminal::addConductor Add a conductor to this terminal.
Definition: terminal.cpp:215
static ElementFactory * Instance()
Definition: elementfactory.h:38
QHash< QString, QStringList > m_cnd_hundredfolio_max
Definition: diagram.h:107
bool draw_terminals
Whether to render terminals.
Definition: exportproperties.h:48
static const qreal margin
margin around the diagram
Definition: diagram.h:97
QET::DiagramArea exported_area
Area of diagrams to be rendered.
Definition: exportproperties.h:50
void loadElmtFolioSeq()
Diagram::loadElmtFolioSeq This class loads all folio sequential variables related to the current auto...
Definition: diagram.cpp:1857
The ElementsLocation class This class represents the location, the location of an element or of a cat...
Definition: elementslocation.h:46
void findElementRequired(const ElementsLocation &)
void drawBackground(QPainter *, const QRectF &) override
Diagram::drawBackground Draw the background of the diagram, ie the grid.
Definition: diagram.cpp:158
void folioSequentialsToXml(QHash< QString, QStringList > *, QDomElement *, const QString &, const QString &, QDomDocument *)
Diagram::folioSequentialsToXml Add folio sequential to QDomElement.
Definition: diagram.cpp:980
static int xGrid
abscissa grid step size
Definition: diagram.h:85
virtual void unlinkAllElements()
Definition: element.h:155
void setFreezeLabel(bool freeze)
Conductor::setFreezeLabel Freeze this conductor label if true Unfreeze this conductor label if false.
Definition: conductor.cpp:2035
QGIManager & qgiManager()
Diagram::qgiManager.
Definition: diagram.h:405
Definition: diagramtextitem.h:34
static bool valideXml(QDomElement &)
Definition: element.cpp:651
@ All
Definition: diagramcontent.h:65
Definition: qetproject.h:51
void diagramTitleChanged(Diagram *, const QString &)
void needTitleBlockTemplate(const QString &)
needTitleBlockTemplate Signal emitted when this object needs to set a specific title block template....
QHash< QString, QStringList > m_elmt_hundredfolio_max
Definition: diagram.h:103
bool columnsAreDisplayed() const
Definition: bordertitleblock.h:140
The ElementTextItemGroup class This class represent a group of element text Texts in the group can be...
Definition: elementtextitemgroup.h:36
BorderOptions borderOptions()
Diagram::borderOptions.
Definition: diagram.h:384
@ SelectedOnly
Definition: diagramcontent.h:66
bool titleBlockIsDisplayed() const
Definition: bordertitleblock.h:136
QVector< QetGraphicsTableItem * > table(QetGraphicsTableItem *table=nullptr, QAbstractItemModel *model=nullptr)
ElementProvider::table.
Definition: elementprovider.cpp:120
bool isValid() const
Conductor::isValid.
Definition: conductor.cpp:150
static int yGrid
ordinate grid step size
Definition: diagram.h:87
void setConductorStart(QPointF)
Diagram::setConductorStart Set the start point of the conductor setter.
Definition: diagram.h:314
static QETProject * project(const uint &)
QETApp::project.
Definition: qetapp.cpp:2416
QStringList itemAt(const int) const
NumerotationContext::itemAt.
Definition: numerotationcontext.cpp:110
ElementsMover & elementsMover()
Diagram::elementsMover.
Definition: diagram.cpp:2057
QUuid uuid()
Diagram::uuid.
Definition: diagram.cpp:519
bool displayGrid()
Diagram::displayGrid.
Definition: diagram.h:341
int folioIndex() const
Diagram::folioIndex.
Definition: diagram.cpp:2335
Terminal * findTerminal(int conductor_index, QDomElement &f, QHash< int, Terminal * > &table_adr_id, QList< Element * > &added_elements)
findTerminal Find terminal to which the conductor should be connected
Definition: diagram.cpp:1093
@ Type
Definition: conductor.h:64
Definition: qgimanager.h:27
The BorderTitleBlock class This class represents the border and the titleblock which frame a particul...
Definition: bordertitleblock.h:37
QString title() const
Diagram::title.
Definition: diagram.cpp:2023
The ConductorProperties class This class represents the functional properties of a particular conduct...
Definition: conductorproperties.h:68
void diagramTitleChanged(const QString &)
diagramTitleChanged Signal emitted after the title has changed
static QPointF snapToGrid(const QPointF &p)
Diagram::snapToGrid Return a nearest snap point of p.
Definition: diagram.cpp:2240
Definition: independenttextitem.h:28
QList< QSet< Conductor * > > potentials()
Diagram::potential.
Definition: diagram.cpp:690
void keyPressEvent(QKeyEvent *event) override
Diagram::keyPressEvent This event is managed by diagram event interface if any. Else move selected el...
Definition: diagram.cpp:324
@ Shapes
Definition: diagramcontent.h:62
void setFreezeNewConductors(bool)
Diagram::setfreezeNewConductors Set new conductor label to be frozen.
Definition: diagram.cpp:2150
QList< QGraphicsItem * > items(int=All) const
DiagramContent::items.
Definition: diagramcontent.cpp:374
The QetShapeItem class this class is used to draw a basic shape (line, rectangle, ellipse) into a dia...
Definition: qetshapeitem.h:36
friend QETProject
Definition: diagram.h:58
bool initFromXml(QDomElement &, QPointF=QPointF(), bool=true, DiagramContent *=nullptr)
Diagram::initFromXml Imports the described schema in an XML element. This method delegates its work t...
Definition: diagram.cpp:1067
Definition: exportproperties.h:27
@ Type
Definition: conductortextitem.h:42
void setDrawTerminals(bool)
Diagram::setDrawTerminals Defines whether or not to display the terminals.
Definition: diagram.cpp:2271
bool useBorder()
Diagram::useBorder.
Definition: diagram.h:362
qreal diagram_qet_version_
Definition: diagram.h:118
Definition: diagramposition.h:29
void setDisplayGrid(bool)
Diagram::setDisplayGrid Set whether the diagram grid should be drawn.
Definition: diagram.h:333
bool use_border_
Definition: diagram.h:121
void setFreezeNewElements(bool)
Diagram::freezeNewElements Set new element label to be frozen.
Definition: diagram.cpp:2124
QHash< QString, QStringList > m_elmt_unitfolio_max
Hash containing max values for folio sequential autonums in this diagram.
Definition: diagram.h:101
Definition: conductor.h:43
void unfreezeElements()
Diagram::unfreezeElements Unfreeze every existent element label.
Definition: diagram.cpp:2114
void folioSequentialsFromXml(const QDomElement &, QHash< QString, QStringList > *, const QString &, const QString &, const QString &, const QString &)
Diagram::folioSequentialsFromXml Load folio sequential from QDomElement.
Definition: diagram.cpp:1491
QHash< QString, NumerotationContext > elementAutoNum() const
QETProject::elementAutoNum.
Definition: qetproject.cpp:501
bool draw_terminals_
Definition: diagram.h:122
void borderFromXml(const QDomElement &)
BorderTitleBlock::borderFromXml Reads the border settings from XML.
Definition: bordertitleblock.cpp:241
@ Type
Definition: diagramimageitem.h:42
bool usesElement(const ElementsLocation &)
Diagram::usesElement Used to find out if an element is used on a schema.
Definition: diagram.cpp:2080
The DiagramEventInterface class isRunning() return true if action is running (do something)....
Definition: diagrameventinterface.h:46
void setTitleBlockTemplate(const QString &)
Diagram::setTitleBlockTemplate Set the template to use to render the title block of this diagram.
Definition: diagram.cpp:1656
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
Diagram::mouseReleaseEvent This event is managed by diagram event interface if any.
Definition: diagram.cpp:285
QSet< Conductor * > selectedConductors() const
Diagram::selectedConductors.
Definition: diagram.cpp:2297
The Terminal class This class represents a terminal of an electrical element, i.e....
Definition: terminal.h:35
QList< Conductor * > conductors() const
Diagram::conductors.
Definition: diagram.cpp:2044
The QPropertyUndoCommand class This undo command manage QProperty of a QObject. This undo command can...
Definition: qpropertyundocommand.h:34
@ Elements
Definition: diagramcontent.h:54
QSet< IndependentTextItem * > m_text_fields
Definition: diagramcontent.h:70
virtual void keyPressEvent(QKeyEvent *event)
DiagramEventInterface::keyPressEvent By default, press escape key abort the curent action.
Definition: diagrameventinterface.cpp:59
bool drawColoredConductors() const
Diagram::drawColoredConductors.
Definition: diagram.h:421
void freezeLabel(bool freeze)
Element::freezeLabel Freeze this element label.
Definition: element.cpp:1715
void displayBorder(bool)
BorderTitleBlock::displayBorder.
Definition: bordertitleblock.cpp:468
ElementsMover m_elements_mover
Definition: diagram.h:111
static QString xmlTagName()
Definition: qetgraphicstableitem.h:85
QIcon tr
Definition: qeticons.cpp:206
DiagramPosition convertPosition(const QPointF &)
BorderTitleBlock::convertPosition Convert a Point in cartesian coordinate (x : 12....
Definition: bordertitleblock.cpp:880
void titleBlockTemplateChanged(const QString &)
BorderTitleBlock::titleBlockTemplateChanged This slot may be used to inform this class that the given...
Definition: bordertitleblock.cpp:399
DiagramContent content() const
Diagram::content.
Definition: diagram.cpp:2375
bool borderIsDisplayed() const
Definition: bordertitleblock.h:145
QString conductorCurrentAutoNum() const
QETProject::conductorCurrentAutoNum.
Definition: qetproject.cpp:560
Diagram(const Diagram &diagram)
bool draw_grid
Whether to render the diagram grid.
Definition: exportproperties.h:45
void showDiagram(Diagram *)