SymbolEditor
1.3.0
|
Change the pen cap style command. More...
#include <Commands.h>
Public Member Functions | |
ChangeCapStyleCommand (Editor *editor, Qt::PenCapStyle from, Qt::PenCapStyle to) | |
virtual | ~ChangeCapStyleCommand () |
virtual void | undo () |
virtual void | redo () |
Private Attributes | |
Editor * | m_editor |
Qt::PenCapStyle | m_from |
Qt::PenCapStyle | m_to |
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.
ChangeCapStyleCommand::ChangeCapStyleCommand | ( | Editor * | editor, |
Qt::PenCapStyle | from, | ||
Qt::PenCapStyle | to | ||
) |
Constructor
editor | a pointer to the Editor |
from | a Qt::PenCapStyle value representing the orginal setting |
to | a Qt::PenCapStyle value representing the new setting |
Definition at line 736 of file Commands.cpp.
|
virtual |
Destructor
Definition at line 748 of file Commands.cpp.
|
virtual |
Redo the change pen cap style command.
Definition at line 765 of file Commands.cpp.
|
virtual |
Undo the change pen cap style command.
Definition at line 756 of file Commands.cpp.
|
private |
pointer to the Editor
Definition at line 404 of file Commands.h.
|
private |
original setting
Definition at line 405 of file Commands.h.
|
private |
new setting
Definition at line 406 of file Commands.h.