![]() |
QElectroTech
0.8-dev
|
#include <editorcommands.h>


Public Member Functions | |
| ChangeZValueCommand (ElementScene *, QET::DepthOption, QUndoCommand *=nullptr) | |
| ~ChangeZValueCommand () override | |
| Destructeur. More... | |
| void | undo () override |
| Annule les changements de zValue. More... | |
| void | redo () override |
| Refait les changements de zValue. More... | |
Public Member Functions inherited from ElementEditionCommand | |
| ElementEditionCommand (ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr) | |
| ElementEditionCommand::ElementEditionCommand Constructs an ElementEditionCommand, thus embedding the provided scene and view. More... | |
| ElementEditionCommand (const QString &, ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr) | |
| ElementEditionCommand::ElementEditionCommand Constructs an ElementEditionCommand, thus embedding the provided scene and view. More... | |
| ~ElementEditionCommand () override | |
| ElementScene * | elementScene () const |
| void | setElementScene (ElementScene *) |
| ElementView * | elementView () const |
| void | setElementView (ElementView *) |
Private Member Functions | |
| ChangeZValueCommand (const ChangeZValueCommand &) | |
| void | applyBringForward (const QList< QGraphicsItem * > &) |
| void | applyRaise (const QList< QGraphicsItem * > &) |
| void | applyLower (const QList< QGraphicsItem * > &) |
| void | applySendBackward (const QList< QGraphicsItem * > &) |
Private Attributes | |
| QHash< QGraphicsItem *, qreal > | undo_hash |
| associates impacted primitives with their former zValues More... | |
| QHash< QGraphicsItem *, qreal > | redo_hash |
| associates impacted primitives with their new zValues More... | |
| QET::DepthOption | m_option |
| kind of treatment to apply More... | |
Additional Inherited Members | |
Protected Attributes inherited from ElementEditionCommand | |
| ElementScene * | m_scene |
| Element editor/view/scene the command should take place on. More... | |
| ElementView * | m_view |
This command changes the zValue of a set of primitives when editing an electrical element.
| ChangeZValueCommand::ChangeZValueCommand | ( | ElementScene * | elmt, |
| QET::DepthOption | o, | ||
| QUndoCommand * | parent = nullptr |
||
| ) |
Constructeur
| elmt | ElementScene concernee |
| o | Option decrivant le type de traitement applique aux zValues des parties de l'element |
| parent | QUndoCommand parent |

|
override |
Destructeur.
|
private |
|
private |
Amene les elements selectionnes au premier plan
| items_list | Liste des elements (selectionnes et non selectionnes) |

|
private |
Descend les elements selectionnes d'un plan
| items_list | Liste des elements (selectionnes et non selectionnes) |

|
private |
Remonte les elements selectionnes d'un plan
| items_list | Liste des elements (selectionnes et non selectionnes) |

|
private |
Envoie les elements selectionnes au fond
| items_list | Liste des elements (selectionnes et non selectionnes) |

|
override |
Refait les changements de zValue.
|
override |
Annule les changements de zValue.
|
private |
kind of treatment to apply
|
private |
associates impacted primitives with their new zValues
|
private |
associates impacted primitives with their former zValues
1.8.18