#include "wx/dcprint.h"
#include "wx/dcscreen.h"
#include "wx/button.h"
+#include "wx/menuitem.h"
#include "wx/menu.h"
#include "wx/pen.h"
#include "wx/brush.h"
///////////////////////////////////////////////////////////////////////////////
-// Name: menuitem.cpp
+// Name: src/cocoa/menuitem.mm
// Purpose: wxMenuItem implementation
// Author: David Elliott
// Modified by:
// ----------------------------------------------------------------------------
#include "wx/wxprec.h"
+
+#if wxUSE_MENUS
+
+#include "wx/menuitem.h"
+
#ifndef WX_PRECOMP
#include "wx/menu.h"
- #include "wx/menuitem.h"
#include "wx/utils.h"
#include "wx/frame.h"
#include "wx/log.h"
#import <AppKit/NSCell.h> // NSOnState, NSOffState
#import <AppKit/NSEvent.h> // modifier key masks
-#if wxUSE_MENUS
-
// ----------------------------------------------------------------------------
// functions prototypes
// ----------------------------------------------------------------------------
#include "wx/settings.h"
#include "wx/toolbar.h"
#include "wx/statusbr.h"
+ #include "wx/menuitem.h"
#endif // WX_PRECOMP
-#include "wx/menuitem.h"
-
#include "wx/mac/uma.h"
extern wxWindowList wxModelessWindows;
#include "wx/utils.h"
#include "wx/window.h"
#include "wx/frame.h"
+ #include "wx/menuitem.h"
#endif
-#include "wx/menuitem.h"
-#include "wx/log.h"
-
#include "wx/mac/uma.h"
// other standard headers
#include "wx/toolbar.h"
#include "wx/layout.h"
#include "wx/statusbr.h"
+ #include "wx/menuitem.h"
#endif
#include "wx/tooltip.h"
-#include "wx/menuitem.h"
#include "wx/spinctrl.h"
#include "wx/geometry.h"
#include "wx/settings.h"
#include "wx/toolbar.h"
#include "wx/statusbr.h"
+ #include "wx/menuitem.h"
#endif // WX_PRECOMP
-#include "wx/menuitem.h"
-
#include "wx/mac/uma.h"
extern wxWindowList wxModelessWindows;
#include "wx/utils.h"
#include "wx/window.h"
#include "wx/frame.h"
+ #include "wx/menuitem.h"
#endif
-#include "wx/menuitem.h"
-
#include "wx/mac/uma.h"
// other standard headers
#include "wx/listbox.h"
#include "wx/layout.h"
#include "wx/statusbr.h"
+ #include "wx/menuitem.h"
#endif
#include "wx/notebook.h"
#include "wx/tabctrl.h"
#include "wx/tooltip.h"
-#include "wx/menuitem.h"
#include "wx/spinctrl.h"
#include "wx/geometry.h"
#include "wx/utils.h"
#include "wx/frame.h"
#include "wx/settings.h"
+ #include "wx/menuitem.h"
#endif
-#include "wx/menuitem.h"
-
#ifdef __VMS__
#pragma message disable nosimpint
#define XtDisplay XTDISPLAY
/////////////////////////////////////////////////////////////////////////////
-// Name: src/motif/windows.cpp
+// Name: src/motif/window.cpp
// Purpose: wxWindow
// Author: Julian Smart
// Modified by:
#include "wx/settings.h"
#include "wx/scrolwin.h"
#include "wx/layout.h"
+ #include "wx/menuitem.h"
#endif
#include "wx/module.h"
-#include "wx/menuitem.h"
#include "wx/evtloop.h"
#if wxUSE_DRAG_AND_DROP
#include "wx/log.h"
#include "wx/toolbar.h"
#include "wx/statusbr.h"
+ #include "wx/menuitem.h"
#endif // WX_PRECOMP
#include "wx/msw/private.h"
#include "wx/generic/statusbr.h"
-#include "wx/menuitem.h"
-
#ifdef __WXUNIVERSAL__
#include "wx/univ/theme.h"
#include "wx/univ/colschem.h"
#include "wx/menu.h"
#include "wx/utils.h"
#include "wx/settings.h"
+ #include "wx/menuitem.h"
#endif
#include "wx/ownerdrw.h"
-#include "wx/menuitem.h"
#include "wx/fontutil.h"
#include "wx/module.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/textctrl.h"
+ #include "wx/menuitem.h"
#endif
#if wxUSE_OWNER_DRAWN && !defined(__WXUNIVERSAL__)
#endif
#endif
-#include "wx/menuitem.h"
-
#include "wx/msw/private.h"
#if wxUSE_TOOLTIPS
#include "wx/mdi.h"
#include "wx/toolbar.h"
#include "wx/statusbr.h"
+ #include "wx/menuitem.h"
#endif // WX_PRECOMP
#include "wx/os2/private.h"
#include "wx/generic/statusbr.h"
-#include "wx/menuitem.h"
-
// ----------------------------------------------------------------------------
// globals
// ----------------------------------------------------------------------------
#include "wx/menu.h"
#include "wx/utils.h"
#include "wx/settings.h"
+ #include "wx/menuitem.h"
#endif
#include "wx/ownerdrw.h"
-#include "wx/menuitem.h"
-
// ============================================================================
// implementation of wxOwnerDrawn class
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/textctrl.h"
+ #include "wx/menuitem.h"
#include <stdio.h>
#endif
#include "wx/dnd.h"
#endif
-#include "wx/menuitem.h"
-
#include "wx/os2/private.h"
#if wxUSE_TOOLTIPS
#include "wx/log.h"
#include "wx/toolbar.h"
#include "wx/statusbr.h"
+ #include "wx/menuitem.h"
#endif // WX_PRECOMP
#include "wx/generic/statusbr.h"
-#include "wx/menuitem.h"
-
#ifdef __WXUNIVERSAL__
#include "wx/univ/theme.h"
#include "wx/univ/colschem.h"
#include "wx/menu.h"
#include "wx/utils.h"
#include "wx/settings.h"
+ #include "wx/menuitem.h"
#endif
#include "wx/ownerdrw.h"
-#include "wx/menuitem.h"
#include "wx/fontutil.h"
#include "wx/module.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/textctrl.h"
+ #include "wx/menuitem.h"
#endif
#if wxUSE_OWNER_DRAWN && !defined(__WXUNIVERSAL__)
#include "wx/access.h"
#endif
-#include "wx/menuitem.h"
-
#if wxUSE_TOOLTIPS
#include "wx/tooltip.h"
#endif
#include "wx/listbox.h"
#include "wx/scrolwin.h"
#include "wx/layout.h"
+ #include "wx/menuitem.h"
#endif
#include "wx/module.h"
-#include "wx/menuitem.h"
#include "wx/fontutil.h"
#include "wx/univ/renderer.h"