From: Włodzimierz Skiba Date: Sun, 21 May 2006 21:45:44 +0000 (+0000) Subject: Include wx/icon.h according to precompiled headers of wx/wx.h (with other minor clean... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/923d28da0eed674dfd7f4a497568ac14a29f0189 Include wx/icon.h according to precompiled headers of wx/wx.h (with other minor cleaning). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/cocoa/icon.mm b/src/cocoa/icon.mm index 889f03e7cd..d385c6d9c7 100644 --- a/src/cocoa/icon.mm +++ b/src/cocoa/icon.mm @@ -6,13 +6,16 @@ // Created: 2003/08/11 // RCS-ID: $Id$ // Copyright: (c) 2003 David Elliott -// Licence: wxWidgets licence +// Licence: wxWidgets licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" + +#include "wx/icon.h" + #ifndef WX_PRECOMP - #include "wx/icon.h" #endif //WX_PRECOMP + #include "wx/bitmap.h" #include "wx/cocoa/autorelease.h" @@ -44,7 +47,7 @@ protected: wxIconRefData::wxIconRefData() { - m_ok = FALSE; + m_ok = false; m_width = 0; m_height = 0; m_depth = 0; @@ -116,7 +119,7 @@ bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type, M_ICONDATA->m_numColors = 0; M_ICONDATA->m_quality = 0; - return FALSE; + return false; } void wxIcon::CopyFromBitmap(const wxBitmap& bitmap) @@ -157,4 +160,3 @@ WX_NSImage wxIcon::GetNSImage() const return nil; return M_ICONDATA->m_cocoaNSImage; } - diff --git a/src/common/bmpbase.cpp b/src/common/bmpbase.cpp index d2aff268ff..e36107a2ac 100644 --- a/src/common/bmpbase.cpp +++ b/src/common/bmpbase.cpp @@ -27,9 +27,9 @@ #include "wx/log.h" #include "wx/utils.h" #include "wx/palette.h" + #include "wx/icon.h" #endif // WX_PRECOMP -#include "wx/icon.h" #include "wx/image.h" #include "wx/module.h" diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index 158de63121..7e869fb82e 100644 --- a/src/common/gdicmn.cpp +++ b/src/common/gdicmn.cpp @@ -31,10 +31,10 @@ #include "wx/pen.h" #include "wx/brush.h" #include "wx/palette.h" + #include "wx/icon.h" #endif #include "wx/bitmap.h" -#include "wx/icon.h" #include "wx/cursor.h" #include "wx/font.h" #include "wx/settings.h" diff --git a/src/common/iconbndl.cpp b/src/common/iconbndl.cpp index 40ff56d9ed..afdb96b826 100644 --- a/src/common/iconbndl.cpp +++ b/src/common/iconbndl.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: iconbndl.cpp +// Name: src/common/iconbndl.cpp // Purpose: wxIconBundle // Author: Mattia Barbon // Created: 23.03.2002 @@ -15,6 +15,8 @@ #pragma hdrstop #endif +#include "wx/iconbndl.h" + #ifndef WX_PRECOMP #include "wx/settings.h" #include "wx/icon.h" @@ -27,7 +29,6 @@ #include "wx/image.h" #endif -#include "wx/iconbndl.h" #include "wx/arrimpl.cpp" WX_DEFINE_OBJARRAY(wxIconArray) diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index b74aeec22a..30d47e3ea4 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -26,6 +26,7 @@ #include "wx/log.h" #include "wx/utils.h" #include "wx/button.h" + #include "wx/icon.h" #endif #include "wx/module.h" @@ -37,7 +38,6 @@ #include "wx/cmndata.h" #include "wx/gdicmn.h" #include "wx/imaglist.h" -#include "wx/icon.h" #include "wx/sizer.h" #include "wx/tokenzr.h" #include "wx/dir.h" diff --git a/src/generic/imaglist.cpp b/src/generic/imaglist.cpp index 9a658bf285..2cc89ab085 100644 --- a/src/generic/imaglist.cpp +++ b/src/generic/imaglist.cpp @@ -22,9 +22,9 @@ #ifndef WX_PRECOMP #include "wx/dc.h" + #include "wx/icon.h" #endif -#include "wx/icon.h" #include "wx/image.h" //----------------------------------------------------------------------------- diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index 32acc4f137..b04bbe3905 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -16,9 +16,9 @@ #include "wx/app.h" #include "wx/dcmemory.h" #include "wx/palette.h" + #include "wx/icon.h" #endif -#include "wx/icon.h" #include "wx/filefn.h" #include "wx/image.h" diff --git a/src/gtk/gnome/gprint.cpp b/src/gtk/gnome/gprint.cpp index 02ad8b7b46..e262a9303e 100644 --- a/src/gtk/gnome/gprint.cpp +++ b/src/gtk/gnome/gprint.cpp @@ -22,6 +22,7 @@ #ifndef WX_PRECOMP #include "wx/log.h" #include "wx/dcmemory.h" + #include "wx/icon.h" #endif #include "wx/math.h" @@ -29,7 +30,6 @@ #include "wx/gtk/private.h" #include "wx/module.h" #include "wx/dynlib.h" -#include "wx/icon.h" #include #include diff --git a/src/gtk1/bitmap.cpp b/src/gtk1/bitmap.cpp index 9cf27b8065..7c2c675a79 100644 --- a/src/gtk1/bitmap.cpp +++ b/src/gtk1/bitmap.cpp @@ -16,9 +16,9 @@ #include "wx/app.h" #include "wx/dcmemory.h" #include "wx/palette.h" + #include "wx/icon.h" #endif // WX_PRECOMP -#include "wx/icon.h" #include "wx/filefn.h" #include "wx/image.h" diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp index 8521da8756..ec64c3fb06 100644 --- a/src/mac/carbon/app.cpp +++ b/src/mac/carbon/app.cpp @@ -25,11 +25,11 @@ #include "wx/pen.h" #include "wx/brush.h" #include "wx/palette.h" + #include "wx/icon.h" #endif #include "wx/gdicmn.h" #include "wx/cursor.h" -#include "wx/icon.h" #include "wx/dialog.h" #include "wx/msgdlg.h" #include "wx/module.h" diff --git a/src/mac/carbon/bitmap.cpp b/src/mac/carbon/bitmap.cpp index c22d1b7821..8bc85846cc 100644 --- a/src/mac/carbon/bitmap.cpp +++ b/src/mac/carbon/bitmap.cpp @@ -16,9 +16,9 @@ #ifndef WX_PRECOMP #include "wx/log.h" #include "wx/dcmemory.h" + #include "wx/icon.h" #endif -#include "wx/icon.h" #include "wx/image.h" #include "wx/metafile.h" #include "wx/xpmdecod.h" diff --git a/src/mac/carbon/cursor.cpp b/src/mac/carbon/cursor.cpp index 4f3f0d47e5..67d8810712 100644 --- a/src/mac/carbon/cursor.cpp +++ b/src/mac/carbon/cursor.cpp @@ -15,9 +15,9 @@ #ifndef WX_PRECOMP #include "wx/app.h" + #include "wx/icon.h" #endif // WX_PRECOMP -#include "wx/icon.h" #include "wx/image.h" #include "wx/xpmdecod.h" diff --git a/src/mac/carbon/imaglist.cpp b/src/mac/carbon/imaglist.cpp index 80eb0f7583..04c71a729a 100644 --- a/src/mac/carbon/imaglist.cpp +++ b/src/mac/carbon/imaglist.cpp @@ -19,9 +19,9 @@ #ifndef WX_PRECOMP #include "wx/dc.h" + #include "wx/icon.h" #endif -#include "wx/icon.h" #include "wx/image.h" IMPLEMENT_DYNAMIC_CLASS(wxImageList, wxObject) diff --git a/src/mac/carbon/taskbar.cpp b/src/mac/carbon/taskbar.cpp index bc0330d2f8..c8bb4e1f26 100644 --- a/src/mac/carbon/taskbar.cpp +++ b/src/mac/carbon/taskbar.cpp @@ -19,13 +19,11 @@ #include "wx/dcmemory.h" #include "wx/menu.h" #include "wx/toplevel.h" + #include "wx/icon.h" #endif #include "wx/mac/private.h" -#include "wx/icon.h" - - class wxTaskBarIconImpl { public: diff --git a/src/mac/classic/app.cpp b/src/mac/classic/app.cpp index f9465f9865..6d83aedb22 100644 --- a/src/mac/classic/app.cpp +++ b/src/mac/classic/app.cpp @@ -29,11 +29,11 @@ #include "wx/pen.h" #include "wx/brush.h" #include "wx/palette.h" + #include "wx/icon.h" #endif #include "wx/gdicmn.h" #include "wx/cursor.h" -#include "wx/icon.h" #include "wx/dialog.h" #include "wx/msgdlg.h" #include "wx/module.h" diff --git a/src/mac/classic/bitmap.cpp b/src/mac/classic/bitmap.cpp index d91980f7f8..54cc8bba01 100644 --- a/src/mac/classic/bitmap.cpp +++ b/src/mac/classic/bitmap.cpp @@ -19,9 +19,9 @@ #ifndef WX_PRECOMP #include "wx/log.h" + #include "wx/icon.h" #endif -#include "wx/icon.h" #include "wx/image.h" #include "wx/xpmdecod.h" diff --git a/src/mac/classic/cursor.cpp b/src/mac/classic/cursor.cpp index 14890766a5..8442483bc6 100644 --- a/src/mac/classic/cursor.cpp +++ b/src/mac/classic/cursor.cpp @@ -19,9 +19,9 @@ #ifndef WX_PRECOMP #include "wx/app.h" + #include "wx/icon.h" #endif // WX_PRECOMP -#include "wx/icon.h" #include "wx/image.h" #include "wx/xpmdecod.h" diff --git a/src/mac/classic/icon.cpp b/src/mac/classic/icon.cpp index aa4b3ab0b8..b62c94d043 100644 --- a/src/mac/classic/icon.cpp +++ b/src/mac/classic/icon.cpp @@ -1,14 +1,16 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: icon.cpp +// Name: src/mac/classic/icon.cpp // Purpose: wxIcon 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/icon.h" IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap) @@ -24,10 +26,9 @@ wxIcon::wxIcon() { } -wxIcon::wxIcon(const char bits[], int width, int height) : - wxBitmap(bits, width, height) +wxIcon::wxIcon(const char bits[], int width, int height) + :wxBitmap(bits, width, height) { - } wxIcon::wxIcon( const char **bits ) : @@ -54,15 +55,15 @@ bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type, int desiredWidth, int desiredHeight) { UnRef(); - + m_refData = new wxBitmapRefData; - + wxBitmapHandler *handler = FindHandler((wxBitmapType)type); - + if ( handler ) return handler->LoadFile(this, filename, type, desiredWidth, desiredHeight); else - return FALSE; + return false; } void wxIcon::CopyFromBitmap(const wxBitmap& bmp) @@ -98,7 +99,7 @@ bool wxICONResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, lo Str255 theName ; OSType theType ; wxMacStringToPascal( name , theName ) ; - + Handle resHandle = GetNamedResource( 'cicn' , theName ) ; if ( resHandle != 0L ) { @@ -114,13 +115,13 @@ bool wxICONResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, lo M_BITMAPHANDLERDATA->m_hIcon = theIcon ; M_BITMAPHANDLERDATA->m_width = 32 ; M_BITMAPHANDLERDATA->m_height = 32 ; - + M_BITMAPHANDLERDATA->m_depth = 8 ; M_BITMAPHANDLERDATA->m_ok = true ; M_BITMAPHANDLERDATA->m_numColors = 256 ; M_BITMAPHANDLERDATA->m_bitmapType = kMacBitmapTypeIcon ; - return TRUE ; + return true; } } - return FALSE ; + return false; } diff --git a/src/mgl/bitmap.cpp b/src/mgl/bitmap.cpp index 06e840311a..5eb34733e8 100644 --- a/src/mgl/bitmap.cpp +++ b/src/mgl/bitmap.cpp @@ -20,9 +20,9 @@ #include "wx/log.h" #include "wx/utils.h" #include "wx/dcmemory.h" + #include "wx/icon.h" #endif -#include "wx/icon.h" #include "wx/filefn.h" #include "wx/image.h" #include "wx/image.h" diff --git a/src/motif/frame.cpp b/src/motif/frame.cpp index d2243a7edb..b72dbe20f3 100644 --- a/src/motif/frame.cpp +++ b/src/motif/frame.cpp @@ -33,12 +33,12 @@ #include "wx/app.h" #include "wx/utils.h" #include "wx/menu.h" + #include "wx/icon.h" #endif #include "wx/statusbr.h" #include "wx/toolbar.h" #include "wx/settings.h" -#include "wx/icon.h" #ifdef __VMS__ #pragma message disable nosimpint diff --git a/src/motif/mdi.cpp b/src/motif/mdi.cpp index 1ddc29573e..5314c53dae 100644 --- a/src/motif/mdi.cpp +++ b/src/motif/mdi.cpp @@ -21,10 +21,10 @@ #ifndef WX_PRECOMP #include "wx/menu.h" + #include "wx/icon.h" #endif #include "wx/settings.h" -#include "wx/icon.h" #ifdef __VMS__ #pragma message disable nosimpint diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 6ba5c68d00..854e0edced 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -40,7 +40,6 @@ #include "wx/msgdlg.h" #include "wx/intl.h" #include "wx/wxchar.h" - #include "wx/icon.h" #include "wx/log.h" #endif diff --git a/src/os2/app.cpp b/src/os2/app.cpp index 7cf9125bc2..fe9f2d83d0 100644 --- a/src/os2/app.cpp +++ b/src/os2/app.cpp @@ -29,7 +29,6 @@ #include "wx/msgdlg.h" #include "wx/intl.h" #include "wx/wxchar.h" - #include "wx/icon.h" #include "wx/stdpaths.h" #include "wx/filename.h" #include "wx/log.h" diff --git a/src/os2/icon.cpp b/src/os2/icon.cpp index a8d7100033..7f2746b4a2 100644 --- a/src/os2/icon.cpp +++ b/src/os2/icon.cpp @@ -16,20 +16,19 @@ #pragma hdrstop #endif +#include "wx/icon.h" + #ifndef WX_PRECOMP #include "wx/list.h" #include "wx/utils.h" #include "wx/app.h" - #include "wx/icon.h" #include "wx/log.h" #endif #include "wx/os2/private.h" #include "assert.h" -#include "wx/icon.h" - - IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxGDIObject) +IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxGDIObject) // ============================================================================ // implementation diff --git a/src/palmos/app.cpp b/src/palmos/app.cpp index 508e073e87..3361595e65 100644 --- a/src/palmos/app.cpp +++ b/src/palmos/app.cpp @@ -40,7 +40,6 @@ #include "wx/msgdlg.h" #include "wx/intl.h" #include "wx/wxchar.h" - #include "wx/icon.h" #include "wx/log.h" #endif diff --git a/src/palmos/icon.cpp b/src/palmos/icon.cpp index 98af07bc41..12a7d01948 100644 --- a/src/palmos/icon.cpp +++ b/src/palmos/icon.cpp @@ -24,11 +24,12 @@ #pragma hdrstop #endif +#include "wx/icon.h" + #ifndef WX_PRECOMP #include "wx/list.h" #include "wx/utils.h" #include "wx/app.h" - #include "wx/icon.h" #include "wx/bitmap.h" #include "wx/log.h" #endif diff --git a/src/unix/utilsx11.cpp b/src/unix/utilsx11.cpp index cb2de81897..b81271298d 100644 --- a/src/unix/utilsx11.cpp +++ b/src/unix/utilsx11.cpp @@ -19,11 +19,11 @@ #ifndef WX_PRECOMP #include "wx/log.h" #include "wx/app.h" + #include "wx/icon.h" #endif #include "wx/iconbndl.h" #include "wx/image.h" -#include "wx/icon.h" #ifdef __VMS #pragma message disable nosimpint diff --git a/src/x11/app.cpp b/src/x11/app.cpp index 9bb8539733..9554bbd7e2 100644 --- a/src/x11/app.cpp +++ b/src/x11/app.cpp @@ -20,10 +20,10 @@ #include "wx/log.h" #include "wx/utils.h" #include "wx/frame.h" + #include "wx/icon.h" #endif #include "wx/gdicmn.h" -#include "wx/icon.h" #include "wx/dialog.h" #include "wx/module.h" #include "wx/memory.h" diff --git a/src/x11/bitmap.cpp b/src/x11/bitmap.cpp index b9905dde46..6139786ca5 100644 --- a/src/x11/bitmap.cpp +++ b/src/x11/bitmap.cpp @@ -18,9 +18,9 @@ #include "wx/log.h" #include "wx/app.h" #include "wx/dcmemory.h" + #include "wx/icon.h" #endif -#include "wx/icon.h" #include "wx/image.h" #include "wx/x11/private.h" diff --git a/src/x11/cursor.cpp b/src/x11/cursor.cpp index 7fbd54c028..3aff9bfa0e 100644 --- a/src/x11/cursor.cpp +++ b/src/x11/cursor.cpp @@ -17,10 +17,10 @@ #ifndef WX_PRECOMP #include "wx/app.h" #include "wx/utils.h" + #include "wx/icon.h" #endif #include "wx/gdicmn.h" -#include "wx/icon.h" #include "wx/x11/private.h"