// wxMenu
// ----------------------------------------------------------------------------
-class WXDLLEXPORT wxMenuBase : public wxEvtHandler
+class WXDLLIMPEXP_CORE wxMenuBase : public wxEvtHandler
{
public:
// create a menu
}
// append a separator to the menu
- wxMenuItem* AppendSeparator() { return Append(wxID_SEPARATOR, wxEmptyString); }
+ wxMenuItem* AppendSeparator() { return Append(wxID_SEPARATOR); }
// append a check item
wxMenuItem* AppendCheckItem(int itemid,
// the title
virtual void SetTitle(const wxString& title) { m_title = title; }
- const wxString GetTitle() const { return m_title; }
+ const wxString& GetTitle() const { return m_title; }
// event handler
void SetEventHandler(wxEvtHandler *handler) { m_eventHandler = handler; }
// wxMenuBar
// ----------------------------------------------------------------------------
-class WXDLLEXPORT wxMenuBarBase : public wxWindow
+class WXDLLIMPEXP_CORE wxMenuBarBase : public wxWindow
{
public:
// default ctor
DECLARE_NO_COPY_CLASS(wxMenuBarBase)
};
-#if WXWIN_COMPATIBILITY_2_8
-// get or change the label of the menu at given position
-void wxMenuBarBase::SetLabelTop(size_t pos, const wxString& label)
-{
- SetMenuLabel(pos, label);
-}
-
-wxString wxMenuBarBase::GetLabelTop(size_t pos) const
-{
- return GetMenuLabel(pos);
-}
-#endif
-
// ----------------------------------------------------------------------------
// include the real class declaration
// ----------------------------------------------------------------------------
#elif defined(__WXGTK__)
#include "wx/gtk1/menu.h"
#elif defined(__WXMAC__)
- #include "wx/mac/menu.h"
+ #include "wx/osx/menu.h"
#elif defined(__WXCOCOA__)
#include "wx/cocoa/menu.h"
#elif defined(__WXPM__)