#include <ax_resource/ax_activator_resource.h>

Public Member Functions | |
| AxResourceActivator () | |
| AxResourceActivator (const AxResourceActivator &activator) | |
| AxResourceActivator (AxResourceLibrary *library, AxResource *resource) | |
| ~AxResourceActivator () | |
| void | Init () |
| void | Copy (const AxResourceActivator &activator) |
| virtual AxActivator * | Clone () const |
| virtual AxMenu * | Activate (AxMenuController *controller, AxMenuItem *item) |
| Called when the user activates a menu item by pressing return or double-clicking. | |
| virtual bool | Reactivate (AxMenuController *controller, AxMenuItem *item) |
| Called when a menu is reactivated, for example by going up. | |
| virtual bool | Select (AxMenuController *controller, AxMenuItem *item) |
| Called when the user selects an item, for example to describe the item. | |
| AxResource * | GetResource () const |
| void | SetResource (AxResource *resource) |
| AxResourceLibrary * | GetLibrary () const |
| void | SetLibrary (AxResourceLibrary *library) |
| AxActivator * | GetSpecificActivator () const |
| void | SetSpecificActivator (AxActivator *activator) |
Protected Attributes | |
| AxResourceLibrary * | m_library |
| AxResource * | m_resource |
| AxActivator * | m_specificActivator |
This saves the application code from doing the querying and creating an activator of the correct type.
It's also a useful base class for activators that need to store a pointer to a AxResource and the AxResourceLibrary.
| AxResourceActivator::AxResourceActivator | ( | ) | [inline] |
| AxResourceActivator::AxResourceActivator | ( | const AxResourceActivator & | activator | ) | [inline] |
| AxResourceActivator::AxResourceActivator | ( | AxResourceLibrary * | library, | |
| AxResource * | resource | |||
| ) |
| AxResourceActivator::~AxResourceActivator | ( | ) |
| AxMenu * AxResourceActivator::Activate | ( | AxMenuController * | controller, | |
| AxMenuItem * | item | |||
| ) | [virtual] |
Called when the user activates a menu item by pressing return or double-clicking.
Implements AxActivator.
Reimplemented in AxAudioResourceActivator, AxAudioResourceCommandActivator, AxBookResourceActivator, and AxBookResourceCommandActivator.
| virtual AxActivator* AxResourceActivator::Clone | ( | ) | const [inline, virtual] |
Implements AxActivator.
Reimplemented in AxAudioResourceActivator, AxAudioResourceCommandActivator, AxBookResourceActivator, and AxBookResourceCommandActivator.
| void AxResourceActivator::Copy | ( | const AxResourceActivator & | activator | ) |
| AxResourceLibrary* AxResourceActivator::GetLibrary | ( | ) | const [inline] |
| AxResource* AxResourceActivator::GetResource | ( | ) | const [inline] |
| AxActivator* AxResourceActivator::GetSpecificActivator | ( | ) | const [inline] |
| void AxResourceActivator::Init | ( | ) |
Reimplemented from AxActivator.
Reimplemented in AxAudioResourceActivator, AxAudioResourceCommandActivator, AxBookResourceActivator, and AxBookResourceCommandActivator.
| bool AxResourceActivator::Reactivate | ( | AxMenuController * | controller, | |
| AxMenuItem * | item | |||
| ) | [virtual] |
Called when a menu is reactivated, for example by going up.
This allows a view to be shown again, without generating all the menus.
Reimplemented in AxAudioResourceActivator, and AxBookResourceActivator.
| bool AxResourceActivator::Select | ( | AxMenuController * | controller, | |
| AxMenuItem * | item | |||
| ) | [virtual] |
Called when the user selects an item, for example to describe the item.
Reimplemented from AxActivator.
| void AxResourceActivator::SetLibrary | ( | AxResourceLibrary * | library | ) | [inline] |
| void AxResourceActivator::SetResource | ( | AxResource * | resource | ) | [inline] |
| void AxResourceActivator::SetSpecificActivator | ( | AxActivator * | activator | ) | [inline] |
AxResourceLibrary* AxResourceActivator::m_library [protected] |
AxResource* AxResourceActivator::m_resource [protected] |
AxActivator* AxResourceActivator::m_specificActivator [protected] |
1.5.8