From 66b03f12eb6c320015bba738575f7dda9d2cbf47 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sun, 29 Dec 2013 03:37:10 +0000 Subject: [PATCH] Add missing wxMenuItem methods git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/menuitem.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/interface/wx/menuitem.h b/interface/wx/menuitem.h index af5a6d2943..4fd028cd07 100644 --- a/interface/wx/menuitem.h +++ b/interface/wx/menuitem.h @@ -258,6 +258,17 @@ public: */ wxColour& GetTextColour() const; + /** + Extract the accelerator from the given menu string, return NULL if none + found. + */ + static wxAcceleratorEntry *GetAccelFromString(const wxString& label); + + /** + Get our accelerator or NULL (caller must delete the pointer) + */ + virtual wxAcceleratorEntry *GetAccel() const; + //@} @@ -467,6 +478,12 @@ public: */ void SetTextColour(const wxColour& colour); + /** + Set the accel for this item - this may also be done indirectly with + SetText() + */ + virtual void SetAccel(wxAcceleratorEntry *accel); + //@} };