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

Change the fill rule command class. More...

#include <Commands.h>

Inheritance diagram for ChangeFillRuleCommand:
Collaboration diagram for ChangeFillRuleCommand:

Public Member Functions

 ChangeFillRuleCommand (Editor *editor, Qt::FillRule from, Qt::FillRule to)
 
virtual ~ChangeFillRuleCommand ()
 
virtual void undo ()
 
virtual void redo ()
 

Private Attributes

Editorm_editor
 
Qt::FillRule m_from
 
Qt::FillRule m_to
 

Detailed Description

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.

Constructor & Destructor Documentation

ChangeFillRuleCommand::ChangeFillRuleCommand ( Editor editor,
Qt::FillRule  from,
Qt::FillRule  to 
)

Constructor

Parameters
editora point to the Editor
froma Qt::FillRule value representing the original setting
toa Qt::FillRule value representing the new setting

Definition at line 694 of file Commands.cpp.

ChangeFillRuleCommand::~ChangeFillRuleCommand ( )
virtual

Destructor

Definition at line 706 of file Commands.cpp.

Member Function Documentation

void ChangeFillRuleCommand::redo ( )
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.

Here is the call graph for this function:

void ChangeFillRuleCommand::undo ( )
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.

Here is the call graph for this function:

Member Data Documentation

Editor* ChangeFillRuleCommand::m_editor
private

pointer to the Editor

Definition at line 381 of file Commands.h.

Qt::FillRule ChangeFillRuleCommand::m_from
private

original setting

Definition at line 382 of file Commands.h.

Qt::FillRule ChangeFillRuleCommand::m_to
private

new setting

Definition at line 383 of file Commands.h.


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