QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
RotateTextsCommand Class Reference

The RotateTextsCommand class Open a dialog for edit the rotation of the current selected texts and texts group in diagram. Just instantiate this undo command and push it in a QUndoStack. More...

#include <rotatetextscommand.h>

Inherits QUndoCommand.

Collaboration diagram for RotateTextsCommand:
Collaboration graph

Public Member Functions

 RotateTextsCommand (Diagram *diagram, QUndoCommand *parent=nullptr)
 RotateTextsCommand::RotateTextsCommand.
void undo () override
void redo () override

Private Member Functions

void openDialog ()
void setupAnimation (QObject *target, const QByteArray &propertyName, const QVariant &start, const QVariant &end)

Private Attributes

QPointer< Diagramm_diagram
QHash< ConductorTextItem *, bool > m_cond_texts
qreal m_rotation =0
QParallelAnimationGroup * m_anim_group = nullptr

Detailed Description

The RotateTextsCommand class Open a dialog for edit the rotation of the current selected texts and texts group in diagram. Just instantiate this undo command and push it in a QUndoStack.

Constructor & Destructor Documentation

◆ RotateTextsCommand()

RotateTextsCommand::RotateTextsCommand ( Diagram * diagram,
QUndoCommand * parent = nullptr )

RotateTextsCommand::RotateTextsCommand.

Parameters
diagram: Apply the rotation to the selected texts and group of texts of diagram at construction time.
parent: undo parent
Here is the call graph for this function:

Member Function Documentation

◆ openDialog()

void RotateTextsCommand::openDialog ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ redo()

void RotateTextsCommand::redo ( )
override

◆ setupAnimation()

void RotateTextsCommand::setupAnimation ( QObject * target,
const QByteArray & propertyName,
const QVariant & start,
const QVariant & end )
private
Here is the caller graph for this function:

◆ undo()

void RotateTextsCommand::undo ( )
override

Member Data Documentation

◆ m_anim_group

QParallelAnimationGroup* RotateTextsCommand::m_anim_group = nullptr
private

◆ m_cond_texts

QHash<ConductorTextItem *, bool> RotateTextsCommand::m_cond_texts
private

◆ m_diagram

QPointer<Diagram> RotateTextsCommand::m_diagram
private

◆ m_rotation

qreal RotateTextsCommand::m_rotation =0
private

The documentation for this class was generated from the following files: