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

Flip horizontal command class. More...

#include <Commands.h>

Inheritance diagram for FlipHorizontalCommand:
Collaboration diagram for FlipHorizontalCommand:

Public Member Functions

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

Private Attributes

Editorm_editor
 

Detailed Description

Flip horizontal command class.

Implement the flipping of the QPainterPath for the current symbol horizontally about the vertical axis passing through the center line of the symbol.

Nothing is stored for undo as this implemented by another flip horizontal.

Definition at line 282 of file Commands.h.

Constructor & Destructor Documentation

FlipHorizontalCommand::FlipHorizontalCommand ( Editor editor)
explicit

Constructor

Parameters
editora pointer to the Editor

Definition at line 508 of file Commands.cpp.

FlipHorizontalCommand::~FlipHorizontalCommand ( )

Destructor

Definition at line 518 of file Commands.cpp.

Member Function Documentation

void FlipHorizontalCommand::redo ( )
virtual

Redo the flip horizontal command. Call the Editor::flipPointsHorizontal to flip the points.

Definition at line 535 of file Commands.cpp.

Here is the call graph for this function:

void FlipHorizontalCommand::undo ( )
virtual

Undo the flip horizontal command. Call the Editor::flipPointsHorizontal to flip the points.

Definition at line 526 of file Commands.cpp.

Here is the call graph for this function:

Member Data Documentation

Editor* FlipHorizontalCommand::m_editor
private

pointer to the editor

Definition at line 292 of file Commands.h.


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