SymbolEditor
1.3.0
|
Change the fill rule command class. More...
#include <Commands.h>
Public Member Functions | |
ChangeFillRuleCommand (Editor *editor, Qt::FillRule from, Qt::FillRule to) | |
virtual | ~ChangeFillRuleCommand () |
virtual void | undo () |
virtual void | redo () |
Private Attributes | |
Editor * | m_editor |
Qt::FillRule | m_from |
Qt::FillRule | m_to |
Change the fill rule command class.
Implement changing the fill rule of the QPainterPath for the current symbol.
The original fill rule is stored for a possible undo.
Definition at line 371 of file Commands.h.
ChangeFillRuleCommand::ChangeFillRuleCommand | ( | Editor * | editor, |
Qt::FillRule | from, | ||
Qt::FillRule | to | ||
) |
Constructor
editor | a point to the Editor |
from | a Qt::FillRule value representing the original setting |
to | a Qt::FillRule value representing the new setting |
Definition at line 694 of file Commands.cpp.
|
virtual |
Destructor
Definition at line 706 of file Commands.cpp.
|
virtual |
Redo the change fill rule command. Call the Editor::setFillRule function to set the new value.
Definition at line 723 of file Commands.cpp.
|
virtual |
Undo the change fill rule command. Call the Editor::setFillRule function to set the original value.
Definition at line 714 of file Commands.cpp.
|
private |
pointer to the Editor
Definition at line 381 of file Commands.h.
|
private |
original setting
Definition at line 382 of file Commands.h.
|
private |
new setting
Definition at line 383 of file Commands.h.