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();
72 m_layer->setState( m_oldState );
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.
void lowerLayer(VLayer *layer) Lowers the layer.
void raiseLayer(VLayer *layer) Raises the layer.
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.
void setSuccess(bool success=true) Set the success property.
|