projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added wchar_t, wxUniChar overloads for wxStrchr
[wxWidgets.git]
/
include
/
wx
/
menuitem.h
diff --git
a/include/wx/menuitem.h
b/include/wx/menuitem.h
index fa7b1e4f175fdb6bfcb1db295996436a78d25d4e..23429ed8a2adc47a762bcc856a717adc0342edd7 100644
(file)
--- a/
include/wx/menuitem.h
+++ b/
include/wx/menuitem.h
@@
-64,7
+64,7
@@
public:
// any), i.e. it may contain '&' or '_' or "\t..." and thus is
// different from the item's label which only contains the text shown
// in the menu
// any), i.e. it may contain '&' or '_' or "\t..." and thus is
// different from the item's label which only contains the text shown
// in the menu
- virtual void SetText(const wxString& str)
{ m_text = str; }
+ virtual void SetText(const wxString& str)
;
wxString GetLabel() const { return GetLabelFromText(m_text); }
const wxString& GetText() const { return m_text; }
wxString GetLabel() const { return GetLabelFromText(m_text); }
const wxString& GetText() const { return m_text; }
@@
-92,7
+92,7
@@
public:
void Toggle() { Check(!m_isChecked); }
// help string (displayed in the status bar by default)
void Toggle() { Check(!m_isChecked); }
// help string (displayed in the status bar by default)
- void SetHelp(const wxString& str)
{ m_help = str; }
+ void SetHelp(const wxString& str)
;
const wxString& GetHelp() const { return m_help; }
#if wxUSE_ACCEL
const wxString& GetHelp() const { return m_help; }
#if wxUSE_ACCEL
@@
-108,9
+108,11
@@
public:
virtual void SetAccel(wxAcceleratorEntry *accel);
#endif // wxUSE_ACCEL
virtual void SetAccel(wxAcceleratorEntry *accel);
#endif // wxUSE_ACCEL
+#if WXWIN_COMPATIBILITY_2_8
// compatibility only, use new functions in the new code
// 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,
static wxMenuItem *New(wxMenu *parentMenu,
int itemid,
@@
-148,6
+150,13
@@
private:
wxMenuItemBase& operator=(const wxMenuItemBase& item);
};
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
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// include the real class declaration
// ----------------------------------------------------------------------------