git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39261
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
30 files changed:
// Created: 2003/08/11
// RCS-ID: $Id$
// Copyright: (c) 2003 David Elliott
// Created: 2003/08/11
// RCS-ID: $Id$
// Copyright: (c) 2003 David Elliott
-// Licence: wxWidgets licence
+// Licence: wxWidgets licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
+
+#include "wx/icon.h"
+
#include "wx/bitmap.h"
#include "wx/cocoa/autorelease.h"
#include "wx/bitmap.h"
#include "wx/cocoa/autorelease.h"
wxIconRefData::wxIconRefData()
{
wxIconRefData::wxIconRefData()
{
m_width = 0;
m_height = 0;
m_depth = 0;
m_width = 0;
m_height = 0;
m_depth = 0;
M_ICONDATA->m_numColors = 0;
M_ICONDATA->m_quality = 0;
M_ICONDATA->m_numColors = 0;
M_ICONDATA->m_quality = 0;
}
void wxIcon::CopyFromBitmap(const wxBitmap& bitmap)
}
void wxIcon::CopyFromBitmap(const wxBitmap& bitmap)
return nil;
return M_ICONDATA->m_cocoaNSImage;
}
return nil;
return M_ICONDATA->m_cocoaNSImage;
}
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/palette.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/palette.h"
#include "wx/image.h"
#include "wx/module.h"
#include "wx/image.h"
#include "wx/module.h"
#include "wx/pen.h"
#include "wx/brush.h"
#include "wx/palette.h"
#include "wx/pen.h"
#include "wx/brush.h"
#include "wx/palette.h"
#endif
#include "wx/bitmap.h"
#endif
#include "wx/bitmap.h"
#include "wx/cursor.h"
#include "wx/font.h"
#include "wx/settings.h"
#include "wx/cursor.h"
#include "wx/font.h"
#include "wx/settings.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/iconbndl.cpp
// Purpose: wxIconBundle
// Author: Mattia Barbon
// Created: 23.03.2002
// Purpose: wxIconBundle
// Author: Mattia Barbon
// Created: 23.03.2002
+#include "wx/iconbndl.h"
+
#ifndef WX_PRECOMP
#include "wx/settings.h"
#include "wx/icon.h"
#ifndef WX_PRECOMP
#include "wx/settings.h"
#include "wx/icon.h"
#include "wx/image.h"
#endif
#include "wx/image.h"
#endif
-#include "wx/iconbndl.h"
#include "wx/arrimpl.cpp"
WX_DEFINE_OBJARRAY(wxIconArray)
#include "wx/arrimpl.cpp"
WX_DEFINE_OBJARRAY(wxIconArray)
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/button.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/button.h"
#endif
#include "wx/module.h"
#endif
#include "wx/module.h"
#include "wx/cmndata.h"
#include "wx/gdicmn.h"
#include "wx/imaglist.h"
#include "wx/cmndata.h"
#include "wx/gdicmn.h"
#include "wx/imaglist.h"
#include "wx/sizer.h"
#include "wx/tokenzr.h"
#include "wx/dir.h"
#include "wx/sizer.h"
#include "wx/tokenzr.h"
#include "wx/dir.h"
#ifndef WX_PRECOMP
#include "wx/dc.h"
#ifndef WX_PRECOMP
#include "wx/dc.h"
#include "wx/image.h"
//-----------------------------------------------------------------------------
#include "wx/image.h"
//-----------------------------------------------------------------------------
#include "wx/app.h"
#include "wx/dcmemory.h"
#include "wx/palette.h"
#include "wx/app.h"
#include "wx/dcmemory.h"
#include "wx/palette.h"
#include "wx/filefn.h"
#include "wx/image.h"
#include "wx/filefn.h"
#include "wx/image.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/dcmemory.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/dcmemory.h"
#endif
#include "wx/math.h"
#endif
#include "wx/math.h"
#include "wx/gtk/private.h"
#include "wx/module.h"
#include "wx/dynlib.h"
#include "wx/gtk/private.h"
#include "wx/module.h"
#include "wx/dynlib.h"
#include <libgnomeprint/gnome-print.h>
#include <libgnomeprint/gnome-print-pango.h>
#include <libgnomeprint/gnome-print.h>
#include <libgnomeprint/gnome-print-pango.h>
#include "wx/app.h"
#include "wx/dcmemory.h"
#include "wx/palette.h"
#include "wx/app.h"
#include "wx/dcmemory.h"
#include "wx/palette.h"
#include "wx/filefn.h"
#include "wx/image.h"
#include "wx/filefn.h"
#include "wx/image.h"
#include "wx/pen.h"
#include "wx/brush.h"
#include "wx/palette.h"
#include "wx/pen.h"
#include "wx/brush.h"
#include "wx/palette.h"
#endif
#include "wx/gdicmn.h"
#include "wx/cursor.h"
#endif
#include "wx/gdicmn.h"
#include "wx/cursor.h"
#include "wx/dialog.h"
#include "wx/msgdlg.h"
#include "wx/module.h"
#include "wx/dialog.h"
#include "wx/msgdlg.h"
#include "wx/module.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/dcmemory.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/dcmemory.h"
#include "wx/image.h"
#include "wx/metafile.h"
#include "wx/xpmdecod.h"
#include "wx/image.h"
#include "wx/metafile.h"
#include "wx/xpmdecod.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/image.h"
#include "wx/xpmdecod.h"
#include "wx/image.h"
#include "wx/xpmdecod.h"
#ifndef WX_PRECOMP
#include "wx/dc.h"
#ifndef WX_PRECOMP
#include "wx/dc.h"
#include "wx/image.h"
IMPLEMENT_DYNAMIC_CLASS(wxImageList, wxObject)
#include "wx/image.h"
IMPLEMENT_DYNAMIC_CLASS(wxImageList, wxObject)
#include "wx/dcmemory.h"
#include "wx/menu.h"
#include "wx/toplevel.h"
#include "wx/dcmemory.h"
#include "wx/menu.h"
#include "wx/toplevel.h"
#endif
#include "wx/mac/private.h"
#endif
#include "wx/mac/private.h"
-#include "wx/icon.h"
-
-
class wxTaskBarIconImpl
{
public:
class wxTaskBarIconImpl
{
public:
#include "wx/pen.h"
#include "wx/brush.h"
#include "wx/palette.h"
#include "wx/pen.h"
#include "wx/brush.h"
#include "wx/palette.h"
#endif
#include "wx/gdicmn.h"
#include "wx/cursor.h"
#endif
#include "wx/gdicmn.h"
#include "wx/cursor.h"
#include "wx/dialog.h"
#include "wx/msgdlg.h"
#include "wx/module.h"
#include "wx/dialog.h"
#include "wx/msgdlg.h"
#include "wx/module.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/image.h"
#include "wx/xpmdecod.h"
#include "wx/image.h"
#include "wx/xpmdecod.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/image.h"
#include "wx/xpmdecod.h"
#include "wx/image.h"
#include "wx/xpmdecod.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// 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
// 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)
#include "wx/icon.h"
IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap)
-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 ) :
}
wxIcon::wxIcon( const char **bits ) :
int desiredWidth, int desiredHeight)
{
UnRef();
int desiredWidth, int desiredHeight)
{
UnRef();
m_refData = new wxBitmapRefData;
m_refData = new wxBitmapRefData;
wxBitmapHandler *handler = FindHandler((wxBitmapType)type);
wxBitmapHandler *handler = FindHandler((wxBitmapType)type);
if ( handler )
return handler->LoadFile(this, filename, type, desiredWidth, desiredHeight);
else
if ( handler )
return handler->LoadFile(this, filename, type, desiredWidth, desiredHeight);
else
}
void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
}
void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
Str255 theName ;
OSType theType ;
wxMacStringToPascal( name , theName ) ;
Str255 theName ;
OSType theType ;
wxMacStringToPascal( name , theName ) ;
Handle resHandle = GetNamedResource( 'cicn' , theName ) ;
if ( resHandle != 0L )
{
Handle resHandle = GetNamedResource( 'cicn' , theName ) ;
if ( resHandle != 0L )
{
M_BITMAPHANDLERDATA->m_hIcon = theIcon ;
M_BITMAPHANDLERDATA->m_width = 32 ;
M_BITMAPHANDLERDATA->m_height = 32 ;
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 ;
M_BITMAPHANDLERDATA->m_depth = 8 ;
M_BITMAPHANDLERDATA->m_ok = true ;
M_BITMAPHANDLERDATA->m_numColors = 256 ;
M_BITMAPHANDLERDATA->m_bitmapType = kMacBitmapTypeIcon ;
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/dcmemory.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/dcmemory.h"
#include "wx/filefn.h"
#include "wx/image.h"
#include "wx/image.h"
#include "wx/filefn.h"
#include "wx/image.h"
#include "wx/image.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/menu.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/menu.h"
#endif
#include "wx/statusbr.h"
#include "wx/toolbar.h"
#include "wx/settings.h"
#endif
#include "wx/statusbr.h"
#include "wx/toolbar.h"
#include "wx/settings.h"
#ifdef __VMS__
#pragma message disable nosimpint
#ifdef __VMS__
#pragma message disable nosimpint
#ifndef WX_PRECOMP
#include "wx/menu.h"
#ifndef WX_PRECOMP
#include "wx/menu.h"
#endif
#include "wx/settings.h"
#endif
#include "wx/settings.h"
#ifdef __VMS__
#pragma message disable nosimpint
#ifdef __VMS__
#pragma message disable nosimpint
#include "wx/msgdlg.h"
#include "wx/intl.h"
#include "wx/wxchar.h"
#include "wx/msgdlg.h"
#include "wx/intl.h"
#include "wx/wxchar.h"
#include "wx/log.h"
#endif
#include "wx/log.h"
#endif
#include "wx/msgdlg.h"
#include "wx/intl.h"
#include "wx/wxchar.h"
#include "wx/msgdlg.h"
#include "wx/intl.h"
#include "wx/wxchar.h"
#include "wx/stdpaths.h"
#include "wx/filename.h"
#include "wx/log.h"
#include "wx/stdpaths.h"
#include "wx/filename.h"
#include "wx/log.h"
#ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/utils.h"
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/log.h"
#endif
#include "wx/os2/private.h"
#include "assert.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
// ============================================================================
// implementation
#include "wx/msgdlg.h"
#include "wx/intl.h"
#include "wx/wxchar.h"
#include "wx/msgdlg.h"
#include "wx/intl.h"
#include "wx/wxchar.h"
#include "wx/log.h"
#endif
#include "wx/log.h"
#endif
#ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/utils.h"
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/bitmap.h"
#include "wx/log.h"
#endif
#include "wx/bitmap.h"
#include "wx/log.h"
#endif
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
#endif
#include "wx/iconbndl.h"
#include "wx/image.h"
#endif
#include "wx/iconbndl.h"
#include "wx/image.h"
#ifdef __VMS
#pragma message disable nosimpint
#ifdef __VMS
#pragma message disable nosimpint
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/frame.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/frame.h"
#endif
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/dialog.h"
#include "wx/module.h"
#include "wx/memory.h"
#include "wx/dialog.h"
#include "wx/module.h"
#include "wx/memory.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/dcmemory.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/dcmemory.h"
#include "wx/image.h"
#include "wx/x11/private.h"
#include "wx/image.h"
#include "wx/x11/private.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/utils.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/utils.h"
#endif
#include "wx/gdicmn.h"
#endif
#include "wx/gdicmn.h"
#include "wx/x11/private.h"
#include "wx/x11/private.h"