QElectroTech
0.8-dev
|
The Diagram class This class represents an electric diagram. It manages its various child elements, conductors and texts and handles their graphic rendering. More...
#include <diagram.h>
Inherits QGraphicsScene.
Public Types | |
enum | BorderOptions { EmptyBorder, TitleBlock, Columns } |
The BorderOptions enum Represents available options when rendering a particular diagram: EmptyBorder: display border only TitleBlock: display title block Columns: display columns. More... | |
enum | NumerotationType { Conductors } |
Represents available option of Numerotation type. More... | |
Public Slots | |
void | adjustSceneRect () |
Diagram::adjustSceneRect Recalcul and adjust the size of the scene. More... | |
void | titleChanged (const QString &) |
Diagram::titleChanged emit(diagramTitleChanged(this, title));. More... | |
void | titleBlockTemplateChanged (const QString &) |
Diagram::titleBlockTemplateChanged This slot may be used to inform the diagram object that the given title block template has changed. The diagram will thus flush its title block-dedicated rendering cache. More... | |
void | titleBlockTemplateRemoved (const QString &, const QString &=QString()) |
Diagram::titleBlockTemplateRemoved This slot has to be be used to inform this class that the given title block template is about to be removed and is no longer accessible. This class will either use the provided optional TitleBlockTemplate or the default title block provided by QETApp::defaultTitleBlockTemplate() More... | |
void | setTitleBlockTemplate (const QString &) |
Diagram::setTitleBlockTemplate Set the template to use to render the title block of this diagram. More... | |
void | updateLabels () |
Diagram::updateLabels Update elements and conductors that reference folio field in their labels. More... | |
void | loadElmtFolioSeq () |
Diagram::loadElmtFolioSeq This class loads all folio sequential variables related to the current autonum. More... | |
void | loadCndFolioSeq () |
Diagram::loadCndFolioSeq This class loads all conductor folio sequential variables related to the current autonum. More... | |
void | selectAll () |
Diagram::selectAll Select all schema objects. More... | |
void | deselectAll () |
Diagram::deselectAll Deselects all selected objects. More... | |
void | invertSelection () |
Diagram::invertSelection Reverses the selection state of all schema objects Inverse l'etat de selection de tous les objets du schema. More... | |
Signals | |
void | showDiagram (Diagram *) |
void | usedTitleBlockTemplateChanged (const QString &) |
void | diagramTitleChanged (Diagram *, const QString &) |
void | findElementRequired (const ElementsLocation &) |
void | editElementRequired (const ElementsLocation &) |
Signal emitted when users wish to edit an element from the diagram. More... | |
void | diagramActivated () |
Public Member Functions | |
QUuid | uuid () |
Diagram::uuid. More... | |
void | setEventInterface (DiagramEventInterface *event_interface) |
Diagram::setEventInterface Set event_interface has current interface. Diagram become the ownership of event_interface If there is a previous interface, they will be delete before and call init() to the new interface. More... | |
void | clearEventInterface () |
Diagram::clearEventInterface Clear the current event interface. More... | |
QString | conductorsAutonumName () const |
Diagram::conductorsAutonumName. More... | |
void | setConductorsAutonumName (const QString &name) |
Diagram::setConductorsAutonumName. More... | |
QETProject * | project () const |
Diagram::project. More... | |
int | folioIndex () const |
Diagram::folioIndex. More... | |
qreal | declaredQElectroTechVersion (bool=true) const |
Diagram::declaredQElectroTechVersion. More... | |
void | showMe () |
bool | isReadOnly () const |
Diagram::isReadOnly. More... | |
void | setConductor (bool) |
Diagram::setConductor Display or hide the conductor setter, i.e. a dashed conductor stub which appears when creating a conductor between two terminals. More... | |
void | setConductorStart (QPointF) |
Diagram::setConductorStart Set the start point of the conductor setter. More... | |
void | setConductorStop (QPointF) |
Diagram::setConductorStop Set the end point of the conductor setter. More... | |
QList< QSet< Conductor * > > | potentials () |
Diagram::potential. More... | |
QDomDocument | toXml (bool=true) |
Diagram::toXml Exports all or part of the schema. More... | |
bool | initFromXml (QDomElement &, QPointF=QPointF(), bool=true, DiagramContent *=nullptr) |
Diagram::initFromXml Imports the described schema in an XML element. This method delegates its work to Diagram :: fromXml If the import is successful, this method also initializes the XML document internal allowing to manage the recording of this diagram in the project to which it belongs. More... | |
bool | fromXml (QDomDocument &, QPointF=QPointF(), bool=true, DiagramContent *=nullptr) |
Diagram::fromXml Imports the described schema into an XML document. If a position is specified, the imported elements are positioned so that the upper left corner of the smallest rectangle that can surround them all (the bounding rect) is at this position. More... | |
bool | fromXml (QDomElement &, QPointF=QPointF(), bool=true, DiagramContent *=nullptr) |
Diagram::fromXml Imports the described schema in an XML element. If a position is specified, the imported elements are positioned in such a way that the upper left corner of the smallest rectangle that can surround them all (the bounding rect) either at this position. More... | |
void | folioSequentialsToXml (QHash< QString, QStringList > *, QDomElement *, const QString &, const QString &, QDomDocument *) |
Diagram::folioSequentialsToXml Add folio sequential to QDomElement. More... | |
void | folioSequentialsFromXml (const QDomElement &, QHash< QString, QStringList > *, const QString &, const QString &, const QString &, const QString &) |
Diagram::folioSequentialsFromXml Load folio sequential from QDomElement. More... | |
void | refreshContents () |
Diagram::refreshContents refresh all content of diagram. More... | |
virtual void | addItem (QGraphicsItem *item) |
Diagram::addItem Réimplemented from QGraphicsScene::addItem(QGraphicsItem *item) Do some specific operation if item need it (for exemple an element) More... | |
virtual void | removeItem (QGraphicsItem *item) |
Diagram::removeItem Reimplemented from QGraphicsScene::removeItem(QGraphicsItem *item) Do some specific operation if item need it (for exemple an element) More... | |
ExportProperties | applyProperties (const ExportProperties &) |
Diagram::applyProperties This method allows you to apply new rendering options while accessing the current rendering properties. More... | |
void | setDisplayGrid (bool) |
Diagram::setDisplayGrid Set whether the diagram grid should be drawn. More... | |
bool | displayGrid () |
Diagram::displayGrid. More... | |
void | setUseBorder (bool) |
Diagram::setUseBorder Set whether the diagram border (including rows/colums headers and the title block) should be rendered along with the diagram. When set to false, the size of the smallest rectangle containing all items is considered as the diagram size. More... | |
bool | useBorder () |
Diagram::useBorder. More... | |
void | setBorderOptions (BorderOptions) |
Diagram::setBorderOptions Set the rendering options for the diagram border (including rows/colums headers and the title block) More... | |
BorderOptions | borderOptions () |
Diagram::borderOptions. More... | |
DiagramPosition | convertPosition (const QPointF &) |
Diagram::convertPosition. More... | |
bool | drawTerminals () const |
Diagram::drawTerminals. More... | |
void | setDrawTerminals (bool) |
Diagram::setDrawTerminals Defines whether or not to display the terminals. More... | |
bool | drawColoredConductors () const |
Diagram::drawColoredConductors. More... | |
void | setDrawColoredConductors (bool) |
Diagram::setDrawColoredConductors Defines whether or not to respect the colors of the conductors. If not, the conductors are all drawn in black. More... | |
QString | title () const |
Diagram::title. More... | |
bool | toPaintDevice (QPaintDevice &, int=-1, int=-1, Qt::AspectRatioMode=Qt::KeepAspectRatio) |
QSize | imageSize () const |
Diagram::imageSize Allows you to know the dimensions that the image generated by the toImage() method will have. More... | |
bool | isEmpty () const |
Diagram::isEmpty An empty schema contains no element, conductor, or text field. More... | |
QList< Element * > | elements () const |
Diagram::elements. More... | |
QList< Conductor * > | conductors () const |
Diagram::conductors. More... | |
QSet< Conductor * > | selectedConductors () const |
Diagram::selectedConductors. More... | |
DiagramContent | content () const |
Diagram::content. More... | |
bool | canRotateSelection () const |
Diagram::canRotateSelection. More... | |
ElementsMover & | elementsMover () |
Diagram::elementsMover. More... | |
ElementTextsMover & | elementTextsMover () |
Diagram::elementTextsMover. More... | |
bool | usesElement (const ElementsLocation &) |
Diagram::usesElement Used to find out if an element is used on a schema. More... | |
bool | usesTitleBlockTemplate (const QString &) |
Diagram::usesTitleBlockTemplate. More... | |
QUndoStack & | undoStack () |
Diagram::undoStack. More... | |
QGIManager & | qgiManager () |
Diagram::qgiManager. More... | |
void | freezeElements (bool freeze) |
Diagram::freezeElements Freeze every existent element label. More... | |
void | unfreezeElements () |
Diagram::unfreezeElements Unfreeze every existent element label. More... | |
void | setFreezeNewElements (bool) |
Diagram::freezeNewElements Set new element label to be frozen. More... | |
bool | freezeNewElements () |
Diagram::freezeNewElements. More... | |
void | freezeConductors (bool freeze) |
Diagram::freezeConductors Freeze every existent conductor label. More... | |
void | setFreezeNewConductors (bool) |
Diagram::setfreezeNewConductors Set new conductor label to be frozen. More... | |
bool | freezeNewConductors () |
Diagram::freezeNewConductors. More... | |
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 related to an autonum in a QHash. More... | |
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 autonum. More... | |
void | changeZValue (QET::DepthOption option) |
Diagram::changeZValue Change the Z value of the current selected item, according to option. More... | |
Static Public Member Functions | |
static bool | clipboardMayContainDiagram () |
Diagram::clipboardMayContainDiagram. More... | |
static QPointF | snapToGrid (const QPointF &p) |
Diagram::snapToGrid Return a nearest snap point of p. More... | |
Public Attributes | |
ConductorProperties | defaultConductorProperties |
Default properties for new conductors. More... | |
BorderTitleBlock | border_and_titleblock |
Diagram dimensions and title block. More... | |
QHash< QString, QStringList > | m_elmt_unitfolio_max |
Hash containing max values for folio sequential autonums in this diagram. More... | |
QHash< QString, QStringList > | m_elmt_tenfolio_max |
QHash< QString, QStringList > | m_elmt_hundredfolio_max |
QHash< QString, QStringList > | m_cnd_unitfolio_max |
Hash containing max values for folio sequential autonums in this diagram. More... | |
QHash< QString, QStringList > | m_cnd_tenfolio_max |
QHash< QString, QStringList > | m_cnd_hundredfolio_max |
Static Public Attributes | |
static int | xGrid = 10 |
abscissa grid step size More... | |
static int | yGrid = 10 |
ordinate grid step size More... | |
static int | xKeyGrid = 10 |
Key grid x step size. More... | |
static int | yKeyGrid = 10 |
Key grid y step size. More... | |
static int | xKeyGridFine = 1 |
Key grid fine x step size. More... | |
static int | yKeyGridFine = 1 |
Key grid fine y step size. More... | |
static const qreal | margin = 5.0 |
margin around the diagram More... | |
static QColor | background_color = Qt::white |
background color of diagram More... | |
Protected Member Functions | |
void | drawBackground (QPainter *, const QRectF &) override |
Diagram::drawBackground Draw the background of the diagram, ie the grid. More... | |
void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override |
Diagram::mouseDoubleClickEvent This event is managed by diagram event interface if any. More... | |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
Diagram::mousePressEvent This event is managed by diagram event interface if any. More... | |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
Diagram::mouseMoveEvent This event is managed by diagram event interface if any. More... | |
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
Diagram::mouseReleaseEvent This event is managed by diagram event interface if any. More... | |
void | wheelEvent (QGraphicsSceneWheelEvent *event) override |
Diagram::wheelEvent This event is managed by diagram event interface if any. More... | |
void | keyPressEvent (QKeyEvent *event) override |
Diagram::keyPressEvent This event is managed by diagram event interface if any. Else move selected elements. More... | |
void | keyReleaseEvent (QKeyEvent *) override |
Diagram::keyReleaseEvent This event is managed by diagram event interface if any. Else move selected element. More... | |
Private Member Functions | |
Diagram (QETProject *project) | |
Diagram::Diagram Constructor. More... | |
~Diagram () override | |
Diagram::~Diagram Destructor. More... | |
Diagram (const Diagram &diagram) | |
Private Attributes | |
friend | DiagramFolioList |
friend | QETProject |
QGraphicsLineItem * | conductor_setter_ |
ElementsMover | m_elements_mover |
ElementTextsMover | m_element_texts_mover |
QGIManager * | qgi_manager_ |
QETProject * | m_project |
QDomDocument | xml_document_ |
qreal | diagram_qet_version_ |
bool | draw_grid_ |
bool | use_border_ |
bool | draw_terminals_ |
bool | draw_colored_conductors_ |
QString | m_conductors_autonum_name |
DiagramEventInterface * | m_event_interface |
bool | m_freeze_new_elements |
bool | m_freeze_new_conductors_ |
QUuid | m_uuid = QUuid::createUuid() |
The Diagram class This class represents an electric diagram. It manages its various child elements, conductors and texts and handles their graphic rendering.
|
private |
Diagram::Diagram Constructor.
project | : The project of this diagram and also parent QObject |
|
overrideprivate |
|
private |
|
virtual |
Diagram::addItem Réimplemented from QGraphicsScene::addItem(QGraphicsItem *item) Do some specific operation if item need it (for exemple an element)
item |
|
slot |
Diagram::adjustSceneRect Recalcul and adjust the size of the scene.
ExportProperties Diagram::applyProperties | ( | const ExportProperties & | new_properties | ) |
Diagram::applyProperties This method allows you to apply new rendering options while accessing the current rendering properties.
new_properties | : New rendering options to apply |
|
inline |
bool Diagram::canRotateSelection | ( | ) | const |
void Diagram::changeZValue | ( | QET::DepthOption | option | ) |
Diagram::changeZValue Change the Z value of the current selected item, according to option.
option |
void Diagram::clearEventInterface | ( | ) |
Diagram::clearEventInterface Clear the current event interface.
|
static |
Diagram::clipboardMayContainDiagram.
QList< Conductor * > Diagram::conductors | ( | ) | const |
QString Diagram::conductorsAutonumName | ( | ) | const |
Diagram::conductorsAutonumName.
DiagramContent Diagram::content | ( | ) | const |
DiagramPosition Diagram::convertPosition | ( | const QPointF & | pos | ) |
pos | : Cartesian position (ex: 10.3, 45.2) to transform into position in the grid (ex: B2) |
qreal Diagram::declaredQElectroTechVersion | ( | bool | fallback_to_project = true | ) | const |
Diagram::declaredQElectroTechVersion.
fallback_to_project | : When a diagram does not have a declared version, this method will use the one declared by its parent project only if fallback_to_project is true. |
|
slot |
|
signal |
|
signal |
|
inline |
|
overrideprotected |
Diagram::drawBackground Draw the background of the diagram, ie the grid.
p | : The QPainter to use for drawing |
r | : The rectangle of the area to be drawn |
|
inline |
Diagram::drawColoredConductors.
|
inline |
|
signal |
Signal emitted when users wish to edit an element from the diagram.
QList< Element * > Diagram::elements | ( | ) | const |
ElementsMover & Diagram::elementsMover | ( | ) |
ElementTextsMover & Diagram::elementTextsMover | ( | ) |
|
signal |
Signal emitted when users wish to locate an element from the diagram within elements collection
int Diagram::folioIndex | ( | ) | const |
void Diagram::folioSequentialsFromXml | ( | const QDomElement & | root, |
QHash< QString, QStringList > * | hash, | ||
const QString & | folioSeq, | ||
const QString & | seq, | ||
const QString & | type, | ||
const QString & | autonumFolioSeqType | ||
) |
Diagram::folioSequentialsFromXml Load folio sequential from QDomElement.
root | containing all folio sequentials |
hash | : to be loaded with content |
folioSeq | type |
seq | type |
type | of sequential |
autonumFolioSeqType |
void Diagram::folioSequentialsToXml | ( | QHash< QString, QStringList > * | hash, |
QDomElement * | domElement, | ||
const QString & | seq_type, | ||
const QString & | type, | ||
QDomDocument * | doc | ||
) |
Diagram::folioSequentialsToXml Add folio sequential to QDomElement.
hash | to retrieve content with content |
domElement | to add attributes |
seq_type | type |
type | |
doc |
void Diagram::freezeConductors | ( | bool | freeze | ) |
Diagram::freezeConductors Freeze every existent conductor label.
void Diagram::freezeElements | ( | bool | freeze | ) |
Diagram::freezeElements Freeze every existent element label.
bool Diagram::freezeNewConductors | ( | ) |
bool Diagram::freezeNewElements | ( | ) |
bool Diagram::fromXml | ( | QDomDocument & | document, |
QPointF | position = QPointF() , |
||
bool | consider_informations = true , |
||
DiagramContent * | content_ptr = nullptr |
||
) |
Diagram::fromXml Imports the described schema into an XML document. If a position is specified, the imported elements are positioned so that the upper left corner of the smallest rectangle that can surround them all (the bounding rect) is at this position.
document | : The XML document to analyze |
position | : The position of the diagram matters |
consider_informations | : If true, additional information (author, title, ...) will be taken into account |
content_ptr | : if this pointer to a DiagramContent is different from 0, it will be filled with the content added to the schema by the fromXml |
bool Diagram::fromXml | ( | QDomElement & | document, |
QPointF | position = QPointF() , |
||
bool | consider_informations = true , |
||
DiagramContent * | content_ptr = nullptr |
||
) |
Diagram::fromXml Imports the described schema in an XML element. If a position is specified, the imported elements are positioned in such a way that the upper left corner of the smallest rectangle that can surround them all (the bounding rect) either at this position.
document | : The XML document to analyze |
position | : The position of the diagram matters |
consider_informations | : If true, additional information (author, title, ...) will be taken into account |
content_ptr | : if this pointer to a DiagramContent is different from 0, it will be filled with the content added to the schema by the fromXml |
QSize Diagram::imageSize | ( | ) | const |
Diagram::imageSize Allows you to know the dimensions that the image generated by the toImage() method will have.
bool Diagram::initFromXml | ( | QDomElement & | document, |
QPointF | position = QPointF() , |
||
bool | consider_informations = true , |
||
DiagramContent * | content_ptr = nullptr |
||
) |
Diagram::initFromXml Imports the described schema in an XML element. This method delegates its work to Diagram :: fromXml If the import is successful, this method also initializes the XML document internal allowing to manage the recording of this diagram in the project to which it belongs.
document | : The XML document to analyze |
position | : The position of the diagram matters |
consider_informations | : If true, additional information (author, title, ...) will be taken into account |
content_ptr | : if this pointer to a DiagramContent is different from 0, it will be filled with the content added to the schema by the fromXml |
void Diagram::insertFolioSeqHash | ( | QHash< QString, QStringList > * | hash, |
const QString & | title, | ||
const QString & | type, | ||
NumerotationContext * | nc | ||
) |
Diagram::insertFolioSeqHash This class inserts a stringlist containing all sequential variables related to an autonum in a QHash.
hash | : to be accessed |
title | : autonum title |
type | : to be treated |
nc | : Context to be manipulated |
|
slot |
Diagram::invertSelection Reverses the selection state of all schema objects Inverse l'etat de selection de tous les objets du schema.
bool Diagram::isEmpty | ( | ) | const |
Diagram::isEmpty An empty schema contains no element, conductor, or text field.
bool Diagram::isReadOnly | ( | ) | const |
|
overrideprotected |
Diagram::keyPressEvent This event is managed by diagram event interface if any. Else move selected elements.
event |
|
overrideprotected |
Diagram::keyReleaseEvent This event is managed by diagram event interface if any. Else move selected element.
e |
|
slot |
Diagram::loadCndFolioSeq This class loads all conductor folio sequential variables related to the current autonum.
|
slot |
Diagram::loadElmtFolioSeq This class loads all folio sequential variables related to the current autonum.
void Diagram::loadFolioSeqHash | ( | QHash< QString, QStringList > * | hash, |
const QString & | title, | ||
const QString & | type, | ||
NumerotationContext * | nc | ||
) |
Diagram::loadFolioSeqHash This class loads all folio sequential variables related to the current autonum.
hash | : to be accessed |
title | : autonum title |
type | : to be treated |
nc | : Context to be manipulated |
|
overrideprotected |
Diagram::mouseDoubleClickEvent This event is managed by diagram event interface if any.
event | : |
|
overrideprotected |
Diagram::mouseMoveEvent This event is managed by diagram event interface if any.
event |
|
overrideprotected |
Diagram::mousePressEvent This event is managed by diagram event interface if any.
event |
|
overrideprotected |
Diagram::mouseReleaseEvent This event is managed by diagram event interface if any.
event |
QList< QSet< Conductor * > > Diagram::potentials | ( | ) |
Diagram::potential.
QETProject * Diagram::project | ( | ) | const |
|
inline |
void Diagram::refreshContents | ( | ) |
Diagram::refreshContents refresh all content of diagram.
|
virtual |
Diagram::removeItem Reimplemented from QGraphicsScene::removeItem(QGraphicsItem *item) Do some specific operation if item need it (for exemple an element)
item |
|
slot |
QSet< Conductor * > Diagram::selectedConductors | ( | ) | const |
|
inline |
Diagram::setBorderOptions Set the rendering options for the diagram border (including rows/colums headers and the title block)
bo | Enabled options ORed together |
|
inline |
Diagram::setConductor Display or hide the conductor setter, i.e. a dashed conductor stub which appears when creating a conductor between two terminals.
adding | true add conductor ,false remove conductor |
void Diagram::setConductorsAutonumName | ( | const QString & | name | ) |
Diagram::setConductorsAutonumName.
name | : name of autonum to use. |
|
inline |
Diagram::setConductorStart Set the start point of the conductor setter.
start | the point (in scene coordinates) which the newly created conductor should start from. |
|
inline |
Diagram::setConductorStop Set the end point of the conductor setter.
end | the point (in scene coordinates) upon to which the newly created conductor should be drawn. |
|
inline |
Diagram::setDisplayGrid Set whether the diagram grid should be drawn.
dg | true to render the grid, false otherwise. |
void Diagram::setDrawColoredConductors | ( | bool | dcc | ) |
Diagram::setDrawColoredConductors Defines whether or not to respect the colors of the conductors. If not, the conductors are all drawn in black.
dcc | true to respect the colors, false otherwise |
void Diagram::setDrawTerminals | ( | bool | dt | ) |
Diagram::setDrawTerminals Defines whether or not to display the terminals.
dt | : true to display the bounds, false otherwise |
void Diagram::setEventInterface | ( | DiagramEventInterface * | event_interface | ) |
Diagram::setEventInterface Set event_interface has current interface. Diagram become the ownership of event_interface If there is a previous interface, they will be delete before and call init() to the new interface.
event_interface |
void Diagram::setFreezeNewConductors | ( | bool | b | ) |
Diagram::setfreezeNewConductors Set new conductor label to be frozen.
void Diagram::setFreezeNewElements | ( | bool | b | ) |
Diagram::freezeNewElements Set new element label to be frozen.
|
slot |
Diagram::setTitleBlockTemplate Set the template to use to render the title block of this diagram.
template_name | Name of the title block template. |
|
inline |
Diagram::setUseBorder Set whether the diagram border (including rows/colums headers and the title block) should be rendered along with the diagram. When set to false, the size of the smallest rectangle containing all items is considered as the diagram size.
ub | true to take the border into account, false otherwise |
|
signal |
|
inline |
|
static |
Diagram::snapToGrid Return a nearest snap point of p.
p | point to find the nearest snaped point |
QString Diagram::title | ( | ) | const |
|
slot |
Diagram::titleBlockTemplateChanged This slot may be used to inform the diagram object that the given title block template has changed. The diagram will thus flush its title block-dedicated rendering cache.
template_name | Name of the title block template that has changed |
|
slot |
Diagram::titleBlockTemplateRemoved This slot has to be be used to inform this class that the given title block template is about to be removed and is no longer accessible. This class will either use the provided optional TitleBlockTemplate or the default title block provided by QETApp::defaultTitleBlockTemplate()
template_name | Name of the title block template that has changed |
new_template | (Optional) Name of the title block template to use instead |
|
slot |
Diagram::titleChanged emit(diagramTitleChanged(this, title));.
title |
bool Diagram::toPaintDevice | ( | QPaintDevice & | pix, |
int | width = -1 , |
||
int | height = -1 , |
||
Qt::AspectRatioMode | aspectRatioMode = Qt::KeepAspectRatio |
||
) |
Exporte le schema vers une image
QDomDocument Diagram::toXml | ( | bool | whole_content = true | ) |
Diagram::toXml Exports all or part of the schema.
whole_content | : Boolean (to true by default) indicating if the generated XML must represent the entire schema or only the selected content |
|
inline |
void Diagram::unfreezeElements | ( | ) |
Diagram::unfreezeElements Unfreeze every existent element label.
|
slot |
Diagram::updateLabels Update elements and conductors that reference folio field in their labels.
|
inline |
|
signal |
bool Diagram::usesElement | ( | const ElementsLocation & | location | ) |
Diagram::usesElement Used to find out if an element is used on a schema.
location | : Location of an element |
bool Diagram::usesTitleBlockTemplate | ( | const QString & | name | ) |
Diagram::usesTitleBlockTemplate.
name | : a title block template name |
QUuid Diagram::uuid | ( | ) |
|
overrideprotected |
Diagram::wheelEvent This event is managed by diagram event interface if any.
event |
|
static |
background color of diagram
Diagram::background_color static variable to keep track of present background color of the diagram.
BorderTitleBlock Diagram::border_and_titleblock |
Diagram dimensions and title block.
|
private |
ConductorProperties Diagram::defaultConductorProperties |
Default properties for new conductors.
|
private |
|
private |
|
private |
|
private |
|
private |
QHash<QString, QStringList> Diagram::m_cnd_hundredfolio_max |
QHash<QString, QStringList> Diagram::m_cnd_tenfolio_max |
QHash<QString, QStringList> Diagram::m_cnd_unitfolio_max |
Hash containing max values for folio sequential autonums in this diagram.
|
private |
|
private |
|
private |
QHash<QString, QStringList> Diagram::m_elmt_hundredfolio_max |
QHash<QString, QStringList> Diagram::m_elmt_tenfolio_max |
QHash<QString, QStringList> Diagram::m_elmt_unitfolio_max |
Hash containing max values for folio sequential autonums in this diagram.
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
margin around the diagram
|
private |
|
private |
|
private |
|
static |
abscissa grid step size
|
static |
Key grid x step size.
|
static |
Key grid fine x step size.
|
private |
|
static |
ordinate grid step size
|
static |
Key grid y step size.
|
static |
Key grid fine y step size.