VCF::DefaultMenuItem Class Reference
#include <vcf/ApplicationKit/DefaultMenuItem.h>
Inheritance diagram for VCF::DefaultMenuItem:

Public Member Functions | |
| DefaultMenuItem () | |
| DefaultMenuItem (const String &caption, MenuItem *parent=NULL, Menu *menuOwner=NULL) | |
| virtual | ~DefaultMenuItem () |
| void | init () |
| virtual bool | containsPoint (Point *pt) |
| virtual uint32 | getIndex () const |
| virtual void | setIndex (const uint32 &index) |
| virtual void | paint (GraphicsContext *context, Rect *paintRect) |
| virtual bool | isSelected () const |
| virtual void | setSelected (const bool &selected) |
| virtual Enumerator< MenuItem * > * | getChildren () |
| virtual void | addChild (MenuItem *child) |
| virtual void | insertChild (const uint32 &index, MenuItem *child) |
| virtual void | deleteChild (MenuItem *child) |
| virtual void | deleteChild (const uint32 &index) |
| virtual void | clearChildren () |
| virtual bool | isChecked () const |
| virtual void | setChecked (const bool &checked) |
| virtual bool | hasParent () const |
| virtual bool | hasChildren () const |
| virtual uint32 | getChildCount () const |
| virtual Menu * | getMenuOwner () const |
| returns the owner of the menu item. | |
| virtual void | setMenuOwner (Menu *menuOwner) |
| sets the Owner for the MenuItem and for all it's children as well | |
| virtual MenuItem * | getParent () const |
| virtual void | setParent (MenuItem *parent) |
| virtual MenuItem * | getChildAt (const uint32 &index) |
| virtual MenuItem * | findChildNamed (const String &name, const bool &exactMatch=true) |
| Searches all the children of this menu item for the first child menu item whose name exactly matches the name parameter. | |
| virtual bool | isEnabled () const |
| virtual void | setEnabled (const bool &enabled) |
| virtual bool | isVisible () const |
| virtual void | setVisible (const bool &visible) |
| virtual bool | getRadioItem () const |
| virtual void | setRadioItem (const bool &value) |
| virtual void | setCaption (const String &caption) |
| virtual String | getCaption () const |
| virtual MenuItemPeer * | getPeer () const |
| virtual bool | isSeparator () const |
| virtual void | setSeparator (const bool &separator) |
| virtual bool | isHighlighted () const |
| virtual void | setHighlighted (const bool &val) |
| virtual void | click () |
| virtual void | update () |
| virtual void | setImageIndex (const int32 &imageIndex) |
| virtual bool | canPaint () const |
| indicates whether the item can paint itself. | |
| virtual void | setCanPaint (const bool &val) |
| virtual void | setAcceleratorKeyInfo (const VirtualKeyCode &keyCode, const uint32 &modifierMask) |
This sets the accelerator key object for the menu item. | |
| virtual void | setAcceleratorKey (AcceleratorKey *accelerator) |
| Sets the acclerator object for this menu item. | |
| virtual AcceleratorKey * | getAccelerator () const |
| Returns the accelerator for the menu item. | |
| virtual uint32 | getChildIndex (MenuItem *child) const |
| virtual Object * | clone (bool deep=false) const |
| Makes a complete clone of this object. | |
| virtual void | handleEvent (Event *event) |
| generic handler method for events. | |
Protected Member Functions | |
| void | onAccelerator (KeyboardEvent *e) |
Protected Attributes | |
| Array< MenuItem * > | menuItems_ |
| String | caption_ |
| Menu * | menuOwner_ |
| MenuItem * | parent_ |
| AcceleratorKey * | currentAccelerator_ |
Constructor & Destructor Documentation
|
|
|
|
||||||||||||||||
|
|
|
|
|
Member Function Documentation
|
|
Implements VCF::MenuItem. |
|
|
indicates whether the item can paint itself. In general this is often false, but when true, the control that contains the item should call the item's paint() method whenever the item needs repainting. Reimplemented from VCF::Item. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Makes a complete clone of this object. A typical implementation might be: In which the implementer simply creates a new instance on the heap and calls the copy constructor. Objects which support cloning should also have a copy constructor defined as well.
Reimplemented from VCF::Object. |
|
|
|
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
||||||||||||
|
Searches all the children of this menu item for the first child menu item whose name exactly matches the name parameter. This search is case sensitive.
Implements VCF::MenuItem. |
|
|
Returns the accelerator for the menu item.
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
returns the owner of the menu item. This generally is either a MenuBar or a PopupMenu Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
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.
Reimplemented from VCF::UIComponent. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
|
|
||||||||||||
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Reimplemented from VCF::Item. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
|
|
||||||||||||
|
Reimplemented from VCF::Item. |
|
|
Sets the acclerator object for this menu item. If one already exists then it is removed. Implements VCF::MenuItem. |
|
||||||||||||
|
If one already exists it is removed for this menu item. The accelerator is assigned the key code and modifier mask passed in, and is given a default event handler, determined by the implementor. Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Reimplemented from VCF::Item. |
|
|
Implements VCF::MenuItem. |
|
|
sets the Owner for the MenuItem and for all it's children as well
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Reimplemented from VCF::Item. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
|
|
Implements VCF::MenuItem. |
Member Data Documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/DefaultMenuItem.h
