22#include "vcomposite.h"
24#include "vselection.h"
28VShapeCmd::VShapeCmd( VDocument* doc, const TQString& name, VPath* shape, const TQString& icon )
29 : VCommand( doc, name, icon ), m_shape( shape )
48 m_shape->setFill( *( document()->selection()->fill() ) );
49 m_shape->setStroke( *( document()->selection()->stroke() ) );
The base class for all karbon commands.
virtual void unexecute() Unexecutes the command.
VDocument * document() const Returns the document the command works on.
virtual void execute()=0 Executes the command.
All non-visual, static doc info is in here.
VSelection * selection() const Returns a pointer to the selection.
void append(VObject *object) Appends a new object to the active layer.
@ deleted deleted, nearly dead
@ normal visible, not active
A composite path consists of one or many subpaths.
void append() Adds all objects to the selection.
void clear() Removes the references to all objects, not the objects themselves.
void take(VObject &object) Removes the reference to the object, not the object itself.
void setSuccess(bool success=true) Set the success property.
|