// forward declarations
// ----------------------------------------------------------------------------
-class WXDLLEXPORT wxAcceleratorEntry;
-class WXDLLEXPORT wxMenuItem;
-class WXDLLEXPORT wxMenu;
+class WXDLLIMPEXP_FWD_CORE wxAcceleratorEntry;
+class WXDLLIMPEXP_FWD_CORE wxMenuItem;
+class WXDLLIMPEXP_FWD_CORE wxMenu;
// ----------------------------------------------------------------------------
// wxMenuItem is an item in the menu which may be either a normal item, a sub
virtual void SetAccel(wxAcceleratorEntry *accel);
#endif // wxUSE_ACCEL
+#if WXWIN_COMPATIBILITY_2_8
// compatibility only, use new functions in the new code
- void SetName(const wxString& str) { SetText(str); }
- const wxString& GetName() const { return GetText(); }
+ wxDEPRECATED( void SetName(const wxString& str) );
+ wxDEPRECATED( const wxString& GetName() const );
+#endif // WXWIN_COMPATIBILITY_2_8
static wxMenuItem *New(wxMenu *parentMenu,
int itemid,
wxMenuItemBase& operator=(const wxMenuItemBase& item);
};
+#if WXWIN_COMPATIBILITY_2_8
+inline void wxMenuItemBase::SetName(const wxString &str)
+ { SetText(str); }
+inline const wxString& wxMenuItemBase::GetName() const
+ { return GetText(); }
+#endif // WXWIN_COMPATIBILITY_2_8
+
// ----------------------------------------------------------------------------
// include the real class declaration
// ----------------------------------------------------------------------------