#include <KWCommand.h>
Public Member Functions | |
| KWFramePropertiesCommand (const TQString &name, KWFrame *_frameBefore, KWFrame *_frameAfter) | |
| void | execute () |
| void | unexecute () |
Protected Attributes | |
| FrameIndex | m_frameIndex |
| KWFrame * | m_frameBefore |
| KWFrame * | m_frameAfter |
Detailed Description
Command created when the properties of a frame are changed (e.g.
using frame dialog). In the long run, KWFrameBackGroundColorCommand, KWFrameBorderCommand etc. could be removed and KWFramePropertiesCommand could be used instead.
This solution is memory eating though, since all settings of the frame
are copied. TODO: evaluate using graphite's GenericCommand instead.
Definition at line 296 of file KWCommand.h.
Constructor & Destructor Documentation
◆ KWFramePropertiesCommand()
| KWFramePropertiesCommand::KWFramePropertiesCommand | ( | const TQString & | name, |
| KWFrame * | _frameBefore, | ||
| KWFrame * | _frameAfter ) |
A copy of frameAfter is done internally.
But make sure frameBefore is already a copy, its ownership is moved to the command.
Definition at line 968 of file KWCommand.cpp.
◆ ~KWFramePropertiesCommand()
| KWFramePropertiesCommand::~KWFramePropertiesCommand | ( | ) |
Definition at line 976 of file KWCommand.cpp.
Member Function Documentation
◆ execute()
| void KWFramePropertiesCommand::execute | ( | ) |
Definition at line 982 of file KWCommand.cpp.
◆ unexecute()
| void KWFramePropertiesCommand::unexecute | ( | ) |
Definition at line 1004 of file KWCommand.cpp.
Member Data Documentation
◆ m_frameAfter
|
protected |
Definition at line 309 of file KWCommand.h.
◆ m_frameBefore
|
protected |
Definition at line 308 of file KWCommand.h.
◆ m_frameIndex
|
protected |
Definition at line 307 of file KWCommand.h.
The documentation for this class was generated from the following files:
