]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/listctrl.cpp
reSWIGged
[wxWidgets.git] / src / palmos / listctrl.cpp
Content-type: text/html ]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/listctrl.cpp


500 - Internal Server Error

Malformed UTF-8 character (fatal) at /usr/lib/x86_64-linux-gnu/perl5/5.40/HTML/Entities.pm line 485, <$fd> line 313.
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/palmos/listctrl.cpp
3// Purpose: wxListCtrl
e2731512 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
52f2ad08 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// declarations
14// ============================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
20#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "listctrl.h"
22 #pragma implementation "listctrlbase.h"
23#endif
24
25// For compilers that support precompilation, includes "wx.h".
26#include "wx/wxprec.h"
27
28#ifdef __BORLANDC__
29 #pragma hdrstop
30#endif
31
52f2ad08 32#if wxUSE_LISTCTRL
ffecfa5a
JS
33
34#ifndef WX_PRECOMP
35 #include "wx/app.h"
36 #include "wx/intl.h"
37 #include "wx/log.h"
38 #include "wx/settings.h"
39#endif
40
41#include "wx/textctrl.h"
42#include "wx/imaglist.h"
43#include "wx/listctrl.h"
44#include "wx/dcclient.h"
45
ffecfa5a
JS
46// ----------------------------------------------------------------------------
47// events
48// ----------------------------------------------------------------------------
49
50DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_BEGIN_DRAG)
51DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_BEGIN_RDRAG)
52DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)
53DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_END_LABEL_EDIT)
54DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_DELETE_ITEM)
55DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)
56DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_GET_INFO)
57DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_SET_INFO)
58DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_ITEM_SELECTED)
59DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_ITEM_DESELECTED)
60DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_KEY_DOWN)
61DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_INSERT_ITEM)
62DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_COL_CLICK)
63DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)
64DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)
65DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_COL_DRAGGING)
66DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_COL_END_DRAG)
67DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)
68DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)
69DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)
70DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_ITEM_FOCUSED)
71DEFINE_EVENT_TYPE(wxEVT_COMMAND_LIST_CACHE_HINT)
72
73#if wxUSE_EXTENDED_RTTI
74WX_DEFINE_FLAGS( wxListCtrlStyle )
75
76wxBEGIN_FLAGS( wxListCtrlStyle )
77 // new style border flags, we put them first to
78 // use them for streaming out
79 wxFLAGS_MEMBER(wxBORDER_SIMPLE)
80 wxFLAGS_MEMBER(wxBORDER_SUNKEN)
81 wxFLAGS_MEMBER(wxBORDER_DOUBLE)
82 wxFLAGS_MEMBER(wxBORDER_RAISED)
83 wxFLAGS_MEMBER(wxBORDER_STATIC)
84 wxFLAGS_MEMBER(wxBORDER_NONE)
5445a26c 85
ffecfa5a
JS
86 // old style border flags
87 wxFLAGS_MEMBER(wxSIMPLE_BORDER)
88 wxFLAGS_MEMBER(wxSUNKEN_BORDER)
89 wxFLAGS_MEMBER(wxDOUBLE_BORDER)
90 wxFLAGS_MEMBER(wxRAISED_BORDER)
91 wxFLAGS_MEMBER(wxSTATIC_BORDER)
92 wxFLAGS_MEMBER(wxBORDER)
93
94 // standard window styles
95 wxFLAGS_MEMBER(wxTAB_TRAVERSAL)
96 wxFLAGS_MEMBER(wxCLIP_CHILDREN)
97 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)
98 wxFLAGS_MEMBER(wxWANTS_CHARS)
99 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)
100 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )
101 wxFLAGS_MEMBER(wxVSCROLL)
102 wxFLAGS_MEMBER(wxHSCROLL)
103
104 wxFLAGS_MEMBER(wxLC_LIST)
105 wxFLAGS_MEMBER(wxLC_REPORT)
106 wxFLAGS_MEMBER(wxLC_ICON)
107 wxFLAGS_MEMBER(wxLC_SMALL_ICON)
108 wxFLAGS_MEMBER(wxLC_ALIGN_TOP)
109 wxFLAGS_MEMBER(wxLC_ALIGN_LEFT)
110 wxFLAGS_MEMBER(wxLC_AUTOARRANGE)
111 wxFLAGS_MEMBER(wxLC_USER_TEXT)
112 wxFLAGS_MEMBER(wxLC_EDIT_LABELS)
113 wxFLAGS_MEMBER(wxLC_NO_HEADER)
114 wxFLAGS_MEMBER(wxLC_SINGLE_SEL)
115 wxFLAGS_MEMBER(wxLC_SORT_ASCENDING)
116 wxFLAGS_MEMBER(wxLC_SORT_DESCENDING)
117 wxFLAGS_MEMBER(wxLC_VIRTUAL)
118
119wxEND_FLAGS( wxListCtrlStyle )
120
121IMPLEMENT_DYNAMIC_CLASS_XTI(wxListCtrl, wxControl,"wx/listctrl.h")
122
123wxBEGIN_PROPERTIES_TABLE(wxListCtrl)
5445a26c 124 wxEVENT_PROPERTY( TextUpdated , wxEVT_COMMAND_TEXT_UPDATED , wxCommandEvent )
ffecfa5a
JS
125
126 wxPROPERTY_FLAGS( WindowStyle , wxListCtrlStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , EMPTY_MACROVALUE , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style
127wxEND_PROPERTIES_TABLE()
128
129wxBEGIN_HANDLERS_TABLE(wxListCtrl)
130wxEND_HANDLERS_TABLE()
131
5445a26c 132wxCONSTRUCTOR_5( wxListCtrl , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle )
ffecfa5a
JS
133
134/*
135