Use defs.h (and automatically setup.h and chkconf.h) before first wxUSE_* check (bug #1164141).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#pragma interface "choicebase.h"
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_CHOICE
|
||||
|
||||
#include "wx/ctrlsub.h" // the base class
|
||||
|
@@ -1,6 +1,18 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: config.h
|
||||
// Purpose: wxConfig base header
|
||||
// Author: wxWidgets Team
|
||||
// Modified by:
|
||||
// Created:
|
||||
// Copyright: (c) wxWidgets Team
|
||||
// RCS-ID: $Id$
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_CONFIG_H_BASE_
|
||||
#define _WX_CONFIG_H_BASE_
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/confbase.h"
|
||||
|
||||
#if defined(__WXMSW__) && wxUSE_CONFIG_NATIVE
|
||||
|
@@ -16,6 +16,8 @@
|
||||
#pragma interface "controlwithitems.h"
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_CONTROLS
|
||||
|
||||
#include "wx/control.h" // base class
|
||||
|
@@ -31,14 +31,10 @@
|
||||
#define OLD_GETCOLUMNS 1
|
||||
#define EXPERIMENTAL_WXDB_FUNCTIONS 1
|
||||
|
||||
#include "wx/version.h"
|
||||
|
||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
||||
#pragma interface "db.h"
|
||||
#endif
|
||||
|
||||
#include "wx/setup.h"
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/string.h"
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#ifndef DBTABLE_DOT_H
|
||||
#define DBTABLE_DOT_H
|
||||
|
||||
#include "wx/version.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
||||
#pragma interface "dbtable.h"
|
||||
|
@@ -16,7 +16,7 @@
|
||||
# pragma interface "dynlib.h"
|
||||
#endif
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_DYNLIB_CLASS
|
||||
|
||||
|
@@ -17,12 +17,14 @@
|
||||
#pragma interface "file.h"
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_FILE
|
||||
|
||||
#include "wx/string.h"
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/strconv.h"
|
||||
|
||||
#if wxUSE_FILE
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// constants
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -5,13 +5,15 @@
|
||||
// Modified by:
|
||||
// Created: 8/17/99
|
||||
// Copyright: (c) Robert Roebling
|
||||
// RCS-ID:
|
||||
// RCS-ID: $Id$
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_FILEDLG_H_BASE_
|
||||
#define _WX_FILEDLG_H_BASE_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_FILEDLG
|
||||
|
||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
||||
|
@@ -14,7 +14,7 @@
|
||||
#pragma interface "filesys.h"
|
||||
#endif
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if !wxUSE_STREAMS
|
||||
#error You cannot compile virtual file systems without wxUSE_STREAMS
|
||||
|
@@ -20,7 +20,7 @@
|
||||
#pragma interface "gdicmn.h"
|
||||
#endif
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/list.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/fontenc.h"
|
||||
|
@@ -15,7 +15,7 @@
|
||||
#pragma interface "gifdecod.h"
|
||||
#endif
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_STREAMS && wxUSE_GIF
|
||||
|
||||
|
@@ -12,8 +12,7 @@
|
||||
#define __GSOCKET_H
|
||||
|
||||
#ifndef __GSOCKET_STANDALONE__
|
||||
#include "wx/setup.h"
|
||||
#include "wx/platform.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
#include "wx/dlimpexp.h" /* for WXDLLIMPEXP_NET */
|
||||
|
||||
|
@@ -1,6 +1,19 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: help.h
|
||||
// Purpose: wxHelpController base header
|
||||
// Author: wxWidgets Team
|
||||
// Modified by:
|
||||
// Created:
|
||||
// Copyright: (c) wxWidgets Team
|
||||
// RCS-ID: $Id$
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_HELP_H_BASE_
|
||||
#define _WX_HELP_H_BASE_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_HELP
|
||||
|
||||
#include "wx/helpbase.h"
|
||||
|
@@ -14,7 +14,7 @@
|
||||
#pragma interface "image.h"
|
||||
#endif
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/object.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/gdicmn.h"
|
||||
@@ -182,9 +182,9 @@ public:
|
||||
|
||||
// Paste the image or part of this image into an image of the given size at the pos
|
||||
// any newly exposed areas will be filled with the rgb colour
|
||||
// by default if r = g = b = -1 then fill with this image's mask colour or find and
|
||||
// by default if r = g = b = -1 then fill with this image's mask colour or find and
|
||||
// set a suitable mask colour
|
||||
wxImage Size( const wxSize& size, const wxPoint& pos,
|
||||
wxImage Size( const wxSize& size, const wxPoint& pos,
|
||||
int r = -1, int g = -1, int b = -1 ) const;
|
||||
|
||||
// pastes image into this instance and takes care of
|
||||
@@ -200,7 +200,7 @@ public:
|
||||
wxImage& Rescale( int width, int height ) { return *this = Scale(width, height); }
|
||||
|
||||
// resizes the image in place
|
||||
wxImage& Resize( const wxSize& size, const wxPoint& pos,
|
||||
wxImage& Resize( const wxSize& size, const wxPoint& pos,
|
||||
int r = -1, int g = -1, int b = -1 ) { return *this = Size(size, pos, r, g, b); }
|
||||
|
||||
// Rotates the image about the given point, 'angle' radians.
|
||||
|
@@ -14,14 +14,16 @@
|
||||
#pragma interface "imagjpeg.h"
|
||||
#endif
|
||||
|
||||
#include "wx/image.h"
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxJPEGHandler
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_LIBJPEG
|
||||
|
||||
#include "wx/image.h"
|
||||
|
||||
class WXDLLEXPORT wxJPEGHandler: public wxImageHandler
|
||||
{
|
||||
public:
|
||||
@@ -42,7 +44,8 @@ public:
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxJPEGHandler)
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif // wxUSE_LIBJPEG
|
||||
|
||||
#endif // _WX_IMAGJPEG_H_
|
||||
|
||||
|
@@ -14,7 +14,7 @@
|
||||
#pragma interface "imagpng.h"
|
||||
#endif
|
||||
|
||||
#include "wx/image.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxPNGHandler
|
||||
@@ -22,6 +22,8 @@
|
||||
|
||||
#if wxUSE_LIBPNG
|
||||
|
||||
#include "wx/image.h"
|
||||
|
||||
#define wxIMAGE_OPTION_PNG_FORMAT wxT("PngFormat")
|
||||
#define wxIMAGE_OPTION_PNG_BITDEPTH wxT("PngBitDepth")
|
||||
|
||||
@@ -52,8 +54,9 @@ public:
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPNGHandler)
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
// wxUSE_LIBPNG
|
||||
|
||||
#endif
|
||||
// _WX_IMAGPNG_H_
|
||||
|
@@ -14,6 +14,14 @@
|
||||
#pragma interface "imagtiff.h"
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxTIFFHandler
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_LIBTIFF
|
||||
|
||||
#include "wx/image.h"
|
||||
|
||||
// defines for wxImage::SetOption
|
||||
@@ -22,11 +30,6 @@
|
||||
#define wxIMAGE_OPTION_COMPRESSION wxString(_T("Compression"))
|
||||
#define wxIMAGE_OPTION_IMAGEDESCRIPTOR wxString(_T("ImageDescriptor"))
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxTIFFHandler
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_LIBTIFF
|
||||
class WXDLLEXPORT wxTIFFHandler: public wxImageHandler
|
||||
{
|
||||
public:
|
||||
@@ -42,9 +45,8 @@ public:
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxTIFFHandler)
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif // wxUSE_LIBTIFF
|
||||
|
||||
#endif
|
||||
// _WX_IMAGTIFF_H_
|
||||
#endif // _WX_IMAGTIFF_H_
|
||||
|
||||
|
@@ -1,6 +1,19 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: joystick.h
|
||||
// Purpose: wxJoystick base header
|
||||
// Author: wxWidgets Team
|
||||
// Modified by:
|
||||
// Created:
|
||||
// Copyright: (c) wxWidgets Team
|
||||
// RCS-ID: $Id$
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_JOYSTICK_H_BASE_
|
||||
#define _WX_JOYSTICK_H_BASE_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_JOYSTICK
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
|
@@ -16,6 +16,8 @@
|
||||
// #pragma interface "listctrlbase.h"
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_LISTCTRL
|
||||
|
||||
#include "wx/colour.h"
|
||||
|
@@ -1,7 +1,18 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: mdi.h
|
||||
// Purpose: wxMDI base header
|
||||
// Author: wxWidgets Team
|
||||
// Modified by:
|
||||
// Created:
|
||||
// Copyright: (c) wxWidgets Team
|
||||
// RCS-ID: $Id$
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_MDI_H_BASE_
|
||||
#define _WX_MDI_H_BASE_
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_MDI
|
||||
|
||||
|
@@ -26,9 +26,12 @@
|
||||
#pragma interface "mediactrl.h"
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Compilation guard
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_MEDIACTRL
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -179,10 +182,10 @@ public:
|
||||
wxFileOffset Length(); //FIXME: This should be const
|
||||
|
||||
//
|
||||
// Unofficial parts of API
|
||||
// Unofficial parts of API
|
||||
//
|
||||
//DirectShow/GStreamer only. Quicktime too, but somewhat buggy...
|
||||
bool Load(const wxURI& location);
|
||||
bool Load(const wxURI& location);
|
||||
|
||||
double GetPlaybackRate(); //All but MCI & GStreamer
|
||||
bool SetPlaybackRate(double dRate); //All but MCI & GStreamer
|
||||
|
@@ -12,6 +12,8 @@
|
||||
#ifndef _WX_MENUITEM_H_BASE_
|
||||
#define _WX_MENUITEM_H_BASE_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_MENUS
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -12,7 +12,7 @@
|
||||
#ifndef _WX_MSGDLG_H_BASE_
|
||||
#define _WX_MSGDLG_H_BASE_
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_MSGDLG
|
||||
|
||||
|
@@ -12,10 +12,12 @@
|
||||
#ifndef _WX_WXMMSTREAM_H__
|
||||
#define _WX_WXMMSTREAM_H__
|
||||
|
||||
#include "wx/stream.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_STREAMS
|
||||
|
||||
#include "wx/stream.h"
|
||||
|
||||
class WXDLLIMPEXP_BASE wxMemoryInputStream : public wxInputStream
|
||||
{
|
||||
public:
|
||||
|
@@ -12,6 +12,8 @@
|
||||
#ifndef _OWNERDRW_H
|
||||
#define _OWNERDRW_H
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_OWNER_DRAWN
|
||||
|
||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
||||
|
@@ -16,9 +16,12 @@
|
||||
#pragma interface "popupwinbase.h"
|
||||
#endif
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_POPUPWIN
|
||||
|
||||
#include "wx/window.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxPopupWindow: a special kind of top level window used for popup menus,
|
||||
// combobox popups and such.
|
||||
@@ -106,7 +109,7 @@ public:
|
||||
|
||||
// Overridden to grab the input on some plaforms
|
||||
virtual bool Show( bool show = true );
|
||||
|
||||
|
||||
protected:
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
@@ -12,6 +12,8 @@
|
||||
#ifndef _WX_RADIOBUT_H_BASE_
|
||||
#define _WX_RADIOBUT_H_BASE_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_RADIOBTN
|
||||
|
||||
/*
|
||||
|
@@ -1,6 +1,19 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: scrolbar.h
|
||||
// Purpose: wxScrollBar base header
|
||||
// Author: wxWidgets Team
|
||||
// Modified by:
|
||||
// Created:
|
||||
// Copyright: (c) wxWidgets Team
|
||||
// RCS-ID: $Id$
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_SCROLBAR_H_BASE_
|
||||
#define _WX_SCROLBAR_H_BASE_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_SCROLLBAR
|
||||
|
||||
#include "wx/control.h"
|
||||
|
@@ -12,6 +12,10 @@
|
||||
#ifndef _WX_SPINCTRL_H_
|
||||
#define _WX_SPINCTRL_H_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_SPINCTRL
|
||||
|
||||
#include "wx/spinbutt.h" // should make wxSpinEvent visible to the app
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -72,5 +76,6 @@ protected:
|
||||
#define EVT_SPINCTRL(id, fn) \
|
||||
wx__DECLARE_EVT1(wxEVT_COMMAND_SPINCTRL_UPDATED, id, wxSpinEventHandler(fn))
|
||||
|
||||
#endif // _WX_SPINCTRL_H_
|
||||
#endif // wxUSE_SPINCTRL
|
||||
|
||||
#endif // _WX_SPINCTRL_H_
|
||||
|
@@ -1,6 +1,19 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: statbox.h
|
||||
// Purpose: wxStaticBox base header
|
||||
// Author: wxWidgets Team
|
||||
// Modified by:
|
||||
// Created:
|
||||
// Copyright: (c) wxWidgets Team
|
||||
// RCS-ID: $Id$
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_STATBOX_H_BASE_
|
||||
#define _WX_STATBOX_H_BASE_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_STATBOX
|
||||
|
||||
#include "wx/control.h"
|
||||
|
@@ -1,6 +1,19 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: stattext.h
|
||||
// Purpose: wxStaticText base header
|
||||
// Author: wxWidgets Team
|
||||
// Modified by:
|
||||
// Created:
|
||||
// Copyright: (c) wxWidgets Team
|
||||
// RCS-ID: $Id$
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_STATTEXT_H_BASE_
|
||||
#define _WX_STATTEXT_H_BASE_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_STATTEXT
|
||||
|
||||
#include "wx/control.h"
|
||||
|
@@ -11,6 +11,7 @@
|
||||
#ifndef _WX_STOPWATCH_H_
|
||||
#define _WX_STOPWATCH_H_
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/longlong.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -17,15 +17,15 @@
|
||||
#pragma interface "timerbase.h"
|
||||
#endif
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_GUI && wxUSE_TIMER
|
||||
|
||||
#include "wx/object.h"
|
||||
#include "wx/longlong.h"
|
||||
#include "wx/event.h"
|
||||
|
||||
#include "wx/stopwatch.h" // for backwards compatibility
|
||||
|
||||
#if wxUSE_GUI && wxUSE_TIMER
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxTimer
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -1,7 +1,18 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: tooltip.h
|
||||
// Purpose: wxToolTip base header
|
||||
// Author: wxWidgets Team
|
||||
// Modified by:
|
||||
// Created:
|
||||
// Copyright: (c) wxWidgets Team
|
||||
// RCS-ID: $Id$
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_TOOLTIP_H_BASE_
|
||||
#define _WX_TOOLTIP_H_BASE_
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_TOOLTIPS
|
||||
|
||||
|
@@ -20,6 +20,8 @@
|
||||
// headers
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_TREECTRL
|
||||
|
||||
#include "wx/window.h" // for wxClientData
|
||||
|
@@ -12,7 +12,7 @@
|
||||
#ifndef _WX_WAVE_H_BASE_
|
||||
#define _WX_WAVE_H_BASE_
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_SOUND
|
||||
|
||||
|
@@ -17,6 +17,8 @@
|
||||
#ifndef _WX_WIZARD_H_
|
||||
#define _WX_WIZARD_H_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_WIZARDDLG
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -14,7 +14,7 @@
|
||||
#pragma interface "xpmdecod.h"
|
||||
#endif
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/defs.h"
|
||||
|
||||
|
||||
class WXDLLIMPEXP_CORE wxImage;
|
||||
|
@@ -40,6 +40,7 @@
|
||||
|
||||
#include "wx/sckaddr.h"
|
||||
#include "wx/socket.h"
|
||||
#include "wx/stopwatch.h"
|
||||
|
||||
// DLL options compatibility check:
|
||||
#include "wx/build.h"
|
||||
|
Reference in New Issue
Block a user