X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d65c269b3f665e15a8ae1b8fff063b2ec0ef19a7..da494b405d0826b343ea6d249bbac27061e11d3e:/include/wx/menu.h?ds=sidebyside diff --git a/include/wx/menu.h b/include/wx/menu.h index b1b357c694..f8f172cc71 100644 --- a/include/wx/menu.h +++ b/include/wx/menu.h @@ -12,7 +12,7 @@ #ifndef _WX_MENU_H_BASE_ #define _WX_MENU_H_BASE_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "menubase.h" #endif @@ -79,7 +79,7 @@ public: void Append(int id, const wxString& text, const wxString& help = wxEmptyString, - wxItemKind kind = wxItem_Normal) + wxItemKind kind = wxITEM_NORMAL) { DoAppend(wxMenuItem::New((wxMenu *)this, id, text, help, kind)); } @@ -92,7 +92,7 @@ public: const wxString& text, const wxString& help = wxEmptyString) { - Append(id, text, help, wxItem_Check); + Append(id, text, help, wxITEM_CHECK); } // append a radio item @@ -100,7 +100,7 @@ public: const wxString& text, const wxString& help = wxEmptyString) { - Append(id, text, help, wxItem_Radio); + Append(id, text, help, wxITEM_RADIO); } // append a submenu @@ -109,7 +109,8 @@ public: wxMenu *submenu, const wxString& help = wxEmptyString) { - DoAppend(wxMenuItem::New((wxMenu *)this, id, text, help, FALSE, submenu)); + DoAppend(wxMenuItem::New((wxMenu *)this, id, text, help, + wxITEM_NORMAL, submenu)); } // the most generic form of Append() - append anything @@ -127,7 +128,7 @@ public: int id, const wxString& text, const wxString& help = wxEmptyString, - wxItemKind kind = wxItem_Normal) + wxItemKind kind = wxITEM_NORMAL) { Insert(pos, wxMenuItem::New((wxMenu *)this, id, text, help, kind)); } @@ -144,7 +145,7 @@ public: const wxString& text, const wxString& help = wxEmptyString) { - Insert(pos, id, text, help, wxItem_Check); + Insert(pos, id, text, help, wxITEM_CHECK); } // insert a radio item @@ -153,7 +154,7 @@ public: const wxString& text, const wxString& help = wxEmptyString) { - Insert(pos, id, text, help, wxItem_Radio); + Insert(pos, id, text, help, wxITEM_RADIO); } // insert a submenu @@ -163,7 +164,8 @@ public: wxMenu *submenu, const wxString& help = wxEmptyString) { - Insert(pos, wxMenuItem::New((wxMenu *)this, id, text, help, FALSE, submenu)); + Insert(pos, wxMenuItem::New((wxMenu *)this, id, text, help, + wxITEM_NORMAL, submenu)); } // prepend an item to the menu @@ -176,7 +178,7 @@ public: void Prepend(int id, const wxString& text, const wxString& help = wxEmptyString, - wxItemKind kind = wxItem_Normal) + wxItemKind kind = wxITEM_NORMAL) { Insert(0u, id, text, help, kind); } @@ -318,7 +320,7 @@ public: const wxString& help, bool isCheckable) { - Append(id, text, help, isCheckable ? wxItem_Check : wxItem_Normal); + Append(id, text, help, isCheckable ? wxITEM_CHECK : wxITEM_NORMAL); } void Insert(size_t pos, @@ -327,7 +329,7 @@ public: const wxString& help, bool isCheckable) { - Insert(pos, id, text, help, isCheckable ? wxItem_Check : wxItem_Normal); + Insert(pos, id, text, help, isCheckable ? wxITEM_CHECK : wxITEM_NORMAL); } void Prepend(int id, @@ -387,6 +389,8 @@ protected: long m_style; // combination of wxMENU_XXX flags wxEvtHandler *m_eventHandler; // a pluggable in event handler + + DECLARE_NO_COPY_CLASS(wxMenuBase) }; // ---------------------------------------------------------------------------- @@ -514,6 +518,8 @@ protected: // the frame we are attached to (may be NULL) wxFrame *m_menuBarFrame; + + DECLARE_NO_COPY_CLASS(wxMenuBarBase) }; // ---------------------------------------------------------------------------- @@ -535,8 +541,6 @@ protected: #include "wx/mac/menu.h" #elif defined(__WXPM__) #include "wx/os2/menu.h" -#elif defined(__WXSTUBS__) - #include "wx/stubs/menu.h" #endif #endif // wxUSE_BASE_CLASSES_ONLY/!wxUSE_BASE_CLASSES_ONLY