Changed __GTK__, __WINDOWS__ and __MOTIF__ to __WXGTK__, __WXMSW__ and __WXMOTIF__

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder
1998-07-10 14:15:17 +00:00
parent 7007fcfced
commit 2049ba38ad
154 changed files with 481 additions and 463 deletions

View File

@@ -4,11 +4,11 @@ GUIs:
-----
__X__ any X, but not GTK
__MOTIF__ Motif
__WXMOTIF__ Motif
__XT__ Xt; mutually exclusive with WX_MOTIF (?)
__GTK__ GTK
__WXGTK__ GTK
__XVIEW__ Obsolete!
__WINDOWS__ Any Windows
__WXMSW__ Any Windows
__MAC__ MacOS
__UNIX__ any Unix
__WIN95__ GUI for Windows 95 and above; NT 4.0 and above.
@@ -16,6 +16,10 @@ __WIN32__ WIN32 API
__NT__ Windows NT
__CURSES__ CURSES
In fact, they should better all start with __WX instead of __ only.
The only GUIs implemented for 2.0 are __WXGTK__, __WXMSW__ and __WXMOTIF__
yet. Any new ones, please start the define with __WX.
OSes/machines:
__HPUX__

View File

@@ -12,22 +12,22 @@
#ifndef __APPH_BASE__
#define __APPH_BASE__
#ifndef __GTK__
#ifndef __WXGTK__
class WXDLLEXPORT wxApp;
typedef wxApp* (*wxAppInitializerFunction) (void);
#endif
#include "wx/object.h"
#ifdef __GTK__
#ifdef __WXGTK__
typedef wxObject* (*wxAppInitializerFunction) (void); // returning wxApp* won't work with gcc
#endif
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/app.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/app.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/app.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __BITMAPH_BASE__
#define __BITMAPH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/bitmap.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/bitmap.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/bitmap.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __BMPBUTTONH_BASE__
#define __BMPBUTTONH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/bmpbuttn.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/bmpbuttn.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/bmpbuttn.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __BRUSHH_BASE__
#define __BRUSHH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/brush.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/brush.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/brush.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __BUTTONH_BASE__
#define __BUTTONH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/button.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/button.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/button.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __CHECKBOXH_BASE__
#define __CHECKBOXH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/checkbox.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/checkbox.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/checkbox.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __CHOICEH_BASE__
#define __CHOICEH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/choice.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/choice.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/choice.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __CLIPBRDH_BASE__
#define __CLIPBRDH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/clipbrd.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/clipbrd.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/clipbrd.h"
#endif

View File

@@ -82,7 +82,7 @@ class WXDLLEXPORT wxPrintData: public wxObject
DECLARE_DYNAMIC_CLASS(wxPrintData)
public:
#ifdef __WINDOWS__
#ifdef __WXMSW__
void *printData;
#endif
int printFromPage;
@@ -137,7 +137,7 @@ class WXDLLEXPORT wxPrintData: public wxObject
void operator=(const wxPrintData& data);
#ifdef __WINDOWS__
#ifdef __WXMSW__
// Convert to/from the PRINTDLG structure
void ConvertToNative(void);
void ConvertFromNative(void);

View File

@@ -1,11 +1,11 @@
#ifndef __COLORDLGH_BASE__
#define __COLORDLGH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/colordlg.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/generic/colrdlgg.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/generic/colrdlgg.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __COMBOBOXH_BASE__
#define __COMBOBOXH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/combobox.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/combobox.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/combobox.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __CONTROLH_BASE__
#define __CONTROLH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/control.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/control.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/control.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __CURSORH_BASE__
#define __CURSORH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/cursor.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/cursor.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/cursor.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __DCH_BASE__
#define __DCH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/dc.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/dc.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/dc.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __DCCLIENTH_BASE__
#define __DCCLIENTH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/dcclient.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/dcclient.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/dcclient.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __DCMEMORYH_BASE__
#define __DCMEMORYH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/dcmemory.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/dcmemory.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/dcmemory.h"
#endif

View File

@@ -1,7 +1,7 @@
#ifndef __DCPRINTH_BASE__
#define __DCPRINTH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/dcprint.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __DCSCREENH_BASE__
#define __DCSCREENH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/dcscreen.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/dcscreen.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/dcscreen.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __DDEH_BASE__
#define __DDEH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/dde.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/dde.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/dde.h"
#endif

View File

@@ -16,7 +16,7 @@
#pragma interface "defs.h"
#endif
#ifdef __GTK__
#ifdef __WXGTK__
#include "glib.h"
#include "gdk/gdk.h"
@@ -43,14 +43,14 @@
//////////////////////////////////////////////////////////////////////////////////
// Currently Only MS-Windows/NT, XView and Motif are supported
//
#if defined(__HPUX__) && !defined(__MOTIF__)
# define __MOTIF__
#if defined(__HPUX__) && !defined(__WXMOTIF__)
# define __WXMOTIF__
#endif
#if defined(__MOTIF__)
#if defined(__WXMOTIF__)
# define __X__
#elif defined(__WINDOWS__) || defined(__WINDOWS_386__) || defined(__NT__) || defined(__MSDOS__)
# ifndef __WINDOWS__
# define __WINDOWS__
#elif defined(__WXMSW__) || defined(__WINDOWS_386__) || defined(__NT__) || defined(__MSDOS__)
# ifndef __WXMSW__
# define __WXMSW__
# endif
#endif
@@ -68,13 +68,13 @@
#endif
// Make sure the environment is set correctly
#if defined(__WINDOWS__) && defined(__X__)
#if defined(__WXMSW__) && defined(__X__)
# error "Target can't be both X and Windows"
#elif !defined(__MOTIF__) && !defined(__WINDOWS__) && !defined(__GTK__) && !defined(__MAC__) && !defined(__X__)
#error "No Target! Use -D[__MOTIF__|__GTK__|__WINDOWS__|__MAC__]"
#elif !defined(__WXMOTIF__) && !defined(__WXMSW__) && !defined(__WXGTK__) && !defined(__MAC__) && !defined(__X__)
#error "No Target! Use -D[__WXMOTIF__|__WXGTK__|__WXMSW__|__MAC__]"
#endif
#if defined(__MOTIF__) || defined(__GTK__)
#if defined(__WXMOTIF__) || defined(__WXGTK__)
// Bool is now obsolete, use bool instead
// typedef int Bool;
@@ -85,7 +85,7 @@
# define Bool_DEFINED
#endif
#elif defined(__WINDOWS__)
#elif defined(__WXMSW__)
#ifndef TRUE
# define TRUE 1
@@ -119,7 +119,7 @@ typedef int wxWindowID;
* Making or using wxWindows as a Windows DLL
*/
#ifdef __WINDOWS__
#ifdef __WXMSW__
#ifdef __BORLANDC__
@@ -230,8 +230,8 @@ enum ErrCode
#endif
#ifndef __UNIX__ // Windows
#ifndef __WINDOWS__
#define __WINDOWS__
#ifndef __WXMSW__
#define __WXMSW__
#endif
#if defined(_MSC_VER)
@@ -248,7 +248,7 @@ enum ErrCode
#if defined(__UNIX__)
#define FILE_PATH_SEPARATOR ('/')
#elif defined(__WINDOWS__)
#elif defined(__WXMSW__)
#define FILE_PATH_SEPARATOR ('\\')
#else
#error "don't know path separator for this platform"
@@ -833,7 +833,7 @@ enum {
#define wxID_YES 5103
#define wxID_NO 5104
#ifdef __WINDOWS__
#ifdef __WXMSW__
// Stand-ins for Windows types, to avoid
// #including all of windows.h

View File

@@ -1,11 +1,11 @@
#ifndef __DIALOGH_BASE__
#define __DIALOGH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/dialog.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/dialog.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/dialog.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __DIRDLGH_BASE__
#define __DIRDLGH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/dirdlg.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/dirdlg.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/dirdlg.h"
#endif

View File

@@ -1,12 +1,12 @@
#ifndef __DNDH_BASE__
#define __DNDH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/ole/dropsrc.h"
#include "wx/msw/ole/droptgt.h"
#include "wx/msw/ole/dataobj.h"
#elif defined(__MOTIF__)
#elif defined(__GTK__)
#elif defined(__WXMOTIF__)
#elif defined(__WXGTK__)
#include "wx/gtk/dnd.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __FILEDLGH_BASE__
#define __FILEDLGH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/filedlg.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/filedlg.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/filedlg.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __FONTH_BASE__
#define __FONTH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/font.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/font.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/font.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __FONTDLGH_BASE__
#define __FONTDLGH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/fontdlg.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/generic/fontdlgg.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/generic/fontdlgg.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __FRAMEH_BASE__
#define __FRAMEH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/frame.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/frame.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/frame.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __GAUGEH_BASE__
#define __GAUGEH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/gauge.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/gauge.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/gauge.h"
#endif

View File

@@ -21,11 +21,11 @@
#include "wx/hash.h"
#include "wx/setup.h"
#ifdef __WINDOWS__
#ifdef __WXMSW__
#include "wx/msw/colour.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/colour.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/colour.h"
#endif
@@ -98,7 +98,7 @@ class WXDLLEXPORT wxRealPoint
class WXDLLEXPORT wxPoint
{
public:
#if defined(__WINDOWS__) && !defined(__WIN32__)
#if defined(__WXMSW__) && !defined(__WIN32__)
int x;
int y;
#else
@@ -330,7 +330,7 @@ extern void WXDLLEXPORT wxSetCursor(const wxCursor& cursor);
// Useful macro for create icons portably
#ifdef __WINDOWS__
#ifdef __WXMSW__
# define wxICON(X) wxIcon(X##_icon);
#elif defined(__X__)
# define wxICON(X) wxIcon(X##_bits, X##_width, X##_height);

View File

@@ -1,11 +1,11 @@
#ifndef __GDIOBJH_BASE__
#define __GDIOBJH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/gdiobj.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/gdiobj.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/gdiobj.h"
#endif

View File

@@ -116,7 +116,7 @@ class WXDLLEXPORT wxGenericColourDialog: public wxDialog
DECLARE_EVENT_TABLE()
};
#ifdef __GTK__
#ifdef __WXGTK__
typedef wxGenericColourDialog wxColourDialog;
#endif

View File

@@ -25,7 +25,7 @@
#include "wx/helpbase.h"
#ifdef __WINDOWS__
#ifdef __WXMSW__
#include "wx/dde.h"
#else
// Or whatever it'll be called
@@ -38,7 +38,7 @@ class WXDLLEXPORT wxXLPHelpController;
// wxHelp process and the application
class WXDLLEXPORT wxXLPHelpConnection: public
#ifdef __WINDOWS__
#ifdef __WXMSW__
wxDDEConnection
#else
wxTCPConnection
@@ -62,7 +62,7 @@ class WXDLLEXPORT wxXLPHelpConnection: public
// controlling the wxHelp process
class WXDLLEXPORT wxXLPHelpClient: public
#ifdef __WINDOWS__
#ifdef __WXMSW__
wxDDEClient
#else
wxTCPClient

View File

@@ -40,7 +40,7 @@ public:
DECLARE_EVENT_TABLE()
};
#ifndef __WINDOWS__
#ifndef __WXMSW__
#define wxMessageDialog wxGenericMessageDialog
int wxMessageBox(const wxString& message, const wxString& caption = wxMessageBoxCaptionStr,

View File

@@ -1,18 +1,18 @@
#ifndef __HELPH_BASE__
#define __HELPH_BASE__
#ifdef __WINDOWS__
#ifdef __WXMSW__
#include "wx/msw/helpwin.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/generic/helphtml.h"
#else
#include "wx/generic/helpxlp.h"
#endif
#ifdef __WINDOWS__
#ifdef __WXMSW__
#define wxHelpController wxWinHelpController
#define classwxHelpController classwxWinHelpController
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#define wxHelpController wxHTMLHelpController
#define classwxHelpController classwxHTMLHelpController
#else

View File

@@ -1,11 +1,11 @@
#ifndef __ICONH_BASE__
#define __ICONH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/icon.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/icon.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/icon.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __IMAGLISTH_BASE__
#define __IMAGLISTH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/imaglist.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/generic/imaglist.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/generic/imaglist.h"
#endif

View File

@@ -1,10 +1,10 @@
#ifndef __JOYSTICKH_BASE__
#define __JOYSTICKH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/joystick.h"
#elif defined(__MOTIF__)
#elif defined(__GTK__)
#elif defined(__WXMOTIF__)
#elif defined(__WXGTK__)
#include "wx/gtk/joystick.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __LISTBOXH_BASE__
#define __LISTBOXH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/listbox.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/listbox.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/listbox.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __LISTCTRLH_BASE__
#define __LISTCTRLH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/listctrl.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/generic/listctrl.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/generic/listctrl.h"
#endif

View File

@@ -42,7 +42,7 @@ enum
#define wxTraceResAlloc 0x0004 // trace GDI resource allocation
#define wxTraceRefCount 0x0008 // trace various ref counting operations
#ifdef __WINDOWS__
#ifdef __WXMSW__
#define wxTraceOleCalls 0x0100 // OLE interface calls
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __MDIH_BASE__
#define __MDIH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/mdi.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/mdi.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/mdi.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __MENUH_BASE__
#define __MENUH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/menu.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/menu.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/menu.h"
#endif

View File

@@ -1,7 +1,7 @@
#ifndef __METAFILEH_BASE__
#define __METAFILEH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/metafile.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __MINIFRAMH_BASE__
#define __MINIFRAMH_BASE_
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/minifram.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/minifram.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/minifram.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __MSGDLGH_BASE__
#define __MSGDLGH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/msgdlg.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/generic/msgdlgg.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/generic/msgdlgg.h"
#endif

View File

@@ -79,7 +79,7 @@ public:
wxPalette m_bitmapPalette;
int m_quality;
#ifdef __WINDOWS__
#ifdef __WXMSW__
WXHBITMAP m_hBitmap;
wxDC * m_selectedInto; // So bitmap knows whether it's been selected into
// a device context (for error checking)

View File

@@ -1,11 +1,11 @@
#ifndef __NOTEBOOKH_BASE__
#define __NOTEBOOKH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/notebook.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#error "wxNotebook not implemented under Motif"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/notebook.h"
#endif

View File

@@ -20,7 +20,7 @@
#ifndef __ODBCH__
#define __ODBCH__
#ifdef __WINDOWS__
#ifdef __WXMSW__
#include <windows.h>
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __PALETTEH_BASE__
#define __PALETTEH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/palette.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/palette.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/palette.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __PENH_BASE__
#define __PENH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/pen.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/pen.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/pen.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __PNGHANDH_BASE__
#define __PNGHANDH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/pnghand.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/pnghand.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/pnghand.h"
#endif

View File

@@ -64,7 +64,7 @@ class WXDLLEXPORT wxPostScriptDC: public wxDC
// RR: I define these in wxDC, after all they all do the same everywhere
#ifdef __WINDOWS__
#ifdef __WXMSW__
// Splines
// 3-point spline
void DrawSpline(long x1, long y1, long x2, long y2, long x3, long y3);

View File

@@ -1,7 +1,7 @@
#ifndef __PRINTH_BASE__
#define __PRINTH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/printwin.h"
#ifndef wxPrinter

View File

@@ -1,11 +1,11 @@
#ifndef __PRINTDLGH_BASE__
#define __PRINTDLGH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/printdlg.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/generic/prntdlgg.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/generic/prntdlgg.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __RADIOBOXH_BASE__
#define __RADIOBOXH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/radiobox.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/radiobox.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/radiobox.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __RADIOBUTH_BASE__
#define __RADIOBUTH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/radiobut.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/radiobut.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/radiobut.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __REGIONH_BASE__
#define __REGIONH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/region.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/region.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/region.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __SCROLBARH_BASE__
#define __SCROLBARH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/scrolbar.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/scrolbar.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/scrolbar.h"
#endif

View File

@@ -104,11 +104,11 @@
#define wxSYS_SHOW_SOUNDS 36
#define wxSYS_SWAP_BUTTONS 37
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/settings.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/settings.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/settings.h"
#endif

View File

@@ -2,11 +2,25 @@
#ifndef __SETUPH_BASE__
#define __SETUPH_BASE__
#if defined(__WINDOWS__)
// compatibility code, to be removed asap:
#if ! defined(__WXMSW__) && ! defined(__WXGTK__) && ! defined(__WXMOTIF__)
# if defined(__WINDOWS__)
# define __WXMSW__
# elif defined(__GTK__)
# define __WXGTK__
# elif defined(__MOTIF__)
# define __WXMOTIF__
# else
# error No __WXxxx__ define set! Please define __WXGTK__,__WXMSW__ or __WXMOTIF__.
# endif
#endif
#if defined(__WXMSW__)
#include "wx/msw/setup.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/setup.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/setup.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __SLIDERH_BASE__
#define __SLIDERH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/slider.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/slider.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/slider.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __SPINBUTTH_BASE__
#define __SPINBUTTH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/spinbutt.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/spinbutt.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/spinbutt.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __STATBMPH_BASE__
#define __STATBMPH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/statbmp.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/statbmp.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/statbmp.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __STATBOXH_BASE__
#define __STATBOXH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/statbox.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/statbox.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/statbox.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __STATTEXTH_BASE__
#define __STATTEXTH_BASE_
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/stattext.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/stattext.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/stattext.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __TABCTRLH_BASE__
#define __TABCTRLH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/tabctrl.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/tabctrl.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#endif
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __TBAR95H_BASE__
#define __TBAR95H_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/tbar95.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/tbar95.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/tbar95.h"
#endif

View File

@@ -188,7 +188,7 @@ class WXDLLEXPORT wxToolBarBase : public wxControl
void OnIdle(wxIdleEvent& event);
// Required to force normal cursor-setting behaviour in Windows
#ifdef __WINDOWS__
#ifdef __WXMSW__
virtual void MSWOnMouseMove(int x, int y, const WXUINT flags);
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __TBARMSWH_BASE__
#define __TBARMSWH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/tbarmsw.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/tbarmsw.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/tbarmsw.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __TEXTCTRLH_BASE__
#define __TEXTCTRLH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/textctrl.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/textctrl.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/textctrl.h"
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __TIMERH_BASE__
#define __TIMERH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/timer.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/timer.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/timer.h"
#endif

View File

@@ -1,15 +1,15 @@
#ifndef _TOOLBAR_H_BASE_
#define _TOOLBAR_H_BASE_
#if defined(__WINDOWS__) && defined(__WIN95__)
#if defined(__WXMSW__) && defined(__WIN95__)
# include "wx/tbar95.h"
# define wxToolBar wxToolBar95
# define classwxToolBar classwxToolBar95
#elif defined(__WINDOWS__)
#elif defined(__WXMSW__)
# include "wx/tbarmsw.h"
# define wxToolBar wxToolBarMSW
# define classwxToolBar classwxToolBarMSW
#elif defined(__GTK__)
#elif defined(__WXGTK__)
# include "wx/gtk/tbargtk.h"
# define classwxToolBar wxToolBarGTK
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __TREECTRLH_BASE__
#define __TREECTRLH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/treectrl.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/generic/treectrl.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/generic/treectrl.h"
#endif

View File

@@ -266,7 +266,7 @@ void WXDLLEXPORT wxGetMousePosition( int* x, int* y );
// MSW only: get user-defined resource from the .res file.
// Returns NULL or newly-allocated memory, so use delete[] to clean up.
#ifdef __WINDOWS__
#ifdef __WXMSW__
extern const char* WXDLLEXPORT wxUserResourceStr;
char* WXDLLEXPORT wxLoadUserResource(const wxString& resourceName, const wxString& resourceType = wxUserResourceStr);
#endif

View File

@@ -1,11 +1,11 @@
#ifndef __WINDOWH_BASE__
#define __WINDOWH_BASE__
#if defined(__WINDOWS__)
#if defined(__WXMSW__)
#include "wx/msw/window.h"
#elif defined(__MOTIF__)
#elif defined(__WXMOTIF__)
#include "wx/xt/window.h"
#elif defined(__GTK__)
#elif defined(__WXGTK__)
#include "wx/gtk/window.h"
#endif

View File

@@ -4232,7 +4232,7 @@ USE_GTK=1
USE_UNIX=1
TOOLKIT=GTK
TOOLKIT_DEF=__GTK__
TOOLKIT_DEF=__WXGTK__
USE_LINUX=
USE_SGI=
@@ -6111,7 +6111,7 @@ fi
cat >> confdefs.h <<\EOF
#define __GTK__ 1
#define __WXGTK__ 1
EOF
fi

View File

@@ -593,7 +593,7 @@ USE_GTK=1
USE_UNIX=1
TOOLKIT=GTK
TOOLKIT_DEF=__GTK__
TOOLKIT_DEF=__WXGTK__
USE_LINUX=
USE_SGI=
@@ -1180,7 +1180,7 @@ if test "$USE_GTK" = 1; then
GUI_TK_INCLUDE="$GTK_CFLAGS"
GUI_TK_LIBRARY="$GTK_LIBS"
], AC_MSG_ERROR(Are gtk-config and the GTK in path and up-to-date?))
AC_DEFINE(__GTK__)
AC_DEFINE(__WXGTK__)
fi
AC_SUBST(GUI_TK_INCLUDE)
AC_SUBST(GUI_TK_LIBRARY)

View File

@@ -91,7 +91,7 @@ bool MyApp::OnInit(void)
MyFrame *frame = new MyFrame(NULL, "Controls wxWindows App", 50, 50, 500, 420 );
// Give it an icon
#ifdef __WINDOWS__
#ifdef __WXMSW__
frame->SetIcon(wxIcon("mondrian"));
#endif
#ifdef __X__

View File

@@ -31,7 +31,7 @@
#include <wx/fontdlg.h>
#include <wx/choicdlg.h>
#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW
#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW
#include <wx/generic/colrdlgg.h>
#include <wx/generic/fontdlgg.h>
#endif
@@ -60,14 +60,14 @@ bool MyApp::OnInit(void)
file_menu->Append(DIALOGS_CHOOSE_COLOUR, "&Choose colour");
#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW
#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW
file_menu->Append(DIALOGS_CHOOSE_COLOUR_GENERIC, "Choose colour (&generic)");
#endif
file_menu->AppendSeparator();
file_menu->Append(DIALOGS_CHOOSE_FONT, "Choose &font");
#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW
#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW
file_menu->Append(DIALOGS_CHOOSE_FONT_GENERIC, "Choose f&ont (generic)");
#endif
@@ -143,7 +143,7 @@ void MyFrame::ChooseFont(wxCommandEvent& event)
dialog->Close();
}
#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW
#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW
void MyFrame::ChooseColourGeneric(wxCommandEvent& event)
{
wxColourData data;
@@ -286,7 +286,7 @@ BEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(DIALOGS_FILE_OPEN, MyFrame::FileOpen)
EVT_MENU(DIALOGS_FILE_SAVE, MyFrame::FileSave)
EVT_MENU(DIALOGS_DIR_CHOOSE, MyFrame::DirChoose)
#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW
#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW
EVT_MENU(DIALOGS_CHOOSE_COLOUR_GENERIC, MyFrame::ChooseColourGeneric)
EVT_MENU(DIALOGS_CHOOSE_FONT_GENERIC, MyFrame::ChooseFontGeneric)
#endif

View File

@@ -37,7 +37,7 @@ class MyFrame: public wxFrame
void FileSave(wxCommandEvent& event);
void DirChoose(wxCommandEvent& event);
#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW
#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW
void ChooseColourGeneric(wxCommandEvent& event);
void ChooseFontGeneric(wxCommandEvent& event);
#endif

View File

@@ -91,7 +91,7 @@ bool MyApp::OnInit(void)
frame = new MyFrame(m_docManager, NULL, "DocView Demo", wxPoint(0, 0), wxSize(500, 400), wxDEFAULT_FRAME_STYLE);
//// Give it an icon (this is ignored in MDI mode: uses resources)
#ifdef __WINDOWS__
#ifdef __WXMSW__
frame->SetIcon(wxIcon("doc_icn"));
#endif
#ifdef __X__
@@ -171,7 +171,7 @@ wxFrame *MyApp::CreateChildFrame(wxDocument *doc, wxView *view, bool isCanvas)
wxDocChildFrame *subframe = new wxDocChildFrame(doc, view, GetMainFrame(), "Child Frame",
wxPoint(10, 10), wxSize(300, 300), wxDEFAULT_FRAME_STYLE);
#ifdef __WINDOWS__
#ifdef __WXMSW__
subframe->SetIcon(wxString(isCanvas ? "chrt_icn" : "notepad_icn"));
#endif
#ifdef __X__

View File

@@ -105,7 +105,7 @@ void DrawingView::OnUpdate(wxView *sender, wxObject *hint)
canvas->Refresh();
/* Is the following necessary?
#ifdef __WINDOWS__
#ifdef __WXMSW__
if (canvas)
canvas->Refresh();
#else

View File

@@ -60,7 +60,7 @@ bool MyApp::OnInit(void)
frame->Connect( MINIMAL_ABOUT, -1, wxEVT_COMMAND_MENU_SELECTED, (wxObjectEventFunction)MyFrame::OnAbout );
// Give it an icon
#ifdef __WINDOWS__
#ifdef __WXMSW__
frame->SetIcon(wxIcon("mondrian"));
#endif
#ifdef __X__

View File

@@ -88,7 +88,7 @@ IMPLEMENT_APP(MyApp)
// `Main program' equivalent, creating windows and returning main app frame
bool MyApp::OnInit(void)
{
#ifdef __WINDOWS__
#ifdef __WXMSW__
cellBitmap1 = new wxBitmap("bitmap1");
cellBitmap2 = new wxBitmap("bitmap2");
#endif
@@ -97,7 +97,7 @@ bool MyApp::OnInit(void)
MyFrame *frame = new MyFrame(NULL, "wxGrid Sample", wxPoint(50, 50), wxSize(450, 300));
// Give it an icon
#ifdef __WINDOWS__
#ifdef __WXMSW__
frame->SetIcon(wxIcon("mondrian"));
#endif
#ifdef __X__

View File

@@ -87,7 +87,7 @@ bool MyApp::OnInit(void)
MyFrame *frame = new MyFrame(NULL, "Minimal wxWindows App", 50, 50, 450, 340);
// Give it an icon
#ifdef __WINDOWS__
#ifdef __WXMSW__
frame->SetIcon(wxIcon("mondrian"));
#endif
#ifdef __X__

View File

@@ -55,7 +55,7 @@ bool MyApp::OnInit(void)
wxDEFAULT_FRAME | wxHSCROLL | wxVSCROLL);
// Give it an icon (this is ignored in MDI mode: uses resources)
#ifdef __WINDOWS__
#ifdef __WXMSW__
frame->SetIcon(wxIcon("joyicon"));
#endif
#ifdef __X__

View File

@@ -52,7 +52,7 @@ bool MyApp::OnInit(void)
frame->CreateStatusBar(2);
// Load icon and bitmap
#ifdef __WINDOWS__
#ifdef __WXMSW__
frame->SetIcon(wxIcon("aiai_icn"));
#endif
#ifdef __X__
@@ -186,7 +186,7 @@ void MyFrame::LoadFile(wxCommandEvent& event)
char *s = wxFileSelector("Load text file", NULL, NULL, NULL, "*.txt");
if (s)
{
#ifdef __WINDOWS__
#ifdef __WXMSW__
frame->text_window->LoadFile(s);
#endif
}

View File

@@ -66,7 +66,7 @@ bool MyApp::OnInit(void)
frame->SetBackgroundColour(wxColour(255, 255, 255));
// Give it an icon
#ifdef __WINDOWS__
#ifdef __WXMSW__
frame->SetIcon(wxIcon("mondrian"));
#endif
#ifdef __X__

View File

@@ -21,7 +21,7 @@
#include "wx/mdi.h"
#endif
#ifdef __WINDOWS__
#ifdef __WXMSW__
#ifdef __WIN95__
#include <wx/tbar95.h>
#else
@@ -51,7 +51,7 @@ bool MyApp::OnInit(void)
wxDEFAULT_FRAME | wxHSCROLL | wxVSCROLL);
// Give it an icon (this is ignored in MDI mode: uses resources)
#ifdef __WINDOWS__
#ifdef __WXMSW__
frame->SetIcon(wxIcon("mdi_icn"));
#endif
#ifdef __X__
@@ -100,7 +100,7 @@ MyFrame::MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title, c
wxTE_MULTILINE|wxSUNKEN_BORDER);
textWindow->SetValue("A help window");
#ifdef __WINDOWS__
#ifdef __WXMSW__
toolBar = new TestRibbon(this, 0, 0, 100, 30, wxNO_BORDER, wxVERTICAL, 1);
SetToolBar(toolBar);
#endif
@@ -128,7 +128,7 @@ void MyFrame::OnNewWindow(wxCommandEvent& event)
winNumber ++;
// Give it an icon (this is ignored in MDI mode: uses resources)
#ifdef __WINDOWS__
#ifdef __WXMSW__
subframe->SetIcon(wxIcon("chrt_icn"));
#endif
#ifdef __X__
@@ -252,7 +252,7 @@ void MyFrame::OnSize(wxSizeEvent& event)
int tw = 0;
int th = 0;
#ifdef __WINDOWS__
#ifdef __WXMSW__
wxWindow* tbar = GetToolBar();
if (tbar)
{
@@ -302,7 +302,7 @@ bool MyChild::OnClose(void)
return TRUE;
}
#ifdef __WINDOWS__
#ifdef __WXMSW__
BEGIN_EVENT_TABLE(TestRibbon, wxToolBar)
EVT_PAINT(TestRibbon::OnPaint)
@@ -323,7 +323,7 @@ TestRibbon::TestRibbon(wxFrame *frame, int x, int y, int w, int h,
bitmaps[6] = new wxBitmap("icon7", wxBITMAP_TYPE_RESOURCE);
bitmaps[7] = new wxBitmap("icon8", wxBITMAP_TYPE_RESOURCE);
#ifdef __WINDOWS__
#ifdef __WXMSW__
int width = 24;
#else
int width = 16;

View File

@@ -9,7 +9,7 @@
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
#ifdef __WINDOWS__
#ifdef __WXMSW__
#ifdef __WIN95__
#define wxToolBar wxToolBar95
#else
@@ -34,7 +34,7 @@ class MyCanvas: public wxScrolledWindow
DECLARE_EVENT_TABLE()
};
#ifdef __WINDOWS__
#ifdef __WXMSW__
class TestRibbon: public wxToolBar
{
@@ -56,7 +56,7 @@ class MyFrame: public wxMDIParentFrame
public:
wxTextCtrl *textWindow;
#ifdef __WINDOWS__
#ifdef __WXMSW__
TestRibbon* toolBar;
#endif

View File

@@ -65,7 +65,7 @@ bool MyApp::OnInit(void)
MyFrame *frame = new MyFrame(NULL, "Minimal wxWindows App", 50, 50, 450, 340);
// Give it an icon
#ifdef __WINDOWS__
#ifdef __WXMSW__
frame->SetIcon(wxIcon("mondrian"));
#endif
#ifdef __X__

View File

@@ -1,8 +1,8 @@
//Microsoft Developer Studio generated resource script.
//
#ifndef __WINDOWS__
#define __WINDOWS__
#ifndef __WXMSW__
#define __WXMSW__
#endif
#ifndef __WIN32__

View File

@@ -52,7 +52,7 @@ $(TARGET).def
nativdlg.obj: nativdlg.$(SRCSUFF) nativdlg.h # dialog1.wxr
$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
brc32 -r /D__WINDOWS__ /i$(BCCDIR)\include /i$(WXDIR)\include $(TARGET)
brc32 -r /D__WXMSW__ /i$(BCCDIR)\include /i$(WXDIR)\include $(TARGET)
clean:
-erase *.obj

View File

@@ -50,7 +50,7 @@ $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
<<
$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc dialog1.rc
$(rc) -r /i$(WXDIR)\include /D__WINDOWS__ -fo$@ $(PROGRAM).rc
$(rc) -r /i$(WXDIR)\include /D__WXMSW__ -fo$@ $(PROGRAM).rc
clean:

View File

@@ -20,7 +20,7 @@
#pragma hdrstop
#endif
#ifdef __WINDOWS__
#ifdef __WXMSW__
#include <wx/pnghand.h>
#endif
@@ -37,7 +37,7 @@ MyApp::MyApp()
bool MyApp::OnInit(void)
{
#ifdef __WINDOWS__
#ifdef __WXMSW__
wxBitmap::AddHandler(new wxPNGFileHandler);
#endif

View File

@@ -81,7 +81,7 @@ bool MyApp::OnInit(void)
frame->CreateStatusBar(2);
// Load icon and bitmap
#ifdef __WINDOWS__
#ifdef __WXMSW__
frame->SetIcon(wxIcon("aiai_icn"));
#endif
#ifdef __X__
@@ -96,7 +96,7 @@ bool MyApp::OnInit(void)
file_menu->Append(WXPRINT_PAGE_SETUP, "Page Set&up...", "Page setup");
file_menu->Append(WXPRINT_PREVIEW, "Print Pre&view", "Preview");
#ifdef __WINDOWS__
#ifdef __WXMSW__
file_menu->AppendSeparator();
file_menu->Append(WXPRINT_PRINT_PS, "Print PostScript...", "Print (PostScript)");
file_menu->Append(WXPRINT_PRINT_SETUP_PS, "Print Setup PostScript...", "Setup printer properties (PostScript)");
@@ -166,7 +166,7 @@ void MyFrame::OnExit(wxCommandEvent& event)
void MyFrame::OnPrint(wxCommandEvent& event)
{
#ifdef __WINDOWS__
#ifdef __WXMSW__
wxGetApp().SetPrintMode(wxPRINT_WINDOWS);
#else
wxGetApp().SetPrintMode(wxPRINT_POSTSCRIPT);
@@ -188,7 +188,7 @@ void MyFrame::OnPrintPS(wxCommandEvent& event)
void MyFrame::OnPrintPreview(wxCommandEvent& event)
{
#ifdef __WINDOWS__
#ifdef __WXMSW__
wxGetApp().SetPrintMode(wxPRINT_WINDOWS);
#else
wxGetApp().SetPrintMode(wxPRINT_POSTSCRIPT);
@@ -228,7 +228,7 @@ void MyFrame::OnPrintPreviewPS(wxCommandEvent& event)
void MyFrame::OnPrintSetup(wxCommandEvent& event)
{
#ifdef __WINDOWS__
#ifdef __WXMSW__
wxGetApp().SetPrintMode(wxPRINT_WINDOWS);
#else
wxGetApp().SetPrintMode(wxPRINT_POSTSCRIPT);
@@ -236,7 +236,7 @@ void MyFrame::OnPrintSetup(wxCommandEvent& event)
wxPrintData data;
data.SetOrientation(orientation);
#ifdef __WINDOWS__
#ifdef __WXMSW__
wxPrintDialog printerDialog(this, & data);
#else
wxGenericPrintDialog printerDialog(this, & data);
@@ -249,7 +249,7 @@ void MyFrame::OnPrintSetup(wxCommandEvent& event)
void MyFrame::OnPageSetup(wxCommandEvent& event)
{
#ifdef __WINDOWS__
#ifdef __WXMSW__
wxGetApp().SetPrintMode(wxPRINT_WINDOWS);
#else
wxGetApp().SetPrintMode(wxPRINT_POSTSCRIPT);
@@ -257,7 +257,7 @@ void MyFrame::OnPageSetup(wxCommandEvent& event)
wxPageSetupData data;
data.SetOrientation(orientation);
#ifdef __WINDOWS__
#ifdef __WXMSW__
wxPageSetupDialog pageSetupDialog(this, & data);
#else
wxGenericPageSetupDialog pageSetupDialog(this, & data);

View File

@@ -42,7 +42,7 @@
// the TEXT resource, for some reason, so either run-time file loading
// or file inclusion should be used.
#if defined(__WINDOWS__) && !defined(__BORLANDC__) && !defined(__GNUWIN32__)
#if defined(__WXMSW__) && !defined(__BORLANDC__) && !defined(__GNUWIN32__)
// Under Windows, some compilers can't include
// a whole .wxr file. So we use a .rc user-defined resource
// instead. dialog1 will point to the whole .wxr 'file'.
@@ -69,7 +69,7 @@ MyApp::MyApp()
// main frame
bool MyApp::OnInit(void)
{
#if defined(__WINDOWS__) && !defined(__BORLANDC__)
#if defined(__WXMSW__) && !defined(__BORLANDC__)
// Load the .wxr 'file' from a .rc resource, under Windows.
dialog1 = wxLoadUserResource("dialog1");
menu1 = wxLoadUserResource("menu1");

View File

@@ -113,7 +113,7 @@ MyFrame::MyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos, cons
wxFrame(frame, -1, title, pos, size)
{
// set the icon
#ifdef __WINDOWS__
#ifdef __WXMSW__
SetIcon(wxIcon("mondrian"));
#endif
#ifdef __X__

View File

@@ -116,7 +116,7 @@ bool MyApp::OnInit(void)
MyFrame *frame = new MyFrame(NULL, "Minimal wxWindows App", 50, 50, 450, 340);
// Give it an icon
#ifdef __WINDOWS__
#ifdef __WXMSW__
frame->SetIcon(wxIcon("AIAI"));
#endif
#ifdef __X__

Some files were not shown because too many files have changed in this diff Show More