avoid type conflict with univ wxMenuInfo

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-01-07 21:51:19 +00:00
parent 46cd8dfd0a
commit 54912101ff

View File

@@ -398,11 +398,11 @@ protected:
// XTI accessor // XTI accessor
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
class WXDLLEXPORT wxMenuInfo : public wxObject class WXDLLEXPORT wxMenuInfoHelper : public wxObject
{ {
public: public:
wxMenuInfo() { m_menu = NULL; } wxMenuInfoHelper() { m_menu = NULL; }
virtual ~wxMenuInfo() { } virtual ~wxMenuInfoHelper() { }
bool Create( wxMenu *menu, const wxString &title ) bool Create( wxMenu *menu, const wxString &title )
{ {
@@ -418,10 +418,10 @@ private:
wxMenu *m_menu; wxMenu *m_menu;
wxString m_title; wxString m_title;
DECLARE_DYNAMIC_CLASS(wxMenuInfo) DECLARE_DYNAMIC_CLASS(wxMenuInfoHelper)
}; };
WX_DECLARE_EXPORTED_LIST(wxMenuInfo, wxMenuInfoList ); WX_DECLARE_EXPORTED_LIST(wxMenuInfoHelper, wxMenuInfoHelperList );
#endif #endif
@@ -543,9 +543,9 @@ public:
#if wxUSE_EXTENDED_RTTI #if wxUSE_EXTENDED_RTTI
// XTI helpers: // XTI helpers:
bool AppendMenuInfo( const wxMenuInfo *info ) bool AppendMenuInfo( const wxMenuInfoHelper *info )
{ return Append( info->GetMenu(), info->GetTitle() ); } { return Append( info->GetMenu(), info->GetTitle() ); }
const wxMenuInfoList& GetMenuInfos() const; const wxMenuInfoHelperList& GetMenuInfos() const;
#endif #endif
#if WXWIN_COMPATIBILITY_2_8 #if WXWIN_COMPATIBILITY_2_8
@@ -562,7 +562,7 @@ protected:
#if wxUSE_EXTENDED_RTTI #if wxUSE_EXTENDED_RTTI
// used by XTI // used by XTI
wxMenuInfoList m_menuInfos; wxMenuInfoHelperList m_menuInfos;
#endif #endif
// the frame we are attached to (may be NULL) // the frame we are attached to (may be NULL)