Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Manager class. More...
#include <ilviews/manager/event.h>
Public Member Functions | |
IlvManagerAccelerator (IlvManagerAcceleratorAction mgrAction, IlvEventType eventType, IlUShort eventData=0, IlUShort modifiers=0, IlAny userArg=0, IlUShort optModifiers=0) | |
Constructor. More... | |
IlvManagerAcceleratorAction | action () const |
Returns the accelerator action. More... | |
virtual void | activate (IlvManager *manager, IlvView *view, IlvEvent &event) |
Calls the accelerator action. More... | |
void | setAction (IlvManagerAcceleratorAction mgrAction, IlAny userArg) |
Sets the accelerator action. More... | |
Manager class.
Library: ilvmgr
This subclass of IlvAccelerator
is defined for use of accelerators in an IlvManager
. It defines a function type for the accelerator action and provides storage for this action. Generally, applications do not need to use this class. Instead, they use IlvManager::addAccelerator
, IlvManager::getAccelerator
, and IlvManager::removeAccelerator
.
IlvManager
(Managing Accelerators Member Functions). IlvManagerAccelerator::IlvManagerAccelerator | ( | IlvManagerAcceleratorAction | mgrAction, |
IlvEventType | eventType, | ||
IlUShort | eventData = 0 , |
||
IlUShort | modifiers = 0 , |
||
IlAny | userArg = 0 , |
||
IlUShort | optModifiers = 0 |
||
) |
Constructor.
Calls the constructor of the superclass with the event description and sets the accelerator action with its user argument.
mgrAction | The accelerator action. |
eventType | Specifies the type of event that triggers the action. |
eventData | Specifies the event data. |
modifiers | The mandatory event modifiers. |
userArg | The user argument for the accelerator action. |
optModifiers | The optional event modifiers. |
IlvManagerAcceleratorAction IlvManagerAccelerator::action | ( | ) | const |
Returns the accelerator action.
|
virtual |
Calls the accelerator action.
Virtual member function called when a view associated with a manager has received an event fulfilling the conditions required to trigger the accelerator. (See method IlvAccelerator::trigger
.) The default implementation is to call the action (if any) associated with the accelerator:
manager | The manager. |
view | The manager view. |
event | The event. |
void IlvManagerAccelerator::setAction | ( | IlvManagerAcceleratorAction | mgrAction, |
IlAny | userArg | ||
) |
Sets the accelerator action.
Sets both the accelerator action and the user argument.
mgrAction | The accelerator action. |
userArg | The user argument for the accelerator action. |
© 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.