Binary compatible API fixes for menu label retrieval with and without
mnemonics/accelerators. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -43,7 +43,7 @@ public:
|
||||
// implementation only from now on
|
||||
// -------------------------------
|
||||
|
||||
int MacGetIndexFromId( int id ) ;
|
||||
int MacGetIndexFromId( int id ) ;
|
||||
int MacGetIndexFromItem( wxMenuItem *pItem ) ;
|
||||
void MacEnableMenu( bool bDoEnable ) ;
|
||||
// MacOS needs to know about submenus somewhere within this menu
|
||||
@@ -174,6 +174,13 @@ private:
|
||||
static wxMenuBar* s_macCommonMenuBar ;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxMenuBar)
|
||||
|
||||
public:
|
||||
|
||||
#if wxABI_VERSION >= 20805
|
||||
// Gets the original label at the top-level of the menubar
|
||||
wxString GetMenuLabel(size_t pos) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // _WX_MENU_H_
|
||||
|
@@ -47,7 +47,7 @@ public:
|
||||
void UpdateItemBitmap() ;
|
||||
void UpdateItemText() ;
|
||||
void UpdateItemStatus() ;
|
||||
|
||||
|
||||
void DoUpdateItemBitmap( WXHMENU menu, wxUint16 index) ;
|
||||
|
||||
// mark item as belonging to the given radio group
|
||||
@@ -75,6 +75,14 @@ private:
|
||||
void* m_menu ; // the appropriate menu , may also be a system menu
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxMenuItem)
|
||||
|
||||
public:
|
||||
|
||||
#if wxABI_VERSION >= 20805
|
||||
// return the item label including any mnemonics and accelerators.
|
||||
// This used to be called GetText.
|
||||
wxString GetItemLabel() const { return GetText(); }
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif //_MENUITEM_H
|
||||
|
@@ -47,7 +47,7 @@ public:
|
||||
// implementation only from now on
|
||||
// -------------------------------
|
||||
|
||||
int MacGetIndexFromId( int id ) ;
|
||||
int MacGetIndexFromId( int id ) ;
|
||||
int MacGetIndexFromItem( wxMenuItem *pItem ) ;
|
||||
void MacEnableMenu( bool bDoEnable ) ;
|
||||
// MacOS needs to know about submenus somewhere within this menu
|
||||
@@ -160,6 +160,13 @@ private:
|
||||
static wxMenuBar* s_macCommonMenuBar ;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxMenuBar)
|
||||
|
||||
public:
|
||||
|
||||
#if wxABI_VERSION >= 20805
|
||||
// Gets the original label at the top-level of the menubar
|
||||
wxString GetMenuLabel(size_t pos) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // _WX_MENU_H_
|
||||
|
@@ -72,6 +72,14 @@ private:
|
||||
void* m_menu ; // the appropriate menu , may also be a system menu
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxMenuItem)
|
||||
|
||||
public:
|
||||
|
||||
#if wxABI_VERSION >= 20805
|
||||
// return the item label including any mnemonics and accelerators.
|
||||
// This used to be called GetText.
|
||||
wxString GetItemLabel() const;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif //_MENUITEM_H
|
||||
|
Reference in New Issue
Block a user