__WXMAC_OSBUILDTYPE__ selections are now only defined if they are TRUE

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2004-10-17 10:36:33 +00:00
parent c9433ea976
commit ca80fdee5e
81 changed files with 82 additions and 86 deletions

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/accel.h"
#else
#include "wx/mac/carbon/accel.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/app.h"
#else
#include "wx/mac/carbon/app.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/bitmap.h"
#else
#include "wx/mac/carbon/bitmap.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/bmpbuttn.h"
#else
#include "wx/mac/carbon/bmpbuttn.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/brush.h"
#else
#include "wx/mac/carbon/brush.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/button.h"
#else
#include "wx/mac/carbon/button.h"

View File

@ -130,7 +130,7 @@ public:
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
// Windows callbacks
#if !__WXMAC_OSX__
#ifndef __WXMAC_OSX__
void OnChar(wxKeyEvent& event);
#endif
@ -151,7 +151,7 @@ protected:
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() ;

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/checkbox.h"
#else
#include "wx/mac/carbon/checkbox.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/checklst.h"
#else
#include "wx/mac/carbon/checklst.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/chkconf.h"
#else
#include "wx/mac/carbon/chkconf.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/choice.h"
#else
#include "wx/mac/carbon/choice.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/clipbrd.h"
#else
#include "wx/mac/carbon/clipbrd.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/colordlg.h"
#else
#include "wx/mac/carbon/colordlg.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/colour.h"
#else
#include "wx/mac/carbon/colour.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/combobox.h"
#else
#include "wx/mac/carbon/combobox.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/control.h"
#else
#include "wx/mac/carbon/control.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/cursor.h"
#else
#include "wx/mac/carbon/cursor.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dataform.h"
#else
#include "wx/mac/carbon/dataform.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dataobj.h"
#else
#include "wx/mac/carbon/dataobj.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dataobj2.h"
#else
#include "wx/mac/carbon/dataobj2.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dc.h"
#else
#include "wx/mac/carbon/dc.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dcclient.h"
#else
#include "wx/mac/carbon/dcclient.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dcmemory.h"
#else
#include "wx/mac/carbon/dcmemory.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dcprint.h"
#else
#include "wx/mac/carbon/dcprint.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dcscreen.h"
#else
#include "wx/mac/carbon/dcscreen.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dialog.h"
#else
#include "wx/mac/carbon/dialog.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dirdlg.h"
#else
#include "wx/mac/carbon/dirdlg.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/dnd.h"
#else
#include "wx/mac/carbon/dnd.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/filedlg.h"
#else
#include "wx/mac/carbon/filedlg.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/font.h"
#else
#include "wx/mac/carbon/font.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/fontdlg.h"
#else
#include "wx/mac/carbon/fontdlg.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/frame.h"
#else
#include "wx/mac/carbon/frame.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/gauge.h"
#else
#include "wx/mac/carbon/gauge.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/gdiobj.h"
#else
#include "wx/mac/carbon/gdiobj.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/glcanvas.h"
#else
#include "wx/mac/carbon/glcanvas.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/icon.h"
#else
#include "wx/mac/carbon/icon.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/joystick.h"
#else
#include "wx/mac/carbon/joystick.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/listbox.h"
#else
#include "wx/mac/carbon/listbox.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/macnotfy.h"
#else
#include "wx/mac/carbon/macnotfy.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/mdi.h"
#else
#include "wx/mac/carbon/mdi.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/menu.h"
#else
#include "wx/mac/carbon/menu.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/menuitem.h"
#else
#include "wx/mac/carbon/menuitem.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/metafile.h"
#else
#include "wx/mac/carbon/metafile.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/mimetype.h"
#else
#include "wx/mac/carbon/mimetype.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/minifram.h"
#else
#include "wx/mac/carbon/minifram.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/msgdlg.h"
#else
#include "wx/mac/carbon/msgdlg.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/notebook.h"
#else
#include "wx/mac/carbon/notebook.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/palette.h"
#else
#include "wx/mac/carbon/palette.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/pen.h"
#else
#include "wx/mac/carbon/pen.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/pnghand.h"
#else
#include "wx/mac/carbon/pnghand.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/pngread.h"
#else
#include "wx/mac/carbon/pngread.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/printdlg.h"
#else
#include "wx/mac/carbon/printdlg.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/printmac.h"
#else
#include "wx/mac/carbon/printmac.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/private.h"
#else
#include "wx/mac/carbon/private.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/radiobox.h"
#else
#include "wx/mac/carbon/radiobox.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/radiobut.h"
#else
#include "wx/mac/carbon/radiobut.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/region.h"
#else
#include "wx/mac/carbon/region.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/scrolbar.h"
#else
#include "wx/mac/carbon/scrolbar.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/slider.h"
#else
#include "wx/mac/carbon/slider.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/sound.h"
#else
#include "wx/mac/carbon/sound.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/spinbutt.h"
#else
#include "wx/mac/carbon/spinbutt.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/spinctrl.h"
#else
#include "wx/mac/carbon/spinctrl.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/statbmp.h"
#else
#include "wx/mac/carbon/statbmp.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/statbox.h"
#else
#include "wx/mac/carbon/statbox.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/statline.h"
#else
#include "wx/mac/carbon/statline.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/stattext.h"
#else
#include "wx/mac/carbon/stattext.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/statusbr.h"
#else
#include "wx/mac/carbon/statusbr.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/tabctrl.h"
#else
#include "wx/mac/carbon/tabctrl.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/taskbarosx.h"
#else
#include "wx/mac/carbon/taskbarosx.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/textctrl.h"
#else
#include "wx/mac/carbon/textctrl.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/tglbtn.h"
#else
#include "wx/mac/carbon/tglbtn.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/timer.h"
#else
#include "wx/mac/carbon/timer.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/toolbar.h"
#else
#include "wx/mac/carbon/toolbar.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/tooltip.h"
#else
#include "wx/mac/carbon/tooltip.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/toplevel.h"
#else
#include "wx/mac/carbon/toplevel.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/uma.h"
#else
#include "wx/mac/carbon/uma.h"

View File

@ -1,4 +1,4 @@
#if __WXMAC_CLASSIC__
#ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/window.h"
#else
#include "wx/mac/carbon/window.h"

View File

@ -33,17 +33,13 @@
#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

View File

@ -538,7 +538,7 @@ void wxInitializeStockObjects ()
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 () ;
@ -563,7 +563,7 @@ void wxInitializeStockObjects ()
#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

View File

@ -4662,7 +4662,7 @@ bool wxGenericListCtrl::Create(wxWindow *parent,
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 )
{

View File

@ -765,7 +765,7 @@ void wxGenericTreeCtrl::Init()
m_lastOnSame = false;
#if defined( __WXMAC__ ) && __WXMAC_CARBON__
#ifdef __WXMAC_CARBON__
m_normalFont.MacCreateThemeFont( kThemeViewsFont ) ;
#else
m_normalFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );