kformula/flake

FormulaCommandUpdate Class Reference

This class is used to wrap FormulaCommands, which are part of KFormulaLib and therefore can't notify the tool and shape of changes (as they don't know about them). More...

#include <FormulaCommandUpdate.h>

Inheritance diagram for FormulaCommandUpdate:

List of all members.

Public Member Functions

 FormulaCommandUpdate (KoFormulaShape *shape, FormulaCommand *command)
void redo ()
void undo ()

Detailed Description

This class is used to wrap FormulaCommands, which are part of KFormulaLib and therefore can't notify the tool and shape of changes (as they don't know about them).

This notification it done by this classes undo / redo methods after calling the respective methods from the wrapped class

Definition at line 37 of file FormulaCommandUpdate.h.


Constructor & Destructor Documentation

FormulaCommandUpdate::FormulaCommandUpdate ( KoFormulaShape shape,
FormulaCommand command 
)

Definition at line 27 of file FormulaCommandUpdate.cpp.


Member Function Documentation

void FormulaCommandUpdate::redo (  ) 

Execute the command.

Reimplemented from QUndoCommand.

Definition at line 35 of file FormulaCommandUpdate.cpp.

void FormulaCommandUpdate::undo (  ) 

Revert the actions done in redo().

Reimplemented from QUndoCommand.

Definition at line 44 of file FormulaCommandUpdate.cpp.


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