25VLayerCmd::VLayerCmd( VDocument* doc, const TQString& name, VLayer* layer, VLayerCmdType order )
26 : VCommand( doc, name, "14_layers" ), m_layer( layer ), m_cmdType( order )
28 if( order == addLayer )
31 document()->insertLayer( layer );
34 m_oldState = layer-> state();
51 document()->raiseLayer( m_layer );
55 document()->lowerLayer( m_layer );
72 m_layer->setState( m_oldState );
76 document()->lowerLayer( m_layer );
80 document()->raiseLayer( m_layer );
The base class for all karbon commands.
All non-visual, static doc info is in here.
virtual void setState(const VState state) Sets the state to a specified new state.
VLayer manages a set of vobjects.
@ deleted deleted, nearly dead
@ normal visible, not active
VState state() const Get the state the object is in.
|