-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/accel.h"
#else
#include "wx/mac/carbon/accel.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/app.h"
#else
#include "wx/mac/carbon/app.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/bitmap.h"
#else
#include "wx/mac/carbon/bitmap.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/bmpbuttn.h"
#else
#include "wx/mac/carbon/bmpbuttn.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/brush.h"
#else
#include "wx/mac/carbon/brush.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/button.h"
#else
#include "wx/mac/carbon/button.h"
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
// Windows callbacks
-#if !__WXMAC_OSX__
+#ifndef __WXMAC_OSX__
void OnChar(wxKeyEvent& event);
#endif
int MacGetSelections(wxArrayInt& aSelections) const ;
bool MacIsSelected( int n ) const ;
void MacScrollTo( int n ) ;
-#if !__WXMAC_OSX__
+#ifndef __WXMAC_OSX__
void OnSize( wxSizeEvent &size ) ;
#endif
void MacDoClick() ;
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/checkbox.h"
#else
#include "wx/mac/carbon/checkbox.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/checklst.h"
#else
#include "wx/mac/carbon/checklst.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/chkconf.h"
#else
#include "wx/mac/carbon/chkconf.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/choice.h"
#else
#include "wx/mac/carbon/choice.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/clipbrd.h"
#else
#include "wx/mac/carbon/clipbrd.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/colordlg.h"
#else
#include "wx/mac/carbon/colordlg.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/colour.h"
#else
#include "wx/mac/carbon/colour.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/combobox.h"
#else
#include "wx/mac/carbon/combobox.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/control.h"
#else
#include "wx/mac/carbon/control.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/cursor.h"
#else
#include "wx/mac/carbon/cursor.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dataform.h"
#else
#include "wx/mac/carbon/dataform.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dataobj.h"
#else
#include "wx/mac/carbon/dataobj.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dataobj2.h"
#else
#include "wx/mac/carbon/dataobj2.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dc.h"
#else
#include "wx/mac/carbon/dc.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dcclient.h"
#else
#include "wx/mac/carbon/dcclient.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dcmemory.h"
#else
#include "wx/mac/carbon/dcmemory.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dcprint.h"
#else
#include "wx/mac/carbon/dcprint.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dcscreen.h"
#else
#include "wx/mac/carbon/dcscreen.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dialog.h"
#else
#include "wx/mac/carbon/dialog.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dirdlg.h"
#else
#include "wx/mac/carbon/dirdlg.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dnd.h"
#else
#include "wx/mac/carbon/dnd.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/filedlg.h"
#else
#include "wx/mac/carbon/filedlg.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/font.h"
#else
#include "wx/mac/carbon/font.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/fontdlg.h"
#else
#include "wx/mac/carbon/fontdlg.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/frame.h"
#else
#include "wx/mac/carbon/frame.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/gauge.h"
#else
#include "wx/mac/carbon/gauge.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/gdiobj.h"
#else
#include "wx/mac/carbon/gdiobj.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/glcanvas.h"
#else
#include "wx/mac/carbon/glcanvas.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/icon.h"
#else
#include "wx/mac/carbon/icon.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/joystick.h"
#else
#include "wx/mac/carbon/joystick.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/listbox.h"
#else
#include "wx/mac/carbon/listbox.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/macnotfy.h"
#else
#include "wx/mac/carbon/macnotfy.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/mdi.h"
#else
#include "wx/mac/carbon/mdi.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/menu.h"
#else
#include "wx/mac/carbon/menu.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/menuitem.h"
#else
#include "wx/mac/carbon/menuitem.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/metafile.h"
#else
#include "wx/mac/carbon/metafile.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/mimetype.h"
#else
#include "wx/mac/carbon/mimetype.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/minifram.h"
#else
#include "wx/mac/carbon/minifram.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/msgdlg.h"
#else
#include "wx/mac/carbon/msgdlg.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/notebook.h"
#else
#include "wx/mac/carbon/notebook.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/palette.h"
#else
#include "wx/mac/carbon/palette.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/pen.h"
#else
#include "wx/mac/carbon/pen.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/pnghand.h"
#else
#include "wx/mac/carbon/pnghand.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/pngread.h"
#else
#include "wx/mac/carbon/pngread.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/printdlg.h"
#else
#include "wx/mac/carbon/printdlg.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/printmac.h"
#else
#include "wx/mac/carbon/printmac.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/private.h"
#else
#include "wx/mac/carbon/private.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/radiobox.h"
#else
#include "wx/mac/carbon/radiobox.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/radiobut.h"
#else
#include "wx/mac/carbon/radiobut.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/region.h"
#else
#include "wx/mac/carbon/region.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/scrolbar.h"
#else
#include "wx/mac/carbon/scrolbar.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/slider.h"
#else
#include "wx/mac/carbon/slider.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/sound.h"
#else
#include "wx/mac/carbon/sound.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/spinbutt.h"
#else
#include "wx/mac/carbon/spinbutt.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/spinctrl.h"
#else
#include "wx/mac/carbon/spinctrl.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/statbmp.h"
#else
#include "wx/mac/carbon/statbmp.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/statbox.h"
#else
#include "wx/mac/carbon/statbox.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/statline.h"
#else
#include "wx/mac/carbon/statline.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/stattext.h"
#else
#include "wx/mac/carbon/stattext.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/statusbr.h"
#else
#include "wx/mac/carbon/statusbr.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/tabctrl.h"
#else
#include "wx/mac/carbon/tabctrl.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/taskbarosx.h"
#else
#include "wx/mac/carbon/taskbarosx.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/textctrl.h"
#else
#include "wx/mac/carbon/textctrl.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/tglbtn.h"
#else
#include "wx/mac/carbon/tglbtn.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/timer.h"
#else
#include "wx/mac/carbon/timer.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/toolbar.h"
#else
#include "wx/mac/carbon/toolbar.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/tooltip.h"
#else
#include "wx/mac/carbon/tooltip.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/toplevel.h"
#else
#include "wx/mac/carbon/toplevel.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/uma.h"
#else
#include "wx/mac/carbon/uma.h"
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/window.h"
#else
#include "wx/mac/carbon/window.h"
#if defined(__MACH__)
#define __WXMAC_OSX__ 1
#define __WXMAC_CARBON__ 1
- #define __WXMAC_CLASSIC__ 0
#ifdef __WXMAC_XCODE__
#include "wx/mac/carbon/config_xcode.h"
#endif
#else
- #define __WXMAC_OSX__ 0
#if TARGET_CARBON
#define __WXMAC_CARBON__ 1
- #define __WXMAC_CLASSIC__ 0
#else
- #define __WXMAC_CARBON__ 0
#define __WXMAC_CLASSIC__ 1
#endif
#endif
GetThemeFont(kThemeSystemFont , GetApplicationScript() , fontName , &fontSize , &fontStyle ) ;
sizeFont = fontSize ;
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
wxNORMAL_FONT = new wxFont (fontSize, wxMODERN, wxNORMAL, wxNORMAL , false , wxMacMakeStringFromPascal(fontName) );
#else
wxNORMAL_FONT = new wxFont () ;
#elif defined(__WXMAC__)
wxSWISS_FONT = new wxFont (sizeFont, wxSWISS, wxNORMAL, wxNORMAL); /* Helv */
wxITALIC_FONT = new wxFont (sizeFont, wxROMAN, wxITALIC, wxNORMAL);
-#if __WXMAC_CLASSIC__
+#ifdef __WXMAC_CLASSIC__
GetThemeFont(kThemeSmallSystemFont , GetApplicationScript() , fontName , &fontSize , &fontStyle ) ;
wxSMALL_FONT = new wxFont (fontSize, wxSWISS, wxNORMAL, wxNORMAL , false , wxMacMakeStringFromPascal( fontName ) );
#else
m_mainWin = new wxListMainWindow( this, wxID_ANY, wxPoint(0,0), size, style );
-#if defined( __WXMAC__ ) && __WXMAC_CARBON__
+#ifdef __WXMAC_CARBON__
// Human Interface Guidelines ask us for a special font in this case
if ( GetWindowVariant() == wxWINDOW_VARIANT_NORMAL )
{
m_lastOnSame = false;
-#if defined( __WXMAC__ ) && __WXMAC_CARBON__
+#ifdef __WXMAC_CARBON__
m_normalFont.MacCreateThemeFont( kThemeViewsFont ) ;
#else
m_normalFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );