USE_xxx constants renamed to wxUSE_xxx. This is an incompatible change, you

must recompile everything after upgrading!


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1998-09-25 13:28:52 +00:00
parent d069d02e1e
commit 47d67540a0
166 changed files with 1374 additions and 1314 deletions

View File

@@ -23,9 +23,9 @@
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// it won't compile without it anyhow // it won't compile without it anyhow
#ifndef USE_CONFIG #ifndef wxUSE_CONFIG
#error "Please define USE_CONFIG or remove config.cpp from your makefile" #error "Please define wxUSE_CONFIG or remove config.cpp from your makefile"
#endif // USE_CONFIG #endif // wxUSE_CONFIG
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// constants // constants

View File

@@ -20,7 +20,7 @@
#include "wx/object.h" #include "wx/object.h"
#include "wx/string.h" #include "wx/string.h"
#if USE_TIMEDATE #if wxUSE_TIMEDATE
enum wxdate_format_type {wxMDY, wxDAY, wxMONTH, wxFULL, wxEUROPEAN}; enum wxdate_format_type {wxMDY, wxDAY, wxMONTH, wxFULL, wxEUROPEAN};

View File

@@ -21,7 +21,7 @@
#include "wx/cmndata.h" #include "wx/cmndata.h"
#include "wx/string.h" #include "wx/string.h"
#if USE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
#include "wx/print.h" #include "wx/print.h"
#endif #endif
@@ -189,7 +189,7 @@ class WXDLLEXPORT wxView: public wxEvtHandler
inline wxDocManager *GetDocumentManager(void) const { return m_viewDocument->GetDocumentManager(); } inline wxDocManager *GetDocumentManager(void) const { return m_viewDocument->GetDocumentManager(); }
#if USE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
virtual wxPrintout *OnCreatePrintout(void); virtual wxPrintout *OnCreatePrintout(void);
#endif #endif
@@ -415,7 +415,7 @@ DECLARE_EVENT_TABLE()
* Provide simple default printing facilities * Provide simple default printing facilities
*/ */
#if USE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
class WXDLLEXPORT wxDocPrintout: public wxPrintout class WXDLLEXPORT wxDocPrintout: public wxPrintout
{ {
DECLARE_DYNAMIC_CLASS(wxDocPrintout) DECLARE_DYNAMIC_CLASS(wxDocPrintout)

View File

@@ -26,9 +26,9 @@
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// it won't compile without it anyhow // it won't compile without it anyhow
#ifndef USE_CONFIG #ifndef wxUSE_CONFIG
#error "Please define USE_CONFIG or remove fileconf.cpp from your makefile" #error "Please define wxUSE_CONFIG or remove fileconf.cpp from your makefile"
#endif // USE_CONFIG #endif // wxUSE_CONFIG
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxFileConfig // wxFileConfig

View File

@@ -21,7 +21,7 @@
#include <stdio.h> #include <stdio.h>
#include "wx/wx.h" #include "wx/wx.h"
#if USE_HELP #if wxUSE_HELP
#include "wx/helpbase.h" #include "wx/helpbase.h"
@@ -122,6 +122,6 @@ class WXDLLEXPORT wxXLPHelpController: public wxHelpControllerBase
wxXLPHelpClient helpClient; wxXLPHelpClient helpClient;
}; };
#endif // USE_HELP #endif // wxUSE_HELP
#endif #endif
// __HELPXLPH__ // __HELPXLPH__

View File

@@ -25,7 +25,7 @@
// an exception to the general rule that a normal header doesn't include other // an exception to the general rule that a normal header doesn't include other
// headers - only because ownerdrw.h is not always included and I don't want // headers - only because ownerdrw.h is not always included and I don't want
// to write #ifdef's everywhere... // to write #ifdef's everywhere...
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
#include "wx/ownerdrw.h" #include "wx/ownerdrw.h"
#endif #endif
@@ -40,7 +40,7 @@
// wxMenuItem: an item in the menu, optionally implements owner-drawn behaviour // wxMenuItem: an item in the menu, optionally implements owner-drawn behaviour
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
class WXDLLEXPORT wxMenuItem: public wxObject class WXDLLEXPORT wxMenuItem: public wxObject
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
, public wxOwnerDrawn , public wxOwnerDrawn
#endif #endif
{ {
@@ -79,7 +79,7 @@ private:
bool m_bEnabled, // enabled or greyed? bool m_bEnabled, // enabled or greyed?
m_bChecked; // checked? (only if checkable) m_bChecked; // checked? (only if checkable)
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
// wxOwnerDrawn base class already has these variables - nothing to do // wxOwnerDrawn base class already has these variables - nothing to do
#else //!owner drawn #else //!owner drawn

View File

@@ -21,7 +21,7 @@
#include "wx/string.h" #include "wx/string.h"
#include "wx/control.h" #include "wx/control.h"
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>

View File

@@ -25,7 +25,7 @@
// an exception to the general rule that a normal header doesn't include other // an exception to the general rule that a normal header doesn't include other
// headers - only because ownerdrw.h is not always included and I don't want // headers - only because ownerdrw.h is not always included and I don't want
// to write #ifdef's everywhere... // to write #ifdef's everywhere...
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
#include "wx/ownerdrw.h" #include "wx/ownerdrw.h"
#endif #endif
@@ -40,7 +40,7 @@
// wxMenuItem: an item in the menu, optionally implements owner-drawn behaviour // wxMenuItem: an item in the menu, optionally implements owner-drawn behaviour
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
class WXDLLEXPORT wxMenuItem: public wxObject class WXDLLEXPORT wxMenuItem: public wxObject
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
, public wxOwnerDrawn , public wxOwnerDrawn
#endif #endif
{ {
@@ -79,7 +79,7 @@ private:
bool m_bEnabled, // enabled or greyed? bool m_bEnabled, // enabled or greyed?
m_bChecked; // checked? (only if checkable) m_bChecked; // checked? (only if checkable)
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
// wxOwnerDrawn base class already has these variables - nothing to do // wxOwnerDrawn base class already has these variables - nothing to do
#else //!owner drawn #else //!owner drawn

View File

@@ -21,7 +21,7 @@
#include "wx/string.h" #include "wx/string.h"
#include "wx/control.h" #include "wx/control.h"
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>

View File

@@ -18,7 +18,7 @@
#include "wx/wx.h" #include "wx/wx.h"
#if USE_HELP #if wxUSE_HELP
// Defines the API for help controllers // Defines the API for help controllers
class WXDLLEXPORT wxHelpControllerBase: public wxObject class WXDLLEXPORT wxHelpControllerBase: public wxObject
@@ -46,6 +46,6 @@ class WXDLLEXPORT wxHelpControllerBase: public wxObject
virtual void OnQuit(void) {}; virtual void OnQuit(void) {};
}; };
#endif // USE_HELP #endif // wxUSE_HELP
#endif #endif
// _WX_HELPBASEH__ // _WX_HELPBASEH__

View File

@@ -23,11 +23,11 @@
info, or to be a straight call to the new operator. info, or to be a straight call to the new operator.
*/ */
#if (WXDEBUG && USE_MEMORY_TRACING) || USE_DEBUG_CONTEXT #if (WXDEBUG && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
#include <stddef.h> #include <stddef.h>
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>
@@ -48,7 +48,7 @@ void wxDebugFree(void * buf, bool isVect = FALSE);
// Currently, these merely call malloc and free; only the wxObject // Currently, these merely call malloc and free; only the wxObject
// operators do something interesting. But this allows WXDEBUG_NEW to // operators do something interesting. But this allows WXDEBUG_NEW to
// work for all 'new's in a file. // work for all 'new's in a file.
#if USE_GLOBAL_MEMORY_OPERATORS #if wxUSE_GLOBAL_MEMORY_OPERATORS
#ifdef new #ifdef new
#undef new #undef new

View File

@@ -25,7 +25,7 @@
// an exception to the general rule that a normal header doesn't include other // an exception to the general rule that a normal header doesn't include other
// headers - only because ownerdrw.h is not always included and I don't want // headers - only because ownerdrw.h is not always included and I don't want
// to write #ifdef's everywhere... // to write #ifdef's everywhere...
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
#include "wx/ownerdrw.h" #include "wx/ownerdrw.h"
#endif #endif
@@ -40,7 +40,7 @@
// wxMenuItem: an item in the menu, optionally implements owner-drawn behaviour // wxMenuItem: an item in the menu, optionally implements owner-drawn behaviour
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
class WXDLLEXPORT wxMenuItem: public wxObject class WXDLLEXPORT wxMenuItem: public wxObject
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
, public wxOwnerDrawn , public wxOwnerDrawn
#endif #endif
{ {
@@ -99,7 +99,7 @@ private:
wxMenuBar* m_menuBar; wxMenuBar* m_menuBar;
wxMenu* m_topMenu; // Top-level menu e.g. popup-menu wxMenu* m_topMenu; // Top-level menu e.g. popup-menu
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
// wxOwnerDrawn base class already has these variables - nothing to do // wxOwnerDrawn base class already has these variables - nothing to do
#else //!owner drawn #else //!owner drawn

View File

@@ -17,9 +17,9 @@
* *
*/ */
#define USE_CONSTRAINTS 1 #define wxUSE_CONSTRAINTS 1
// Use constraints mechanism // Use constraints mechanism
#define USE_CONFIG 1 #define wxUSE_CONFIG 1
// Use wxConfig, with CreateConfig in wxApp // Use wxConfig, with CreateConfig in wxApp
#define _WX_GOODCOMPILER__ #define _WX_GOODCOMPILER__
// gcc can have problems, but Windows compilers // gcc can have problems, but Windows compilers
@@ -30,51 +30,51 @@
// Level 1: wxDC, OnSize (etc.) compatibility, but // Level 1: wxDC, OnSize (etc.) compatibility, but
// some new features such as event tables // some new features such as event tables
#define USE_POSTSCRIPT 1 #define wxUSE_POSTSCRIPT 1
// 0 for no PostScript device context // 0 for no PostScript device context
#define USE_AFM_FOR_POSTSCRIPT 0 #define wxUSE_AFM_FOR_POSTSCRIPT 0
// 1 to use font metric files in GetTextExtent // 1 to use font metric files in GetTextExtent
#define USE_METAFILE 1 #define wxUSE_METAFILE 1
// 0 for no Metafile and metafile device context // 0 for no Metafile and metafile device context
#define USE_IPC 1 #define wxUSE_IPC 1
// 0 for no interprocess comms // 0 for no interprocess comms
#define USE_HELP 1 #define wxUSE_HELP 1
// 0 for no help facility // 0 for no help facility
#define USE_RESOURCES 1 #define wxUSE_RESOURCES 1
// 0 for no wxGetResource/wxWriteResource // 0 for no wxGetResource/wxWriteResource
#define USE_CLIPBOARD 1 #define wxUSE_CLIPBOARD 1
// 0 for no clipboard functions // 0 for no clipboard functions
#define USE_SPLINES 1 #define wxUSE_SPLINES 1
// 0 for no splines // 0 for no splines
#define USE_XFIG_SPLINE_CODE 1 #define wxUSE_XFIG_SPLINE_CODE 1
// 1 for XFIG spline code, 0 for AIAI spline code. // 1 for XFIG spline code, 0 for AIAI spline code.
// AIAI spline code is slower, but freer of copyright issues. // AIAI spline code is slower, but freer of copyright issues.
// 0 for no splines // 0 for no splines
#define USE_TOOLBAR 1 #define wxUSE_TOOLBAR 1
// Use toolbars // Use toolbars
#define USE_DRAG_AND_DROP 1 #define wxUSE_DRAG_AND_DROP 1
// 0 for no drag and drop // 0 for no drag and drop
#define USE_WX_RESOURCES 1 #define wxUSE_WX_RESOURCES 1
// Use .wxr resource mechanism (requires PrologIO library) // Use .wxr resource mechanism (requires PrologIO library)
#define USE_DOC_VIEW_ARCHITECTURE 1 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
// Set to 0 to disable document/view architecture // Set to 0 to disable document/view architecture
#define USE_PRINTING_ARCHITECTURE 1 #define wxUSE_PRINTING_ARCHITECTURE 1
// Set to 0 to disable print/preview architecture code // Set to 0 to disable print/preview architecture code
#define USE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
// Set to 0 to disable PostScript print/preview architecture code // Set to 0 to disable PostScript print/preview architecture code
// under Windows (just use Windows printing). // under Windows (just use Windows printing).
#define USE_DYNAMIC_CLASSES 1 #define wxUSE_DYNAMIC_CLASSES 1
// If 1, enables provision of run-time type information. // If 1, enables provision of run-time type information.
// NOW MANDATORY: don't change. // NOW MANDATORY: don't change.
#define USE_MEMORY_TRACING 1 #define wxUSE_MEMORY_TRACING 1
// If 1, enables debugging versions of wxObject::new and // If 1, enables debugging versions of wxObject::new and
// wxObject::delete *IF* WXDEBUG is also defined. // wxObject::delete *IF* WXDEBUG is also defined.
// WARNING: this code may not work with all architectures, especially // WARNING: this code may not work with all architectures, especially
// if alignment is an issue. // if alignment is an issue.
#define USE_DEBUG_CONTEXT 1 #define wxUSE_DEBUG_CONTEXT 1
// If 1, enables wxDebugContext, for // If 1, enables wxDebugContext, for
// writing error messages to file, etc. // writing error messages to file, etc.
// If WXDEBUG is not defined, will still use // If WXDEBUG is not defined, will still use
@@ -83,7 +83,7 @@
// since you may well need to output // since you may well need to output
// an error log in a production // an error log in a production
// version (or non-debugging beta) // version (or non-debugging beta)
#define USE_GLOBAL_MEMORY_OPERATORS 0 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
// In debug mode, cause new and delete to be redefined globally. // In debug mode, cause new and delete to be redefined globally.
// If this causes problems (e.g. link errors), set this to 0. // If this causes problems (e.g. link errors), set this to 0.
@@ -91,18 +91,18 @@
// Set this to 0 if your compiler can't cope // Set this to 0 if your compiler can't cope
// with omission of prototype parameters. // with omission of prototype parameters.
#define USE_C_MAIN 0 #define wxUSE_C_MAIN 0
// Set to 1 to use main.c instead of main.cpp (UNIX only) // Set to 1 to use main.c instead of main.cpp (UNIX only)
#define USE_ODBC 0 #define wxUSE_ODBC 0
// Define 1 to use ODBC classes // Define 1 to use ODBC classes
#define USE_IOSTREAMH 1 #define wxUSE_IOSTREAMH 1
// VC++ 4.2 and above allows <iostream> and <iostream.h> // VC++ 4.2 and above allows <iostream> and <iostream.h>
// but you can't mix them. Set to 1 for <iostream.h>, // but you can't mix them. Set to 1 for <iostream.h>,
// 0 for <iostream> // 0 for <iostream>
#define USE_WXCONFIG 1 #define wxUSE_WXCONFIG 1
// if enabled, compiles built-in OS independent wxConfig // if enabled, compiles built-in OS independent wxConfig
// class and it's file (any platform) and registry (Win) // class and it's file (any platform) and registry (Win)
// based implementations // based implementations
@@ -111,7 +111,7 @@
* *
*/ */
#define USE_APPLE_IEEE 1 #define wxUSE_APPLE_IEEE 1
// if enabled, the float codec written by Apple // if enabled, the float codec written by Apple
// will be used to write, in a portable way, // will be used to write, in a portable way,
// float on the disk // float on the disk

View File

@@ -18,7 +18,7 @@
#include "wx/control.h" #include "wx/control.h"
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>

View File

@@ -67,11 +67,11 @@ class WXDLLEXPORT wxIcon;
class WXDLLEXPORT wxDC; class WXDLLEXPORT wxDC;
class WXDLLEXPORT wxValidator; class WXDLLEXPORT wxValidator;
#if USE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
class WXDLLEXPORT wxDropTarget; class WXDLLEXPORT wxDropTarget;
#endif #endif
#if USE_WX_RESOURCES #if wxUSE_WX_RESOURCES
class WXDLLEXPORT wxResourceTable; class WXDLLEXPORT wxResourceTable;
class WXDLLEXPORT wxItemResource; class WXDLLEXPORT wxItemResource;
#endif #endif
@@ -193,7 +193,7 @@ public:
// Enable or disable the window // Enable or disable the window
virtual void Enable(bool enable); virtual void Enable(bool enable);
#if USE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
// Associate a drop target with this window (if the window already had a drop // Associate a drop target with this window (if the window already had a drop
// target, it's deleted!) and return the current drop target (may be NULL). // target, it's deleted!) and return the current drop target (may be NULL).
void SetDropTarget(wxDropTarget *pDropTarget); void SetDropTarget(wxDropTarget *pDropTarget);
@@ -336,7 +336,7 @@ public:
virtual void OnDefaultAction(wxControl *initiatingItem); virtual void OnDefaultAction(wxControl *initiatingItem);
// Resource loading // Resource loading
#if USE_WX_RESOURCES #if wxUSE_WX_RESOURCES
virtual bool LoadFromResource(wxWindow *parent, const wxString& resourceName, const wxResourceTable *table = NULL); virtual bool LoadFromResource(wxWindow *parent, const wxString& resourceName, const wxResourceTable *table = NULL);
virtual wxControl *CreateItem(const wxItemResource *childResource, const wxResourceTable *table = NULL); virtual wxControl *CreateItem(const wxItemResource *childResource, const wxResourceTable *table = NULL);
#endif #endif
@@ -532,7 +532,7 @@ protected:
wxColour m_defaultForegroundColour; wxColour m_defaultForegroundColour;
wxAcceleratorTable m_acceleratorTable; wxAcceleratorTable m_acceleratorTable;
#if USE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
wxDropTarget *m_pDropTarget; // the current drop target or NULL wxDropTarget *m_pDropTarget; // the current drop target or NULL
#endif //USE_DRAG_AND_DROP #endif //USE_DRAG_AND_DROP

View File

@@ -130,7 +130,7 @@ public:
// Initialize with raw data // Initialize with raw data
wxBitmap(const char bits[], int width, int height, int depth = 1); wxBitmap(const char bits[], int width, int height, int depth = 1);
#if USE_XPM_IN_MSW #if wxUSE_XPM_IN_MSW
class wxItem; class wxItem;
// Initialize with XPM data // Initialize with XPM data
wxBitmap(const char **data, wxItem *anItem = NULL); wxBitmap(const char **data, wxItem *anItem = NULL);

View File

@@ -19,7 +19,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#include "wx/setup.h" #include "wx/setup.h"
#if USE_CLIPBOARD #if wxUSE_CLIPBOARD
#include "wx/list.h" #include "wx/list.h"
@@ -106,6 +106,6 @@ void WXDLLEXPORT wxInitClipboard(void);
/* The clipboard */ /* The clipboard */
WXDLLEXPORT_DATA(extern wxClipboard*) wxTheClipboard; WXDLLEXPORT_DATA(extern wxClipboard*) wxTheClipboard;
#endif // USE_CLIPBOARD #endif // wxUSE_CLIPBOARD
#endif #endif
// _WX_CLIPBRD_H_ // _WX_CLIPBRD_H_

View File

@@ -18,7 +18,7 @@
#include "wx/choice.h" #include "wx/choice.h"
#if USE_COMBOBOX #if wxUSE_COMBOBOX
WXDLLEXPORT_DATA(extern const char*) wxComboBoxNameStr; WXDLLEXPORT_DATA(extern const char*) wxComboBoxNameStr;
WXDLLEXPORT_DATA(extern const char*) wxEmptyString; WXDLLEXPORT_DATA(extern const char*) wxEmptyString;
@@ -78,6 +78,6 @@ class WXDLLEXPORT wxComboBox: public wxChoice
virtual bool MSWCommand(WXUINT param, WXWORD id); virtual bool MSWCommand(WXUINT param, WXWORD id);
}; };
#endif // USE_COMBOBOX #endif // wxUSE_COMBOBOX
#endif #endif
// _WX_COMBOBOX_H_ // _WX_COMBOBOX_H_

View File

@@ -133,7 +133,7 @@ public:
return Blit(destPt.x, destPt.y, sz.x, sz.y, source, srcPt.x, srcPt.y, rop, useMask); return Blit(destPt.x, destPt.y, sz.x, sz.y, source, srcPt.x, srcPt.y, rop, useMask);
} }
#if USE_SPLINES #if wxUSE_SPLINES
// Splines // Splines
// 3-point spline // 3-point spline
virtual void DrawSpline(long x1, long y1, long x2, long y2, long x3, long y3); virtual void DrawSpline(long x1, long y1, long x2, long y2, long x3, long y3);

View File

@@ -18,7 +18,7 @@
#include "wx/wx.h" #include "wx/wx.h"
#if USE_HELP #if wxUSE_HELP
#include "wx/helpbase.h" #include "wx/helpbase.h"
@@ -49,6 +49,6 @@ protected:
wxString m_helpFile; wxString m_helpFile;
}; };
#endif // USE_HELP #endif // wxUSE_HELP
#endif #endif
// _WX_HELPWIN_H_ // _WX_HELPWIN_H_

View File

@@ -20,7 +20,7 @@
WXDLLEXPORT_DATA(extern const char*) wxListBoxNameStr; WXDLLEXPORT_DATA(extern const char*) wxListBoxNameStr;
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
class WXDLLEXPORT wxOwnerDrawn; class WXDLLEXPORT wxOwnerDrawn;
// define the array of list box items // define the array of list box items
@@ -63,7 +63,7 @@ class WXDLLEXPORT wxListBox: public wxControl
bool MSWCommand(WXUINT param, WXWORD id); bool MSWCommand(WXUINT param, WXWORD id);
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
bool MSWOnMeasure(WXMEASUREITEMSTRUCT *item); bool MSWOnMeasure(WXMEASUREITEMSTRUCT *item);
bool MSWOnDraw(WXDRAWITEMSTRUCT *item); bool MSWOnDraw(WXDRAWITEMSTRUCT *item);
@@ -125,7 +125,7 @@ class WXDLLEXPORT wxListBox: public wxControl
int m_noItems; int m_noItems;
int m_selected; int m_selected;
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
// control items // control items
wxListBoxItemsArray m_aItems; wxListBoxItemsArray m_aItems;
#endif #endif

View File

@@ -25,7 +25,7 @@
// an exception to the general rule that a normal header doesn't include other // an exception to the general rule that a normal header doesn't include other
// headers - only because ownerdrw.h is not always included and I don't want // headers - only because ownerdrw.h is not always included and I don't want
// to write #ifdef's everywhere... // to write #ifdef's everywhere...
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
#include "wx/ownerdrw.h" #include "wx/ownerdrw.h"
#endif #endif
@@ -40,7 +40,7 @@
// wxMenuItem: an item in the menu, optionally implements owner-drawn behaviour // wxMenuItem: an item in the menu, optionally implements owner-drawn behaviour
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
class WXDLLEXPORT wxMenuItem: public wxObject class WXDLLEXPORT wxMenuItem: public wxObject
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
, public wxOwnerDrawn , public wxOwnerDrawn
#endif #endif
{ {
@@ -79,7 +79,7 @@ private:
bool m_bEnabled, // enabled or greyed? bool m_bEnabled, // enabled or greyed?
m_bChecked; // checked? (only if checkable) m_bChecked; // checked? (only if checkable)
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
// wxOwnerDrawn base class already has these variables - nothing to do // wxOwnerDrawn base class already has these variables - nothing to do
#else //!owner drawn #else //!owner drawn

View File

@@ -19,7 +19,7 @@
#include "wx/setup.h" #include "wx/setup.h"
#if USE_METAFILE #if wxUSE_METAFILE
#include "wx/dc.h" #include "wx/dc.h"
/* /*
@@ -99,6 +99,6 @@ bool WXDLLEXPORT wxMakeMetaFilePlaceable(const wxString& filename, float scale =
// Optional origin and extent // Optional origin and extent
bool WXDLLEXPORT wxMakeMetaFilePlaceable(const wxString& filename, int x1, int y1, int x2, int y2, float scale = 1.0, bool useOriginAndExtent = TRUE); bool WXDLLEXPORT wxMakeMetaFilePlaceable(const wxString& filename, int x1, int y1, int x2, int y2, float scale = 1.0, bool useOriginAndExtent = TRUE);
#endif // USE_METAFILE #endif // wxUSE_METAFILE
#endif #endif
// _WX_METAFIILE_H_ // _WX_METAFIILE_H_

View File

@@ -17,7 +17,7 @@
#endif #endif
#if !USE_DRAG_AND_DROP #if !USE_DRAG_AND_DROP
#error "You should #define USE_DRAG_AND_DROP to 1 to compile this file!" #error "You should #define wxUSE_DRAG_AND_DROP to 1 to compile this file!"
#endif //WX_DRAG_DROP #endif //WX_DRAG_DROP
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -20,7 +20,7 @@
#endif #endif
#if !USE_DRAG_AND_DROP #if !USE_DRAG_AND_DROP
#error "You should #define USE_DRAG_AND_DROP to 1 to compile this file!" #error "You should #define wxUSE_DRAG_AND_DROP to 1 to compile this file!"
#endif //WX_DRAG_DROP #endif //WX_DRAG_DROP
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -67,13 +67,13 @@ typedef signed short int SHORT ;
#define DLGPROC FARPROC #define DLGPROC FARPROC
#endif #endif
#if USE_PENWIN #if wxUSE_PENWIN
void WXDLLEXPORT wxRegisterPenWin(void); void WXDLLEXPORT wxRegisterPenWin(void);
void WXDLLEXPORT wxCleanUpPenWin(void); void WXDLLEXPORT wxCleanUpPenWin(void);
void WXDLLEXPORT wxEnablePenAppHooks (bool hook); void WXDLLEXPORT wxEnablePenAppHooks (bool hook);
#endif #endif
#if USE_ITSY_BITSY #if wxUSE_ITSY_BITSY
#define IBS_HORZCAPTION 0x4000L #define IBS_HORZCAPTION 0x4000L
#define IBS_VERTCAPTION 0x8000L #define IBS_VERTCAPTION 0x8000L

View File

@@ -19,7 +19,7 @@
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// mutable hack (see also registry.cpp) // mutable hack (see also registry.cpp)
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#if USE_MUTABLE #if wxUSE_MUTABLE
#define MUTABLE mutable #define MUTABLE mutable
#else #else
#define MUTABLE #define MUTABLE

View File

@@ -17,7 +17,7 @@
* *
*/ */
#define USE_CONFIG 1 #define wxUSE_CONFIG 1
// Use wxConfig, with CreateConfig in wxApp // Use wxConfig, with CreateConfig in wxApp
#define _WX_GOODCOMPILER__ #define _WX_GOODCOMPILER__
// gcc can have problems, but Windows compilers // gcc can have problems, but Windows compilers
@@ -28,75 +28,75 @@
// Level 1: wxDC, OnSize (etc.) compatibility, but // Level 1: wxDC, OnSize (etc.) compatibility, but
// some new features such as event tables // some new features such as event tables
#define USE_AUTOTRANS 1 #define wxUSE_AUTOTRANS 1
// Define wxTString // Define wxTString
#define USE_POSTSCRIPT 1 #define wxUSE_POSTSCRIPT 1
// 0 for no PostScript device context // 0 for no PostScript device context
#define USE_AFM_FOR_POSTSCRIPT 0 #define wxUSE_AFM_FOR_POSTSCRIPT 0
// 1 to use font metric files in GetTextExtent // 1 to use font metric files in GetTextExtent
#define USE_METAFILE 1 #define wxUSE_METAFILE 1
// 0 for no Metafile and metafile device context // 0 for no Metafile and metafile device context
#define USE_FORM 0 #define wxUSE_FORM 0
// 0 for no wxForm // 0 for no wxForm
#define USE_IPC 1 #define wxUSE_IPC 1
// 0 for no interprocess comms // 0 for no interprocess comms
// Note: wxHELP uses IPC under X so these are interdependent! // Note: wxHELP uses IPC under X so these are interdependent!
#define USE_HELP 1 #define wxUSE_HELP 1
// 0 for no help facility // 0 for no help facility
#define USE_RESOURCES 1 #define wxUSE_RESOURCES 1
// 0 for no wxGetResource/wxWriteResource // 0 for no wxGetResource/wxWriteResource
#define USE_CONSTRAINTS 1 #define wxUSE_CONSTRAINTS 1
// 0 for no window layout constraint system // 0 for no window layout constraint system
#define USE_TIMEDATE 1 #define wxUSE_TIMEDATE 1
// 0 for no wxTime/wxDate classes // 0 for no wxTime/wxDate classes
#define USE_CLIPBOARD 1 #define wxUSE_CLIPBOARD 1
// 0 for no clipboard functions // 0 for no clipboard functions
#define USE_SPLINES 1 #define wxUSE_SPLINES 1
// 0 for no splines // 0 for no splines
#define USE_XFIG_SPLINE_CODE 1 #define wxUSE_XFIG_SPLINE_CODE 1
// 1 for XFIG spline code, 0 for AIAI spline code. // 1 for XFIG spline code, 0 for AIAI spline code.
// AIAI spline code is slower, but freer of copyright issues. // AIAI spline code is slower, but freer of copyright issues.
#define USE_DRAG_AND_DROP 1 #define wxUSE_DRAG_AND_DROP 1
// 0 for no drag and drop // 0 for no drag and drop
#define USE_TOOLBAR 1 #define wxUSE_TOOLBAR 1
// Define 1 to use toolbar classes // Define 1 to use toolbar classes
#define USE_BUTTONBAR 1 #define wxUSE_BUTTONBAR 1
// Define 1 to use buttonbar classes (enhanced toolbar // Define 1 to use buttonbar classes (enhanced toolbar
// for MS Windows) // for MS Windows)
#define USE_GAUGE 1 #define wxUSE_GAUGE 1
// Define 1 to use Microsoft's gauge (Windows) // Define 1 to use Microsoft's gauge (Windows)
// or Bull's gauge (Motif) library (both in contrib). // or Bull's gauge (Motif) library (both in contrib).
#define USE_COMBOBOX 1 #define wxUSE_COMBOBOX 1
// Define 1 to use COMBOXBOX control (Windows) // Define 1 to use COMBOXBOX control (Windows)
// or FWW's ComboBox widget (Motif). // or FWW's ComboBox widget (Motif).
#define USE_RADIOBUTTON 1 #define wxUSE_RADIOBUTTON 1
// Define 1 to use radio button control // Define 1 to use radio button control
#define USE_SCROLLBAR 1 #define wxUSE_SCROLLBAR 1
// Define 1 to compile contributed wxScrollBar class // Define 1 to compile contributed wxScrollBar class
#define USE_XPM_IN_X 1 #define wxUSE_XPM_IN_X 1
#define USE_XPM_IN_MSW 0 #define wxUSE_XPM_IN_MSW 0
// Define 1 to support the XPM package in wxBitmap, // Define 1 to support the XPM package in wxBitmap,
// separated by platform. If 1, you must link in // separated by platform. If 1, you must link in
// the XPM library to your applications. // the XPM library to your applications.
#define USE_IMAGE_LOADING_IN_X 1 #define wxUSE_IMAGE_LOADING_IN_X 1
// Use dynamic icon/bitmap loading/saving code in utils/image under X. // Use dynamic icon/bitmap loading/saving code in utils/image under X.
// If this is 1, you will need to link your applications // If this is 1, you will need to link your applications
// with image_X.lib. where X is motif, ol, or hp. // with image_X.lib. where X is motif, ol, or hp.
#define USE_IMAGE_LOADING_IN_MSW 1 #define wxUSE_IMAGE_LOADING_IN_MSW 1
// Use dynamic DIB loading/saving code in utils/dib under MSW. // Use dynamic DIB loading/saving code in utils/dib under MSW.
#define USE_RESOURCE_LOADING_IN_MSW 0 #define wxUSE_RESOURCE_LOADING_IN_MSW 0
// Use dynamic icon/cursor loading/saving code // Use dynamic icon/cursor loading/saving code
// under MSW. // under MSW.
#define USE_WX_RESOURCES 1 #define wxUSE_WX_RESOURCES 1
// Use .wxr resource mechanism (requires PrologIO library) // Use .wxr resource mechanism (requires PrologIO library)
#define USE_GNU_WXSTRING 0 #define wxUSE_GNU_WXSTRING 0
// Define 1 to use modified GNU wxString class // Define 1 to use modified GNU wxString class
// from (stefan.hammes@urz.uni-heidelberg.de) in contrib\string // from (stefan.hammes@urz.uni-heidelberg.de) in contrib\string
// TODO: why does this give an unresolved 'wxRegex::Search' // TODO: why does this give an unresolved 'wxRegex::Search'
@@ -104,22 +104,22 @@
#define HAVE_SOCKET 1 #define HAVE_SOCKET 1
// Use WinSock if 1 // Use WinSock if 1
#define USE_DOC_VIEW_ARCHITECTURE 1 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
// Set to 0 to disable document/view architecture // Set to 0 to disable document/view architecture
#define USE_PRINTING_ARCHITECTURE 1 #define wxUSE_PRINTING_ARCHITECTURE 1
// Set to 0 to disable print/preview architecture code // Set to 0 to disable print/preview architecture code
#define USE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
// Set to 0 to disable PostScript print/preview architecture code // Set to 0 to disable PostScript print/preview architecture code
// under Windows (just use Windows printing). // under Windows (just use Windows printing).
#define USE_DYNAMIC_CLASSES 1 #define wxUSE_DYNAMIC_CLASSES 1
// If 1, enables provision of run-time type information. // If 1, enables provision of run-time type information.
// NOW MANDATORY: don't change. // NOW MANDATORY: don't change.
#define USE_MEMORY_TRACING 1 #define wxUSE_MEMORY_TRACING 1
// If 1, enables debugging versions of wxObject::new and // If 1, enables debugging versions of wxObject::new and
// wxObject::delete *IF* WXDEBUG is also defined. // wxObject::delete *IF* WXDEBUG is also defined.
// WARNING: this code may not work with all architectures, especially // WARNING: this code may not work with all architectures, especially
// if alignment is an issue. // if alignment is an issue.
#define USE_DEBUG_CONTEXT 1 #define wxUSE_DEBUG_CONTEXT 1
// If 1, enables wxDebugContext, for // If 1, enables wxDebugContext, for
// writing error messages to file, etc. // writing error messages to file, etc.
// If WXDEBUG is not defined, will still use // If WXDEBUG is not defined, will still use
@@ -128,7 +128,7 @@
// since you may well need to output // since you may well need to output
// an error log in a production // an error log in a production
// version (or non-debugging beta) // version (or non-debugging beta)
#define USE_GLOBAL_MEMORY_OPERATORS 1 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
// In debug mode, cause new and delete to be redefined globally. // In debug mode, cause new and delete to be redefined globally.
// If this causes problems (e.g. link errors), set this to 0. // If this causes problems (e.g. link errors), set this to 0.
@@ -136,18 +136,18 @@
// Set this to 0 if your compiler can't cope // Set this to 0 if your compiler can't cope
// with omission of prototype parameters. // with omission of prototype parameters.
#define USE_C_MAIN 0 #define wxUSE_C_MAIN 0
// Set to 1 to use main.c instead of main.cpp (UNIX only) // Set to 1 to use main.c instead of main.cpp (UNIX only)
#define USE_ODBC 1 #define wxUSE_ODBC 1
// Define 1 to use ODBC classes // Define 1 to use ODBC classes
#define USE_IOSTREAMH 1 #define wxUSE_IOSTREAMH 1
// VC++ 4.2 and above allows <iostream> and <iostream.h> // VC++ 4.2 and above allows <iostream> and <iostream.h>
// but you can't mix them. Set to 1 for <iostream.h>, // but you can't mix them. Set to 1 for <iostream.h>,
// 0 for <iostream> // 0 for <iostream>
#define USE_WXCONFIG 1 #define wxUSE_WXCONFIG 1
// if enabled, compiles built-in OS independent wxConfig // if enabled, compiles built-in OS independent wxConfig
// class and it's file (any platform) and registry (Win) // class and it's file (any platform) and registry (Win)
// based implementations // based implementations
@@ -156,7 +156,7 @@
* *
*/ */
#define USE_APPLE_IEEE 1 #define wxUSE_APPLE_IEEE 1
// if enabled, the float codec written by Apple // if enabled, the float codec written by Apple
// will be used to write, in a portable way, // will be used to write, in a portable way,
// float on the disk // float on the disk
@@ -174,35 +174,35 @@
// See note above about using FAFA and CTL3D. // See note above about using FAFA and CTL3D.
#endif #endif
#define USE_COMMON_DIALOGS 1 #define wxUSE_COMMON_DIALOGS 1
// On rare occasions (e.g. using DJGPP) may want // On rare occasions (e.g. using DJGPP) may want
// to omit common dialogs // to omit common dialogs
// (e.g. file selector, printer dialog). // (e.g. file selector, printer dialog).
// Switching this off also switches off // Switching this off also switches off
// the printing architecture and interactive // the printing architecture and interactive
// wxPrinterDC. // wxPrinterDC.
#define USE_ITSY_BITSY 1 #define wxUSE_ITSY_BITSY 1
// Define 1 to use Microsoft's ItsyBitsy // Define 1 to use Microsoft's ItsyBitsy
// small title bar library, for wxMiniFrame // small title bar library, for wxMiniFrame
#define USE_BITMAP_MESSAGE 1 #define wxUSE_BITMAP_MESSAGE 1
// Define 1 to use bitmap messages. // Define 1 to use bitmap messages.
#define USE_PORTABLE_FONTS_IN_MSW 0 #define wxUSE_PORTABLE_FONTS_IN_MSW 0
// Define 1 to use new portable font scheme in Windows // Define 1 to use new portable font scheme in Windows
// (used by default under X) // (used by default under X)
#define FONT_SIZE_COMPATIBILITY 0 #define FONT_SIZE_COMPATIBILITY 0
// Define 1 for font size to be backward compatible // Define 1 for font size to be backward compatible
// to 1.63 and earlier. 1.64 and later define point // to 1.63 and earlier. 1.64 and later define point
// sizes to be compatible with Windows. // sizes to be compatible with Windows.
#define USE_GENERIC_DIALOGS_IN_MSW 1 #define wxUSE_GENERIC_DIALOGS_IN_MSW 1
// Define 1 to use generic dialogs in Windows, even though // Define 1 to use generic dialogs in Windows, even though
// they duplicate native common dialog (e.g. wxColourDialog) // they duplicate native common dialog (e.g. wxColourDialog)
#define USE_PENWINDOWS 0 #define wxUSE_PENWINDOWS 0
// Set to 1 to use PenWindows // Set to 1 to use PenWindows
#define USE_OWNER_DRAWN 0 #define wxUSE_OWNER_DRAWN 0
// Owner-drawn menus and listboxes // Owner-drawn menus and listboxes
#define USE_NATIVE_STATUSBAR 1 #define wxUSE_NATIVE_STATUSBAR 1
// Set to 0 to use cross-platform wxStatusBar // Set to 0 to use cross-platform wxStatusBar
/* /*
@@ -210,7 +210,7 @@
* *
*/ */
#define USE_TYPEDEFS 0 #define wxUSE_TYPEDEFS 0
// Use typedefs not classes for wxPoint // Use typedefs not classes for wxPoint
// and others, to reduce overhead and avoid // and others, to reduce overhead and avoid
// MS C7 memory bug. Bounds checker // MS C7 memory bug. Bounds checker
@@ -221,62 +221,62 @@
// Can't use OLE drag and drop in Windows 3.1 because we don't know how // Can't use OLE drag and drop in Windows 3.1 because we don't know how
// to implement UUIDs // to implement UUIDs
// GnuWin32 doesn't have appropriate headers for e.g. IUnknown. // GnuWin32 doesn't have appropriate headers for e.g. IUnknown.
#undef USE_DRAG_AND_DROP #undef wxUSE_DRAG_AND_DROP
#define USE_DRAG_AND_DROP 0 #define wxUSE_DRAG_AND_DROP 0
#endif #endif
// Only WIN32 supports wxStatusBar95 // Only WIN32 supports wxStatusBar95
#if !defined(__WIN32__) && USE_NATIVE_STATUSBAR #if !defined(__WIN32__) && wxUSE_NATIVE_STATUSBAR
#undef USE_NATIVE_STATUSBAR #undef wxUSE_NATIVE_STATUSBAR
#define USE_NATIVE_STATUSBAR 0 #define wxUSE_NATIVE_STATUSBAR 0
#endif #endif
// Minimal setup e.g. for compiling small utilities // Minimal setup e.g. for compiling small utilities
#define MINIMAL_WXWINDOWS_SETUP 0 #define MINIMAL_WXWINDOWS_SETUP 0
#if MINIMAL_WXWINDOWS_SETUP #if MINIMAL_WXWINDOWS_SETUP
#undef USE_POSTSCRIPT #undef wxUSE_POSTSCRIPT
# define USE_POSTSCRIPT 0 # define wxUSE_POSTSCRIPT 0
#undef USE_PRINTING_ARCHITECTURE #undef wxUSE_PRINTING_ARCHITECTURE
# define USE_PRINTING_ARCHITECTURE 0 # define wxUSE_PRINTING_ARCHITECTURE 0
#undef USE_POSTSCRIPT_ARCHITECTURE_IN_MSW #undef wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
# define USE_POSTSCRIPT_ARCHITECTURE_IN_MSW 0 # define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 0
#undef USE_METAFILE #undef wxUSE_METAFILE
# define USE_METAFILE 0 # define wxUSE_METAFILE 0
#undef USE_FORM #undef wxUSE_FORM
# define USE_FORM 0 # define wxUSE_FORM 0
#undef USE_SPLINES #undef wxUSE_SPLINES
# define USE_SPLINES 0 # define wxUSE_SPLINES 0
#undef USE_SCROLLBAR #undef wxUSE_SCROLLBAR
# define USE_SCROLLBAR 0 # define wxUSE_SCROLLBAR 0
#undef USE_COMBOBOX #undef wxUSE_COMBOBOX
# define USE_COMBOBOX 0 # define wxUSE_COMBOBOX 0
#undef USE_RADIOBUTTON #undef wxUSE_RADIOBUTTON
# define USE_RADIOBUTTON 0 # define wxUSE_RADIOBUTTON 0
#undef USE_XPM_IN_MSW #undef wxUSE_XPM_IN_MSW
# define USE_XPM_IN_MSW 0 # define wxUSE_XPM_IN_MSW 0
#undef USE_WX_RESOURCES #undef wxUSE_WX_RESOURCES
# define USE_WX_RESOURCES 0 # define wxUSE_WX_RESOURCES 0
#undef USE_DOC_VIEW_ARCHITECTURE #undef wxUSE_DOC_VIEW_ARCHITECTURE
# define USE_DOC_VIEW_ARCHITECTURE 0 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
#undef USE_GNU_WXSTRING #undef wxUSE_GNU_WXSTRING
# define USE_GNU_WXSTRING 0 # define wxUSE_GNU_WXSTRING 0
#undef USE_ODBC #undef wxUSE_ODBC
# define USE_ODBC 0 # define wxUSE_ODBC 0
#undef USE_TIMEDATE #undef wxUSE_TIMEDATE
# define USE_TIMEDATE 0 # define wxUSE_TIMEDATE 0
#undef CTL3D #undef CTL3D
# define CTL3D 0 # define CTL3D 0
#undef USE_ITSY_BITSY #undef wxUSE_ITSY_BITSY
# define USE_ITSY_BITSY 0 # define wxUSE_ITSY_BITSY 0
#undef USE_IMAGE_LOADING_IN_MSW #undef wxUSE_IMAGE_LOADING_IN_MSW
# define USE_IMAGE_LOADING_IN_MSW 0 # define wxUSE_IMAGE_LOADING_IN_MSW 0
#undef USE_GAUGE #undef wxUSE_GAUGE
# define USE_GAUGE 0 # define wxUSE_GAUGE 0
#undef USE_RESOURCE_LOADING_IN_MSW #undef wxUSE_RESOURCE_LOADING_IN_MSW
# define USE_RESOURCE_LOADING_IN_MSW 0 # define wxUSE_RESOURCE_LOADING_IN_MSW 0
#undef USE_DRAG_AND_DROP #undef wxUSE_DRAG_AND_DROP
# define USE_DRAG_AND_DROP 0 # define wxUSE_DRAG_AND_DROP 0
#endif #endif
#endif #endif

View File

@@ -16,7 +16,7 @@
#pragma interface "statbr95.h" #pragma interface "statbr95.h"
#endif #endif
#if USE_NATIVE_STATUSBAR #if wxUSE_NATIVE_STATUSBAR
class WXDLLEXPORT wxStatusBar95 : public wxStatusBar class WXDLLEXPORT wxStatusBar95 : public wxStatusBar
{ {
@@ -50,6 +50,6 @@ protected:
void SetFieldsWidth(); void SetFieldsWidth();
}; };
#endif // USE_NATIVE_STATUSBAR #endif // wxUSE_NATIVE_STATUSBAR
#endif //_STATBR95_H #endif //_STATBR95_H

View File

@@ -16,7 +16,7 @@
#pragma interface "tbar95.h" #pragma interface "tbar95.h"
#endif #endif
#if USE_BUTTONBAR && USE_TOOLBAR #if wxUSE_BUTTONBAR && wxUSE_TOOLBAR
#include "wx/tbarbase.h" #include "wx/tbarbase.h"
WXDLLEXPORT_DATA(extern const char*) wxToolBarNameStr; WXDLLEXPORT_DATA(extern const char*) wxToolBarNameStr;
@@ -93,6 +93,6 @@ protected:
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
}; };
#endif // USE_TOOL/BUTTONBAR #endif // wxUSE_TOOL/BUTTONBAR
#endif #endif
// _WX_TBAR95_H_ // _WX_TBAR95_H_

View File

@@ -16,7 +16,7 @@
#pragma interface "tbarmsw.h" #pragma interface "tbarmsw.h"
#endif #endif
#if USE_BUTTONBAR && USE_TOOLBAR #if wxUSE_BUTTONBAR && wxUSE_TOOLBAR
#include "wx/tbarbase.h" #include "wx/tbarbase.h"
WXDLLEXPORT_DATA(extern const char*) wxButtonBarNameStr; WXDLLEXPORT_DATA(extern const char*) wxButtonBarNameStr;
@@ -118,6 +118,6 @@ DECLARE_EVENT_TABLE()
#define wxTBSTATE_HIDDEN 0x08 // button is hidden #define wxTBSTATE_HIDDEN 0x08 // button is hidden
#define wxTBSTATE_INDETERMINATE 0x10 // button is indeterminate #define wxTBSTATE_INDETERMINATE 0x10 // button is indeterminate
#endif // USE_TOOL/BUTTONBAR #endif // wxUSE_TOOL/BUTTONBAR
#endif #endif
// _WX_TBARMSW_H_ // _WX_TBARMSW_H_

View File

@@ -18,7 +18,7 @@
#include "wx/control.h" #include "wx/control.h"
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>

View File

@@ -67,11 +67,11 @@ class WXDLLEXPORT wxIcon;
class WXDLLEXPORT wxDC; class WXDLLEXPORT wxDC;
class WXDLLEXPORT wxValidator; class WXDLLEXPORT wxValidator;
#if USE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
class WXDLLEXPORT wxDropTarget; class WXDLLEXPORT wxDropTarget;
#endif #endif
#if USE_WX_RESOURCES #if wxUSE_WX_RESOURCES
class WXDLLEXPORT wxResourceTable; class WXDLLEXPORT wxResourceTable;
class WXDLLEXPORT wxItemResource; class WXDLLEXPORT wxItemResource;
#endif #endif
@@ -193,7 +193,7 @@ public:
// Enable or disable the window // Enable or disable the window
virtual void Enable(bool enable); virtual void Enable(bool enable);
#if USE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
// Associate a drop target with this window (if the window already had a drop // Associate a drop target with this window (if the window already had a drop
// target, it's deleted!) and return the current drop target (may be NULL). // target, it's deleted!) and return the current drop target (may be NULL).
void SetDropTarget(wxDropTarget *pDropTarget); void SetDropTarget(wxDropTarget *pDropTarget);
@@ -357,7 +357,7 @@ public:
virtual void OnDefaultAction(wxControl *initiatingItem); virtual void OnDefaultAction(wxControl *initiatingItem);
// Resource loading // Resource loading
#if USE_WX_RESOURCES #if wxUSE_WX_RESOURCES
virtual bool LoadFromResource(wxWindow *parent, const wxString& resourceName, const wxResourceTable *table = NULL); virtual bool LoadFromResource(wxWindow *parent, const wxString& resourceName, const wxResourceTable *table = NULL);
virtual wxControl *CreateItem(const wxItemResource *childResource, const wxResourceTable *table = NULL); virtual wxControl *CreateItem(const wxItemResource *childResource, const wxResourceTable *table = NULL);
#endif #endif
@@ -633,7 +633,7 @@ protected:
bool m_winCaptured; bool m_winCaptured;
wxString m_windowName; // Window name wxString m_windowName; // Window name
#if USE_EXTENDED_STATICS #if wxUSE_EXTENDED_STATICS
wxList m_staticItems; wxList m_staticItems;
#endif #endif
@@ -656,7 +656,7 @@ protected:
bool m_mouseInWindow; bool m_mouseInWindow;
#if USE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
wxDropTarget *m_pDropTarget; // the current drop target or NULL wxDropTarget *m_pDropTarget; // the current drop target or NULL
#endif //USE_DRAG_AND_DROP #endif //USE_DRAG_AND_DROP

View File

@@ -21,7 +21,7 @@
class WXDLLEXPORT wxObject; class WXDLLEXPORT wxObject;
#if USE_DYNAMIC_CLASSES #if wxUSE_DYNAMIC_CLASSES
#ifdef __GNUWIN32__ #ifdef __GNUWIN32__
#ifdef GetClassName #ifdef GetClassName
@@ -89,7 +89,7 @@ public:
wxObject* WXDLLEXPORT wxCreateDynamicObject(const char *name); wxObject* WXDLLEXPORT wxCreateDynamicObject(const char *name);
#ifdef USE_SERIAL #ifdef wxUSE_SERIAL
wxObject* WXDLLEXPORT wxCreateStoredObject( wxInputStream& stream ); wxObject* WXDLLEXPORT wxCreateStoredObject( wxInputStream& stream );
#endif #endif
@@ -155,7 +155,7 @@ wxObject* WXDLLEXPORT_CTORFN wxConstructorFor##name(void) \
// Unfortunately Borland seems to need this include. // Unfortunately Borland seems to need this include.
#ifdef __BORLANDC__ #ifdef __BORLANDC__
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>
@@ -178,7 +178,7 @@ class WXDLLEXPORT wxObject
bool IsKindOf(wxClassInfo *info) const; bool IsKindOf(wxClassInfo *info) const;
#if WXDEBUG && USE_MEMORY_TRACING #if WXDEBUG && wxUSE_MEMORY_TRACING
void * operator new (size_t size, char * fileName = NULL, int lineNum = 0); void * operator new (size_t size, char * fileName = NULL, int lineNum = 0);
void operator delete (void * buf); void operator delete (void * buf);
@@ -195,11 +195,11 @@ class WXDLLEXPORT wxObject
#endif #endif
#if WXDEBUG || USE_DEBUG_CONTEXT #if WXDEBUG || wxUSE_DEBUG_CONTEXT
virtual void Dump(ostream& str); virtual void Dump(ostream& str);
#endif #endif
#ifdef USE_SERIAL #ifdef wxUSE_SERIAL
virtual void StoreObject( wxObjectOutputStream &stream ); virtual void StoreObject( wxObjectOutputStream &stream );
virtual void LoadObject( wxObjectInputStream &stream ); virtual void LoadObject( wxObjectInputStream &stream );
#endif #endif
@@ -215,7 +215,7 @@ class WXDLLEXPORT wxObject
protected: protected:
wxObjectRefData* m_refData; wxObjectRefData* m_refData;
#ifdef USE_SERIAL #ifdef wxUSE_SERIAL
wxObject_Serialize* m_serialObj; wxObject_Serialize* m_serialObj;
#endif #endif
}; };
@@ -237,7 +237,7 @@ private:
int m_count; int m_count;
}; };
#if WXDEBUG && USE_GLOBAL_MEMORY_OPERATORS #if WXDEBUG && wxUSE_GLOBAL_MEMORY_OPERATORS
//#ifndef WXDEBUG_NEW //#ifndef WXDEBUG_NEW
//#define WXDEBUG_NEW new(__FILE__,__LINE__) //#define WXDEBUG_NEW new(__FILE__,__LINE__)
//#endif //#endif

View File

@@ -11,7 +11,7 @@
#include "wx/setup.h" #include "wx/setup.h"
#if USE_ODBC #if wxUSE_ODBC
#ifdef __GNUG__ #ifdef __GNUG__
#pragma interface "odbc.h" #pragma interface "odbc.h"
@@ -331,4 +331,4 @@ class WXDLLEXPORT wxRecordSet: public wxObject
#endif #endif
#endif // USE_ODBC #endif // wxUSE_ODBC

View File

@@ -19,7 +19,7 @@
#include "wx/dc.h" #include "wx/dc.h"
#include "wx/dialog.h" #include "wx/dialog.h"
#if USE_POSTSCRIPT #if wxUSE_POSTSCRIPT
class WXDLLIMPORT ofstream; class WXDLLIMPORT ofstream;
class WXDLLEXPORT wxPostScriptDC: public wxDC class WXDLLEXPORT wxPostScriptDC: public wxDC
@@ -294,6 +294,6 @@ class WXDLLEXPORT wxPrintPaperDatabase: public wxList
WXDLLEXPORT_DATA(extern wxPrintPaperDatabase*) wxThePrintPaperDatabase; WXDLLEXPORT_DATA(extern wxPrintPaperDatabase*) wxThePrintPaperDatabase;
#endif // USE_POSTSCRIPT #endif // wxUSE_POSTSCRIPT
#endif #endif
// _WX_POSTSCRPH__ // _WX_POSTSCRPH__

View File

@@ -18,7 +18,7 @@
#include "wx/control.h" #include "wx/control.h"
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>

View File

@@ -66,11 +66,11 @@ class WXDLLEXPORT wxIcon;
class WXDLLEXPORT wxDC; class WXDLLEXPORT wxDC;
class WXDLLEXPORT wxValidator; class WXDLLEXPORT wxValidator;
#if USE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
class WXDLLEXPORT wxDropTarget; class WXDLLEXPORT wxDropTarget;
#endif #endif
#if USE_WX_RESOURCES #if wxUSE_WX_RESOURCES
class WXDLLEXPORT wxResourceTable; class WXDLLEXPORT wxResourceTable;
class WXDLLEXPORT wxItemResource; class WXDLLEXPORT wxItemResource;
#endif #endif
@@ -192,7 +192,7 @@ public:
// Enable or disable the window // Enable or disable the window
virtual void Enable(bool enable); virtual void Enable(bool enable);
#if USE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
// Associate a drop target with this window (if the window already had a drop // Associate a drop target with this window (if the window already had a drop
// target, it's deleted!) and return the current drop target (may be NULL). // target, it's deleted!) and return the current drop target (may be NULL).
void SetDropTarget(wxDropTarget *pDropTarget); void SetDropTarget(wxDropTarget *pDropTarget);
@@ -329,7 +329,7 @@ public:
virtual void OnDefaultAction(wxControl *initiatingItem); virtual void OnDefaultAction(wxControl *initiatingItem);
// Resource loading // Resource loading
#if USE_WX_RESOURCES #if wxUSE_WX_RESOURCES
virtual bool LoadFromResource(wxWindow *parent, const wxString& resourceName, const wxResourceTable *table = NULL); virtual bool LoadFromResource(wxWindow *parent, const wxString& resourceName, const wxResourceTable *table = NULL);
virtual wxControl *CreateItem(const wxItemResource *childResource, const wxResourceTable *table = NULL); virtual wxControl *CreateItem(const wxItemResource *childResource, const wxResourceTable *table = NULL);
#endif #endif
@@ -480,7 +480,7 @@ protected:
wxColour m_defaultBackgroundColour; wxColour m_defaultBackgroundColour;
wxColour m_defaultForegroundColour; wxColour m_defaultForegroundColour;
#if USE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
wxDropTarget *m_pDropTarget; // the current drop target or NULL wxDropTarget *m_pDropTarget; // the current drop target or NULL
#endif //USE_DRAG_AND_DROP #endif //USE_DRAG_AND_DROP

View File

@@ -18,7 +18,7 @@
#include "wx/setup.h" #include "wx/setup.h"
#if USE_WX_RESOURCES #if wxUSE_WX_RESOURCES
#include <stdio.h> #include <stdio.h>
// A few further types not in wx_types.h // A few further types not in wx_types.h

View File

@@ -106,7 +106,7 @@ class WXDLLEXPORT wxInputStream {
wxInputStream& operator>>(int& i); wxInputStream& operator>>(int& i);
wxInputStream& operator>>(long& i); wxInputStream& operator>>(long& i);
wxInputStream& operator>>(float& i); wxInputStream& operator>>(float& i);
#if USE_SERIAL #if wxUSE_SERIAL
wxInputStream& operator>>(wxObject *& obj); wxInputStream& operator>>(wxObject *& obj);
#endif #endif
@@ -160,7 +160,7 @@ class WXDLLEXPORT wxOutputStream {
wxOutputStream& operator<<(int i); wxOutputStream& operator<<(int i);
wxOutputStream& operator<<(long i); wxOutputStream& operator<<(long i);
wxOutputStream& operator<<(double f); wxOutputStream& operator<<(double f);
#if USE_SERIAL #if wxUSE_SERIAL
wxOutputStream& operator<<(wxObject& obj); wxOutputStream& operator<<(wxObject& obj);
#endif #endif

View File

@@ -254,13 +254,13 @@ public:
/** @name generic attributes & operations */ /** @name generic attributes & operations */
//@{ //@{
/// as standard strlen() /// as standard strlen()
size_t Len() const { return GetStringData() ? GetStringData()->nDataLength : 0; } size_t Len() const { return GetStringData()->nDataLength; }
/// string contains any characters? /// string contains any characters?
bool IsEmpty() const { return Len() == 0; } bool IsEmpty() const { return Len() == 0; }
/// reinitialize string (and free data!) /// reinitialize string (and free data!)
void Empty() void Empty()
{ {
if ( GetStringData() && GetStringData()->nDataLength != 0 ) if ( GetStringData()->nDataLength != 0 )
Reinit(); Reinit();
wxASSERT( GetStringData()->nDataLength == 0 ); wxASSERT( GetStringData()->nDataLength == 0 );

View File

@@ -25,7 +25,7 @@
// an exception to the general rule that a normal header doesn't include other // an exception to the general rule that a normal header doesn't include other
// headers - only because ownerdrw.h is not always included and I don't want // headers - only because ownerdrw.h is not always included and I don't want
// to write #ifdef's everywhere... // to write #ifdef's everywhere...
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
#include "wx/ownerdrw.h" #include "wx/ownerdrw.h"
#endif #endif
@@ -40,7 +40,7 @@
// wxMenuItem: an item in the menu, optionally implements owner-drawn behaviour // wxMenuItem: an item in the menu, optionally implements owner-drawn behaviour
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
class WXDLLEXPORT wxMenuItem: public wxObject class WXDLLEXPORT wxMenuItem: public wxObject
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
, public wxOwnerDrawn , public wxOwnerDrawn
#endif #endif
{ {
@@ -79,7 +79,7 @@ private:
bool m_bEnabled, // enabled or greyed? bool m_bEnabled, // enabled or greyed?
m_bChecked; // checked? (only if checkable) m_bChecked; // checked? (only if checkable)
#if USE_OWNER_DRAWN #if wxUSE_OWNER_DRAWN
// wxOwnerDrawn base class already has these variables - nothing to do // wxOwnerDrawn base class already has these variables - nothing to do
#else //!owner drawn #else //!owner drawn

View File

@@ -17,9 +17,9 @@
* *
*/ */
#define USE_CONSTRAINTS 1 #define wxUSE_CONSTRAINTS 1
// Use constraints mechanism // Use constraints mechanism
#define USE_CONFIG 1 #define wxUSE_CONFIG 1
// Use wxConfig, with CreateConfig in wxApp // Use wxConfig, with CreateConfig in wxApp
#define _WX_GOODCOMPILER__ #define _WX_GOODCOMPILER__
// gcc can have problems, but Windows compilers // gcc can have problems, but Windows compilers
@@ -30,51 +30,51 @@
// Level 1: wxDC, OnSize (etc.) compatibility, but // Level 1: wxDC, OnSize (etc.) compatibility, but
// some new features such as event tables // some new features such as event tables
#define USE_POSTSCRIPT 1 #define wxUSE_POSTSCRIPT 1
// 0 for no PostScript device context // 0 for no PostScript device context
#define USE_AFM_FOR_POSTSCRIPT 0 #define wxUSE_AFM_FOR_POSTSCRIPT 0
// 1 to use font metric files in GetTextExtent // 1 to use font metric files in GetTextExtent
#define USE_METAFILE 1 #define wxUSE_METAFILE 1
// 0 for no Metafile and metafile device context // 0 for no Metafile and metafile device context
#define USE_IPC 1 #define wxUSE_IPC 1
// 0 for no interprocess comms // 0 for no interprocess comms
#define USE_HELP 1 #define wxUSE_HELP 1
// 0 for no help facility // 0 for no help facility
#define USE_RESOURCES 1 #define wxUSE_RESOURCES 1
// 0 for no wxGetResource/wxWriteResource // 0 for no wxGetResource/wxWriteResource
#define USE_CLIPBOARD 1 #define wxUSE_CLIPBOARD 1
// 0 for no clipboard functions // 0 for no clipboard functions
#define USE_SPLINES 1 #define wxUSE_SPLINES 1
// 0 for no splines // 0 for no splines
#define USE_XFIG_SPLINE_CODE 1 #define wxUSE_XFIG_SPLINE_CODE 1
// 1 for XFIG spline code, 0 for AIAI spline code. // 1 for XFIG spline code, 0 for AIAI spline code.
// AIAI spline code is slower, but freer of copyright issues. // AIAI spline code is slower, but freer of copyright issues.
// 0 for no splines // 0 for no splines
#define USE_TOOLBAR 1 #define wxUSE_TOOLBAR 1
// Use toolbars // Use toolbars
#define USE_DRAG_AND_DROP 1 #define wxUSE_DRAG_AND_DROP 1
// 0 for no drag and drop // 0 for no drag and drop
#define USE_WX_RESOURCES 1 #define wxUSE_WX_RESOURCES 1
// Use .wxr resource mechanism (requires PrologIO library) // Use .wxr resource mechanism (requires PrologIO library)
#define USE_DOC_VIEW_ARCHITECTURE 1 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
// Set to 0 to disable document/view architecture // Set to 0 to disable document/view architecture
#define USE_PRINTING_ARCHITECTURE 1 #define wxUSE_PRINTING_ARCHITECTURE 1
// Set to 0 to disable print/preview architecture code // Set to 0 to disable print/preview architecture code
#define USE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
// Set to 0 to disable PostScript print/preview architecture code // Set to 0 to disable PostScript print/preview architecture code
// under Windows (just use Windows printing). // under Windows (just use Windows printing).
#define USE_DYNAMIC_CLASSES 1 #define wxUSE_DYNAMIC_CLASSES 1
// If 1, enables provision of run-time type information. // If 1, enables provision of run-time type information.
// NOW MANDATORY: don't change. // NOW MANDATORY: don't change.
#define USE_MEMORY_TRACING 1 #define wxUSE_MEMORY_TRACING 1
// If 1, enables debugging versions of wxObject::new and // If 1, enables debugging versions of wxObject::new and
// wxObject::delete *IF* WXDEBUG is also defined. // wxObject::delete *IF* WXDEBUG is also defined.
// WARNING: this code may not work with all architectures, especially // WARNING: this code may not work with all architectures, especially
// if alignment is an issue. // if alignment is an issue.
#define USE_DEBUG_CONTEXT 1 #define wxUSE_DEBUG_CONTEXT 1
// If 1, enables wxDebugContext, for // If 1, enables wxDebugContext, for
// writing error messages to file, etc. // writing error messages to file, etc.
// If WXDEBUG is not defined, will still use // If WXDEBUG is not defined, will still use
@@ -83,7 +83,7 @@
// since you may well need to output // since you may well need to output
// an error log in a production // an error log in a production
// version (or non-debugging beta) // version (or non-debugging beta)
#define USE_GLOBAL_MEMORY_OPERATORS 0 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
// In debug mode, cause new and delete to be redefined globally. // In debug mode, cause new and delete to be redefined globally.
// If this causes problems (e.g. link errors), set this to 0. // If this causes problems (e.g. link errors), set this to 0.
@@ -91,18 +91,18 @@
// Set this to 0 if your compiler can't cope // Set this to 0 if your compiler can't cope
// with omission of prototype parameters. // with omission of prototype parameters.
#define USE_C_MAIN 0 #define wxUSE_C_MAIN 0
// Set to 1 to use main.c instead of main.cpp (UNIX only) // Set to 1 to use main.c instead of main.cpp (UNIX only)
#define USE_ODBC 0 #define wxUSE_ODBC 0
// Define 1 to use ODBC classes // Define 1 to use ODBC classes
#define USE_IOSTREAMH 1 #define wxUSE_IOSTREAMH 1
// VC++ 4.2 and above allows <iostream> and <iostream.h> // VC++ 4.2 and above allows <iostream> and <iostream.h>
// but you can't mix them. Set to 1 for <iostream.h>, // but you can't mix them. Set to 1 for <iostream.h>,
// 0 for <iostream> // 0 for <iostream>
#define USE_WXCONFIG 1 #define wxUSE_WXCONFIG 1
// if enabled, compiles built-in OS independent wxConfig // if enabled, compiles built-in OS independent wxConfig
// class and it's file (any platform) and registry (Win) // class and it's file (any platform) and registry (Win)
// based implementations // based implementations
@@ -111,7 +111,7 @@
* *
*/ */
#define USE_APPLE_IEEE 1 #define wxUSE_APPLE_IEEE 1
// if enabled, the float codec written by Apple // if enabled, the float codec written by Apple
// will be used to write, in a portable way, // will be used to write, in a portable way,
// float on the disk // float on the disk

View File

@@ -18,7 +18,7 @@
#include "wx/control.h" #include "wx/control.h"
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>

View File

@@ -67,11 +67,11 @@ class WXDLLEXPORT wxIcon;
class WXDLLEXPORT wxDC; class WXDLLEXPORT wxDC;
class WXDLLEXPORT wxValidator; class WXDLLEXPORT wxValidator;
#if USE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
class WXDLLEXPORT wxDropTarget; class WXDLLEXPORT wxDropTarget;
#endif #endif
#if USE_WX_RESOURCES #if wxUSE_WX_RESOURCES
class WXDLLEXPORT wxResourceTable; class WXDLLEXPORT wxResourceTable;
class WXDLLEXPORT wxItemResource; class WXDLLEXPORT wxItemResource;
#endif #endif
@@ -193,7 +193,7 @@ public:
// Enable or disable the window // Enable or disable the window
virtual void Enable(bool enable); virtual void Enable(bool enable);
#if USE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
// Associate a drop target with this window (if the window already had a drop // Associate a drop target with this window (if the window already had a drop
// target, it's deleted!) and return the current drop target (may be NULL). // target, it's deleted!) and return the current drop target (may be NULL).
void SetDropTarget(wxDropTarget *pDropTarget); void SetDropTarget(wxDropTarget *pDropTarget);
@@ -336,7 +336,7 @@ public:
virtual void OnDefaultAction(wxControl *initiatingItem); virtual void OnDefaultAction(wxControl *initiatingItem);
// Resource loading // Resource loading
#if USE_WX_RESOURCES #if wxUSE_WX_RESOURCES
virtual bool LoadFromResource(wxWindow *parent, const wxString& resourceName, const wxResourceTable *table = NULL); virtual bool LoadFromResource(wxWindow *parent, const wxString& resourceName, const wxResourceTable *table = NULL);
virtual wxControl *CreateItem(const wxItemResource *childResource, const wxResourceTable *table = NULL); virtual wxControl *CreateItem(const wxItemResource *childResource, const wxResourceTable *table = NULL);
#endif #endif
@@ -486,7 +486,7 @@ protected:
wxColour m_defaultForegroundColour; wxColour m_defaultForegroundColour;
wxAcceleratorTable m_acceleratorTable; wxAcceleratorTable m_acceleratorTable;
#if USE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
wxDropTarget *m_pDropTarget; // the current drop target or NULL wxDropTarget *m_pDropTarget; // the current drop target or NULL
#endif //USE_DRAG_AND_DROP #endif //USE_DRAG_AND_DROP

View File

@@ -18,7 +18,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#if USE_TOOLBAR #if wxUSE_TOOLBAR
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/list.h" #include "wx/list.h"
@@ -75,7 +75,7 @@ DECLARE_EVENT_TABLE()
}; };
#endif // USE_TOOLBAR #endif // wxUSE_TOOLBAR
#endif #endif
// _WX_TBARSMPLH__ // _WX_TBARSMPLH__

View File

@@ -14,7 +14,7 @@
#include "wx/object.h" #include "wx/object.h"
#if USE_TIMEDATE #if wxUSE_TIMEDATE
#ifdef __GNUG__ #ifdef __GNUG__
#pragma interface "time.h" #pragma interface "time.h"
@@ -91,7 +91,7 @@ public:
}; };
#endif #endif
// USE_TIMEDATE // wxUSE_TIMEDATE
#endif #endif
// _WX_TIMEH__ // _WX_TIMEH__

View File

@@ -23,7 +23,7 @@
#include "wx/filefn.h" #include "wx/filefn.h"
#include "wx/process.h" #include "wx/process.h"
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>
@@ -182,7 +182,7 @@ class WXDLLEXPORT wxDebugStreamBuf: public streambuf
int sync(void); int sync(void);
}; };
// #if WXDEBUG && USE_GLOBAL_MEMORY_OPERATORS // #if WXDEBUG && wxUSE_GLOBAL_MEMORY_OPERATORS
// #define new WXDEBUG_NEW // #define new WXDEBUG_NEW
// #endif // #endif
@@ -237,7 +237,7 @@ WXDLLEXPORT_DATA(extern const char*) wxFatalErrorStr;
void WXDLLEXPORT wxFatalError(const wxString& msg, const wxString& title = wxFatalErrorStr); void WXDLLEXPORT wxFatalError(const wxString& msg, const wxString& title = wxFatalErrorStr);
// Reading and writing resources (eg WIN.INI, .Xdefaults) // Reading and writing resources (eg WIN.INI, .Xdefaults)
#if USE_RESOURCES #if wxUSE_RESOURCES
bool WXDLLEXPORT wxWriteResource(const wxString& section, const wxString& entry, const wxString& value, const wxString& file = ""); bool WXDLLEXPORT wxWriteResource(const wxString& section, const wxString& entry, const wxString& value, const wxString& file = "");
bool WXDLLEXPORT wxWriteResource(const wxString& section, const wxString& entry, float value, const wxString& file = ""); bool WXDLLEXPORT wxWriteResource(const wxString& section, const wxString& entry, float value, const wxString& file = "");
bool WXDLLEXPORT wxWriteResource(const wxString& section, const wxString& entry, long value, const wxString& file = ""); bool WXDLLEXPORT wxWriteResource(const wxString& section, const wxString& entry, long value, const wxString& file = "");
@@ -247,7 +247,7 @@ bool WXDLLEXPORT wxGetResource(const wxString& section, const wxString& entry, c
bool WXDLLEXPORT wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file = ""); bool WXDLLEXPORT wxGetResource(const wxString& section, const wxString& entry, float *value, const wxString& file = "");
bool WXDLLEXPORT wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file = ""); bool WXDLLEXPORT wxGetResource(const wxString& section, const wxString& entry, long *value, const wxString& file = "");
bool WXDLLEXPORT wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file = ""); bool WXDLLEXPORT wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file = "");
#endif // USE_RESOURCES #endif // wxUSE_RESOURCES
// Get current Home dir and copy to dest (returns pstr->c_str()) // Get current Home dir and copy to dest (returns pstr->c_str())
const char* WXDLLEXPORT wxGetHomeDir(wxString *pstr); const char* WXDLLEXPORT wxGetHomeDir(wxString *pstr);

View File

@@ -21,7 +21,7 @@
#include "wx/string.h" #include "wx/string.h"
#include "wx/list.h" #include "wx/list.h"
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>

View File

@@ -65,7 +65,7 @@
#include "wx/dirdlg.h" #include "wx/dirdlg.h"
#include "wx/cmndata.h" #include "wx/cmndata.h"
#include "wx/intl.h" #include "wx/intl.h"
#ifdef USE_SERIAL #ifdef wxUSE_SERIAL
#include "wx/objstrm.h" #include "wx/objstrm.h"
#include "wx/serbase.h" #include "wx/serbase.h"
#endif #endif

View File

@@ -21,7 +21,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#include "wx/string.h" #include "wx/string.h"
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>

View File

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

View File

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

View File

@@ -25,7 +25,7 @@
#endif #endif
#if !USE_DOC_VIEW_ARCHITECTURE #if !USE_DOC_VIEW_ARCHITECTURE
#error You must set USE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h! #error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
#endif #endif
#include "doc.h" #include "doc.h"

View File

@@ -32,7 +32,7 @@
#endif #endif
#if !USE_DOC_VIEW_ARCHITECTURE #if !USE_DOC_VIEW_ARCHITECTURE
#error You must set USE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h! #error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
#endif #endif
#include "wx/docview.h" #include "wx/docview.h"

View File

@@ -25,7 +25,7 @@
#endif #endif
#if !USE_DOC_VIEW_ARCHITECTURE #if !USE_DOC_VIEW_ARCHITECTURE
#error You must set USE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h! #error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
#endif #endif
#include "docview.h" #include "docview.h"

View File

@@ -25,7 +25,7 @@
#endif #endif
#if !USE_DOC_VIEW_ARCHITECTURE #if !USE_DOC_VIEW_ARCHITECTURE
#error You must set USE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h! #error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
#endif #endif
#include "doc.h" #include "doc.h"

View File

@@ -30,7 +30,7 @@
#endif #endif
#if !USE_DOC_VIEW_ARCHITECTURE #if !USE_DOC_VIEW_ARCHITECTURE
#error You must set USE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h! #error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
#endif #endif
#include "docview.h" #include "docview.h"

View File

@@ -25,7 +25,7 @@
#endif #endif
#if !USE_DOC_VIEW_ARCHITECTURE #if !USE_DOC_VIEW_ARCHITECTURE
#error You must set USE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h! #error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
#endif #endif
#include "docview.h" #include "docview.h"

View File

@@ -21,7 +21,7 @@
#endif #endif
#if !USE_CONSTRAINTS #if !USE_CONSTRAINTS
#error You must set USE_CONSTRAINTS to 1 in wx_setup.h! #error You must set wxUSE_CONSTRAINTS to 1 in wx_setup.h!
#endif #endif
#include <ctype.h> #include <ctype.h>

View File

@@ -70,6 +70,9 @@ public:
void OnQuit(wxCommandEvent& event); void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event); void OnAbout(wxCommandEvent& event);
void OnPopupMenu(wxCommandEvent& event);
void OnRightDown(wxMouseEvent& event);
private: private:
// any class wishing to process wxWindows events must use this macro // any class wishing to process wxWindows events must use this macro
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
@@ -85,6 +88,8 @@ enum
// menu items // menu items
Minimal_Quit = 1, Minimal_Quit = 1,
Minimal_About, Minimal_About,
Minimal_Test1,
Minimal_Test2,
// controls start here (the numbers are, of course, arbitrary) // controls start here (the numbers are, of course, arbitrary)
Minimal_Text = 1000, Minimal_Text = 1000,
@@ -100,6 +105,10 @@ enum
BEGIN_EVENT_TABLE(MyFrame, wxFrame) BEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(Minimal_Quit, MyFrame::OnQuit) EVT_MENU(Minimal_Quit, MyFrame::OnQuit)
EVT_MENU(Minimal_About, MyFrame::OnAbout) EVT_MENU(Minimal_About, MyFrame::OnAbout)
EVT_MENU_RANGE(Minimal_Test1, Minimal_Test2, MyFrame::OnPopupMenu)
EVT_RIGHT_DOWN(MyFrame::OnRightDown)
END_EVENT_TABLE() END_EVENT_TABLE()
// Create a new application object: this macro will allow wxWindows to create // Create a new application object: this macro will allow wxWindows to create
@@ -161,17 +170,8 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
SetMenuBar(menuBar); SetMenuBar(menuBar);
// create a status bar just for fun (by default with 1 pane only) // create a status bar just for fun (by default with 1 pane only)
CreateStatusBar(); CreateStatusBar(2);
SetStatusText("Welcome to wxWindows!"); SetStatusText("Welcome to wxWindows!");
// now create some controls
// a panel first - if there were several controls, it would allow us to
// navigate between them from the keyboard
wxPanel *panel = new wxPanel(this, -1, wxPoint(0, 0), wxSize(400, 200));
// and a static control whose parent is the panel
(void)new wxStaticText(panel, -1, "Hello, world!", wxPoint(10, 10));
} }
@@ -188,3 +188,28 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
wxMessageBox("This is a minimal sample\nA second line in the message box", wxMessageBox("This is a minimal sample\nA second line in the message box",
"About Minimal", wxOK | wxICON_INFORMATION, this); "About Minimal", wxOK | wxICON_INFORMATION, this);
} }
void MyFrame::OnPopupMenu(wxCommandEvent& event)
{
wxString str;
str.Printf("Test%d clicked.", event.GetId() == Minimal_Test1 ? 1 : 2);
SetStatusText(str, 1);
}
void MyFrame::OnRightDown(wxMouseEvent& event)
{
class MyMenu : public wxMenu
{
public:
MyMenu()
{
Append(Minimal_Test1, "Test&1");
AppendSeparator();
Append(Minimal_Test2, "Test&2");
}
~MyMenu() { printf("menu destroyed"); }
} *menu = new MyMenu;
PopupMenu(menu, event.GetX(), event.GetY());
}

View File

@@ -26,7 +26,7 @@
#endif #endif
#if !USE_PRINTING_ARCHITECTURE #if !USE_PRINTING_ARCHITECTURE
#error You must set USE_PRINTING_ARCHITECTURE to 1 in wx_setup.h to compile this demo. #error You must set wxUSE_PRINTING_ARCHITECTURE to 1 in wx_setup.h to compile this demo.
#endif #endif
#include <ctype.h> #include <ctype.h>

View File

@@ -161,7 +161,7 @@ BEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(wxID_HELP, MyFrame::OnAbout) EVT_MENU(wxID_HELP, MyFrame::OnAbout)
EVT_CLOSE(MyFrame::OnCloseWindow) EVT_CLOSE(MyFrame::OnCloseWindow)
EVT_TOOL_RANGE(wxID_OPEN, wxID_PASTE, MyFrame::OnToolLeftClick) EVT_TOOL_RANGE(wxID_OPEN, wxID_PASTE, MyFrame::OnToolLeftClick)
EVT_TOOL_ENTER(ID_TOOLBAR, MyFrame::OnToolEnter) EVT_TOOL_ENTER(wxID_OPEN, MyFrame::OnToolEnter)
END_EVENT_TABLE() END_EVENT_TABLE()
// Define my frame constructor // Define my frame constructor

View File

@@ -28,7 +28,7 @@
#include "wx/setup.h" #include "wx/setup.h"
#if USE_TIMEDATE #if wxUSE_TIMEDATE
#include "wx/date.h" #include "wx/date.h"
#include <wx/intl.h> #include <wx/intl.h>
@@ -37,7 +37,7 @@
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>

View File

@@ -74,7 +74,7 @@ extern "C" double ConvertFromIeeeExtended(const unsigned char *bytes);
double wxDataInputStream::ReadDouble() double wxDataInputStream::ReadDouble()
{ {
#if USE_APPLE_IEEE #if wxUSE_APPLE_IEEE
char buf[10]; char buf[10];
Read(buf, 10); Read(buf, 10);
@@ -192,7 +192,7 @@ void wxDataOutputStream::WriteDouble(double d)
{ {
char buf[10]; char buf[10];
#if USE_APPLE_IEEE #if wxUSE_APPLE_IEEE
ConvertToIeeeExtended(d, (unsigned char *)buf); ConvertToIeeeExtended(d, (unsigned char *)buf);
#else #else
# pragma warning "wxDataStream::WriteDouble() not using IeeeExtended - will not work!" # pragma warning "wxDataStream::WriteDouble() not using IeeeExtended - will not work!"

View File

@@ -43,7 +43,7 @@
#include <wx/wx.h> #include <wx/wx.h>
#endif //WX_PRECOMP #endif //WX_PRECOMP
#if USE_ODBC #if wxUSE_ODBC
#include <wx/db.h> #include <wx/db.h>
@@ -1317,4 +1317,4 @@ bool GetDataSource(HENV henv, char *Dsn, SWORD DsnMax, char *DsDesc, SWORD DsDes
} // GetDataSource() } // GetDataSource()
#endif #endif
// USE_ODBC // wxUSE_ODBC

View File

@@ -39,7 +39,7 @@
#include <wx/wx.h> #include <wx/wx.h>
#endif //WX_PRECOMP #endif //WX_PRECOMP
#if USE_ODBC #if wxUSE_ODBC
#include <wx/dbtable.h> #include <wx/dbtable.h>
@@ -1442,4 +1442,4 @@ bool wxTable::Refresh(void)
} // wxTable::Refresh() } // wxTable::Refresh()
#endif #endif
// USE_ODBC // wxUSE_ODBC

View File

@@ -24,7 +24,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#endif #endif
#if USE_DOC_VIEW_ARCHITECTURE #if wxUSE_DOC_VIEW_ARCHITECTURE
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/wx.h" #include "wx/wx.h"
@@ -149,5 +149,5 @@ bool wxDocMDIChildFrame::OnClose(void)
} }
#endif #endif
// USE_DOC_VIEW_ARCHITECTURE // wxUSE_DOC_VIEW_ARCHITECTURE

View File

@@ -24,7 +24,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#endif #endif
#if USE_DOC_VIEW_ARCHITECTURE #if wxUSE_DOC_VIEW_ARCHITECTURE
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/string.h" #include "wx/string.h"
@@ -53,7 +53,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>
@@ -68,7 +68,7 @@ IMPLEMENT_ABSTRACT_CLASS(wxDocTemplate, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxDocManager, wxEvtHandler) IMPLEMENT_DYNAMIC_CLASS(wxDocManager, wxEvtHandler)
IMPLEMENT_CLASS(wxDocChildFrame, wxFrame) IMPLEMENT_CLASS(wxDocChildFrame, wxFrame)
IMPLEMENT_CLASS(wxDocParentFrame, wxFrame) IMPLEMENT_CLASS(wxDocParentFrame, wxFrame)
#if USE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
IMPLEMENT_DYNAMIC_CLASS(wxDocPrintout, wxPrintout) IMPLEMENT_DYNAMIC_CLASS(wxDocPrintout, wxPrintout)
#endif #endif
IMPLEMENT_CLASS(wxCommand, wxObject) IMPLEMENT_CLASS(wxCommand, wxObject)
@@ -535,7 +535,7 @@ bool wxView::OnClose(bool WXUNUSED(deleteWindow))
return GetDocument() ? GetDocument()->Close() : TRUE; return GetDocument() ? GetDocument()->Close() : TRUE;
} }
#if USE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
wxPrintout *wxView::OnCreatePrintout(void) wxPrintout *wxView::OnCreatePrintout(void)
{ {
return new wxDocPrintout(this); return new wxDocPrintout(this);
@@ -1447,7 +1447,7 @@ bool wxDocParentFrame::OnClose(void)
return m_docManager->Clear(FALSE); return m_docManager->Clear(FALSE);
} }
#if USE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
wxDocPrintout::wxDocPrintout(wxView *view, const wxString& title): wxDocPrintout::wxDocPrintout(wxView *view, const wxString& title):
wxPrintout(WXSTRINGCAST title) wxPrintout(WXSTRINGCAST title)
@@ -1940,4 +1940,4 @@ bool wxTransferStreamToFile(istream& stream, const wxString& filename)
} }
#endif #endif
// End USE_DOC_VIEW_ARCHITECTURE // End wxUSE_DOC_VIEW_ARCHITECTURE

View File

@@ -28,18 +28,19 @@
#endif //__BORLANDC__ #endif //__BORLANDC__
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include <wx/string.h> #include "wx/string.h"
#include <wx/intl.h> #include "wx/intl.h"
#endif //WX_PRECOMP #endif //WX_PRECOMP
#include <wx/app.h> #include "wx/app.h"
#include <wx/dynarray.h> #include "wx/dynarray.h"
#include <wx/file.h> #include "wx/file.h"
#include <wx/log.h> #include "wx/log.h"
#include <wx/textfile.h> #include "wx/textfile.h"
#include <wx/config.h> #include "wx/config.h"
#include <wx/fileconf.h> #include "wx/fileconf.h"
#include <wx/utils.h>
#include "wx/utils.h" // for wxGetHomeDir
// _WINDOWS_ is defined when windows.h is included, // _WINDOWS_ is defined when windows.h is included,
// __WXMSW__ is defined for MS Windows compilation // __WXMSW__ is defined for MS Windows compilation

View File

@@ -26,10 +26,10 @@
#include "wx/helpbase.h" #include "wx/helpbase.h"
#if USE_HELP #if wxUSE_HELP
#if !USE_SHARED_LIBRARY #if !USE_SHARED_LIBRARY
IMPLEMENT_CLASS(wxHelpControllerBase, wxObject) IMPLEMENT_CLASS(wxHelpControllerBase, wxObject)
#endif #endif
#endif // USE_HELP #endif // wxUSE_HELP

View File

@@ -22,7 +22,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#if USE_CONSTRAINTS #if wxUSE_CONSTRAINTS
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/window.h" #include "wx/window.h"

View File

@@ -24,7 +24,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#endif #endif
#if (WXDEBUG && USE_MEMORY_TRACING) || USE_DEBUG_CONTEXT #if (WXDEBUG && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
#ifdef __GNUG__ #ifdef __GNUG__
// #pragma implementation // #pragma implementation
@@ -37,7 +37,7 @@
#include <stdlib.h> #include <stdlib.h>
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>
@@ -888,7 +888,7 @@ int wxDebugContext::CountObjectsLeft(void)
// We'll only do malloc and free for the moment: leave the interesting // We'll only do malloc and free for the moment: leave the interesting
// stuff for the wxObject versions. // stuff for the wxObject versions.
#if WXDEBUG && USE_GLOBAL_MEMORY_OPERATORS #if WXDEBUG && wxUSE_GLOBAL_MEMORY_OPERATORS
#ifdef new #ifdef new
#undef new #undef new
@@ -1110,7 +1110,7 @@ void wxTraceLevel(int level, const char *fmt ...)
#endif #endif
} }
#else // USE_MEMORY_TRACING && WXDEBUG #else // wxUSE_MEMORY_TRACING && WXDEBUG
void wxTrace(const char *WXUNUSED(fmt) ...) void wxTrace(const char *WXUNUSED(fmt) ...)
{ {
} }

View File

@@ -22,7 +22,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/hash.h" #include "wx/hash.h"
#ifdef USE_SERIAL #ifdef wxUSE_SERIAL
#include "wx/objstrm.h" #include "wx/objstrm.h"
#include "wx/serbase.h" #include "wx/serbase.h"
#endif #endif
@@ -31,11 +31,11 @@
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#if (WXDEBUG && USE_MEMORY_TRACING) || USE_DEBUG_CONTEXT #if (WXDEBUG && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
#include "wx/memory.h" #include "wx/memory.h"
#endif #endif
#if WXDEBUG || USE_DEBUG_CONTEXT #if WXDEBUG || wxUSE_DEBUG_CONTEXT
// for wxObject::Dump // for wxObject::Dump
#include <iostream.h> #include <iostream.h>
#endif #endif
@@ -53,7 +53,7 @@ wxHashTable* wxClassInfo::sm_classTable = (wxHashTable*) NULL;
wxObject::wxObject(void) wxObject::wxObject(void)
{ {
m_refData = (wxObjectRefData *) NULL; m_refData = (wxObjectRefData *) NULL;
#ifdef USE_SERIAL #ifdef wxUSE_SERIAL
m_serialObj = (wxObject_Serialize *)NULL; m_serialObj = (wxObject_Serialize *)NULL;
#endif #endif
} }
@@ -61,7 +61,7 @@ wxObject::wxObject(void)
wxObject::~wxObject(void) wxObject::~wxObject(void)
{ {
UnRef(); UnRef();
#ifdef USE_SERIAL #ifdef wxUSE_SERIAL
if (m_serialObj) if (m_serialObj)
delete m_serialObj; delete m_serialObj;
#endif #endif
@@ -83,7 +83,7 @@ bool wxObject::IsKindOf(wxClassInfo *info) const
return FALSE; return FALSE;
} }
#if WXDEBUG || USE_DEBUG_CONTEXT #if WXDEBUG || wxUSE_DEBUG_CONTEXT
void wxObject::Dump(ostream& str) void wxObject::Dump(ostream& str)
{ {
if (GetClassInfo() && GetClassInfo()->GetClassName()) if (GetClassInfo() && GetClassInfo()->GetClassName())
@@ -93,7 +93,7 @@ void wxObject::Dump(ostream& str)
} }
#endif #endif
#if WXDEBUG && USE_MEMORY_TRACING #if WXDEBUG && wxUSE_MEMORY_TRACING
#ifdef new #ifdef new
#undef new #undef new
@@ -258,7 +258,7 @@ wxObject *wxCreateDynamicObject(const char *name)
return (wxObject*) NULL; return (wxObject*) NULL;
} }
#ifdef USE_SERIAL #ifdef wxUSE_SERIAL
#include "wx/serbase.h" #include "wx/serbase.h"
#include "wx/dynlib.h" #include "wx/dynlib.h"

View File

@@ -24,7 +24,7 @@
#include "wx/setup.h" #include "wx/setup.h"
#endif #endif
#if USE_SERIAL #if wxUSE_SERIAL
#include "wx/object.h" #include "wx/object.h"
#include "wx/objstrm.h" #include "wx/objstrm.h"

View File

@@ -23,7 +23,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#if USE_ODBC #if wxUSE_ODBC
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/utils.h" #include "wx/utils.h"
@@ -1827,4 +1827,4 @@ bool wxQueryField::IsDirty(void) {
return dirty; return dirty;
} }
#endif // USE_ODBC #endif // wxUSE_ODBC

View File

@@ -24,7 +24,7 @@
#include "wx/defs.h" #include "wx/defs.h"
#if USE_POSTSCRIPT #if wxUSE_POSTSCRIPT
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/intl.h" #include "wx/intl.h"
@@ -48,7 +48,7 @@
#include "wx/msw/private.h" #include "wx/msw/private.h"
#endif #endif
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>
@@ -127,7 +127,7 @@ double UnderlineThickness = 0.0F;
#define _MAXPATHLEN 500 #define _MAXPATHLEN 500
/* See "wxspline.inc" and "xfspline.inc" */ /* See "wxspline.inc" and "xfspline.inc" */
#if USE_XFIG_SPLINE_CODE #if wxUSE_XFIG_SPLINE_CODE
static const char *wxPostScriptHeaderSpline = " \ static const char *wxPostScriptHeaderSpline = " \
/DrawSplineSection {\n\ /DrawSplineSection {\n\
/y3 exch def\n\ /y3 exch def\n\
@@ -148,7 +148,7 @@ static const char *wxPostScriptHeaderSpline = " \
// No extra PS header for this spline implementation. // No extra PS header for this spline implementation.
static const char *wxPostScriptHeaderSpline = (char *) NULL; static const char *wxPostScriptHeaderSpline = (char *) NULL;
#endif /* USE_XFIG_SPLINE_CODE */ #endif /* wxUSE_XFIG_SPLINE_CODE */
// steve, 05.09.94 // steve, 05.09.94
// VMS has a bug in the ofstream class. // VMS has a bug in the ofstream class.

View File

@@ -38,7 +38,7 @@
#include "wx/checkbox.h" #include "wx/checkbox.h"
#include "wx/slider.h" #include "wx/slider.h"
#include "wx/statbox.h" #include "wx/statbox.h"
#if USE_GAUGE #if wxUSE_GAUGE
#include "wx/gauge.h" #include "wx/gauge.h"
#endif #endif
#include "wx/textctrl.h" #include "wx/textctrl.h"
@@ -46,11 +46,11 @@
#include "wx/intl.h" #include "wx/intl.h"
#endif #endif
#if USE_SCROLLBAR #if wxUSE_SCROLLBAR
#include "wx/scrolbar.h" #include "wx/scrolbar.h"
#endif #endif
#if USE_COMBOBOX #if wxUSE_COMBOBOX
#include "wx/combobox.h" #include "wx/combobox.h"
#endif #endif
@@ -58,7 +58,7 @@
#include "wx/log.h" #include "wx/log.h"
#if USE_WX_RESOURCES #if wxUSE_WX_RESOURCES
#include <ctype.h> #include <ctype.h>
#include <math.h> #include <math.h>
@@ -389,7 +389,7 @@ wxControl *wxResourceTable::CreateItem(wxWindow *parent, wxItemResource *childRe
bitmap = wxResourceCreateBitmap(childResource->GetValue4(), (wxResourceTable *)this); bitmap = wxResourceCreateBitmap(childResource->GetValue4(), (wxResourceTable *)this);
childResource->SetBitmap(bitmap); childResource->SetBitmap(bitmap);
} }
#if USE_BITMAP_MESSAGE #if wxUSE_BITMAP_MESSAGE
if (bitmap) if (bitmap)
control = new wxStaticBitmap(parent, id, *bitmap, control = new wxStaticBitmap(parent, id, *bitmap,
wxPoint(childResource->GetX(), childResource->GetY()), wxPoint(childResource->GetX(), childResource->GetY()),
@@ -421,7 +421,7 @@ wxControl *wxResourceTable::CreateItem(wxWindow *parent, wxItemResource *childRe
((wxCheckBox *)control)->SetValue((childResource->GetValue1() != 0)); ((wxCheckBox *)control)->SetValue((childResource->GetValue1() != 0));
} }
#if USE_GAUGE #if wxUSE_GAUGE
else if (itemType == wxString("wxGauge")) else if (itemType == wxString("wxGauge"))
{ {
control = new wxGauge(parent, id, (int)childResource->GetValue2(), control = new wxGauge(parent, id, (int)childResource->GetValue2(),
@@ -432,7 +432,7 @@ wxControl *wxResourceTable::CreateItem(wxWindow *parent, wxItemResource *childRe
((wxGauge *)control)->SetValue((int)childResource->GetValue1()); ((wxGauge *)control)->SetValue((int)childResource->GetValue1());
} }
#endif #endif
#if USE_RADIOBUTTON #if wxUSE_RADIOBUTTON
else if (itemType == wxString("wxRadioButton")) else if (itemType == wxString("wxRadioButton"))
{ {
control = new wxRadioButton(parent, id, childResource->GetTitle(), // (int)childResource->GetValue1(), control = new wxRadioButton(parent, id, childResource->GetTitle(), // (int)childResource->GetValue1(),
@@ -441,7 +441,7 @@ wxControl *wxResourceTable::CreateItem(wxWindow *parent, wxItemResource *childRe
childResource->GetStyle(), wxDefaultValidator, childResource->GetName()); childResource->GetStyle(), wxDefaultValidator, childResource->GetName());
} }
#endif #endif
#if USE_SCROLLBAR #if wxUSE_SCROLLBAR
else if (itemType == wxString("wxScrollBar")) else if (itemType == wxString("wxScrollBar"))
{ {
control = new wxScrollBar(parent, id, control = new wxScrollBar(parent, id,
@@ -521,7 +521,7 @@ wxControl *wxResourceTable::CreateItem(wxWindow *parent, wxItemResource *childRe
if (strings) if (strings)
delete[] strings; delete[] strings;
} }
#if USE_COMBOBOX #if wxUSE_COMBOBOX
else if (itemType == wxString("wxComboBox")) else if (itemType == wxString("wxComboBox"))
{ {
wxStringList *stringList = childResource->GetStringValues(); wxStringList *stringList = childResource->GetStringValues();
@@ -890,7 +890,7 @@ wxItemResource *wxResourceInterpretControl(wxResourceTable& table, PrologExpr *e
controlItem->SetFont(wxResourceInterpretFontSpec(expr->Nth(count))); controlItem->SetFont(wxResourceInterpretFontSpec(expr->Nth(count)));
} }
} }
#if USE_RADIOBUTTON #if wxUSE_RADIOBUTTON
else if (controlType == "wxRadioButton") else if (controlType == "wxRadioButton")
{ {
// Check for default value // Check for default value
@@ -1089,7 +1089,7 @@ wxItemResource *wxResourceInterpretControl(wxResourceTable& table, PrologExpr *e
} }
} }
} }
#if USE_COMBOBOX #if wxUSE_COMBOBOX
else if (controlType == "wxComboBox") else if (controlType == "wxComboBox")
{ {
PrologExpr *textValue = expr->Nth(count); PrologExpr *textValue = expr->Nth(count);
@@ -2189,7 +2189,7 @@ wxBitmap *wxResourceCreateBitmap(char *resource, wxResourceTable *table)
} }
case wxBITMAP_TYPE_XPM_DATA: case wxBITMAP_TYPE_XPM_DATA:
{ {
#if (defined(__WXGTK__)) || (defined(__WXMSW__) && USE_XPM_IN_MSW) #if (defined(__WXGTK__)) || (defined(__WXMSW__) && wxUSE_XPM_IN_MSW)
wxItemResource *item = table->FindResource(name); wxItemResource *item = table->FindResource(name);
if (!item) if (!item)
{ {
@@ -2358,7 +2358,7 @@ wxIcon *wxResourceCreateIcon(char *resource, wxResourceTable *table)
{ {
// *** XPM ICON NOT YET IMPLEMENTED IN WXWINDOWS *** // *** XPM ICON NOT YET IMPLEMENTED IN WXWINDOWS ***
/* /*
#if (defined(__WXGTK__)) || (defined(__WXMSW__) && USE_XPM_IN_MSW) #if (defined(__WXGTK__)) || (defined(__WXMSW__) && wxUSE_XPM_IN_MSW)
wxItemResource *item = table->FindResource(name); wxItemResource *item = table->FindResource(name);
if (!item) if (!item)
{ {
@@ -2938,4 +2938,4 @@ wxControl *wxWindow::CreateItem(const wxItemResource *resource, const wxResource
return table->CreateItem((wxWindow *)this, (wxItemResource *)resource); return table->CreateItem((wxWindow *)this, (wxItemResource *)resource);
} }
#endif // USE_WX_RESOURCES #endif // wxUSE_WX_RESOURCES

View File

@@ -363,7 +363,7 @@ wxInputStream& wxInputStream::operator>>(float& f)
return *this; return *this;
} }
#if USE_SERIAL #if wxUSE_SERIAL
wxInputStream& wxInputStream::operator>>(wxObject *& obj) wxInputStream& wxInputStream::operator>>(wxObject *& obj)
{ {
wxObjectInputStream obj_s(*this); wxObjectInputStream obj_s(*this);
@@ -544,7 +544,7 @@ wxOutputStream& wxOutputStream::operator<<(double f)
return Write(strfloat, strfloat.Len()); return Write(strfloat, strfloat.Len());
} }
#if USE_SERIAL #if wxUSE_SERIAL
wxOutputStream& wxOutputStream::operator<<(wxObject& obj) wxOutputStream& wxOutputStream::operator<<(wxObject& obj)
{ {
wxObjectOutputStream obj_s(*this); wxObjectOutputStream obj_s(*this);

View File

@@ -29,7 +29,7 @@
#include <windows.h> #include <windows.h>
#endif #endif
#if USE_TOOLBAR #if wxUSE_TOOLBAR
#include "wx/tbarbase.h" #include "wx/tbarbase.h"
@@ -615,7 +615,7 @@ void wxToolBarBase::AdjustScrollbars(void)
// Default OnSize resets scrollbars, if any // Default OnSize resets scrollbars, if any
void wxToolBarBase::OnSize(wxSizeEvent& event) void wxToolBarBase::OnSize(wxSizeEvent& event)
{ {
#if USE_CONSTRAINTS #if wxUSE_CONSTRAINTS
if (GetAutoLayout()) if (GetAutoLayout())
Layout(); Layout();
#endif #endif

View File

@@ -24,7 +24,7 @@
#include "wx/wx.h" #include "wx/wx.h"
#endif #endif
#if USE_TOOLBAR #if wxUSE_TOOLBAR
#include "wx/tbarsmpl.h" #include "wx/tbarsmpl.h"

View File

@@ -27,14 +27,14 @@ seconds since January 1, 1901, GMT.
#include "wx/setup.h" #include "wx/setup.h"
#if USE_TIMEDATE #if wxUSE_TIMEDATE
#include "wx/time.h" #include "wx/time.h"
#include "wx/date.h" #include "wx/date.h"
#include "wx/utils.h" #include "wx/utils.h"
#include <wx/intl.h> #include <wx/intl.h>
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>

View File

@@ -28,7 +28,7 @@
#include "wx/frame.h" #include "wx/frame.h"
#endif #endif
#if USE_IOSTREAMH #if wxUSE_IOSTREAMH
#include <iostream.h> #include <iostream.h>
#else #else
#include <iostream> #include <iostream>

View File

@@ -33,9 +33,9 @@
// Set to zero to use no double-buffering // Set to zero to use no double-buffering
#ifdef __WXMSW__ #ifdef __WXMSW__
#define USE_DOUBLE_BUFFERING 1 #define wxUSE_DOUBLE_BUFFERING 1
#else #else
#define USE_DOUBLE_BUFFERING 0 #define wxUSE_DOUBLE_BUFFERING 0
#endif #endif
#define wxGRID_DRAG_NONE 0 #define wxGRID_DRAG_NONE 0
@@ -418,7 +418,7 @@ void wxGenericGrid::OnPaint(wxPaintEvent& WXUNUSED(event))
int w, h; int w, h;
GetClientSize(&w, &h); GetClientSize(&w, &h);
bool useDoubleBuffering = (bool) USE_DOUBLE_BUFFERING; bool useDoubleBuffering = (bool) wxUSE_DOUBLE_BUFFERING;
if (useDoubleBuffering) if (useDoubleBuffering)
{ {
// Reuse the old bitmap if possible // Reuse the old bitmap if possible

View File

@@ -26,7 +26,7 @@
#include "wx/generic/helpxlp.h" #include "wx/generic/helpxlp.h"
#if USE_HELP #if wxUSE_HELP
#include <time.h> #include <time.h>
#ifdef __X__ #ifdef __X__
@@ -263,4 +263,4 @@ bool wxXLPHelpConnection::OnDisconnect(void)
return TRUE; return TRUE;
} }
#endif // USE_HELP #endif // wxUSE_HELP

View File

@@ -333,7 +333,7 @@ void wxScrolledWindow::AdjustScrollbars(void)
// Default OnSize resets scrollbars, if any // Default OnSize resets scrollbars, if any
void wxScrolledWindow::OnSize(wxSizeEvent& WXUNUSED(event)) void wxScrolledWindow::OnSize(wxSizeEvent& WXUNUSED(event))
{ {
#if USE_CONSTRAINTS #if wxUSE_CONSTRAINTS
if (GetAutoLayout()) if (GetAutoLayout())
Layout(); Layout();
#endif #endif

View File

@@ -175,20 +175,4 @@ LIB_C_SRC=\
gdk_imlib/misc.c \ gdk_imlib/misc.c \
gdk_imlib/rend.c \ gdk_imlib/rend.c \
gdk_imlib/save.c \ gdk_imlib/save.c \
gdk_imlib/utils.c \ gdk_imlib/utils.c
\
iodbc/dlf.c \
iodbc/dlproc.c \
iodbc/herr.c \
iodbc/henv.c \
iodbc/hdbc.c \
iodbc/hstmt.c \
iodbc/connect.c \
iodbc/prepare.c \
iodbc/result.c \
iodbc/execute.c \
iodbc/fetch.c \
iodbc/info.c \
iodbc/catalog.c \
iodbc/misc.c \
iodbc/itrace.c

View File

@@ -25,7 +25,7 @@
#include "unistd.h" #include "unistd.h"
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
#include "../gdk_imlib/gdk_imlib.h" #include "../gdk_imlib/gdk_imlib.h"
#endif #endif
@@ -243,7 +243,7 @@ void wxApp::CommonInit(void)
{ {
/* /*
#if USE_RESOURCES #if wxUSE_RESOURCES
(void) wxGetResource("wxWindows", "OsVersion", &wxOsVersion); (void) wxGetResource("wxWindows", "OsVersion", &wxOsVersion);
#endif #endif
*/ */
@@ -262,7 +262,7 @@ void wxApp::CommonInit(void)
wxInitializeResourceSystem(); wxInitializeResourceSystem();
// For PostScript printing // For PostScript printing
#if USE_POSTSCRIPT #if wxUSE_POSTSCRIPT
wxInitializePrintSetupData(); wxInitializePrintSetupData();
wxThePrintPaperDatabase = new wxPrintPaperDatabase; wxThePrintPaperDatabase = new wxPrintPaperDatabase;
wxThePrintPaperDatabase->CreateDatabase(); wxThePrintPaperDatabase->CreateDatabase();
@@ -310,7 +310,7 @@ int wxEntry( int argc, char *argv[] )
wxClassInfo::InitializeClasses(); wxClassInfo::InitializeClasses();
#if (WXDEBUG && USE_MEMORY_TRACING) || USE_DEBUG_CONTEXT #if (WXDEBUG && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
streambuf* sBuf = new wxDebugStreamBuf; streambuf* sBuf = new wxDebugStreamBuf;
ostream* oStr = new ostream(sBuf) ; ostream* oStr = new ostream(sBuf) ;
@@ -352,7 +352,7 @@ int wxEntry( int argc, char *argv[] )
gtk_init( &argc, &argv ); gtk_init( &argc, &argv );
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
gdk_imlib_init(); gdk_imlib_init();
@@ -393,7 +393,7 @@ int wxEntry( int argc, char *argv[] )
delete[] wxBuffer; delete[] wxBuffer;
#if (WXDEBUG && USE_MEMORY_TRACING) || USE_DEBUG_CONTEXT #if (WXDEBUG && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
if (wxDebugContext::CountObjectsLeft() > 0) if (wxDebugContext::CountObjectsLeft() > 0)
{ {

View File

@@ -16,7 +16,7 @@
#include "wx/icon.h" #include "wx/icon.h"
#include "gdk/gdkprivate.h" #include "gdk/gdkprivate.h"
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
#include "../gdk_imlib/gdk_imlib.h" #include "../gdk_imlib/gdk_imlib.h"
#include "gdk/gdkx.h" // GDK_DISPLAY #include "gdk/gdkx.h" // GDK_DISPLAY
@@ -50,7 +50,7 @@ wxMask::wxMask( const wxBitmap& WXUNUSED(bitmap) )
wxMask::~wxMask(void) wxMask::~wxMask(void)
{ {
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
// do not delete the mask, gdk_imlib does it for you // do not delete the mask, gdk_imlib does it for you
#else #else
if (m_bitmap) gdk_bitmap_unref( m_bitmap ); if (m_bitmap) gdk_bitmap_unref( m_bitmap );
@@ -80,7 +80,7 @@ class wxBitmapRefData: public wxObjectRefData
int m_width; int m_width;
int m_height; int m_height;
int m_bpp; int m_bpp;
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
GdkImlibImage *m_image; GdkImlibImage *m_image;
#endif #endif
wxPalette *m_palette; wxPalette *m_palette;
@@ -95,14 +95,14 @@ wxBitmapRefData::wxBitmapRefData(void)
m_height = 0; m_height = 0;
m_bpp = 0; m_bpp = 0;
m_palette = (wxPalette *) NULL; m_palette = (wxPalette *) NULL;
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
m_image = (GdkImlibImage *) NULL; m_image = (GdkImlibImage *) NULL;
#endif #endif
} }
wxBitmapRefData::~wxBitmapRefData(void) wxBitmapRefData::~wxBitmapRefData(void)
{ {
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
if (m_pixmap) gdk_imlib_free_pixmap( m_pixmap ); if (m_pixmap) gdk_imlib_free_pixmap( m_pixmap );
if (m_image) gdk_imlib_kill_image( m_image ); if (m_image) gdk_imlib_kill_image( m_image );
#else #else
@@ -141,7 +141,7 @@ wxBitmap::wxBitmap( char **bits )
{ {
m_refData = new wxBitmapRefData(); m_refData = new wxBitmapRefData();
#ifndef USE_GDK_IMLIB #ifndef wxUSE_GDK_IMLIB
GdkBitmap *mask = NULL; GdkBitmap *mask = NULL;
@@ -323,7 +323,7 @@ void wxBitmap::Resize( int height, int width )
return; return;
} }
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
if (M_BMPDATA->m_bitmap) if (M_BMPDATA->m_bitmap)
{ {
@@ -360,7 +360,7 @@ bool wxBitmap::SaveFile( const wxString &name, int WXUNUSED(type),
return FALSE; return FALSE;
} }
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
if (M_BMPDATA->m_bitmap) if (M_BMPDATA->m_bitmap)
{ {
@@ -383,7 +383,7 @@ bool wxBitmap::SaveFile( const wxString &name, int WXUNUSED(type),
bool wxBitmap::LoadFile( const wxString &name, int WXUNUSED(type) ) bool wxBitmap::LoadFile( const wxString &name, int WXUNUSED(type) )
{ {
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
UnRef(); UnRef();
m_refData = new wxBitmapRefData(); m_refData = new wxBitmapRefData();
@@ -465,7 +465,7 @@ void wxBitmap::RecreateImage(void)
return; return;
} }
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
DestroyImage(); DestroyImage();
@@ -520,7 +520,7 @@ void wxBitmap::Render(void)
return; return;
} }
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
if (!M_BMPDATA->m_image) RecreateImage(); if (!M_BMPDATA->m_image) RecreateImage();

View File

@@ -15,7 +15,7 @@
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
#include "../gdk_imlib/gdk_imlib.h" #include "../gdk_imlib/gdk_imlib.h"
#endif #endif
@@ -208,7 +208,7 @@ void wxColour::CalcPixel( GdkColormap *cmap )
if ((M_COLDATA->m_hasPixel) && (M_COLDATA->m_colormap == cmap)) return; if ((M_COLDATA->m_hasPixel) && (M_COLDATA->m_colormap == cmap)) return;
M_COLDATA->FreeColour(); M_COLDATA->FreeColour();
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
int r = M_COLDATA->m_color.red >> SHIFT; int r = M_COLDATA->m_color.red >> SHIFT;
int g = M_COLDATA->m_color.green >> SHIFT; int g = M_COLDATA->m_color.green >> SHIFT;

View File

@@ -168,7 +168,7 @@ const char *wxUserResourceStr = "TEXT";
#endif #endif
#if USE_SHARED_LIBRARY #if wxUSE_SHARED_LIBRARY
/* /*
* For wxWindows to be made into a dynamic library (e.g. Sun), * For wxWindows to be made into a dynamic library (e.g. Sun),
* all IMPLEMENT_... macros must be in one place. * all IMPLEMENT_... macros must be in one place.
@@ -192,13 +192,13 @@ IMPLEMENT_DYNAMIC_CLASS(wxBitmapCheckBox, wxCheckBox)
#include "wx/choice.h" #include "wx/choice.h"
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
#if USE_CLIPBOARD #if wxUSE_CLIPBOARD
#include "wx/clipbrd.h" #include "wx/clipbrd.h"
IMPLEMENT_DYNAMIC_CLASS(wxClipboard, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxClipboard, wxObject)
IMPLEMENT_ABSTRACT_CLASS(wxClipboardClient, wxObject) IMPLEMENT_ABSTRACT_CLASS(wxClipboardClient, wxObject)
#endif #endif
#if USE_COMBOBOX #if wxUSE_COMBOBOX
#include "wx/combobox.h" #include "wx/combobox.h"
IMPLEMENT_DYNAMIC_CLASS(wxComboBox, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxComboBox, wxControl)
#endif #endif
@@ -238,7 +238,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPrintData, wxObject)
#include "wx/colordlg.h" #include "wx/colordlg.h"
#include "wx/fontdlg.h" #include "wx/fontdlg.h"
#if !defined(wx_msw) || USE_GENERIC_DIALOGS_IN_MSW #if !defined(wx_msw) || wxUSE_GENERIC_DIALOGS_IN_MSW
#include "wx/generic/colordlg.h" #include "wx/generic/colordlg.h"
#include "wx/generic/fontdlg.h" #include "wx/generic/fontdlg.h"
IMPLEMENT_DYNAMIC_CLASS(wxGenericColourDialog, wxDialog) IMPLEMENT_DYNAMIC_CLASS(wxGenericColourDialog, wxDialog)
@@ -273,7 +273,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxIntPoint, wxObject)
#endif #endif
*/ */
#if defined(wx_x) || (defined(wx_msw) && USE_PORTABLE_FONTS_IN_MSW) #if defined(wx_x) || (defined(wx_msw) && wxUSE_PORTABLE_FONTS_IN_MSW)
IMPLEMENT_DYNAMIC_CLASS(wxFontNameDirectory, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxFontNameDirectory, wxObject)
#endif #endif
@@ -289,7 +289,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxNode, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxList, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxList, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxStringList, wxList) IMPLEMENT_DYNAMIC_CLASS(wxStringList, wxList)
#if USE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
#include "wx/print.h" #include "wx/print.h"
IMPLEMENT_DYNAMIC_CLASS(wxPrintDialog, wxDialog) IMPLEMENT_DYNAMIC_CLASS(wxPrintDialog, wxDialog)
IMPLEMENT_DYNAMIC_CLASS(wxPrinterBase, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxPrinterBase, wxObject)
@@ -306,7 +306,7 @@ IMPLEMENT_CLASS(wxGenericPrintDialog, wxDialog)
IMPLEMENT_CLASS(wxGenericPrintSetupDialog, wxDialog) IMPLEMENT_CLASS(wxGenericPrintSetupDialog, wxDialog)
#endif #endif
#if USE_POSTSCRIPT #if wxUSE_POSTSCRIPT
#include "wx/postscrp.h" #include "wx/postscrp.h"
IMPLEMENT_DYNAMIC_CLASS(wxPostScriptDC, wxDC) IMPLEMENT_DYNAMIC_CLASS(wxPostScriptDC, wxDC)
IMPLEMENT_DYNAMIC_CLASS(wxPrintSetupData, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxPrintSetupData, wxObject)
@@ -315,7 +315,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPrintPaperType, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxPrintPaperDatabase, wxList) IMPLEMENT_DYNAMIC_CLASS(wxPrintPaperDatabase, wxList)
#endif #endif
#if USE_WX_RESOURCES #if wxUSE_WX_RESOURCES
#include "wx/resource.h" #include "wx/resource.h"
IMPLEMENT_DYNAMIC_CLASS(wxItemResource, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxItemResource, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxResourceTable, wxHashTable) IMPLEMENT_DYNAMIC_CLASS(wxResourceTable, wxHashTable)
@@ -352,12 +352,12 @@ IMPLEMENT_DYNAMIC_CLASS(wxPathList, wxList)
#include "wx/process.h" #include "wx/process.h"
IMPLEMENT_DYNAMIC_CLASS(wxProcess, wxEvtHandler) IMPLEMENT_DYNAMIC_CLASS(wxProcess, wxEvtHandler)
#if USE_TIMEDATE #if wxUSE_TIMEDATE
#include "wx/date.h" #include "wx/date.h"
IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject)
#endif #endif
#if USE_DOC_VIEW_ARCHITECTURE #if wxUSE_DOC_VIEW_ARCHITECTURE
#include "wx/docview.h" #include "wx/docview.h"
//IMPLEMENT_ABSTRACT_CLASS(wxDocItem, wxObject) //IMPLEMENT_ABSTRACT_CLASS(wxDocItem, wxObject)
IMPLEMENT_ABSTRACT_CLASS(wxDocument, wxEvtHandler) IMPLEMENT_ABSTRACT_CLASS(wxDocument, wxEvtHandler)
@@ -366,7 +366,7 @@ IMPLEMENT_ABSTRACT_CLASS(wxDocTemplate, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxDocManager, wxEvtHandler) IMPLEMENT_DYNAMIC_CLASS(wxDocManager, wxEvtHandler)
IMPLEMENT_CLASS(wxDocChildFrame, wxFrame) IMPLEMENT_CLASS(wxDocChildFrame, wxFrame)
IMPLEMENT_CLASS(wxDocParentFrame, wxFrame) IMPLEMENT_CLASS(wxDocParentFrame, wxFrame)
#if USE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
IMPLEMENT_DYNAMIC_CLASS(wxDocPrintout, wxPrintout) IMPLEMENT_DYNAMIC_CLASS(wxDocPrintout, wxPrintout)
#endif #endif
IMPLEMENT_CLASS(wxCommand, wxObject) IMPLEMENT_CLASS(wxCommand, wxObject)
@@ -374,7 +374,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxCommandProcessor, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxFileHistory, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxFileHistory, wxObject)
#endif #endif
#if USE_CONSTRAINTS #if wxUSE_CONSTRAINTS
#include "wx/layout.h" #include "wx/layout.h"
IMPLEMENT_DYNAMIC_CLASS(wxIndividualLayoutConstraint, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxIndividualLayoutConstraint, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxLayoutConstraints, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxLayoutConstraints, wxObject)
@@ -382,7 +382,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxSizer, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxRowColSizer, wxSizer) IMPLEMENT_DYNAMIC_CLASS(wxRowColSizer, wxSizer)
#endif #endif
#if USE_TOOLBAR #if wxUSE_TOOLBAR
#include "wx/tbarbase.h" #include "wx/tbarbase.h"
IMPLEMENT_DYNAMIC_CLASS(wxToolBarTool, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxToolBarTool, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxToolBarBase, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxToolBarBase, wxControl)
@@ -453,7 +453,7 @@ BEGIN_EVENT_TABLE(wxStatusBar, wxWindow)
EVT_SYS_COLOUR_CHANGED(wxStatusBar::OnSysColourChanged) EVT_SYS_COLOUR_CHANGED(wxStatusBar::OnSysColourChanged)
END_EVENT_TABLE() END_EVENT_TABLE()
#if USE_TIMEDATE #if wxUSE_TIMEDATE
#include "wx/time.h" #include "wx/time.h"
IMPLEMENT_DYNAMIC_CLASS(wxTime, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxTime, wxObject)
#endif #endif
@@ -491,7 +491,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxICOResourceHandler, wxBitmapHandler)
#include "wx/statbox.h" #include "wx/statbox.h"
IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl)
#if USE_IPC #if wxUSE_IPC
#include "wx/dde.h" #include "wx/dde.h"
IMPLEMENT_ABSTRACT_CLASS(wxDDEObject, wxObject) IMPLEMENT_ABSTRACT_CLASS(wxDDEObject, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxDDEServer, wxDDEObject) IMPLEMENT_DYNAMIC_CLASS(wxDDEServer, wxDDEObject)
@@ -516,7 +516,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxMenuBar, wxWindow)
IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl)
IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
#if USE_METAFILE #if wxUSE_METAFILE
#include "wx/metafile.h" #include "wx/metafile.h"
IMPLEMENT_DYNAMIC_CLASS(wxMetaFile, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxMetaFile, wxObject)
IMPLEMENT_ABSTRACT_CLASS(wxMetaFileDC, wxDC) IMPLEMENT_ABSTRACT_CLASS(wxMetaFileDC, wxDC)
@@ -568,7 +568,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPanel, wxWindow)
#include "wx/dirdlg.h" #include "wx/dirdlg.h"
#include "wx/choicdlg.h" #include "wx/choicdlg.h"
#if !defined(wx_msw) || USE_GENERIC_DIALOGS_IN_MSW #if !defined(wx_msw) || wxUSE_GENERIC_DIALOGS_IN_MSW
#include "wx/generic/msgdlgg.h" #include "wx/generic/msgdlgg.h"
IMPLEMENT_CLASS(wxGenericMessageDialog, wxDialog) IMPLEMENT_CLASS(wxGenericMessageDialog, wxDialog)
#endif #endif
@@ -582,7 +582,7 @@ IMPLEMENT_CLASS(wxDirDialog, wxDialog)
IMPLEMENT_CLASS(wxMessageDialog) IMPLEMENT_CLASS(wxMessageDialog)
#endif #endif
#if USE_GAUGE #if wxUSE_GAUGE
#ifdef wx_motif #ifdef wx_motif
#include "../../contrib/xmgauge/gauge.h" #include "../../contrib/xmgauge/gauge.h"
#endif #endif
@@ -705,7 +705,7 @@ BEGIN_EVENT_TABLE(wxControl, wxWindow)
EVT_ERASE_BACKGROUND(wxControl::OnEraseBackground) EVT_ERASE_BACKGROUND(wxControl::OnEraseBackground)
END_EVENT_TABLE() END_EVENT_TABLE()
#if !defined(wx_msw) || USE_GENERIC_DIALOGS_IN_MSW #if !defined(wx_msw) || wxUSE_GENERIC_DIALOGS_IN_MSW
BEGIN_EVENT_TABLE(wxGenericMessageDialog, wxDialog) BEGIN_EVENT_TABLE(wxGenericMessageDialog, wxDialog)
EVT_BUTTON(wxID_YES, wxGenericMessageDialog::OnYes) EVT_BUTTON(wxID_YES, wxGenericMessageDialog::OnYes)
EVT_BUTTON(wxID_NO, wxGenericMessageDialog::OnNo) EVT_BUTTON(wxID_NO, wxGenericMessageDialog::OnNo)

View File

@@ -14,7 +14,7 @@
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
#include "../gdk_imlib/gdk_imlib.h" #include "../gdk_imlib/gdk_imlib.h"
#endif #endif
@@ -28,7 +28,7 @@ wxMemoryDC::wxMemoryDC(void)
{ {
m_ok = FALSE; m_ok = FALSE;
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
m_cmap = gdk_imlib_get_colormap(); m_cmap = gdk_imlib_get_colormap();
#else #else
m_cmap = gdk_colormap_get_system(); m_cmap = gdk_colormap_get_system();
@@ -39,7 +39,7 @@ wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
{ {
m_ok = FALSE; m_ok = FALSE;
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
m_cmap = gdk_imlib_get_colormap(); m_cmap = gdk_imlib_get_colormap();
#else #else
m_cmap = gdk_colormap_get_system(); m_cmap = gdk_colormap_get_system();

View File

@@ -94,13 +94,22 @@ bool wxPalette::Ok(void) const
bool wxPalette::Create( int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue) bool wxPalette::Create( int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue)
{ {
wxFAIL_MSG("not implemented");
return FALSE;
}; };
int wxPalette::GetPixel( const unsigned char red, const unsigned char green, const unsigned char blue ) const int wxPalette::GetPixel( const unsigned char red, const unsigned char green, const unsigned char blue ) const
{ {
wxFAIL_MSG("not implemented");
return 0;
}; };
bool wxPalette::GetRGB( int pixel, unsigned char *red, unsigned char *green, unsigned char *blue ) const bool wxPalette::GetRGB( int pixel, unsigned char *red, unsigned char *green, unsigned char *blue ) const
{ {
wxFAIL_MSG("not implemented");
return 0;
}; };

View File

@@ -16,7 +16,7 @@
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/log.h" #include "wx/log.h"
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
#include "../gdk_imlib/gdk_imlib.h" #include "../gdk_imlib/gdk_imlib.h"
#endif #endif

View File

@@ -116,7 +116,11 @@
extern wxList wxPendingDelete; extern wxList wxPendingDelete;
extern wxList wxTopLevelWindows; extern wxList wxTopLevelWindows;
extern bool g_blockEventsOnDrag; extern bool g_blockEventsOnDrag;
bool g_capturing = FALSE; static bool g_capturing = FALSE;
// hack: we need something to pass to gtk_menu_popup, so we store the time of
// the last click here
static guint32 gs_timeLastClick = 0;
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// "expose_event" (of m_wxwindow, not of m_widget) // "expose_event" (of m_wxwindow, not of m_widget)
@@ -129,7 +133,7 @@ static void gtk_window_expose_callback( GtkWidget *WXUNUSED(widget), GdkEventExp
win->m_updateRegion.Union( gdk_event->area.x, win->m_updateRegion.Union( gdk_event->area.x,
gdk_event->area.y, gdk_event->area.y,
gdk_event->area.width, gdk_event->area.width,
gdk_event->area.height ); gdk_event->area.height );
if (gdk_event->count > 0) return; if (gdk_event->count > 0) return;
@@ -284,7 +288,7 @@ static gint gtk_window_key_press_callback( GtkWidget *widget, GdkEventKey *gdk_e
{ {
wxCommandEvent command_event( wxEVT_COMMAND_MENU_SELECTED, command ); wxCommandEvent command_event( wxEVT_COMMAND_MENU_SELECTED, command );
ret = ancestor->GetEventHandler()->ProcessEvent( command_event ); ret = ancestor->GetEventHandler()->ProcessEvent( command_event );
break; break;
} }
ancestor = ancestor->GetParent(); ancestor = ancestor->GetParent();
} }
@@ -387,8 +391,8 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, GdkEventButton
wxWindow *child = (wxWindow*)node->Data(); wxWindow *child = (wxWindow*)node->Data();
if ((child->m_x <= event.m_x) && if ((child->m_x <= event.m_x) &&
(child->m_y <= event.m_y) && (child->m_y <= event.m_y) &&
(child->m_x+child->m_width >= event.m_x) && (child->m_x+child->m_width >= event.m_x) &&
(child->m_y+child->m_height >= event.m_y)) (child->m_y+child->m_height >= event.m_y))
{ {
win = child; win = child;
event.m_x -= child->m_x; event.m_x -= child->m_x;
@@ -401,6 +405,8 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, GdkEventButton
event.SetEventObject( win ); event.SetEventObject( win );
gs_timeLastClick = gdk_event->time;
if (win->GetEventHandler()->ProcessEvent( event )) if (win->GetEventHandler()->ProcessEvent( event ))
gtk_signal_emit_stop_by_name( GTK_OBJECT(widget), "button_press_event" ); gtk_signal_emit_stop_by_name( GTK_OBJECT(widget), "button_press_event" );
@@ -457,8 +463,8 @@ static gint gtk_window_button_release_callback( GtkWidget *widget, GdkEventButto
wxWindow *child = (wxWindow*)node->Data(); wxWindow *child = (wxWindow*)node->Data();
if ((child->m_x <= event.m_x) && if ((child->m_x <= event.m_x) &&
(child->m_y <= event.m_y) && (child->m_y <= event.m_y) &&
(child->m_x+child->m_width >= event.m_x) && (child->m_x+child->m_width >= event.m_x) &&
(child->m_y+child->m_height >= event.m_y)) (child->m_y+child->m_height >= event.m_y))
{ {
win = child; win = child;
event.m_x -= child->m_x; event.m_x -= child->m_x;
@@ -519,8 +525,8 @@ static gint gtk_window_motion_notify_callback( GtkWidget *widget, GdkEventMotion
wxWindow *child = (wxWindow*)node->Data(); wxWindow *child = (wxWindow*)node->Data();
if ((child->m_x <= event.m_x) && if ((child->m_x <= event.m_x) &&
(child->m_y <= event.m_y) && (child->m_y <= event.m_y) &&
(child->m_x+child->m_width >= event.m_x) && (child->m_x+child->m_width >= event.m_x) &&
(child->m_y+child->m_height >= event.m_y)) (child->m_y+child->m_height >= event.m_y))
{ {
win = child; win = child;
event.m_x -= child->m_x; event.m_x -= child->m_x;
@@ -2053,7 +2059,15 @@ bool wxWindow::PopupMenu( wxMenu *menu, int WXUNUSED(x), int WXUNUSED(y) )
wxASSERT_MSG( (m_widget != NULL), "invalid window" ); wxASSERT_MSG( (m_widget != NULL), "invalid window" );
SetInvokingWindow( menu, this ); SetInvokingWindow( menu, this );
gtk_menu_popup( GTK_MENU(menu->m_menu), (GtkWidget *) NULL, (GtkWidget *) NULL, (GtkMenuPositionFunc) NULL, NULL, 0, 0 ); gtk_menu_popup(
GTK_MENU(menu->m_menu),
(GtkWidget *)NULL, // parent menu shell
(GtkWidget *)NULL, // parent menu item
(GtkMenuPositionFunc)NULL,
NULL, // client data
0, // button used to activate it
0//gs_timeLastClick // the time of activation
);
return TRUE; return TRUE;
} }

View File

@@ -25,7 +25,7 @@
#include "unistd.h" #include "unistd.h"
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
#include "../gdk_imlib/gdk_imlib.h" #include "../gdk_imlib/gdk_imlib.h"
#endif #endif
@@ -243,7 +243,7 @@ void wxApp::CommonInit(void)
{ {
/* /*
#if USE_RESOURCES #if wxUSE_RESOURCES
(void) wxGetResource("wxWindows", "OsVersion", &wxOsVersion); (void) wxGetResource("wxWindows", "OsVersion", &wxOsVersion);
#endif #endif
*/ */
@@ -262,7 +262,7 @@ void wxApp::CommonInit(void)
wxInitializeResourceSystem(); wxInitializeResourceSystem();
// For PostScript printing // For PostScript printing
#if USE_POSTSCRIPT #if wxUSE_POSTSCRIPT
wxInitializePrintSetupData(); wxInitializePrintSetupData();
wxThePrintPaperDatabase = new wxPrintPaperDatabase; wxThePrintPaperDatabase = new wxPrintPaperDatabase;
wxThePrintPaperDatabase->CreateDatabase(); wxThePrintPaperDatabase->CreateDatabase();
@@ -310,7 +310,7 @@ int wxEntry( int argc, char *argv[] )
wxClassInfo::InitializeClasses(); wxClassInfo::InitializeClasses();
#if (WXDEBUG && USE_MEMORY_TRACING) || USE_DEBUG_CONTEXT #if (WXDEBUG && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
streambuf* sBuf = new wxDebugStreamBuf; streambuf* sBuf = new wxDebugStreamBuf;
ostream* oStr = new ostream(sBuf) ; ostream* oStr = new ostream(sBuf) ;
@@ -352,7 +352,7 @@ int wxEntry( int argc, char *argv[] )
gtk_init( &argc, &argv ); gtk_init( &argc, &argv );
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
gdk_imlib_init(); gdk_imlib_init();
@@ -393,7 +393,7 @@ int wxEntry( int argc, char *argv[] )
delete[] wxBuffer; delete[] wxBuffer;
#if (WXDEBUG && USE_MEMORY_TRACING) || USE_DEBUG_CONTEXT #if (WXDEBUG && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
if (wxDebugContext::CountObjectsLeft() > 0) if (wxDebugContext::CountObjectsLeft() > 0)
{ {

View File

@@ -16,7 +16,7 @@
#include "wx/icon.h" #include "wx/icon.h"
#include "gdk/gdkprivate.h" #include "gdk/gdkprivate.h"
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
#include "../gdk_imlib/gdk_imlib.h" #include "../gdk_imlib/gdk_imlib.h"
#include "gdk/gdkx.h" // GDK_DISPLAY #include "gdk/gdkx.h" // GDK_DISPLAY
@@ -50,7 +50,7 @@ wxMask::wxMask( const wxBitmap& WXUNUSED(bitmap) )
wxMask::~wxMask(void) wxMask::~wxMask(void)
{ {
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
// do not delete the mask, gdk_imlib does it for you // do not delete the mask, gdk_imlib does it for you
#else #else
if (m_bitmap) gdk_bitmap_unref( m_bitmap ); if (m_bitmap) gdk_bitmap_unref( m_bitmap );
@@ -80,7 +80,7 @@ class wxBitmapRefData: public wxObjectRefData
int m_width; int m_width;
int m_height; int m_height;
int m_bpp; int m_bpp;
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
GdkImlibImage *m_image; GdkImlibImage *m_image;
#endif #endif
wxPalette *m_palette; wxPalette *m_palette;
@@ -95,14 +95,14 @@ wxBitmapRefData::wxBitmapRefData(void)
m_height = 0; m_height = 0;
m_bpp = 0; m_bpp = 0;
m_palette = (wxPalette *) NULL; m_palette = (wxPalette *) NULL;
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
m_image = (GdkImlibImage *) NULL; m_image = (GdkImlibImage *) NULL;
#endif #endif
} }
wxBitmapRefData::~wxBitmapRefData(void) wxBitmapRefData::~wxBitmapRefData(void)
{ {
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
if (m_pixmap) gdk_imlib_free_pixmap( m_pixmap ); if (m_pixmap) gdk_imlib_free_pixmap( m_pixmap );
if (m_image) gdk_imlib_kill_image( m_image ); if (m_image) gdk_imlib_kill_image( m_image );
#else #else
@@ -141,7 +141,7 @@ wxBitmap::wxBitmap( char **bits )
{ {
m_refData = new wxBitmapRefData(); m_refData = new wxBitmapRefData();
#ifndef USE_GDK_IMLIB #ifndef wxUSE_GDK_IMLIB
GdkBitmap *mask = NULL; GdkBitmap *mask = NULL;
@@ -323,7 +323,7 @@ void wxBitmap::Resize( int height, int width )
return; return;
} }
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
if (M_BMPDATA->m_bitmap) if (M_BMPDATA->m_bitmap)
{ {
@@ -360,7 +360,7 @@ bool wxBitmap::SaveFile( const wxString &name, int WXUNUSED(type),
return FALSE; return FALSE;
} }
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
if (M_BMPDATA->m_bitmap) if (M_BMPDATA->m_bitmap)
{ {
@@ -383,7 +383,7 @@ bool wxBitmap::SaveFile( const wxString &name, int WXUNUSED(type),
bool wxBitmap::LoadFile( const wxString &name, int WXUNUSED(type) ) bool wxBitmap::LoadFile( const wxString &name, int WXUNUSED(type) )
{ {
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
UnRef(); UnRef();
m_refData = new wxBitmapRefData(); m_refData = new wxBitmapRefData();
@@ -465,7 +465,7 @@ void wxBitmap::RecreateImage(void)
return; return;
} }
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
DestroyImage(); DestroyImage();
@@ -520,7 +520,7 @@ void wxBitmap::Render(void)
return; return;
} }
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
if (!M_BMPDATA->m_image) RecreateImage(); if (!M_BMPDATA->m_image) RecreateImage();

View File

@@ -15,7 +15,7 @@
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
#include "../gdk_imlib/gdk_imlib.h" #include "../gdk_imlib/gdk_imlib.h"
#endif #endif
@@ -208,7 +208,7 @@ void wxColour::CalcPixel( GdkColormap *cmap )
if ((M_COLDATA->m_hasPixel) && (M_COLDATA->m_colormap == cmap)) return; if ((M_COLDATA->m_hasPixel) && (M_COLDATA->m_colormap == cmap)) return;
M_COLDATA->FreeColour(); M_COLDATA->FreeColour();
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
int r = M_COLDATA->m_color.red >> SHIFT; int r = M_COLDATA->m_color.red >> SHIFT;
int g = M_COLDATA->m_color.green >> SHIFT; int g = M_COLDATA->m_color.green >> SHIFT;

View File

@@ -168,7 +168,7 @@ const char *wxUserResourceStr = "TEXT";
#endif #endif
#if USE_SHARED_LIBRARY #if wxUSE_SHARED_LIBRARY
/* /*
* For wxWindows to be made into a dynamic library (e.g. Sun), * For wxWindows to be made into a dynamic library (e.g. Sun),
* all IMPLEMENT_... macros must be in one place. * all IMPLEMENT_... macros must be in one place.
@@ -192,13 +192,13 @@ IMPLEMENT_DYNAMIC_CLASS(wxBitmapCheckBox, wxCheckBox)
#include "wx/choice.h" #include "wx/choice.h"
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
#if USE_CLIPBOARD #if wxUSE_CLIPBOARD
#include "wx/clipbrd.h" #include "wx/clipbrd.h"
IMPLEMENT_DYNAMIC_CLASS(wxClipboard, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxClipboard, wxObject)
IMPLEMENT_ABSTRACT_CLASS(wxClipboardClient, wxObject) IMPLEMENT_ABSTRACT_CLASS(wxClipboardClient, wxObject)
#endif #endif
#if USE_COMBOBOX #if wxUSE_COMBOBOX
#include "wx/combobox.h" #include "wx/combobox.h"
IMPLEMENT_DYNAMIC_CLASS(wxComboBox, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxComboBox, wxControl)
#endif #endif
@@ -238,7 +238,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPrintData, wxObject)
#include "wx/colordlg.h" #include "wx/colordlg.h"
#include "wx/fontdlg.h" #include "wx/fontdlg.h"
#if !defined(wx_msw) || USE_GENERIC_DIALOGS_IN_MSW #if !defined(wx_msw) || wxUSE_GENERIC_DIALOGS_IN_MSW
#include "wx/generic/colordlg.h" #include "wx/generic/colordlg.h"
#include "wx/generic/fontdlg.h" #include "wx/generic/fontdlg.h"
IMPLEMENT_DYNAMIC_CLASS(wxGenericColourDialog, wxDialog) IMPLEMENT_DYNAMIC_CLASS(wxGenericColourDialog, wxDialog)
@@ -273,7 +273,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxIntPoint, wxObject)
#endif #endif
*/ */
#if defined(wx_x) || (defined(wx_msw) && USE_PORTABLE_FONTS_IN_MSW) #if defined(wx_x) || (defined(wx_msw) && wxUSE_PORTABLE_FONTS_IN_MSW)
IMPLEMENT_DYNAMIC_CLASS(wxFontNameDirectory, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxFontNameDirectory, wxObject)
#endif #endif
@@ -289,7 +289,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxNode, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxList, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxList, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxStringList, wxList) IMPLEMENT_DYNAMIC_CLASS(wxStringList, wxList)
#if USE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
#include "wx/print.h" #include "wx/print.h"
IMPLEMENT_DYNAMIC_CLASS(wxPrintDialog, wxDialog) IMPLEMENT_DYNAMIC_CLASS(wxPrintDialog, wxDialog)
IMPLEMENT_DYNAMIC_CLASS(wxPrinterBase, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxPrinterBase, wxObject)
@@ -306,7 +306,7 @@ IMPLEMENT_CLASS(wxGenericPrintDialog, wxDialog)
IMPLEMENT_CLASS(wxGenericPrintSetupDialog, wxDialog) IMPLEMENT_CLASS(wxGenericPrintSetupDialog, wxDialog)
#endif #endif
#if USE_POSTSCRIPT #if wxUSE_POSTSCRIPT
#include "wx/postscrp.h" #include "wx/postscrp.h"
IMPLEMENT_DYNAMIC_CLASS(wxPostScriptDC, wxDC) IMPLEMENT_DYNAMIC_CLASS(wxPostScriptDC, wxDC)
IMPLEMENT_DYNAMIC_CLASS(wxPrintSetupData, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxPrintSetupData, wxObject)
@@ -315,7 +315,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPrintPaperType, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxPrintPaperDatabase, wxList) IMPLEMENT_DYNAMIC_CLASS(wxPrintPaperDatabase, wxList)
#endif #endif
#if USE_WX_RESOURCES #if wxUSE_WX_RESOURCES
#include "wx/resource.h" #include "wx/resource.h"
IMPLEMENT_DYNAMIC_CLASS(wxItemResource, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxItemResource, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxResourceTable, wxHashTable) IMPLEMENT_DYNAMIC_CLASS(wxResourceTable, wxHashTable)
@@ -352,12 +352,12 @@ IMPLEMENT_DYNAMIC_CLASS(wxPathList, wxList)
#include "wx/process.h" #include "wx/process.h"
IMPLEMENT_DYNAMIC_CLASS(wxProcess, wxEvtHandler) IMPLEMENT_DYNAMIC_CLASS(wxProcess, wxEvtHandler)
#if USE_TIMEDATE #if wxUSE_TIMEDATE
#include "wx/date.h" #include "wx/date.h"
IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxDate, wxObject)
#endif #endif
#if USE_DOC_VIEW_ARCHITECTURE #if wxUSE_DOC_VIEW_ARCHITECTURE
#include "wx/docview.h" #include "wx/docview.h"
//IMPLEMENT_ABSTRACT_CLASS(wxDocItem, wxObject) //IMPLEMENT_ABSTRACT_CLASS(wxDocItem, wxObject)
IMPLEMENT_ABSTRACT_CLASS(wxDocument, wxEvtHandler) IMPLEMENT_ABSTRACT_CLASS(wxDocument, wxEvtHandler)
@@ -366,7 +366,7 @@ IMPLEMENT_ABSTRACT_CLASS(wxDocTemplate, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxDocManager, wxEvtHandler) IMPLEMENT_DYNAMIC_CLASS(wxDocManager, wxEvtHandler)
IMPLEMENT_CLASS(wxDocChildFrame, wxFrame) IMPLEMENT_CLASS(wxDocChildFrame, wxFrame)
IMPLEMENT_CLASS(wxDocParentFrame, wxFrame) IMPLEMENT_CLASS(wxDocParentFrame, wxFrame)
#if USE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
IMPLEMENT_DYNAMIC_CLASS(wxDocPrintout, wxPrintout) IMPLEMENT_DYNAMIC_CLASS(wxDocPrintout, wxPrintout)
#endif #endif
IMPLEMENT_CLASS(wxCommand, wxObject) IMPLEMENT_CLASS(wxCommand, wxObject)
@@ -374,7 +374,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxCommandProcessor, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxFileHistory, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxFileHistory, wxObject)
#endif #endif
#if USE_CONSTRAINTS #if wxUSE_CONSTRAINTS
#include "wx/layout.h" #include "wx/layout.h"
IMPLEMENT_DYNAMIC_CLASS(wxIndividualLayoutConstraint, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxIndividualLayoutConstraint, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxLayoutConstraints, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxLayoutConstraints, wxObject)
@@ -382,7 +382,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxSizer, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxRowColSizer, wxSizer) IMPLEMENT_DYNAMIC_CLASS(wxRowColSizer, wxSizer)
#endif #endif
#if USE_TOOLBAR #if wxUSE_TOOLBAR
#include "wx/tbarbase.h" #include "wx/tbarbase.h"
IMPLEMENT_DYNAMIC_CLASS(wxToolBarTool, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxToolBarTool, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxToolBarBase, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxToolBarBase, wxControl)
@@ -453,7 +453,7 @@ BEGIN_EVENT_TABLE(wxStatusBar, wxWindow)
EVT_SYS_COLOUR_CHANGED(wxStatusBar::OnSysColourChanged) EVT_SYS_COLOUR_CHANGED(wxStatusBar::OnSysColourChanged)
END_EVENT_TABLE() END_EVENT_TABLE()
#if USE_TIMEDATE #if wxUSE_TIMEDATE
#include "wx/time.h" #include "wx/time.h"
IMPLEMENT_DYNAMIC_CLASS(wxTime, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxTime, wxObject)
#endif #endif
@@ -491,7 +491,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxICOResourceHandler, wxBitmapHandler)
#include "wx/statbox.h" #include "wx/statbox.h"
IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl)
#if USE_IPC #if wxUSE_IPC
#include "wx/dde.h" #include "wx/dde.h"
IMPLEMENT_ABSTRACT_CLASS(wxDDEObject, wxObject) IMPLEMENT_ABSTRACT_CLASS(wxDDEObject, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxDDEServer, wxDDEObject) IMPLEMENT_DYNAMIC_CLASS(wxDDEServer, wxDDEObject)
@@ -516,7 +516,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxMenuBar, wxWindow)
IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl)
IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
#if USE_METAFILE #if wxUSE_METAFILE
#include "wx/metafile.h" #include "wx/metafile.h"
IMPLEMENT_DYNAMIC_CLASS(wxMetaFile, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxMetaFile, wxObject)
IMPLEMENT_ABSTRACT_CLASS(wxMetaFileDC, wxDC) IMPLEMENT_ABSTRACT_CLASS(wxMetaFileDC, wxDC)
@@ -568,7 +568,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPanel, wxWindow)
#include "wx/dirdlg.h" #include "wx/dirdlg.h"
#include "wx/choicdlg.h" #include "wx/choicdlg.h"
#if !defined(wx_msw) || USE_GENERIC_DIALOGS_IN_MSW #if !defined(wx_msw) || wxUSE_GENERIC_DIALOGS_IN_MSW
#include "wx/generic/msgdlgg.h" #include "wx/generic/msgdlgg.h"
IMPLEMENT_CLASS(wxGenericMessageDialog, wxDialog) IMPLEMENT_CLASS(wxGenericMessageDialog, wxDialog)
#endif #endif
@@ -582,7 +582,7 @@ IMPLEMENT_CLASS(wxDirDialog, wxDialog)
IMPLEMENT_CLASS(wxMessageDialog) IMPLEMENT_CLASS(wxMessageDialog)
#endif #endif
#if USE_GAUGE #if wxUSE_GAUGE
#ifdef wx_motif #ifdef wx_motif
#include "../../contrib/xmgauge/gauge.h" #include "../../contrib/xmgauge/gauge.h"
#endif #endif
@@ -705,7 +705,7 @@ BEGIN_EVENT_TABLE(wxControl, wxWindow)
EVT_ERASE_BACKGROUND(wxControl::OnEraseBackground) EVT_ERASE_BACKGROUND(wxControl::OnEraseBackground)
END_EVENT_TABLE() END_EVENT_TABLE()
#if !defined(wx_msw) || USE_GENERIC_DIALOGS_IN_MSW #if !defined(wx_msw) || wxUSE_GENERIC_DIALOGS_IN_MSW
BEGIN_EVENT_TABLE(wxGenericMessageDialog, wxDialog) BEGIN_EVENT_TABLE(wxGenericMessageDialog, wxDialog)
EVT_BUTTON(wxID_YES, wxGenericMessageDialog::OnYes) EVT_BUTTON(wxID_YES, wxGenericMessageDialog::OnYes)
EVT_BUTTON(wxID_NO, wxGenericMessageDialog::OnNo) EVT_BUTTON(wxID_NO, wxGenericMessageDialog::OnNo)

View File

@@ -14,7 +14,7 @@
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
#include "../gdk_imlib/gdk_imlib.h" #include "../gdk_imlib/gdk_imlib.h"
#endif #endif
@@ -28,7 +28,7 @@ wxMemoryDC::wxMemoryDC(void)
{ {
m_ok = FALSE; m_ok = FALSE;
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
m_cmap = gdk_imlib_get_colormap(); m_cmap = gdk_imlib_get_colormap();
#else #else
m_cmap = gdk_colormap_get_system(); m_cmap = gdk_colormap_get_system();
@@ -39,7 +39,7 @@ wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
{ {
m_ok = FALSE; m_ok = FALSE;
#ifdef USE_GDK_IMLIB #ifdef wxUSE_GDK_IMLIB
m_cmap = gdk_imlib_get_colormap(); m_cmap = gdk_imlib_get_colormap();
#else #else
m_cmap = gdk_colormap_get_system(); m_cmap = gdk_colormap_get_system();

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