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

Change the pen cap style command. More...

#include <Commands.h>

Inheritance diagram for ChangeCapStyleCommand:
Collaboration diagram for ChangeCapStyleCommand:

Public Member Functions

 ChangeCapStyleCommand (Editor *editor, Qt::PenCapStyle from, Qt::PenCapStyle to)
 
virtual ~ChangeCapStyleCommand ()
 
virtual void undo ()
 
virtual void redo ()
 

Private Attributes

Editorm_editor
 
Qt::PenCapStyle m_from
 
Qt::PenCapStyle m_to
 

Detailed Description

Change the pen cap style command.

Implement changing the line cap style for the current symbol.

The original style is stored for a possible undo.

Definition at line 394 of file Commands.h.

Constructor & Destructor Documentation

ChangeCapStyleCommand::ChangeCapStyleCommand ( Editor editor,
Qt::PenCapStyle  from,
Qt::PenCapStyle  to 
)

Constructor

Parameters
editora pointer to the Editor
froma Qt::PenCapStyle value representing the orginal setting
toa Qt::PenCapStyle value representing the new setting

Definition at line 736 of file Commands.cpp.

ChangeCapStyleCommand::~ChangeCapStyleCommand ( )
virtual

Destructor

Definition at line 748 of file Commands.cpp.

Member Function Documentation

void ChangeCapStyleCommand::redo ( )
virtual

Redo the change pen cap style command.

Definition at line 765 of file Commands.cpp.

Here is the call graph for this function:

void ChangeCapStyleCommand::undo ( )
virtual

Undo the change pen cap style command.

Definition at line 756 of file Commands.cpp.

Here is the call graph for this function:

Member Data Documentation

Editor* ChangeCapStyleCommand::m_editor
private

pointer to the Editor

Definition at line 404 of file Commands.h.

Qt::PenCapStyle ChangeCapStyleCommand::m_from
private

original setting

Definition at line 405 of file Commands.h.

Qt::PenCapStyle ChangeCapStyleCommand::m_to
private

new setting

Definition at line 406 of file Commands.h.


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