projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add wxTimePickerCtrl class.
[wxWidgets.git]
/
include
/
wx
/
palmos
/
listctrl.h
diff --git
a/include/wx/palmos/listctrl.h
b/include/wx/palmos/listctrl.h
index 5271ed76e46e2ea2aa9cd0dd1584f76c0fb002fa..aad5f3cdba1c72edd2d9188a8351c4327fb792cd 100644
(file)
--- a/
include/wx/palmos/listctrl.h
+++ b/
include/wx/palmos/listctrl.h
@@
-1,8
+1,8
@@
/////////////////////////////////////////////////////////////////////////////
// Name: wx/palmos/listctrl.h
// Purpose: wxListCtrl class
/////////////////////////////////////////////////////////////////////////////
// Name: wx/palmos/listctrl.h
// Purpose: wxListCtrl class
-// Author: William Osborne
-// Modified by:
+// Author: William Osborne
- minimal working wxPalmOS port
+// Modified by:
Yunhui Fu
// Created: 10/13/04
// RCS-ID: $Id$
// Copyright: (c) William Osborne
// Created: 10/13/04
// RCS-ID: $Id$
// Copyright: (c) William Osborne
@@
-12,10
+12,6
@@
#ifndef _WX_LISTCTRL_H_
#define _WX_LISTCTRL_H_
#ifndef _WX_LISTCTRL_H_
#define _WX_LISTCTRL_H_
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "listctrl.h"
-#endif
-
#if wxUSE_LISTCTRL
#include "wx/control.h"
#if wxUSE_LISTCTRL
#include "wx/control.h"
@@
-24,7
+20,7
@@
#include "wx/textctrl.h"
#include "wx/textctrl.h"
-class WXDLL
EXPORT
wxImageList;
+class WXDLL
IMPEXP_FWD_CORE
wxImageList;
/*
The wxListCtrl can show lists of items in four different modes:
/*
The wxListCtrl can show lists of items in four different modes:
@@
-77,7
+73,7
@@
class WXDLLEXPORT wxImageList;
*/
*/
-class WXDLL
EXPORT
wxListCtrl: public wxControl
+class WXDLL
IMPEXP_CORE
wxListCtrl: public wxControl
{
public:
/*
{
public:
/*
@@
-158,6
+154,7
@@
public:
// Sets the item image
bool SetItemImage(long item, int image, int selImage) ;
// Sets the item image
bool SetItemImage(long item, int image, int selImage) ;
+ bool SetItemColumnImage(long item, long column, int image);
// Gets the item text
wxString GetItemText(long item) const ;
// Gets the item text
wxString GetItemText(long item) const ;
@@
-169,7
+166,8
@@
public:
long GetItemData(long item) const ;
// Sets the item data
long GetItemData(long item) const ;
// Sets the item data
- bool SetItemData(long item, long data) ;
+ bool SetItemPtrData(long item, wxUIntPtr data);
+ bool SetItemData(long item, long data) { return SetItemPtrData(item, data); }
// Gets the item rectangle
bool GetItemRect(long item, wxRect& rect, int code = wxLIST_RECT_BOUNDS) const ;
// Gets the item rectangle
bool GetItemRect(long item, wxRect& rect, int code = wxLIST_RECT_BOUNDS) const ;
@@
-213,9
+211,6
@@
public:
// Add or remove a single window style
void SetSingleStyle(long style, bool add = true) ;
// Add or remove a single window style
void SetSingleStyle(long style, bool add = true) ;
- // Set the whole window style
- void SetWindowStyleFlag(long style) ;
-
// Searches for an item, starting from 'item'.
// item can be -1 to find the first item that matches the
// specified flags.
// Searches for an item, starting from 'item'.
// item can be -1 to find the first item that matches the
// specified flags.
@@
-261,7
+256,7
@@
public:
void ClearAll();
// Edit the label
void ClearAll();
// Edit the label
- wxTextCtrl* EditLabel(long item, wxClassInfo* textControlClass = CLASSINFO(wxTextCtrl));
+ wxTextCtrl* EditLabel(long item, wxClassInfo* textControlClass =
wx
CLASSINFO(wxTextCtrl));
// End label editing, optionally cancelling the edit
bool EndEditLabel(bool cancel);
// End label editing, optionally cancelling the edit
bool EndEditLabel(bool cancel);
@@
-348,10
+343,6
@@
public:
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-
- // obsolete stuff, for compatibility only -- don't use
- wxDEPRECATED( int GetItemSpacing(bool isSmall) const);
-
protected:
// common part of all ctors
void Init();
protected:
// common part of all ctors
void Init();
@@
-385,7
+376,9
@@
protected:
// return the text for the given column of the given item
virtual wxString OnGetItemText(long item, long column) const;
// return the text for the given column of the given item
virtual wxString OnGetItemText(long item, long column) 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 item) const;
// return the attribute for the item (may return NULL if none)
virtual int OnGetItemImage(long item) const;
// return the attribute for the item (may return NULL if none)
@@
-395,7
+388,7
@@
private:
DECLARE_DYNAMIC_CLASS(wxListCtrl)
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxListCtrl)
DECLARE_EVENT_TABLE()
- DECLARE_NO_COPY_CLASS(wxListCtrl)
+ wxDECLARE_NO_COPY_CLASS(wxListCtrl);
};
#endif // wxUSE_LISTCTRL
};
#endif // wxUSE_LISTCTRL