projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix horizontal mouse wheel scrolling in wxGTK.
[wxWidgets.git]
/
src
/
generic
/
imaglist.cpp
diff --git
a/src/generic/imaglist.cpp
b/src/generic/imaglist.cpp
index 54203dbb7bcdaa9acc16be10810e60ac3d34bc8c..ba98cc4003a0fe2c9bc1100538c8a05f2ba1512a 100644
(file)
--- a/
src/generic/imaglist.cpp
+++ b/
src/generic/imaglist.cpp
@@
-2,7
+2,6
@@
// Name: src/generic/imaglist.cpp
// Purpose:
// Author: Robert Roebling
// Name: src/generic/imaglist.cpp
// Purpose:
// Author: Robert Roebling
-// Id: $Id$
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@
-16,8
+15,6
@@
#if wxUSE_IMAGLIST && !defined(wxHAS_NATIVE_IMAGELIST)
#if wxUSE_IMAGLIST && !defined(wxHAS_NATIVE_IMAGELIST)
-#ifndef __WXPALMOS__
-
#include "wx/imaglist.h"
#ifndef WX_PRECOMP
#include "wx/imaglist.h"
#ifndef WX_PRECOMP
@@
-70,7
+67,7
@@
int wxGenericImageList::Add( const wxBitmap &bitmap )
const int index = int(m_images.GetCount());
const int index = int(m_images.GetCount());
- if (bitmap.IsKindOf(CLASSINFO(wxIcon)))
+ if (bitmap.IsKindOf(
wx
CLASSINFO(wxIcon)))
{
m_images.Append( new wxIcon( (const wxIcon&) bitmap ) );
}
{
m_images.Append( new wxIcon( (const wxIcon&) bitmap ) );
}
@@
-157,7
+154,7
@@
bool wxGenericImageList::Replace( int index, const wxBitmap &bitmap )
wxCHECK_MSG( node, false, wxT("wrong index in image list") );
wxCHECK_MSG( node, false, wxT("wrong index in image list") );
- wxBitmap* newBitmap = (bitmap.IsKindOf(CLASSINFO(wxIcon))) ?
+ wxBitmap* newBitmap = (bitmap.IsKindOf(
wx
CLASSINFO(wxIcon))) ?
#if defined(__VISAGECPP__)
//just can't do this in VisualAge now, with all this new Bitmap-Icon stuff
//so construct it from a bitmap object until I can figure this nonsense out. (DW)
#if defined(__VISAGECPP__)
//just can't do this in VisualAge now, with all this new Bitmap-Icon stuff
//so construct it from a bitmap object until I can figure this nonsense out. (DW)
@@
-190,7
+187,7
@@
bool wxGenericImageList::Replace( int index, const wxBitmap &bitmap, const wxBit
wxCHECK_MSG( node, false, wxT("wrong index in image list") );
wxCHECK_MSG( node, false, wxT("wrong index in image list") );
- wxBitmap* newBitmap = (bitmap.IsKindOf(CLASSINFO(wxIcon))) ?
+ wxBitmap* newBitmap = (bitmap.IsKindOf(
wx
CLASSINFO(wxIcon))) ?
#if defined(__VISAGECPP__)
//just can't do this in VisualAge now, with all this new Bitmap-Icon stuff
//so construct it from a bitmap object until I can figure this nonsense out. (DW)
#if defined(__VISAGECPP__)
//just can't do this in VisualAge now, with all this new Bitmap-Icon stuff
//so construct it from a bitmap object until I can figure this nonsense out. (DW)
@@
-265,7
+262,7
@@
bool wxGenericImageList::Draw( int index, wxDC &dc, int x, int y,
wxBitmap *bm = (wxBitmap*)node->GetData();
wxBitmap *bm = (wxBitmap*)node->GetData();
- if (bm->IsKindOf(CLASSINFO(wxIcon)))
+ if (bm->IsKindOf(
wx
CLASSINFO(wxIcon)))
dc.DrawIcon( * ((wxIcon*) bm), x, y);
else
dc.DrawBitmap( *bm, x, y, (flags & wxIMAGELIST_DRAW_TRANSPARENT) > 0 );
dc.DrawIcon( * ((wxIcon*) bm), x, y);
else
dc.DrawBitmap( *bm, x, y, (flags & wxIMAGELIST_DRAW_TRANSPARENT) > 0 );
@@
-273,6
+270,4
@@
bool wxGenericImageList::Draw( int index, wxDC &dc, int x, int y,
return true;
}
return true;
}
-#endif // __WXPALMOS__
-
#endif // wxUSE_IMAGLIST
#endif // wxUSE_IMAGLIST