Include order is wxprec.h=>defs.h=>platform.h=>setup.h so remove explicit setup.h inclusion not touched by chckconf.h.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* ///////////////////////////////////////////////////////////////////////////
|
||||
// Name: win_gtk.c
|
||||
// Name: src/gtk/win_gtk.c
|
||||
// Purpose: Native GTK+ widget for wxWidgets, based on GtkLayout and
|
||||
// GtkFixed. It makes use of the gravity window property and
|
||||
// therefore does not work with GTK 1.0.
|
||||
@@ -13,7 +13,7 @@
|
||||
#define XCheckIfEvent XCHECKIFEVENT
|
||||
#endif
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/gtk/win_gtk.h"
|
||||
#include "gtk/gtksignal.h"
|
||||
#include "gtk/gtkprivate.h"
|
||||
@@ -886,4 +886,3 @@ gtk_pizza_scroll (GtkPizza *pizza, gint dx, gint dy)
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/* ///////////////////////////////////////////////////////////////////////////
|
||||
// Name: win_gtk.c
|
||||
// Name: src/gtk1/win_gtk.c
|
||||
// Purpose: Native GTK+ widget for wxWidgets, based on GtkLayout and
|
||||
// GtkFixed. It makes use of the gravity window property and
|
||||
// therefore does not work with GTK 1.0.
|
||||
@@ -13,7 +13,7 @@
|
||||
#define XCheckIfEvent XCHECKIFEVENT
|
||||
#endif
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/gtk1/win_gtk.h"
|
||||
#include "gtk/gtksignal.h"
|
||||
#include "gtk/gtkprivate.h"
|
||||
@@ -1202,4 +1202,3 @@ gtk_pizza_main_filter (GdkXEvent *gdk_xevent,
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/* -------------------------------------------------------------------------
|
||||
* Project: GSocket (Generic Socket) for WX
|
||||
* Name: gsocket.cpp
|
||||
* Name: src/mac/carbon/gsocket.cpp
|
||||
* Copyright: (c) Guilhem Lavaux
|
||||
* Licence: wxWindows Licence
|
||||
* Authors: Guilhem Lavaux,
|
||||
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
|
||||
#ifndef __GSOCKET_STANDALONE__
|
||||
#include "wx/setup.h"
|
||||
#include "wx/platform.h"
|
||||
#endif
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: accel.cpp
|
||||
// Name: src/mac/classic/accel.cpp
|
||||
// Purpose: wxAcceleratorTable
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,8 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/accel.h"
|
||||
#include "wx/string.h"
|
||||
|
||||
@@ -98,5 +99,3 @@ int wxAcceleratorTable::GetCommand( wxKeyEvent &event )
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -9,7 +9,8 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/brush.h"
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: glcanvas.cpp
|
||||
// Name: src/mac/classic/glcanvas.cpp
|
||||
// Purpose: wxGLCanvas, for using OpenGL with wxWidgets under Macintosh
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -15,8 +15,6 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/setup.h"
|
||||
|
||||
#if wxUSE_GLCANVAS
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
@@ -249,26 +247,26 @@ void wxGLCanvas::SetViewport()
|
||||
wxWindow* iter = this ;
|
||||
while( iter->GetParent() )
|
||||
{
|
||||
iter = iter->GetParent() ;
|
||||
iter = iter->GetParent() ;
|
||||
}
|
||||
|
||||
if ( iter && iter->IsTopLevel() )
|
||||
{
|
||||
MacClientToRootWindow( &x , &y ) ;
|
||||
int width, height;
|
||||
GetClientSize(& width, & height);
|
||||
Rect bounds ;
|
||||
GetWindowPortBounds( MAC_WXHWND(MacGetRootWindow()) , &bounds ) ;
|
||||
GLint parms[4] ;
|
||||
parms[0] = x ;
|
||||
parms[1] = bounds.bottom - bounds.top - ( y + height ) ;
|
||||
parms[2] = width ;
|
||||
parms[3] = height ;
|
||||
MacClientToRootWindow( &x , &y ) ;
|
||||
int width, height;
|
||||
GetClientSize(& width, & height);
|
||||
Rect bounds ;
|
||||
GetWindowPortBounds( MAC_WXHWND(MacGetRootWindow()) , &bounds ) ;
|
||||
GLint parms[4] ;
|
||||
parms[0] = x ;
|
||||
parms[1] = bounds.bottom - bounds.top - ( y + height ) ;
|
||||
parms[2] = width ;
|
||||
parms[3] = height ;
|
||||
|
||||
if ( !m_macCanvasIsShown )
|
||||
parms[0] += 20000 ;
|
||||
aglSetInteger( m_glContext->m_glContext , AGL_BUFFER_RECT , parms ) ;
|
||||
}
|
||||
if ( !m_macCanvasIsShown )
|
||||
parms[0] += 20000 ;
|
||||
aglSetInteger( m_glContext->m_glContext , AGL_BUFFER_RECT , parms ) ;
|
||||
}
|
||||
}
|
||||
|
||||
void wxGLCanvas::OnSize(wxSizeEvent& event)
|
||||
@@ -315,7 +313,7 @@ void wxGLCanvas::SetColour(const wxChar *colour)
|
||||
bool wxGLCanvas::Show(bool show)
|
||||
{
|
||||
if ( !wxWindow::Show( show ) )
|
||||
return FALSE ;
|
||||
return false ;
|
||||
|
||||
if ( !show )
|
||||
{
|
||||
@@ -333,7 +331,7 @@ bool wxGLCanvas::Show(bool show)
|
||||
SetViewport() ;
|
||||
}
|
||||
}
|
||||
return TRUE ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
void wxGLCanvas::MacSuperShown( bool show )
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/* -------------------------------------------------------------------------
|
||||
* Project: GSocket (Generic Socket) for WX
|
||||
* Name: gsocket.c
|
||||
* Name: src/mac/classic/gsocket.c
|
||||
* Authors: Guilhem Lavaux,
|
||||
* Guillermo Rodriguez Garcia <guille@iies.es> (maintainer)
|
||||
* Stefan CSomor
|
||||
@@ -14,7 +14,6 @@
|
||||
*/
|
||||
|
||||
#ifndef __GSOCKET_STANDALONE__
|
||||
#include "wx/setup.h"
|
||||
#include "wx/platform.h"
|
||||
#endif
|
||||
|
||||
@@ -92,29 +91,29 @@ OTNotifyUPP gOTNotifierUPP = NULL ;
|
||||
OSStatus DoNegotiateIPReuseAddrOption(EndpointRef ep, Boolean enableReuseIPMode);
|
||||
|
||||
/* Input: ep - endpointref on which to negotiate the option
|
||||
enableReuseIPMode - desired option setting - true/false
|
||||
enableReuseIPMode - desired option setting - true/false
|
||||
Return: kOTNoError indicates that the option was successfully negotiated
|
||||
OSStatus is an error if < 0, otherwise, the status field is
|
||||
returned and is > 0.
|
||||
OSStatus is an error if < 0, otherwise, the status field is
|
||||
returned and is > 0.
|
||||
|
||||
IMPORTANT NOTE: The endpoint is assumed to be in synchronous more, otherwise
|
||||
this code will not function as desired
|
||||
IMPORTANT NOTE: The endpoint is assumed to be in synchronous more, otherwise
|
||||
this code will not function as desired
|
||||
*/
|
||||
|
||||
|
||||
OSStatus DoNegotiateIPReuseAddrOption(EndpointRef ep, Boolean enableReuseIPMode)
|
||||
|
||||
{
|
||||
UInt8 buf[kOTFourByteOptionSize]; // define buffer for fourByte Option size
|
||||
TOption* opt; // option ptr to make items easier to access
|
||||
TOptMgmt req;
|
||||
TOptMgmt ret;
|
||||
OSStatus err;
|
||||
UInt8 buf[kOTFourByteOptionSize]; // define buffer for fourByte Option size
|
||||
TOption* opt; // option ptr to make items easier to access
|
||||
TOptMgmt req;
|
||||
TOptMgmt ret;
|
||||
OSStatus err;
|
||||
|
||||
if (!OTIsSynchronous(ep))
|
||||
{
|
||||
return (-1);
|
||||
}
|
||||
if (!OTIsSynchronous(ep))
|
||||
{
|
||||
return (-1);
|
||||
}
|
||||
opt = (TOption*)buf; // set option ptr to buffer
|
||||
req.opt.buf = buf;
|
||||
req.opt.len = sizeof(buf);
|
||||
@@ -1393,7 +1392,7 @@ GSocketError GAddress_INET_SetPort(GAddress *address, unsigned short port)
|
||||
GSocketError GAddress_INET_GetHostName(GAddress *address, char *hostname, size_t sbuf)
|
||||
{
|
||||
InetDomainName name ;
|
||||
if ( GSocket_Verify_Inited() == FALSE )
|
||||
if ( GSocket_Verify_Inited() == FALSE )
|
||||
return GSOCK_IOERR ;
|
||||
|
||||
assert(address != NULL);
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: joystick.cpp
|
||||
// Name: src/mac/classic/joystick.cpp
|
||||
// Purpose: wxJoystick class
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,12 +9,12 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/setup.h"
|
||||
|
||||
#include "wx/joystick.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#if wxUSE_JOYSTICK
|
||||
|
||||
#include "wx/joystick.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
|
||||
|
||||
// Attributes
|
||||
@@ -85,7 +85,7 @@ void wxJoystick::SetMovementThreshold(int threshold)
|
||||
bool wxJoystick::IsOk() const
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
int wxJoystick::GetNumberJoysticks()
|
||||
@@ -109,7 +109,7 @@ int wxJoystick::GetProductId() const
|
||||
wxString wxJoystick::GetProductName() const
|
||||
{
|
||||
// TODO
|
||||
return wxString(wxT(""));
|
||||
return wxEmptyString;
|
||||
}
|
||||
|
||||
int wxJoystick::GetXMin() const
|
||||
@@ -223,43 +223,43 @@ int wxJoystick::GetVMax() const
|
||||
bool wxJoystick::HasRudder() const
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wxJoystick::HasZ() const
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wxJoystick::HasU() const
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wxJoystick::HasV() const
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wxJoystick::HasPOV() const
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wxJoystick::HasPOV4Dir() const
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wxJoystick::HasPOVCTS() const
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Operations
|
||||
@@ -268,15 +268,14 @@ bool wxJoystick::HasPOVCTS() const
|
||||
bool wxJoystick::SetCapture(wxWindow* win, int pollingFreq)
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wxJoystick::ReleaseCapture()
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif
|
||||
// wxUSE_JOYSTICK
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: metafile.cpp
|
||||
// Name: src/mac/classic/metafile.cpp
|
||||
// Purpose: wxMetaFile, wxMetaFileDC etc. These classes are optional.
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -16,10 +16,6 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/setup.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_METAFILE
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
@@ -68,7 +64,7 @@ wxMetaFile::wxMetaFile(const wxString& file)
|
||||
M_METAFILEDATA->m_metafile = 0;
|
||||
wxASSERT_MSG( file.IsEmpty() , wxT("no file based metafile support yet") ) ;
|
||||
/*
|
||||
if (!file.IsNull() && (file.Cmp("") == 0))
|
||||
if (!file.empty())
|
||||
M_METAFILEDATA->m_metafile = (WXHANDLE) GetMetaFile(file);
|
||||
*/
|
||||
}
|
||||
@@ -82,7 +78,7 @@ bool wxMetaFile::SetClipboard(int width, int height)
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
//TODO finishi this port , we need the data obj first
|
||||
if (!m_refData)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
bool alreadyOpen=wxTheClipboard->IsOpened() ;
|
||||
if (!alreadyOpen)
|
||||
@@ -97,7 +93,7 @@ bool wxMetaFile::SetClipboard(int width, int height)
|
||||
wxTheClipboard->Close();
|
||||
return (bool) success;
|
||||
#endif
|
||||
return TRUE ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
void wxMetafile::SetHMETAFILE(WXHMETAFILE mf)
|
||||
@@ -113,17 +109,17 @@ void wxMetafile::SetHMETAFILE(WXHMETAFILE mf)
|
||||
bool wxMetaFile::Play(wxDC *dc)
|
||||
{
|
||||
if (!m_refData)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
if (!dc->Ok() )
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
{
|
||||
wxMacPortSetter helper( dc ) ;
|
||||
PicHandle pict = (PicHandle) GetHMETAFILE() ;
|
||||
DrawPicture( pict , &(**pict).picFrame ) ;
|
||||
}
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
wxSize wxMetaFile::GetSize() const
|
||||
@@ -149,11 +145,11 @@ wxSize wxMetaFile::GetSize() const
|
||||
// give origin/extent arguments to wxMakeMetaFilePlaceable.
|
||||
|
||||
wxMetaFileDC::wxMetaFileDC(const wxString& filename ,
|
||||
int width , int height ,
|
||||
const wxString& WXUNUSED(description) )
|
||||
int width , int height ,
|
||||
const wxString& WXUNUSED(description) )
|
||||
{
|
||||
wxASSERT_MSG( width == 0 || height == 0 , _T("no arbitration of metafilesize supported") ) ;
|
||||
wxASSERT_MSG( filename.IsEmpty() , _T("no file based metafile support yet")) ;
|
||||
wxASSERT_MSG( filename.empty() , _T("no file based metafile support yet")) ;
|
||||
|
||||
m_metaFile = new wxMetaFile(filename) ;
|
||||
Rect r={0,0,height,width} ;
|
||||
@@ -163,7 +159,7 @@ wxMetaFileDC::wxMetaFileDC(const wxString& filename ,
|
||||
|
||||
m_metaFile->SetHMETAFILE( OpenPicture( &r ) ) ;
|
||||
::GetPort( (GrafPtr*) &m_macPort ) ;
|
||||
m_ok = TRUE ;
|
||||
m_ok = true ;
|
||||
|
||||
SetMapMode(wxMM_TEXT);
|
||||
}
|
||||
|
@@ -9,7 +9,8 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/pen.h"
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: utils.cpp
|
||||
// Name: src/mac/classic/utils.cpp
|
||||
// Purpose: Various utilities
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,8 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/apptrait.h"
|
||||
@@ -1399,4 +1400,3 @@ extern bool WXDLLEXPORT wxIsDebuggerRunning()
|
||||
#endif // defined(__WXMAC__) && !defined(__DARWIN__) && (__MWERKS__ >= 0x2400)
|
||||
|
||||
#endif // wxUSE_GUI
|
||||
|
||||
|
@@ -9,7 +9,8 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/menu.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/dc.h"
|
||||
|
@@ -1,12 +1,12 @@
|
||||
/* -------------------------------------------------------------------------
|
||||
* Project: GSocket (Generic Socket) for WX
|
||||
* Name: gsockosx.c
|
||||
* Name: src/mac/corefoundation/gsockosx.c
|
||||
* Purpose: GSocket: Mac OS X mach-o part
|
||||
* CVSID: $Id$
|
||||
* Mac code by Brian Victor, February 2002. Email comments to bhv1@psu.edu
|
||||
* ------------------------------------------------------------------------- */
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#if wxUSE_SOCKETS
|
||||
|
||||
@@ -75,7 +75,7 @@ struct MacGSocketData* _GSocket_Get_Mac_Socket(GSocket *socket)
|
||||
cont.info = socket;
|
||||
|
||||
CFSocketRef cf = CFSocketCreateWithNative(NULL, socket->m_fd,
|
||||
ALL_CALLBACK_TYPES, Mac_Socket_Callback, &cont);
|
||||
ALL_CALLBACK_TYPES, Mac_Socket_Callback, &cont);
|
||||
CFRunLoopSourceRef source = CFSocketCreateRunLoopSource(NULL, cf, 0);
|
||||
assert(source);
|
||||
socket->m_gui_dependent = (char*)data;
|
||||
|
Reference in New Issue
Block a user