Rogue Wave Views
Manager Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions
IlvChangeLayerCommand Class Reference

Manager command class. More...

#include <ilviews/manager/commands.h>

Inheritance diagram for IlvChangeLayerCommand:
IlvManagerCommand IlvCommand IlvAction

Public Member Functions

 IlvChangeLayerCommand (IlvManager *m, int toLayer=0, IlUInt n=0, IlvGraphic *const *o=0, int *fromLayers=0, int *fromOrder=0)
 Constructor. More...
 
- Public Member Functions inherited from IlvManagerCommand
 IlvManagerCommand (IlvManager *manager)
 Constructor. More...
 
IlvManagergetManager () const
 Returns the manager. More...
 

Detailed Description

Manager command class.

Library: ilvmgr

The class IlvChangeLayerCommand is a subclass of IlvManagerCommand that must be instantiated to record the modifications made to object layers and make it possible to undo or redo these modifications.

Constructor & Destructor Documentation

IlvChangeLayerCommand::IlvChangeLayerCommand ( IlvManager m,
int  toLayer = 0,
IlUInt  n = 0,
IlvGraphic *const *  o = 0,
int *  fromLayers = 0,
int *  fromOrder = 0 
)

Constructor.

Parameters
mThe manager to which the command is added.
toLayerThe layer to which the objects are moved.
nThe number of objects to be moved. If this number is 0, the selected objects will be moved.
oThe objects to be moved (if different from 0).
fromLayersIf different from 0, the command is considered to have been executed, and this array contains the values of the layers to which the objects belonged before the move. However, it is easier to leave this parameter to 0 and let the execute method of the command determine the state to be recorded before executing the command.
fromOrderIf different from 0, the command is considered to have been executed, and this array contains the initial order of the moved objects in each layer. However, it is easier to leave this parameter to 0 and let the execute method of the command determine the state to be recorded before executing the command.

© Copyright 2016, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.