X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94b49b9303a9fd119e24d1b07263f5bb0643afa5..31276cb5e77fcddaea54e0ba2f30da5e5d74747c:/include/wx/motif/menu.h diff --git a/include/wx/motif/menu.h b/include/wx/motif/menu.h index d29ae23ac4..22ddece86e 100644 --- a/include/wx/motif/menu.h +++ b/include/wx/motif/menu.h @@ -85,6 +85,12 @@ public: // Find wxMenuItem by ID, and item's menu too if itemMenu is !NULL. wxMenuItem *FindItemForId(int itemId, wxMenu **itemMenu = NULL) const; + // Updates the UI for a menu and all submenus recursively. + // source is the object that has the update event handlers + // defined for it. If NULL, the menu or associated window + // will be used. + void UpdateUI(wxEvtHandler* source = (wxEvtHandler*) NULL); + void ProcessCommand(wxCommandEvent& event); inline void Callback(const wxFunction func) { m_callback = func; } @@ -94,6 +100,9 @@ public: inline wxList& GetItems() const { return (wxList&) m_menuItems; } + void SetInvokingWindow(wxWindow *pWin) { m_pInvokingWindow = pWin; } + wxWindow *GetInvokingWindow() const { return m_pInvokingWindow; } + //// Motif-specific inline WXWidget GetButtonWidget() const { return m_buttonWidget; } inline void SetButtonWidget(WXWidget buttonWidget) { m_buttonWidget = buttonWidget; } @@ -136,6 +145,7 @@ public: wxEvtHandler * m_parent; wxEvtHandler * m_eventHandler; void* m_clientData; + wxWindow* m_pInvokingWindow; //// Motif-specific int m_numColumns; @@ -159,6 +169,7 @@ class WXDLLEXPORT wxMenuBar: public wxEvtHandler { DECLARE_DYNAMIC_CLASS(wxMenuBar) + wxMenuBar( long style ); wxMenuBar(); wxMenuBar(int n, wxMenu *menus[], const wxString titles[]); ~wxMenuBar();