modified configure to allow configuration of wxMotif under Darwin/Mac OS X
wxWindows can be configured as wxMac or wxMotif under Mac OS X replaced __WXMAC_X__ define by __DARWIN__ (general Darwin related issues) moved dlopen/dlerror code to dynlib.cpp to make it available for wxMotif git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -65,6 +65,9 @@ public:
|
||||
|
||||
// the virtual functions which may/must be overridden in the derived class
|
||||
// -----------------------------------------------------------------------
|
||||
#ifdef __DARWIN__
|
||||
virtual ~wxAppBase() { }
|
||||
#endif
|
||||
|
||||
// called during the program initialization, returning FALSE from here
|
||||
// prevents the program from continuing - it's a good place to create
|
||||
@@ -315,11 +318,6 @@ protected:
|
||||
// does any of our windows has focus?
|
||||
bool m_isActive;
|
||||
#endif // wxUSE_GUI
|
||||
|
||||
#ifdef __WXMAC_X__
|
||||
public:
|
||||
virtual ~wxAppBase() {} // Added min for Mac X
|
||||
#endif
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -38,7 +38,7 @@ class WXDLLEXPORT wxChoiceBase : public wxControlWithItems
|
||||
{
|
||||
public:
|
||||
// all generic methods are in wxControlWithItems
|
||||
#ifdef __WXMAC_X__
|
||||
#ifdef __DARWIN__
|
||||
virtual ~wxChoiceBase() {}
|
||||
#endif
|
||||
|
||||
|
@@ -48,8 +48,8 @@ public:
|
||||
// get the control alignment (left/right/centre, top/bottom/centre)
|
||||
int GetAlignment() const { return m_windowStyle & wxALIGN_MASK; }
|
||||
|
||||
#ifdef __WXMAC_X__
|
||||
virtual ~wxControlBase() { } // Added min for Mac X
|
||||
#ifdef __DARWIN__
|
||||
virtual ~wxControlBase() { }
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
@@ -86,8 +86,8 @@ public:
|
||||
int Number() const { return GetCount(); }
|
||||
#endif // WXWIN_COMPATIBILITY_2_2
|
||||
|
||||
#ifdef __WXMAC_X__
|
||||
virtual ~wxItemContainer() {} // Added min for Mac X
|
||||
#ifdef __DARWIN__
|
||||
virtual ~wxItemContainer() { }
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
@@ -112,41 +112,26 @@
|
||||
#define __HPUX__
|
||||
#endif // HP-UX
|
||||
|
||||
#if defined(__APPLE__)
|
||||
// MacOS X
|
||||
#ifndef __WXMAC__
|
||||
#define __WXMAC__
|
||||
#endif
|
||||
#ifndef __WXMAC_X__
|
||||
// This define really should not be necessary since __WXMAC__
|
||||
// combined with __UNIX__ is sufficient to differentiate
|
||||
// Classic Mac OS from Mac OS X. However, some code has been
|
||||
// added to workaround defects(?) in the bundled gcc compiler
|
||||
// and these corrections are identified by __WXMAC_X__
|
||||
#define __WXMAC_X__
|
||||
#endif
|
||||
#if defined(__WXMAC__) && defined(__DARWIN__)
|
||||
// Mac OS X
|
||||
|
||||
// Some code has been added to workaround defects(?) in the
|
||||
// bundled gcc compiler. These corrections are identified by:
|
||||
// __DARWIN__ for corrections necessary for Darwin (wxMac, wxMotif)
|
||||
|
||||
#include <Carbon/Carbon.h>
|
||||
#endif // __APPLE__
|
||||
#endif // __WXMAC__ && __DARWIN__
|
||||
#elif defined(applec) || \
|
||||
defined(THINK_C) || \
|
||||
(defined(__MWERKS__) && !defined(__INTEL__))
|
||||
// MacOS
|
||||
#elif defined(__WXMAC__) && defined(__APPLE__)
|
||||
// MacOS X
|
||||
#elif defined(__WXMAC__) && defined(__DARWIN__)
|
||||
// Mac OS X
|
||||
#define __UNIX_LIKE__
|
||||
|
||||
#ifndef __WXMAC__
|
||||
#define __WXMAC__
|
||||
#endif
|
||||
#ifndef __WXMAC_X__
|
||||
// This define really should not be necessary since __WXMAC__
|
||||
// combined with __UNIX__ is sufficient to differentiate
|
||||
// Classic Mac OS from Mac OS X. However, some code has been
|
||||
// added to workaround defects(?) in the bundled gcc compiler
|
||||
// and these corrections are identified by __WXMAC_X__
|
||||
#define __WXMAC_X__
|
||||
#endif
|
||||
// Some code has been added to workaround defects(?) in the
|
||||
// bundled gcc compiler. These corrections are identified by:
|
||||
// __DARWIN__ for corrections necessary for Darwin (wxMac, wxMotif)
|
||||
|
||||
#include <Carbon/Carbon.h>
|
||||
#elif defined(__OS2__)
|
||||
|
@@ -22,8 +22,8 @@
|
||||
class WXDLLEXPORT wxDialogBase : public wxPanel
|
||||
{
|
||||
public:
|
||||
#ifdef __WXMAC_X__
|
||||
~wxDialogBase() {} // Added min for Mac X
|
||||
#ifdef __DARWIN__
|
||||
~wxDialogBase() { }
|
||||
#endif
|
||||
// the modal dialogs have a return code - usually the id of the last
|
||||
// pressed button
|
||||
|
@@ -48,7 +48,7 @@
|
||||
#elif defined(__WINDOWS__)
|
||||
# include <windows.h> // needed to get HMODULE
|
||||
typedef HMODULE wxDllType;
|
||||
#elif defined(__APPLE__) && defined(__UNIX__)
|
||||
#elif defined(__DARWIN__)
|
||||
typedef void *wxDllType;
|
||||
#elif defined(__WXMAC__)
|
||||
typedef CFragConnectionID wxDllType;
|
||||
|
@@ -23,7 +23,7 @@ enum
|
||||
#elif defined(__WXQT__)
|
||||
#include "wx/qt/filedlg.h"
|
||||
#elif defined(__WXMAC__)
|
||||
#ifdef __WXMAC_X__
|
||||
#ifdef __DARWIN__
|
||||
#include "wx/generic/filedlgg.h"
|
||||
#else
|
||||
#include "wx/mac/filedlg.h"
|
||||
|
@@ -78,8 +78,8 @@ class WXDLLEXPORT wxFontBase : public wxGDIObject
|
||||
{
|
||||
public:
|
||||
// creator function
|
||||
#ifdef __WXMAC_X__
|
||||
virtual ~wxFontBase() {} // Added min for Mac X
|
||||
#ifdef __DARWIN__
|
||||
virtual ~wxFontBase() { }
|
||||
#endif
|
||||
|
||||
// from the font components
|
||||
|
@@ -58,8 +58,8 @@ class WXDLLEXPORT wxFrameBase : public wxWindow
|
||||
public:
|
||||
// construction
|
||||
wxFrameBase();
|
||||
#ifdef __WXMAC_X__
|
||||
virtual ~wxFrameBase() {} // Added min for Mac X
|
||||
#ifdef __DARWIN__
|
||||
virtual ~wxFrameBase() { }
|
||||
#endif
|
||||
|
||||
wxFrame *New(wxWindow *parent,
|
||||
|
@@ -31,7 +31,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr;
|
||||
class WXDLLEXPORT wxGaugeBase : public wxControl
|
||||
{
|
||||
public:
|
||||
#ifdef __WXMAC_X__
|
||||
#ifdef __DARWIN__
|
||||
virtual ~wxGaugeBase() { }
|
||||
#endif
|
||||
bool Create(wxWindow *parent,
|
||||
|
@@ -31,10 +31,8 @@
|
||||
#ifdef __WXMSW__
|
||||
#define wxMulDivInt32( a , b , c ) ::MulDiv( a , b , c )
|
||||
#elif defined( __WXMAC__ )
|
||||
#ifdef __WXMAC_X__
|
||||
#include <CoreServices/CoreServices.h>
|
||||
#else
|
||||
#include "Math64.h"
|
||||
#ifndef __DARWIN__
|
||||
#include "Math64.h"
|
||||
#endif
|
||||
#define wxMulDivInt32( a , b , c ) S32Set( S64Div( S64Multiply( S64Set(a) , S64Set(b) ) , S64Set(c) ) )
|
||||
#else
|
||||
|
@@ -485,8 +485,8 @@ class WXDLLEXPORT wxList : public wxObjectList
|
||||
{
|
||||
public:
|
||||
wxList(int key_type = wxKEY_NONE) : wxObjectList((wxKeyType)key_type) { }
|
||||
#ifdef __WXMAC_X__
|
||||
~wxList() {} // Added min for Mac X
|
||||
#ifdef __DARWIN__
|
||||
~wxList() { }
|
||||
#endif
|
||||
|
||||
wxList& operator=(const wxList& list)
|
||||
|
@@ -45,8 +45,8 @@ class WXDLLEXPORT wxListBoxBase : public wxControlWithItems
|
||||
public:
|
||||
// all generic methods are in wxControlWithItems, except for the following
|
||||
// ones which are not yet implemented by wxChoice/wxCombobox
|
||||
#ifdef __WXMAC_X__
|
||||
virtual ~wxListBoxBase() {} // Added min for Mac X
|
||||
#ifdef __DARWIN__
|
||||
virtual ~wxListBoxBase() { }
|
||||
#endif
|
||||
|
||||
void Insert(const wxString& item, int pos)
|
||||
|
@@ -101,8 +101,8 @@ class WXDLLEXPORT wxBitmapHandler: public wxBitmapHandlerBase
|
||||
DECLARE_DYNAMIC_CLASS(wxBitmapHandler)
|
||||
public:
|
||||
wxBitmapHandler() { m_name = ""; m_extension = ""; m_type = 0; };
|
||||
#ifdef __WXMAC_X__
|
||||
virtual ~wxBitmapHandler() {} // Added min for Mac X
|
||||
#ifdef __DARWIN__
|
||||
virtual ~wxBitmapHandler() { }
|
||||
#endif
|
||||
|
||||
virtual bool Create(wxBitmap *bitmap, void *data, long flags, int width, int height, int depth = 1);
|
||||
|
@@ -17,13 +17,11 @@
|
||||
#pragma interface "checklst.h"
|
||||
#endif
|
||||
|
||||
#include "wx/listbox.h"
|
||||
|
||||
#if !defined(__MWERKS__) && !defined(__UNIX__)
|
||||
typedef unsigned int size_t;
|
||||
#endif
|
||||
|
||||
class wxCheckListBox : public wxListBox
|
||||
class wxCheckListBox : public wxCheckListBoxBase
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxCheckListBox)
|
||||
public:
|
||||
|
@@ -24,8 +24,8 @@ class wxDataObject : public wxDataObjectBase
|
||||
{
|
||||
public:
|
||||
wxDataObject();
|
||||
#ifdef __WXMAC_X__
|
||||
~wxDataObject() {} // Added min for Mac X
|
||||
#ifdef __DARWIN__
|
||||
~wxDataObject() { }
|
||||
#endif
|
||||
|
||||
virtual bool IsSupportedFormat( const wxDataFormat& format, Direction dir = Get ) const;
|
||||
|
@@ -24,7 +24,7 @@ class wxMimeTypesManagerImpl
|
||||
{
|
||||
public :
|
||||
wxMimeTypesManagerImpl() { }
|
||||
#ifdef __WXMAC_X__
|
||||
#ifdef __DARWIN__
|
||||
~wxMimeTypesManagerImpl() { }
|
||||
#endif
|
||||
|
||||
|
@@ -18,9 +18,7 @@
|
||||
// ----------------------------------------------------------------------------
|
||||
// headers
|
||||
// ----------------------------------------------------------------------------
|
||||
#include "wx/dynarray.h"
|
||||
#include "wx/event.h"
|
||||
#include "wx/control.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// types
|
||||
|
@@ -20,6 +20,10 @@
|
||||
|
||||
class wxDataObject : public wxDataObjectBase
|
||||
{
|
||||
public:
|
||||
#ifdef __DARWIN__
|
||||
~wxDataObject() { }
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif //_WX_MOTIF_DATAOBJ_H_
|
||||
|
@@ -86,7 +86,7 @@ public:
|
||||
};
|
||||
#endif
|
||||
|
||||
#if defined(__UNIX__) && !defined(__APPLE__)
|
||||
#if defined(__UNIX__) && !defined(__WXMAC__)
|
||||
#include <sys/socket.h>
|
||||
#ifndef __VMS__
|
||||
# include <sys/un.h>
|
||||
|
@@ -12,12 +12,6 @@
|
||||
#ifndef _WX_SPINBUTT_H_BASE_
|
||||
#define _WX_SPINBUTT_H_BASE_
|
||||
|
||||
#ifdef __GNUG__
|
||||
#if !defined(__WXMOTIF__) && !defined(__WXMAC__) // because there is no matching .cpp
|
||||
#pragma interface "spinbutt.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// headers
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -30,7 +30,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBitmapNameStr;
|
||||
class WXDLLEXPORT wxStaticBitmapBase : public wxControl
|
||||
{
|
||||
public:
|
||||
#ifdef __WXMAC_X__
|
||||
#ifdef __DARWIN__
|
||||
~wxStaticBitmapBase() { }
|
||||
#endif
|
||||
|
||||
|
@@ -49,8 +49,8 @@ public:
|
||||
void SetOwner(wxEvtHandler *owner, int id = -1)
|
||||
{ m_owner = owner; m_idTimer = id; }
|
||||
|
||||
#ifdef __WXMAC_X__
|
||||
virtual ~wxTimerBase() {} // Added min for Mac X
|
||||
#ifdef __DARWIN__
|
||||
virtual ~wxTimerBase() { }
|
||||
#endif
|
||||
|
||||
// working with the timer
|
||||
|
Reference in New Issue
Block a user