SymbolEditor  1.3.0
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
RotateRightCommand Class Reference

Rotate right command class. More...

#include <Commands.h>

Inheritance diagram for RotateRightCommand:
Collaboration diagram for RotateRightCommand:

Public Member Functions

 RotateRightCommand (Editor *editor)
 
 ~RotateRightCommand ()
 
virtual void undo ()
 
virtual void redo ()
 

Private Attributes

Editorm_editor
 

Detailed Description

Rotate right command class.

Implement the rotation of the QPainterPath for the current symbol right (clockwise).

Nothing is stored for undo as this is implemented as a rotate left.

Definition at line 260 of file Commands.h.

Constructor & Destructor Documentation

RotateRightCommand::RotateRightCommand ( Editor editor)
explicit

Constructor

Parameters
editora pointer to the Editor

Definition at line 469 of file Commands.cpp.

RotateRightCommand::~RotateRightCommand ( )

Destructor

Definition at line 479 of file Commands.cpp.

Member Function Documentation

void RotateRightCommand::redo ( )
virtual

Redo the rotate right command. Call the Editor::rotatePointsRight function to rotate the points.

Definition at line 497 of file Commands.cpp.

Here is the call graph for this function:

void RotateRightCommand::undo ( )
virtual

Undo the rotate right command. Call the Editor::rotatePointsLeft function to reverse the rotate right.

Definition at line 488 of file Commands.cpp.

Here is the call graph for this function:

Member Data Documentation

Editor* RotateRightCommand::m_editor
private

pointer to the editor

Definition at line 270 of file Commands.h.


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