From 7d00c5c4779e07445913c7f859fb43fb6fa971f4 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sun, 29 Dec 2013 03:23:01 +0000 Subject: [PATCH] Add missing wxMenuItem methods git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75459 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); + //@} };