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

Change the fill state command class. More...

#include <Commands.h>

Inheritance diagram for ChangeFilledCommand:
Collaboration diagram for ChangeFilledCommand:

Public Member Functions

 ChangeFilledCommand (Editor *editor, bool from, bool to)
 
virtual ~ChangeFilledCommand ()
 
virtual void undo ()
 
virtual void redo ()
 

Private Attributes

Editorm_editor
 
bool m_from
 
bool m_to
 

Detailed Description

Change the fill state command class.

Implement changing the fill state of the current symbol.

The original state is stored for a possible undo.

Definition at line 348 of file Commands.h.

Constructor & Destructor Documentation

ChangeFilledCommand::ChangeFilledCommand ( Editor editor,
bool  from,
bool  to 
)

Constructor

Parameters
editora pointer to the Editor
fromtrue if the currently filled, false otherwise
totrue if changing to filled, false otherwise

Definition at line 652 of file Commands.cpp.

ChangeFilledCommand::~ChangeFilledCommand ( )
virtual

Destructor

Definition at line 664 of file Commands.cpp.

Member Function Documentation

void ChangeFilledCommand::redo ( )
virtual

Redo the change fill state command. Call the Editor::setFilled function to set the new value.

Definition at line 681 of file Commands.cpp.

Here is the call graph for this function:

void ChangeFilledCommand::undo ( )
virtual

Undo the change fill state command. Call the Editor::setFilled function to set the original value

Definition at line 672 of file Commands.cpp.

Here is the call graph for this function:

Member Data Documentation

Editor* ChangeFilledCommand::m_editor
private

pointer to the editor

Definition at line 358 of file Commands.h.

bool ChangeFilledCommand::m_from
private

original setting

Definition at line 359 of file Commands.h.

bool ChangeFilledCommand::m_to
private

new setting

Definition at line 360 of file Commands.h.


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