Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Manager View Hook class. More...
#include <ilviews/gadmgr/mviselect.h>
Public Member Functions | |
IlvManagerViewInteractorSelector (IlvManager *manager, IlvView *view, IlvMenuItemSelector *selector) | |
Constructor. | |
IlvManagerViewInteractor * | getInteractor (const IlSymbol *name) const |
Returns the view interactor associated with the specified item name. | |
IlvMenuItemSelector * | getMenuItemSelector () const |
Returns the menu item selector connected to this hook. | |
const IlSymbol * | getName (IlvManagerViewInteractor *interactor) const |
Returns the item name associated with the specified view interactor. | |
virtual void | interactorChanged (IlvManagerViewInteractor *current, IlvManagerViewInteractor *previous) |
Called when the interactor of the manager view changes. | |
void | link (const IlSymbol *name, IlvManagerViewInteractor *interactor) |
Associates the specified item name with the specified view interactor. | |
void | setMenuItemSelector (IlvMenuItemSelector *selector) |
Sets the menu item selector connected to this hook. | |
void | unLink (const IlSymbol *name) |
Removes the association between the specified item name and its view interactor. |
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.
IlvManager::installViewHook
, IlvAbstractMenu
, IlvMenuItemSelector
, IlvMenuItem
. IlvManagerViewInteractorSelector::IlvManagerViewInteractorSelector | ( | IlvManager * | manager, | |
IlvView * | view, | |||
IlvMenuItemSelector * | selector | |||
) |
Constructor.
Initializes a new instance of the IlvManagerViewInteractorSelector
class.
manager | The manager connected to this hook. | |
view | The manager view connected to this hook. | |
selector | The menu item selector connected to this hook. |
IlvManagerViewInteractor* IlvManagerViewInteractorSelector::getInteractor | ( | const IlSymbol * | name | ) | const |
Returns the view interactor associated with the specified item name.
name | The item name. |
link
. IlvMenuItemSelector* IlvManagerViewInteractorSelector::getMenuItemSelector | ( | ) | const |
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.
interactor | The view interactor. |
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.
current | The new interactor set on the view. | |
previous | The 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.
name | The item name. | |
interactor | The view interactor. |
unLink
. void IlvManagerViewInteractorSelector::setMenuItemSelector | ( | IlvMenuItemSelector * | selector | ) |
Sets the menu item selector connected to this hook.
selector | The new menu item selector. |
© Copyright 2012, 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.