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

Rotate left command class. More...

#include <Commands.h>

Inheritance diagram for RotateLeftCommand:
Collaboration diagram for RotateLeftCommand:

Public Member Functions

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

Private Attributes

Editorm_editor
 

Detailed Description

Rotate left command class.

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

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

Definition at line 239 of file Commands.h.

Constructor & Destructor Documentation

RotateLeftCommand::RotateLeftCommand ( Editor editor)
explicit

Constructor

Parameters
editora pointer to the Editor

Definition at line 430 of file Commands.cpp.

RotateLeftCommand::~RotateLeftCommand ( )

Destructor

Definition at line 440 of file Commands.cpp.

Member Function Documentation

void RotateLeftCommand::redo ( )
virtual

Redo the rotate left command. Call the Editor::rotatePointsLeft function to rotate the points.

Definition at line 458 of file Commands.cpp.

Here is the call graph for this function:

void RotateLeftCommand::undo ( )
virtual

Undo the rotate left command. Call the Editor::rotatePointRight function to reverse the rotate left.

Definition at line 449 of file Commands.cpp.

Here is the call graph for this function:

Member Data Documentation

Editor* RotateLeftCommand::m_editor
private

pointer to the editor

Definition at line 249 of file Commands.h.


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