QElectroTech 0.100.0-dev
|
#include <editorcommands.h>
Public Member Functions | |
ChangeZValueCommand (ElementScene *, QET::DepthOption, QUndoCommand *=nullptr) | |
~ChangeZValueCommand () override | |
Destructeur. | |
void | undo () override |
Annule les changements de zValue. | |
void | redo () override |
Refait les changements de zValue. | |
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. | |
ElementEditionCommand (const QString &, ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr) | |
ElementEditionCommand::ElementEditionCommand Constructs an ElementEditionCommand, thus embedding the provided scene and view. | |
~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 | |
QHash< QGraphicsItem *, qreal > | redo_hash |
associates impacted primitives with their new zValues | |
QET::DepthOption | m_option |
kind of treatment to apply | |
Additional Inherited Members | |
Protected Attributes inherited from ElementEditionCommand | |
ElementScene * | m_scene |
Element editor/view/scene the command should take place on. | |
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