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

VCF::Menu Class Reference

#include <vcf/ApplicationKit/Menu.h>

Inheritance diagram for VCF::Menu:

VCF::UIComponent VCF::Component VCF::ObjectWithCallbacks VCF::Object VCF::MenuBar VCF::PopupMenu List of all members.

Public Member Functions

 Menu ()
 Menu (Component *owner)
 Menu (const String &name, Component *owner)
 Menu (const String &name)
virtual ~Menu ()
MenuItemgetRootMenuItem ()
void setRootMenuItem (MenuItem *item)
void itemChanged (const int &eventType, MenuItem *item)
uint32 getItemIndex (MenuItem *item)
virtual void handleEvent (Event *event)
 generic handler method for events.

Public Attributes

VCF::Delegate MenuItemDelegate
 MenuItemChanged

Protected Member Functions

virtual void destroy ()
 called by the free() method.

Protected Attributes

MenuItemrootMenuItem_

Constructor & Destructor Documentation

VCF::Menu::Menu  ) 
 

VCF::Menu::Menu Component owner  ) 
 

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

VCF::Menu::Menu const String name  ) 
 

virtual VCF::Menu::~Menu  )  [virtual]
 


Member Function Documentation

virtual void VCF::Menu::destroy  )  [protected, virtual]
 

called by the free() method.

Should be overriden and any clean up code performed here

Reimplemented from VCF::UIComponent.

Reimplemented in VCF::MenuBar, and VCF::PopupMenu.

uint32 VCF::Menu::getItemIndex MenuItem item  ) 
 

MenuItem* VCF::Menu::getRootMenuItem  ) 
 

virtual void VCF::Menu::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::UIComponent.

Reimplemented in VCF::MenuBar.

void VCF::Menu::itemChanged const int &  eventType,
MenuItem item
 

void VCF::Menu::setRootMenuItem MenuItem item  ) 
 


Member Data Documentation

VCF::Menu::MenuItemChanged
 

VCF::Delegate VCF::Menu::MenuItemDelegate
 

MenuItem* VCF::Menu::rootMenuItem_ [protected]
 


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