A menu item can now be enabled and disabled.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8646 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -37,6 +37,9 @@ class MenuItem {
|
|||||||
void Select(bool selected);
|
void Select(bool selected);
|
||||||
bool IsSelected() const { return fIsSelected; }
|
bool IsSelected() const { return fIsSelected; }
|
||||||
|
|
||||||
|
void SetEnabled(bool enabled);
|
||||||
|
bool IsEnabled() const { return fIsEnabled; }
|
||||||
|
|
||||||
void SetType(menu_item_type type);
|
void SetType(menu_item_type type);
|
||||||
menu_item_type Type() const { return fType; }
|
menu_item_type Type() const { return fType; }
|
||||||
|
|
||||||
@@ -59,6 +62,7 @@ class MenuItem {
|
|||||||
menu_item_hook fTarget;
|
menu_item_hook fTarget;
|
||||||
bool fIsMarked;
|
bool fIsMarked;
|
||||||
bool fIsSelected;
|
bool fIsSelected;
|
||||||
|
bool fIsEnabled;
|
||||||
menu_item_type fType;
|
menu_item_type fType;
|
||||||
Menu *fMenu, *fSubMenu;
|
Menu *fMenu, *fSubMenu;
|
||||||
void *fData;
|
void *fData;
|
||||||
|
|||||||
Reference in New Issue
Block a user