Rogue Wave Views Manager Package API Reference Guide |
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. More... | |
IlvManagerViewInteractor * | getInteractor (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 IlSymbol * | getName (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. | |
IlvManager * | getManager () const |
Returns the manager. More... | |
IlvView * | getView () 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... | |
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 |
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 2017, 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.