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

Change the pen join style command. More...

#include <Commands.h>

Inheritance diagram for ChangeJoinStyleCommand:
Collaboration diagram for ChangeJoinStyleCommand:

Public Member Functions

 ChangeJoinStyleCommand (Editor *editor, Qt::PenJoinStyle from, Qt::PenJoinStyle to)
 
virtual ~ChangeJoinStyleCommand ()
 
virtual void undo ()
 
virtual void redo ()
 

Private Attributes

Editorm_editor
 
Qt::PenJoinStyle m_from
 
Qt::PenJoinStyle m_to
 

Detailed Description

Change the pen join style command.

Implement changing the line join style for the current symbol.

The original style is stored for a possible undo.

Definition at line 417 of file Commands.h.

Constructor & Destructor Documentation

ChangeJoinStyleCommand::ChangeJoinStyleCommand ( Editor editor,
Qt::PenJoinStyle  from,
Qt::PenJoinStyle  to 
)

Constructor

Parameters
editora pointer to the Editor
froma Qt::PenJoinStyle value representing the original setting
toa Qt::PenJoinStyle value representing the new setting

Definition at line 778 of file Commands.cpp.

ChangeJoinStyleCommand::~ChangeJoinStyleCommand ( )
virtual

Destructor

Definition at line 790 of file Commands.cpp.

Member Function Documentation

void ChangeJoinStyleCommand::redo ( )
virtual

Redo the change pen join style command.

Definition at line 807 of file Commands.cpp.

Here is the call graph for this function:

void ChangeJoinStyleCommand::undo ( )
virtual

Undo the change pen join style command.

Definition at line 798 of file Commands.cpp.

Here is the call graph for this function:

Member Data Documentation

Editor* ChangeJoinStyleCommand::m_editor
private

pointer to the Editor

Definition at line 427 of file Commands.h.

Qt::PenJoinStyle ChangeJoinStyleCommand::m_from
private

original setting

Definition at line 428 of file Commands.h.

Qt::PenJoinStyle ChangeJoinStyleCommand::m_to
private

new setting

Definition at line 429 of file Commands.h.


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