|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef DIAGRAMEVENTADDELEMENT_H
19 #define DIAGRAMEVENTADDELEMENT_H
56 #endif // DIAGRAMEVENTADDELEMENT_H
bool exist() const
ElementsLocation::exist.
Definition: elementslocation.cpp:472
Diagram * m_diagram
Definition: diagrameventinterface.h:66
void keyPressEvent(QKeyEvent *event) override
DiagramEventAddElement::keyPressEvent Press space key rotate the element to 90° (return true) else ca...
Definition: diagrameventaddelement.cpp:149
QHash< DynamicElementTextItem *, QPointF > m_converted_text_from_xml_description
Definition: element.h:197
QString m_integrate_path
Definition: diagrameventaddelement.h:53
DiagramEventAddElement(ElementsLocation &location, Diagram *diagram, QPointF pos=QPointF(0, 0))
DiagramEventAddElement::DiagramEventAddElement Defaut constructor.
Definition: diagrameventaddelement.cpp:33
bool freezeNewConductors()
Diagram::freezeNewConductors.
Definition: diagram.cpp:2158
~DiagramEventAddElement() override
DiagramEventAddElement::~DiagramEventAddElement Destructor Enable context menu for each view of diagr...
Definition: diagrameventaddelement.cpp:60
ElementsLocation importElement(ElementsLocation &location)
QETProject::importElement Import the element represented by location to the embbeded collection of th...
Definition: qetproject.cpp:972
The DiagramEventAddElement class This diagram event add a new element, for each left click button at ...
Definition: diagrameventaddelement.h:32
void numerate()
ConductorAutoNumerotation::numerate execute the automatic numerotation.
Definition: conductorautonumerotation.cpp:56
QETProject * project() const
Diagram::project.
Definition: diagram.cpp:2326
bool isElement() const
ElementsLocation::isElement.
Definition: elementslocation.cpp:412
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddElement::mousePressEvent Do nothing, but return true for not transit the event to othe...
Definition: diagrameventaddelement.cpp:91
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
bool buildElement()
DiagramEventAddElement::buildElement Build the element, if the element is build successfully,...
Definition: diagrameventaddelement.cpp:175
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddElement::mouseReleaseEvent Right button finish this event (isRunning = false) and emit...
Definition: diagrameventaddelement.cpp:102
void setUpFormula(bool code_letter=true)
Element::setUpFormula Set up the formula used to create the label of this element.
Definition: element.cpp:1654
QIcon Conductor
Definition: qeticons.cpp:35
virtual void removeItem(QGraphicsItem *item)
Diagram::removeItem Reimplemented from QGraphicsScene::removeItem(QGraphicsItem *item) Do some specif...
Definition: diagram.cpp:1581
void addElement()
DiagramEventAddElement::addElement Add an element at the current pos en current rotation,...
Definition: diagrameventaddelement.cpp:203
ElementsLocation m_location
Definition: diagrameventaddelement.h:51
Element * m_element
Definition: diagrameventaddelement.h:52
QString projectCollectionPath() const
ElementsLocation::projectCollectionPath.
Definition: elementslocation.cpp:176
The AddItemCommand class This command add an item in a diagram The item to add is template,...
Definition: diagramcommands.h:42
QString name() const override
Element::name.
Definition: element.cpp:1756
bool isFreezeNewConductors()
QETProject::isFreezeNewConductors.
Definition: qetproject.cpp:707
void freezeNewAddedElement()
Element::freezeNewAddedElement Freeze this label if needed.
Definition: element.cpp:1724
static ElementFactory * Instance()
Definition: elementfactory.h:38
The ElementsLocation class This class represents the location, the location of an element or of a cat...
Definition: elementslocation.h:46
The ConductorAutoNumerotation class.
Definition: conductorautonumerotation.h:33
void setFreezeLabel(bool freeze)
Conductor::setFreezeLabel Freeze this conductor label if true Unfreeze this conductor label if false.
Definition: conductor.cpp:2035
static QPointF snapToGrid(const QPointF &p)
Diagram::snapToGrid Return a nearest snap point of p.
Definition: diagram.cpp:2240
bool m_running
Definition: diagrameventinterface.h:67
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddElement::mouseMoveEvent Move the element to new pos of mouse the event is always accep...
Definition: diagrameventaddelement.cpp:77
Definition: conductor.h:43
The DiagramEventInterface class isRunning() return true if action is running (do something)....
Definition: diagrameventinterface.h:46
virtual void setPos(const QPointF &p)
Definition: qetgraphicsitem.cpp:49
virtual void keyPressEvent(QKeyEvent *event)
DiagramEventInterface::keyPressEvent By default, press escape key abort the curent action.
Definition: diagrameventinterface.cpp:59
QIcon tr
Definition: qeticons.cpp:206
QList< DynamicElementTextItem * > m_dynamic_text_list
Definition: element.h:223
void init() override
DiagramEventAddElement::init Init this event.
Definition: diagrameventaddelement.cpp:165
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddElement::mouseDoubleClickEvent If mouse left double clic, finish this event (isRunning...
Definition: diagrameventaddelement.cpp:129