VCF::MenuBar Class Reference
A menu bar is used to control a menu associated with either the application or a
Frame.
More...
#include <vcf/ApplicationKit/MenuBar.h>
Inheritance diagram for VCF::MenuBar:
List of all members.
Detailed Description
A menu bar is used to control a menu associated with either the application or a
Frame.
For most windowing systems, this will change the menu bar that is displayed at the top of the widow frame, usually directly underneath the caption bar. On other windowing systems, like Mac OSX, this will change the top level menu located at the top of the screen.
Constructor & Destructor Documentation
| VCF::MenuBar::MenuBar |
( |
|
) |
|
|
| VCF::MenuBar::MenuBar |
( |
const String & |
name |
) |
|
|
| virtual VCF::MenuBar::~MenuBar |
( |
|
) |
[virtual] |
|
Member Function Documentation
| virtual void VCF::MenuBar::destroy |
( |
|
) |
[protected, virtual] |
|
|
|
called by the free() method.
Should be overriden and any clean up code performed here
Reimplemented from VCF::Menu. |
| Frame* VCF::MenuBar::getFrame |
( |
|
) |
|
|
| void VCF::MenuBar::handleEvent |
( |
Event * |
event |
) |
[virtual] |
|
|
|
generic handler method for events.
All UI events are sent here and then dispatched accordingly to a more specific event handler. If an Application class is present, then it is given a chance to "see" the event first before delegating it to the Component.
All events are dispatched by their type so it is important to correctly identify the event objects type if you would like it to be dispatched correctly. The method will call the appropriate component method, like afterCreate(), beforeDestroy(), etc. - Parameters:
-
Reimplemented from VCF::Menu. |
| void VCF::MenuBar::init |
( |
|
) |
|
|
| void VCF::MenuBar::onMenutItemAdded |
( |
MenuItemEvent * |
event |
) |
[protected] |
|
| void VCF::MenuBar::onMenutItemDeleted |
( |
MenuItemEvent * |
event |
) |
[protected] |
|
| void VCF::MenuBar::setFrame |
( |
Frame * |
frame |
) |
|
|
|
|
Sets the menu bar's frame.
If a NULL frame is passed in the menu is removed from it's frame |
Member Data Documentation
The documentation for this class was generated from the following file: