Rogue Wave Views
Manager Package API Reference Guide
Product Documentation:

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

Manager View Hook class. More...

#include <ilviews/gadmgr/mviselect.h>

Inheritance diagram for IlvManagerViewInteractorSelector:
IlvManagerViewHook

Public Member Functions

 IlvManagerViewInteractorSelector (IlvManager *manager, IlvView *view, IlvMenuItemSelector *selector)
 Constructor. More...
 
IlvManagerViewInteractorgetInteractor (const IlSymbol *name) const
 Returns the view interactor associated with the specified item name. More...
 
IlvMenuItemSelector * getMenuItemSelector () const
 Returns the menu item selector connected to this hook. More...
 
const IlSymbolgetName (IlvManagerViewInteractor *interactor) const
 Returns the item name associated with the specified view interactor. More...
 
virtual void interactorChanged (IlvManagerViewInteractor *current, IlvManagerViewInteractor *previous)
 Called when the interactor of the manager view changes. More...
 
void link (const IlSymbol *name, IlvManagerViewInteractor *interactor)
 Associates the specified item name with the specified view interactor. More...
 
void setMenuItemSelector (IlvMenuItemSelector *selector)
 Sets the menu item selector connected to this hook. More...
 
void unLink (const IlSymbol *name)
 Removes the association between the specified item name and its view interactor. More...
 
- Public Member Functions inherited from IlvManagerViewHook
 IlvManagerViewHook (IlvManager *manager=0, IlvView *view=0)
 Constructor. More...
 
virtual void afterDraw (IlvPort *dst, const IlvTransformer *t=0, const IlvRegion *region=0, const IlvRegion *clip=0)
 Called after the manager has drawn its contents. More...
 
virtual void afterExpose (const IlvRect &rect)
 Called after the manager has received an Expose event in the view to which the hook is connected. More...
 
virtual void beforeDraw (IlvPort *dst, const IlvTransformer *t=0, const IlvRegion *region=0, const IlvRegion *clip=0)
 Called before the manager draws its contents. More...
 
virtual void contentsChanged ()
 Called when the contents of the manager change.
 
IlvManagergetManager () const
 Returns the manager. More...
 
IlvViewgetView () const
 Returns the manager view. More...
 
void setManager (IlvManager *manager)
 Sets the manager. More...
 
void setView (IlvView *view)
 Sets the manager view. More...
 
virtual void transformerChanged (const IlvTransformer *current, const IlvTransformer *previous)
 Called when you change the transformer of the view to which the hook is connected. More...
 
virtual void viewRemoved ()
 Called when the view to which the hook is connected is removed from the list of views that the manager handles.
 
virtual void viewResized ()
 Called when the manager view is resized. More...
 

Detailed Description

Manager View Hook class.

Library: ilvgadmgr

This subclass of IlvManagerViewHook provides a predefined hook to help the user control a set of view interactors with a manager. It is linked with an IlvMenuItemSelector selector, which handles exclusive selection in an IlvAbstractMenu object. Each item of the menu item selector can be associated with a view interactor. When the selection is changed in the menu item selector, the view interactor associated with the selected item of the menu item selector is set on the manager view. When the view interactor is changed, the menu item selector is updated.

See also
IlvManager::installViewHook, IlvAbstractMenu, IlvMenuItemSelector, IlvMenuItem.

Constructor & Destructor Documentation

IlvManagerViewInteractorSelector::IlvManagerViewInteractorSelector ( IlvManager manager,
IlvView view,
IlvMenuItemSelector *  selector 
)

Constructor.

Initializes a new instance of the IlvManagerViewInteractorSelector class.

Parameters
managerThe manager connected to this hook.
viewThe manager view connected to this hook.
selectorThe menu item selector connected to this hook.

Member Function Documentation

IlvManagerViewInteractor* IlvManagerViewInteractorSelector::getInteractor ( const IlSymbol name) const

Returns the view interactor associated with the specified item name.

Parameters
nameThe item name.
Returns
The view interactor associated with the specified item name.
See also
link.
IlvMenuItemSelector* IlvManagerViewInteractorSelector::getMenuItemSelector ( ) const

Returns the menu item selector connected to this hook.

Returns
The menu item selector connected to this hook.
const IlSymbol* IlvManagerViewInteractorSelector::getName ( IlvManagerViewInteractor interactor) const

Returns the item name associated with the specified view interactor.

Parameters
interactorThe view interactor.
Returns
The item name associated with the specified view interactor.
See also
link.
virtual void IlvManagerViewInteractorSelector::interactorChanged ( IlvManagerViewInteractor current,
IlvManagerViewInteractor previous 
)
virtual

Called when the interactor of the manager view changes.

Called when you change the view interactor for the view to which the hook is connected.

Parameters
currentThe new interactor set on the view.
previousThe interactor previously set on the view.

Reimplemented from IlvManagerViewHook.

void IlvManagerViewInteractorSelector::link ( const IlSymbol name,
IlvManagerViewInteractor interactor 
)

Associates the specified item name with the specified view interactor.

Parameters
nameThe item name.
interactorThe view interactor.
See also
unLink.
void IlvManagerViewInteractorSelector::setMenuItemSelector ( IlvMenuItemSelector *  selector)

Sets the menu item selector connected to this hook.

Parameters
selectorThe new menu item selector.
void IlvManagerViewInteractorSelector::unLink ( const IlSymbol name)

Removes the association between the specified item name and its view interactor.

Parameters
nameThe item name.
See also
link.

© 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.