Include wx/gdicmn.h according to precompiled headers of wx/wx.h (with other minor cleaning).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-06-19 20:18:46 +00:00
parent b85229d15b
commit dd05139a80
58 changed files with 109 additions and 88 deletions

View File

@@ -34,6 +34,7 @@
#include "wx/panel.h"
#include "wx/toplevel.h"
#include "wx/frame.h"
#include "wx/gdicmn.h"
#include "wx/region.h"
#include "wx/bitmap.h"
#include "wx/colour.h"

View File

@@ -14,10 +14,9 @@
#include "wx/colour.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif //WX_PRECOMP
#include "wx/gdicmn.h"
#include "wx/cocoa/autorelease.h"
#import <AppKit/NSColor.h>

View File

@@ -23,10 +23,10 @@
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
#include "wx/string.h"
#include "wx/gdicmn.h"
#endif
#include "wx/display_impl.h"
#include "wx/gdicmn.h"
#import <Foundation/Foundation.h>

View File

@@ -15,9 +15,9 @@
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/encinfo.h"
IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)

View File

@@ -15,10 +15,9 @@
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/cocoa/autorelease.h"
#import <AppKit/NSColor.h>

View File

@@ -32,9 +32,9 @@
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/log.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/prntbase.h"
#include "wx/printdlg.h"

View File

@@ -22,10 +22,9 @@
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
// ============================================================================
// wxString <-> wxColour conversions

View File

@@ -32,7 +32,6 @@
#include "wx/display.h"
#include "wx/display_impl.h"
#include "wx/module.h"
#include "wx/gdicmn.h" // for wxDisplaySize()
#if wxUSE_DISPLAY
@@ -268,4 +267,3 @@ int wxDisplayFactorySingle::GetFromPoint(const wxPoint& pt)
// the point is outside of the screen
return wxNOT_FOUND;
}

View File

@@ -22,10 +22,9 @@
#include "wx/dcmemory.h"
#include "wx/pen.h"
#include "wx/settings.h"
#include "wx/gdicmn.h"
#endif //WX_PRECOMP
#include "wx/gdicmn.h"
/*
* wxEffects: various 3D effects
*/

View File

@@ -31,10 +31,9 @@
#include "wx/intl.h"
#include "wx/dcscreen.h"
#include "wx/log.h"
#include "wx/gdicmn.h"
#endif // WX_PRECOMP
#include "wx/gdicmn.h"
#if defined(__WXMSW__)
#include "wx/msw/private.h" // includes windows.h for LOGFONT
#include "wx/msw/winundef.h"
@@ -268,7 +267,7 @@ wxString wxFontBase::GetNativeFontInfoDesc() const
if ( fontInfo )
{
fontDesc = fontInfo->ToString();
wxASSERT_MSG(!fontDesc.IsEmpty(), wxT("This should be a non-empty string!"));
wxASSERT_MSG(!fontDesc.empty(), wxT("This should be a non-empty string!"));
}
else
{
@@ -285,7 +284,7 @@ wxString wxFontBase::GetNativeFontInfoUserDesc() const
if ( fontInfo )
{
fontDesc = fontInfo->ToUserString();
wxASSERT_MSG(!fontDesc.IsEmpty(), wxT("This should be a non-empty string!"));
wxASSERT_MSG(!fontDesc.empty(), wxT("This should be a non-empty string!"));
}
else
{

View File

@@ -35,11 +35,11 @@
#include "wx/layout.h"
#include "wx/sizer.h"
#include "wx/textdlg.h"
#include "wx/gdicmn.h"
#endif
#include "wx/module.h"
#include "wx/filefn.h"
#include "wx/gdicmn.h"
#include "wx/imaglist.h"
#include "wx/tokenzr.h"
#include "wx/dir.h"

View File

@@ -30,10 +30,9 @@
#include "wx/string.h"
#include "wx/dc.h"
#include "wx/settings.h"
#include "wx/gdicmn.h"
#endif //WX_PRECOMP
#include "wx/gdicmn.h"
#include "wx/splitter.h"
#include "wx/dcmirror.h"
#include "wx/module.h"

View File

@@ -27,9 +27,9 @@
#include "wx/msgdlg.h"
#include "wx/memory.h"
#include "wx/font.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/file.h"
#include "wx/filename.h"
#include "wx/module.h"

View File

@@ -20,10 +20,9 @@
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/window.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/gtk/private.h"
#include <gdk/gdkprivate.h>

View File

@@ -25,10 +25,10 @@
#include "wx/utils.h"
#include "wx/settings.h"
#include "wx/cmndata.h"
#include "wx/gdicmn.h"
#endif
#include "wx/fontutil.h"
#include "wx/gdicmn.h"
#include "wx/tokenzr.h"
#include <strings.h>

View File

@@ -27,9 +27,9 @@
#include "wx/msgdlg.h"
#include "wx/memory.h"
#include "wx/font.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/file.h"
#include "wx/filename.h"
#include "wx/module.h"

View File

@@ -12,7 +12,10 @@
#include "wx/colour.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
#include "wx/gtk1/private.h"
#include <gdk/gdk.h>

View File

@@ -20,10 +20,9 @@
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/window.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/gtk1/private.h"
#include <gdk/gdkprivate.h>

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
// Name: src/gtk/font.cpp
// Name: src/gtk1/font.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
@@ -24,11 +24,11 @@
#include "wx/log.h"
#include "wx/settings.h"
#include "wx/cmndata.h"
#include "wx/gdicmn.h"
#endif
#include "wx/fontutil.h"
#include "wx/utils.h"
#include "wx/gdicmn.h"
#include "wx/tokenzr.h"
#include <strings.h>

View File

@@ -31,9 +31,9 @@
#include "wx/msgdlg.h"
#include "wx/textctrl.h"
#include "wx/memory.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/module.h"
#include "wx/tooltip.h"
#include "wx/docview.h"

View File

@@ -13,7 +13,9 @@
#include "wx/colour.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
#include "wx/mac/private.h"

View File

@@ -31,6 +31,7 @@
#include "wx/dynarray.h"
#include "wx/log.h"
#include "wx/string.h"
#include "wx/gdicmn.h"
#endif
#ifdef __DARWIN__
@@ -45,7 +46,6 @@
#endif
#include "wx/display_impl.h"
#include "wx/gdicmn.h"
// ----------------------------------------------------------------------------
// display classes implementation

View File

@@ -19,9 +19,9 @@
#include "wx/app.h"
#include "wx/window.h"
#include "wx/toplevel.h"
#include "wx/gdicmn.h"
#endif // WX_PRECOMP
#include "wx/gdicmn.h"
#include "wx/mac/private.h"
#ifndef __DARWIN__

View File

@@ -17,10 +17,10 @@
#include "wx/string.h"
#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/gdicmn.h"
#endif
#include "wx/fontutil.h"
#include "wx/gdicmn.h"
#include "wx/fontutil.h"
#include "wx/mac/private.h"

View File

@@ -1,18 +1,22 @@
/////////////////////////////////////////////////////////////////////////////
// Name: gdiobj.cpp
// Name: src/mac/carbon/gdiobj.cpp
// Purpose: wxGDIObject class
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#include "wx/gdiobj.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
#include "wx/mac/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject)

View File

@@ -12,7 +12,10 @@
#include "wx/region.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
#include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject)

View File

@@ -15,10 +15,9 @@
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/mac/uma.h"
// ----------------------------------------------------------------------------

View File

@@ -35,9 +35,9 @@
#include "wx/msgdlg.h"
#include "wx/textctrl.h"
#include "wx/memory.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/module.h"
#include "wx/tooltip.h"
#include "wx/docview.h"

View File

@@ -13,7 +13,9 @@
#include "wx/colour.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
IMPLEMENT_DYNAMIC_CLASS(wxColour, wxObject)

View File

@@ -32,6 +32,7 @@
#include "wx/dynarray.h"
#include "wx/log.h"
#include "wx/string.h"
#include "wx/gdicmn.h"
#endif
#ifdef __DARWIN__
@@ -45,7 +46,6 @@
#endif
#include "wx/display_impl.h"
#include "wx/gdicmn.h"
// ----------------------------------------------------------------------------
// display implementation classes

View File

@@ -23,9 +23,9 @@
#include "wx/app.h"
#include "wx/window.h"
#include "wx/toplevel.h"
#include "wx/gdicmn.h"
#endif // WX_PRECOMP
#include "wx/gdicmn.h"
#include "wx/mac/private.h"
// ----------------------------------------------------------------------------

View File

@@ -20,10 +20,10 @@
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/utils.h"
#include "wx/gdicmn.h"
#endif
#include "wx/fontutil.h"
#include "wx/gdicmn.h"
#include "wx/fontutil.h"

View File

@@ -1,16 +1,22 @@
/////////////////////////////////////////////////////////////////////////////
// Name: gdiobj.cpp
// Name: src/mac/classic/gdiobj.cpp
// Purpose: wxGDIObject class
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#include "wx/gdiobj.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
#include "wx/mac/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject)

View File

@@ -12,7 +12,10 @@
#include "wx/region.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
#include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject)

View File

@@ -15,10 +15,9 @@
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/mac/uma.h"
// ----------------------------------------------------------------------------

View File

@@ -18,7 +18,9 @@
#include "wx/colour.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
IMPLEMENT_DYNAMIC_CLASS(wxColour, wxObject)

View File

@@ -28,10 +28,10 @@
#include "wx/utils.h"
#include "wx/settings.h"
#include "wx/cmndata.h"
#include "wx/gdicmn.h"
#endif
#include "wx/fontutil.h"
#include "wx/gdicmn.h"
#include "wx/tokenzr.h"
#include "wx/mgl/private.h"

View File

@@ -11,12 +11,15 @@
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#pragma hdrstop
#endif
#include "wx/region.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
#include "wx/thread.h"
#include "wx/module.h"

View File

@@ -18,9 +18,9 @@
#ifndef WX_PRECOMP
#include "wx/colour.h"
#include "wx/font.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/module.h"
// ----------------------------------------------------------------------------

View File

@@ -19,10 +19,9 @@
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#ifdef __VMS__
#pragma message disable nosimpint
#endif

View File

@@ -20,10 +20,9 @@
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/window.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include <X11/Xlib.h>
// ----------------------------------------------------------------------------

View File

@@ -35,9 +35,9 @@
#include "wx/string.h"
#include "wx/utils.h" // for wxGetDisplay()
#include "wx/settings.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/fontutil.h" // for wxNativeFontInfo
#include "wx/tokenzr.h"
#include "wx/motif/private.h"
@@ -675,7 +675,7 @@ void wxGetTextExtent(WXDisplay* display, const wxFont& font,
int direction, ascent2, descent2;
XCharStruct overall;
int slen = str.Len();
int slen = str.length();
XTextExtents((XFontStruct*) pFontStruct, (char*) str.c_str(), slen,
&direction, &ascent2, &descent2, &overall);

View File

@@ -20,10 +20,9 @@
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#ifdef __VMS__
#pragma message disable nosimpint
#endif

View File

@@ -18,7 +18,10 @@
#include "wx/colour.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
#include "wx/msw/private.h"
#include <string.h>

View File

@@ -21,12 +21,15 @@
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#pragma hdrstop
#endif
#include "wx/region.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
#include "wx/msw/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject)

View File

@@ -15,9 +15,9 @@
#include "wx/colour.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#define INCL_GPI
#define INCL_PM
#include<os2.h>

View File

@@ -19,10 +19,9 @@
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/window.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#define INCL_PM
#define INCL_DOS
#include <os2.h>

View File

@@ -15,10 +15,9 @@
#ifndef WX_PRECOMP
#include "wx/font.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject)
class wxStockGDIPM: public wxStockGDI

View File

@@ -15,10 +15,10 @@
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/window.h"
#include "wx/gdicmn.h"
#endif
#include "wx/os2/region.h"
#include "wx/gdicmn.h"
#include "wx/os2/private.h"

View File

@@ -18,7 +18,9 @@
#include "wx/colour.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
#include <string.h>

View File

@@ -21,12 +21,14 @@
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#pragma hdrstop
#endif
#include "wx/region.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject)
IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator, wxObject)

View File

@@ -24,9 +24,9 @@
#include "wx/dialog.h"
#include "wx/timer.h"
#include "wx/memory.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/module.h"
#include "wx/evtloop.h"
#include "wx/filename.h"

View File

@@ -16,10 +16,9 @@
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/x11/private.h"
//-----------------------------------------------------------------------------

View File

@@ -18,10 +18,9 @@
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/icon.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/x11/private.h"
#if !wxUSE_NANOX

View File

@@ -24,10 +24,9 @@
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/window.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include <X11/Xlib.h>
// ----------------------------------------------------------------------------

View File

@@ -35,9 +35,9 @@
#include "wx/string.h"
#include "wx/utils.h" // for wxGetDisplay()
#include "wx/settings.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/fontutil.h" // for wxNativeFontInfo
#include "wx/tokenzr.h"

View File

@@ -15,10 +15,9 @@
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#ifdef __VMS__
#pragma message disable nosimpint
#endif

View File

@@ -18,7 +18,10 @@
#include "wx/settings.h"
#include "wx/gdicmn.h"
#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
#endif
#include "wx/x11/private.h"
wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)