X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..c5ba48512424b7e543cadfccef304fe170bdf910:/include/wx/osx/menu.h diff --git a/include/wx/osx/menu.h b/include/wx/osx/menu.h index 7ddd112170..b37bd9dae3 100644 --- a/include/wx/osx/menu.h +++ b/include/wx/osx/menu.h @@ -41,10 +41,6 @@ public: bool ProcessCommand(wxCommandEvent& event); - // semi-private accessors - - // get the window which contains this menu - wxWindow *GetWindow() const; // get the menu handle WXHMENU GetHMenu() const ; @@ -137,7 +133,7 @@ public: virtual void EnableTop( size_t pos, bool flag ); virtual void SetMenuLabel( size_t pos, const wxString& label ); virtual wxString GetMenuLabel( size_t pos ) const; - virtual bool Enable( bool enable = TRUE ); + virtual bool Enable( bool enable = true ); // for virtual function hiding virtual void Enable( int itemid, bool enable ) { @@ -155,15 +151,9 @@ public: // attach to a frame void Attach(wxFrame *frame); - // clear the invoking window for all menus and submenus - void UnsetInvokingWindow() ; - - // set the invoking window for all menus and submenus - void SetInvokingWindow( wxFrame* frame ) ; - // if the menubar is modified, the display is not updated automatically, // call this function to update it (m_menuBarFrame should be !NULL) - void Refresh(bool eraseBackground = TRUE, const wxRect *rect = (const wxRect *) NULL); + void Refresh(bool eraseBackground = true, const wxRect *rect = NULL); static void SetAutoWindowMenu( bool enable ) { s_macAutoWindowMenu = enable ; } static bool GetAutoWindowMenu() { return s_macAutoWindowMenu ; } @@ -178,7 +168,6 @@ public: protected: // common part of all ctors void Init(); - wxWindow *m_invokingWindow; wxArrayString m_titles; static bool s_macAutoWindowMenu ;