X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5445a26cc480e03c4dcf2ba54b0881e1fa9330e5..7aa7d2d407a14a3dc0ba754b8b9e1296a4a6be57:/src/palmos/listctrl.cpp diff --git a/src/palmos/listctrl.cpp b/src/palmos/listctrl.cpp index 1b60979c31..ae81853584 100644 --- a/src/palmos/listctrl.cpp +++ b/src/palmos/listctrl.cpp @@ -1,10 +1,10 @@ ///////////////////////////////////////////////////////////////////////////// // Name: src/palmos/listctrl.cpp // Purpose: wxListCtrl -// Author: William Osborne +// Author: William Osborne - minimal working wxPalmOS port // Modified by: // Created: 10/13/04 -// RCS-ID: $Id: +// RCS-ID: $Id$ // Copyright: (c) William Osborne // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -17,11 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "listctrl.h" - #pragma implementation "listctrlbase.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -29,31 +24,19 @@ #pragma hdrstop #endif -#if wxUSE_LISTCTRL && defined(__WIN95__) +#if wxUSE_LISTCTRL #ifndef WX_PRECOMP #include "wx/app.h" #include "wx/intl.h" #include "wx/log.h" #include "wx/settings.h" + #include "wx/dcclient.h" #endif #include "wx/textctrl.h" #include "wx/imaglist.h" #include "wx/listctrl.h" -#include "wx/dcclient.h" - -#include "wx/palmos/private.h" - -#include "wx/palmos/wrapcctl.h" - -// ---------------------------------------------------------------------------- -// private functions -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// private helper classes -// ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- // events @@ -203,17 +186,11 @@ void wxListCtrl::SetSingleStyle(long style, bool add) { } -// Set the whole window style -void wxListCtrl::SetWindowStyleFlag(long flag) -{ -} - // ---------------------------------------------------------------------------- // accessors // ---------------------------------------------------------------------------- -/* static */ wxVisualAttributes -wxListCtrl::GetClassDefaultAttributes(wxWindowVariant variant) +/* static */ wxVisualAttributes wxListCtrl::GetClassDefaultAttributes(wxWindowVariant variant) { wxVisualAttributes attrs; @@ -307,6 +284,12 @@ bool wxListCtrl::SetItemImage(long item, int image, int WXUNUSED(selImage)) return false; } +// Sets the item image +bool wxListCtrl::SetItemColumnImage(long item, long column, int image) +{ + return false; +} + // Gets the item text wxString wxListCtrl::GetItemText(long item) const { @@ -626,16 +609,6 @@ bool wxListCtrl::SortItems(wxListCtrlCompare fn, long data) // message processing // ---------------------------------------------------------------------------- -// see comment at the end of wxListCtrl::GetColumn() -#ifdef NM_CUSTOMDRAW // _WIN32_IE >= 0x0300 - -WXLPARAM wxListCtrl::OnCustomDraw(WXLPARAM lParam) -{ - return CDRF_DODEFAULT; -} - -#endif // NM_CUSTOMDRAW supported - // Necessary for drawing hrules and vrules, if specified void wxListCtrl::OnPaint(wxPaintEvent& event) { @@ -655,6 +628,14 @@ int wxListCtrl::OnGetItemImage(long WXUNUSED(item)) const return -1; } +int wxListCtrl::OnGetItemColumnImage(long item, long column) const +{ + if (!column) + return OnGetItemImage(item); + + return -1; +} + wxListItemAttr *wxListCtrl::OnGetItemAttr(long WXUNUSED_UNLESS_DEBUG(item)) const { // no attributes by default @@ -682,8 +663,7 @@ static wxListItemInternalData *wxGetInternalData(HWND hwnd, long itemId) return NULL; }; -static -wxListItemInternalData *wxGetInternalData(const wxListCtrl *ctl, long itemId) +static wxListItemInternalData *wxGetInternalData(const wxListCtrl *ctl, long itemId) { return wxGetInternalData(GetHwndOf(ctl), itemId); }; @@ -698,4 +678,3 @@ static void wxDeleteInternalData(wxListCtrl* ctl, long itemId) } #endif // wxUSE_LISTCTRL -