#include <YMenuButton.h>
Inheritance diagram for YMenuItem:
Public Member Functions | |
YMenuItem (const YCPString &label, YMenu *parent_menu=0, int index=-1, const YCPValue &id=YCPVoid()) | |
virtual | ~YMenuItem () |
const YMenu * | getParent () const |
const YCPValue & | getId () const |
int | getIndex () const |
const YCPString & | getLabel () const |
virtual bool | hasChildren () const |
YMenuItemList & | itemList () |
virtual bool | isMenu () const |
virtual void | setLabel (YCPString newLabel) |
Protected Attributes | |
YCPString | label |
YCPValue | id |
YMenu * | parent |
int | index |
YMenuItemList | items |
This class provides the infrastructure for managing children ( i.e. submenus ), yet it doesn't actually handle such children. Derived classes may choose to do this.
|
Constructor. |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in YMenu. |
|
Reimplemented in YMenu. |
|
|
|
Set this menu item's label. This will NOT have any immediate visual effect with this base class method - it only stores the new label for later retrieval. If a visual effect is desired, derived classes should overwrite this method. Don't forget to call this base class method in that case! |
|
|
|
|
|
|
|
|
|
|