Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

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:

VCF::Menu VCF::UIComponent VCF::Component VCF::ObjectWithCallbacks VCF::Object List of all members.

Public Member Functions

 MenuBar ()
 MenuBar (Component *owner)
 MenuBar (const String &name, Component *owner)
 MenuBar (const String &name)
virtual ~MenuBar ()
void init ()
FramegetFrame ()
void setFrame (Frame *frame)
 Sets the menu bar's frame.
void handleEvent (Event *event)
 generic handler method for events.

Protected Member Functions

void onMenutItemAdded (MenuItemEvent *event)
void onMenutItemDeleted (MenuItemEvent *event)
virtual void destroy ()
 called by the free() method.

Protected Attributes

MenuBarPeerpeer_
Frameframe_

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 Component owner  ) 
 

VCF::MenuBar::MenuBar const String name,
Component owner
 

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:
Event based on the value returned by Event::getType(),

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

Frame* VCF::MenuBar::frame_ [protected]
 

MenuBarPeer* VCF::MenuBar::peer_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information