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
This commit is contained in:
Włodzimierz Skiba
2006-05-21 21:45:44 +00:00
parent b61f4f77bc
commit 923d28da0e
30 changed files with 51 additions and 52 deletions

View File

@@ -6,13 +6,16 @@
// Created: 2003/08/11 // Created: 2003/08/11
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWidgets licence // Licence: wxWidgets licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/icon.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/icon.h"
#endif //WX_PRECOMP #endif //WX_PRECOMP
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/cocoa/autorelease.h" #include "wx/cocoa/autorelease.h"
@@ -44,7 +47,7 @@ protected:
wxIconRefData::wxIconRefData() wxIconRefData::wxIconRefData()
{ {
m_ok = FALSE; m_ok = false;
m_width = 0; m_width = 0;
m_height = 0; m_height = 0;
m_depth = 0; m_depth = 0;
@@ -116,7 +119,7 @@ bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type,
M_ICONDATA->m_numColors = 0; M_ICONDATA->m_numColors = 0;
M_ICONDATA->m_quality = 0; M_ICONDATA->m_quality = 0;
return FALSE; return false;
} }
void wxIcon::CopyFromBitmap(const wxBitmap& bitmap) void wxIcon::CopyFromBitmap(const wxBitmap& bitmap)
@@ -157,4 +160,3 @@ WX_NSImage wxIcon::GetNSImage() const
return nil; return nil;
return M_ICONDATA->m_cocoaNSImage; return M_ICONDATA->m_cocoaNSImage;
} }

View File

@@ -27,9 +27,9 @@
#include "wx/log.h" #include "wx/log.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/palette.h" #include "wx/palette.h"
#include "wx/icon.h"
#endif // WX_PRECOMP #endif // WX_PRECOMP
#include "wx/icon.h"
#include "wx/image.h" #include "wx/image.h"
#include "wx/module.h" #include "wx/module.h"

View File

@@ -31,10 +31,10 @@
#include "wx/pen.h" #include "wx/pen.h"
#include "wx/brush.h" #include "wx/brush.h"
#include "wx/palette.h" #include "wx/palette.h"
#include "wx/icon.h"
#endif #endif
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/icon.h"
#include "wx/cursor.h" #include "wx/cursor.h"
#include "wx/font.h" #include "wx/font.h"
#include "wx/settings.h" #include "wx/settings.h"

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: iconbndl.cpp // Name: src/common/iconbndl.cpp
// Purpose: wxIconBundle // Purpose: wxIconBundle
// Author: Mattia Barbon // Author: Mattia Barbon
// Created: 23.03.2002 // Created: 23.03.2002
@@ -15,6 +15,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/iconbndl.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/icon.h" #include "wx/icon.h"
@@ -27,7 +29,6 @@
#include "wx/image.h" #include "wx/image.h"
#endif #endif
#include "wx/iconbndl.h"
#include "wx/arrimpl.cpp" #include "wx/arrimpl.cpp"
WX_DEFINE_OBJARRAY(wxIconArray) WX_DEFINE_OBJARRAY(wxIconArray)

View File

@@ -26,6 +26,7 @@
#include "wx/log.h" #include "wx/log.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/button.h" #include "wx/button.h"
#include "wx/icon.h"
#endif #endif
#include "wx/module.h" #include "wx/module.h"
@@ -37,7 +38,6 @@
#include "wx/cmndata.h" #include "wx/cmndata.h"
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/imaglist.h" #include "wx/imaglist.h"
#include "wx/icon.h"
#include "wx/sizer.h" #include "wx/sizer.h"
#include "wx/tokenzr.h" #include "wx/tokenzr.h"
#include "wx/dir.h" #include "wx/dir.h"

View File

@@ -22,9 +22,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/dc.h" #include "wx/dc.h"
#include "wx/icon.h"
#endif #endif
#include "wx/icon.h"
#include "wx/image.h" #include "wx/image.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@@ -16,9 +16,9 @@
#include "wx/app.h" #include "wx/app.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/palette.h" #include "wx/palette.h"
#include "wx/icon.h"
#endif #endif
#include "wx/icon.h"
#include "wx/filefn.h" #include "wx/filefn.h"
#include "wx/image.h" #include "wx/image.h"

View File

@@ -22,6 +22,7 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/log.h" #include "wx/log.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/icon.h"
#endif #endif
#include "wx/math.h" #include "wx/math.h"
@@ -29,7 +30,6 @@
#include "wx/gtk/private.h" #include "wx/gtk/private.h"
#include "wx/module.h" #include "wx/module.h"
#include "wx/dynlib.h" #include "wx/dynlib.h"
#include "wx/icon.h"
#include <libgnomeprint/gnome-print.h> #include <libgnomeprint/gnome-print.h>
#include <libgnomeprint/gnome-print-pango.h> #include <libgnomeprint/gnome-print-pango.h>

View File

@@ -16,9 +16,9 @@
#include "wx/app.h" #include "wx/app.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/palette.h" #include "wx/palette.h"
#include "wx/icon.h"
#endif // WX_PRECOMP #endif // WX_PRECOMP
#include "wx/icon.h"
#include "wx/filefn.h" #include "wx/filefn.h"
#include "wx/image.h" #include "wx/image.h"

View File

@@ -25,11 +25,11 @@
#include "wx/pen.h" #include "wx/pen.h"
#include "wx/brush.h" #include "wx/brush.h"
#include "wx/palette.h" #include "wx/palette.h"
#include "wx/icon.h"
#endif #endif
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/cursor.h" #include "wx/cursor.h"
#include "wx/icon.h"
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/module.h" #include "wx/module.h"

View File

@@ -16,9 +16,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/log.h" #include "wx/log.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/icon.h"
#endif #endif
#include "wx/icon.h"
#include "wx/image.h" #include "wx/image.h"
#include "wx/metafile.h" #include "wx/metafile.h"
#include "wx/xpmdecod.h" #include "wx/xpmdecod.h"

View File

@@ -15,9 +15,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/app.h" #include "wx/app.h"
#include "wx/icon.h"
#endif // WX_PRECOMP #endif // WX_PRECOMP
#include "wx/icon.h"
#include "wx/image.h" #include "wx/image.h"
#include "wx/xpmdecod.h" #include "wx/xpmdecod.h"

View File

@@ -19,9 +19,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/dc.h" #include "wx/dc.h"
#include "wx/icon.h"
#endif #endif
#include "wx/icon.h"
#include "wx/image.h" #include "wx/image.h"
IMPLEMENT_DYNAMIC_CLASS(wxImageList, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxImageList, wxObject)

View File

@@ -19,13 +19,11 @@
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/menu.h" #include "wx/menu.h"
#include "wx/toplevel.h" #include "wx/toplevel.h"
#include "wx/icon.h"
#endif #endif
#include "wx/mac/private.h" #include "wx/mac/private.h"
#include "wx/icon.h"
class wxTaskBarIconImpl class wxTaskBarIconImpl
{ {
public: public:

View File

@@ -29,11 +29,11 @@
#include "wx/pen.h" #include "wx/pen.h"
#include "wx/brush.h" #include "wx/brush.h"
#include "wx/palette.h" #include "wx/palette.h"
#include "wx/icon.h"
#endif #endif
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/cursor.h" #include "wx/cursor.h"
#include "wx/icon.h"
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/module.h" #include "wx/module.h"

View File

@@ -19,9 +19,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/log.h" #include "wx/log.h"
#include "wx/icon.h"
#endif #endif
#include "wx/icon.h"
#include "wx/image.h" #include "wx/image.h"
#include "wx/xpmdecod.h" #include "wx/xpmdecod.h"

View File

@@ -19,9 +19,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/app.h" #include "wx/app.h"
#include "wx/icon.h"
#endif // WX_PRECOMP #endif // WX_PRECOMP
#include "wx/icon.h"
#include "wx/image.h" #include "wx/image.h"
#include "wx/xpmdecod.h" #include "wx/xpmdecod.h"

View File

@@ -1,14 +1,16 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: icon.cpp // Name: src/mac/classic/icon.cpp
// Purpose: wxIcon class // Purpose: wxIcon class
// Author: Stefan Csomor // Author: Stefan Csomor
// Modified by: // Modified by:
// Created: 1998-01-01 // Created: 1998-01-01
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Stefan Csomor // Copyright: (c) Stefan Csomor
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#include "wx/icon.h" #include "wx/icon.h"
IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap) IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap)
@@ -24,10 +26,9 @@ wxIcon::wxIcon()
{ {
} }
wxIcon::wxIcon(const char bits[], int width, int height) : wxIcon::wxIcon(const char bits[], int width, int height)
wxBitmap(bits, width, height) :wxBitmap(bits, width, height)
{ {
} }
wxIcon::wxIcon( const char **bits ) : wxIcon::wxIcon( const char **bits ) :
@@ -54,15 +55,15 @@ bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type,
int desiredWidth, int desiredHeight) int desiredWidth, int desiredHeight)
{ {
UnRef(); UnRef();
m_refData = new wxBitmapRefData; m_refData = new wxBitmapRefData;
wxBitmapHandler *handler = FindHandler((wxBitmapType)type); wxBitmapHandler *handler = FindHandler((wxBitmapType)type);
if ( handler ) if ( handler )
return handler->LoadFile(this, filename, type, desiredWidth, desiredHeight); return handler->LoadFile(this, filename, type, desiredWidth, desiredHeight);
else else
return FALSE; return false;
} }
void wxIcon::CopyFromBitmap(const wxBitmap& bmp) void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
@@ -98,7 +99,7 @@ bool wxICONResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, lo
Str255 theName ; Str255 theName ;
OSType theType ; OSType theType ;
wxMacStringToPascal( name , theName ) ; wxMacStringToPascal( name , theName ) ;
Handle resHandle = GetNamedResource( 'cicn' , theName ) ; Handle resHandle = GetNamedResource( 'cicn' , theName ) ;
if ( resHandle != 0L ) if ( resHandle != 0L )
{ {
@@ -114,13 +115,13 @@ bool wxICONResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, lo
M_BITMAPHANDLERDATA->m_hIcon = theIcon ; M_BITMAPHANDLERDATA->m_hIcon = theIcon ;
M_BITMAPHANDLERDATA->m_width = 32 ; M_BITMAPHANDLERDATA->m_width = 32 ;
M_BITMAPHANDLERDATA->m_height = 32 ; M_BITMAPHANDLERDATA->m_height = 32 ;
M_BITMAPHANDLERDATA->m_depth = 8 ; M_BITMAPHANDLERDATA->m_depth = 8 ;
M_BITMAPHANDLERDATA->m_ok = true ; M_BITMAPHANDLERDATA->m_ok = true ;
M_BITMAPHANDLERDATA->m_numColors = 256 ; M_BITMAPHANDLERDATA->m_numColors = 256 ;
M_BITMAPHANDLERDATA->m_bitmapType = kMacBitmapTypeIcon ; M_BITMAPHANDLERDATA->m_bitmapType = kMacBitmapTypeIcon ;
return TRUE ; return true;
} }
} }
return FALSE ; return false;
} }

View File

@@ -20,9 +20,9 @@
#include "wx/log.h" #include "wx/log.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/icon.h"
#endif #endif
#include "wx/icon.h"
#include "wx/filefn.h" #include "wx/filefn.h"
#include "wx/image.h" #include "wx/image.h"
#include "wx/image.h" #include "wx/image.h"

View File

@@ -33,12 +33,12 @@
#include "wx/app.h" #include "wx/app.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/menu.h" #include "wx/menu.h"
#include "wx/icon.h"
#endif #endif
#include "wx/statusbr.h" #include "wx/statusbr.h"
#include "wx/toolbar.h" #include "wx/toolbar.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/icon.h"
#ifdef __VMS__ #ifdef __VMS__
#pragma message disable nosimpint #pragma message disable nosimpint

View File

@@ -21,10 +21,10 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/menu.h" #include "wx/menu.h"
#include "wx/icon.h"
#endif #endif
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/icon.h"
#ifdef __VMS__ #ifdef __VMS__
#pragma message disable nosimpint #pragma message disable nosimpint

View File

@@ -40,7 +40,6 @@
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/wxchar.h" #include "wx/wxchar.h"
#include "wx/icon.h"
#include "wx/log.h" #include "wx/log.h"
#endif #endif

View File

@@ -29,7 +29,6 @@
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/wxchar.h" #include "wx/wxchar.h"
#include "wx/icon.h"
#include "wx/stdpaths.h" #include "wx/stdpaths.h"
#include "wx/filename.h" #include "wx/filename.h"
#include "wx/log.h" #include "wx/log.h"

View File

@@ -16,20 +16,19 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/icon.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/list.h" #include "wx/list.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/icon.h"
#include "wx/log.h" #include "wx/log.h"
#endif #endif
#include "wx/os2/private.h" #include "wx/os2/private.h"
#include "assert.h" #include "assert.h"
#include "wx/icon.h" IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxGDIObject)
IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxGDIObject)
// ============================================================================ // ============================================================================
// implementation // implementation

View File

@@ -40,7 +40,6 @@
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/wxchar.h" #include "wx/wxchar.h"
#include "wx/icon.h"
#include "wx/log.h" #include "wx/log.h"
#endif #endif

View File

@@ -24,11 +24,12 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/icon.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/list.h" #include "wx/list.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/icon.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/log.h" #include "wx/log.h"
#endif #endif

View File

@@ -19,11 +19,11 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/log.h" #include "wx/log.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/icon.h"
#endif #endif
#include "wx/iconbndl.h" #include "wx/iconbndl.h"
#include "wx/image.h" #include "wx/image.h"
#include "wx/icon.h"
#ifdef __VMS #ifdef __VMS
#pragma message disable nosimpint #pragma message disable nosimpint

View File

@@ -20,10 +20,10 @@
#include "wx/log.h" #include "wx/log.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/frame.h" #include "wx/frame.h"
#include "wx/icon.h"
#endif #endif
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/icon.h"
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/module.h" #include "wx/module.h"
#include "wx/memory.h" #include "wx/memory.h"

View File

@@ -18,9 +18,9 @@
#include "wx/log.h" #include "wx/log.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/icon.h"
#endif #endif
#include "wx/icon.h"
#include "wx/image.h" #include "wx/image.h"
#include "wx/x11/private.h" #include "wx/x11/private.h"

View File

@@ -17,10 +17,10 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/app.h" #include "wx/app.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/icon.h"
#endif #endif
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/icon.h"
#include "wx/x11/private.h" #include "wx/x11/private.h"