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 )
41 document()->selection()->clear();
43 document()->selection()->append( m_shape );
48 m_shape->setFill( *( document()->selection()->fill() ) );
49 m_shape->setStroke( *( document()->selection()->stroke() ) );
52 document()->append( m_shape );
53 document()->selection()->clear();
54 document()->selection()->append( m_shape );
66 document()->selection()->take( *m_shape );
The base class for all karbon commands.
All non-visual, static doc info is in here.
@ deleted deleted, nearly dead
@ normal visible, not active
A composite path consists of one or many subpaths.
|