diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-08 09:29:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-09 11:40:53 +0000 |
commit | 5223d2e8c5be11b0821b1997076377485d3b200a (patch) | |
tree | 0c51da353b3cc97d57910cb33daa5bb04c59c167 /vcl/source/control/menubtn.cxx | |
parent | d9e3efbc0ed6193119565530e390a1c1c0a5f6b7 (diff) |
allow menu items to be enabled by name
and to get the name of the current enabled item
Change-Id: Ie4688fe5697d0bdb4c05da3c1e3bc29a3b86d6f0
Diffstat (limited to 'vcl/source/control/menubtn.cxx')
-rw-r--r-- | vcl/source/control/menubtn.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/control/menubtn.cxx b/vcl/source/control/menubtn.cxx index f8fb86fcaf6b..2bce1cc47a20 100644 --- a/vcl/source/control/menubtn.cxx +++ b/vcl/source/control/menubtn.cxx @@ -73,6 +73,12 @@ void MenuButton::ImplExecuteMenu() } } +OString MenuButton::GetCurItemIdent() const +{ + return (mnCurItemId && mpMenu) ? + mpMenu->GetItemIdent(mnCurItemId) : OString(); +} + // ----------------------------------------------------------------------- MenuButton::MenuButton( Window* pParent, WinBits nWinBits ) |