X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4f4cf895c1576d2c474a8ebec5d3ee01b98d5f7..cbeda384e51acb82e13994cb67ac1714669cae10:/include/wx/os2/listctrl.h?ds=inline diff --git a/include/wx/os2/listctrl.h b/include/wx/os2/listctrl.h index cf8e8bf861..ddece5a697 100644 --- a/include/wx/os2/listctrl.h +++ b/include/wx/os2/listctrl.h @@ -1,10 +1,17 @@ +/////////////////////////////////////////////////////////////////////////////// +// Name: wx/os2/listctrl.h +// Purpose: wxListCtrl class +// Author: +// Modified by: +// Created: +// RCS-ID: $Id$ +// Copyright: (c) wxWidgets team +// Licence: wxWindows licence +/////////////////////////////////////////////////////////////////////////////// + #ifndef _WX_LISTCTRL_H_ #define _WX_LISTCTRL_H_ -#ifdef __GNUG__ - #pragma interface "listctrl.h" -#endif - #if wxUSE_LISTCTRL #include "wx/control.h" @@ -13,11 +20,11 @@ #include "wx/textctrl.h" -class WXDLLEXPORT wxImageList; +class WXDLLIMPEXP_FWD_CORE wxImageList; typedef int (wxCALLBACK *wxListCtrlCompare)(long lItem1, long lItem2, long lSortData); -class WXDLLEXPORT wxListCtrl: public wxControl +class WXDLLIMPEXP_CORE wxListCtrl: public wxControl { public: wxListCtrl() { Init(); } @@ -27,7 +34,7 @@ public: ,const wxSize& rSize = wxDefaultSize ,long lStyle = wxLC_ICON ,const wxValidator& rValidator = wxDefaultValidator - ,const wxString& rsName = _T("wxListCtrl")) + ,const wxString& rsName = wxListCtrlNameStr) { Init(); Create( pParent @@ -47,7 +54,7 @@ public: ,const wxSize& rSize = wxDefaultSize ,long lStyle = wxLC_ICON ,const wxValidator& rValidator = wxDefaultValidator - ,const wxString& rsName = _T("wxListCtrl") + ,const wxString& rsName = wxListCtrlNameStr ); @@ -87,6 +94,7 @@ public: // int GetCountPerPage(void) const; + wxRect GetViewRect() const; // // Gets the edit control for editing labels. // @@ -125,6 +133,10 @@ public: ,int nImage ,int lSelImage ); + bool SetItemColumnImage( long lItem + ,long lColumn + ,int nImage + ); // // Item text @@ -138,9 +150,8 @@ public: // Item data // long GetItemData(long lItem) const; - bool SetItemData( long lItem - ,long lData - ); + bool SetItemPtrData(long item, wxUIntPtr data); + bool SetItemData(long item, long data) { return SetItemPtrData(item, data); } // // Gets the item rectangle @@ -172,7 +183,7 @@ public: // // Retrieves the spacing between icons in pixels. - // If small is TRUE, gets the spacing for the small icon + // If bIsSmall is true, gets the spacing for the small icon // view, otherwise the large icon view. // int GetItemSpacing(bool bIsSmall) const; @@ -213,7 +224,7 @@ public: // // Add or remove a single window style void SetSingleStyle( long lStyle - ,bool bAdd = TRUE + ,bool bAdd = true ); // @@ -316,7 +327,7 @@ public: // long FindItem( long lStart ,const wxString& rsStr - ,bool bPartial = FALSE + ,bool bPartial = false ); // @@ -431,7 +442,7 @@ public: void UpdateStyle(void); // - // Implementation: converts wxWindows style to MSW style. + // Implementation: converts wxWidgets style to MSW style. // Can be a single style flag or a bit list. // oldStyle is 'normalised' so that it doesn't contain // conflicting styles. @@ -475,12 +486,12 @@ protected: // keep track of inserted/deleted columns // - // TRUE if we have any internal data (user data & attributes) + // true if we have any internal data (user data & attributes) // bool m_bAnyInternalData; // - // TRUE if we have any items with custom attributes + // true if we have any items with custom attributes // bool m_bHasAnyAttr; @@ -495,10 +506,17 @@ protected: ) const; // - // Return the icon for the given item + // Return the icon for the given item. In report view, OnGetItemImage will + // only be called for the first column. See OnGetItemColumnImage for + // details. // virtual int OnGetItemImage(long lItem) const; + // + // Return the icon for the given item and column + // + virtual int OnGetItemColumnImage(long lItem, long lColumn) const; + // // Return the attribute for the item (may return NULL if none) // @@ -513,7 +531,7 @@ private: DECLARE_DYNAMIC_CLASS(wxListCtrl) DECLARE_EVENT_TABLE() - DECLARE_NO_COPY_CLASS(wxListCtrl) + wxDECLARE_NO_COPY_CLASS(wxListCtrl); }; // end of CLASS wxListCtrl #endif // wxUSE_LISTCTRL