1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxDataViewCtrl base classes
4 // Author: Robert Roebling
8 // Copyright: (c) Robert Roebling
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DATAVIEW_H_BASE_
13 #define _WX_DATAVIEW_H_BASE_
17 #if wxUSE_DATAVIEWCTRL
19 #include "wx/control.h"
20 #include "wx/textctrl.h"
21 #include "wx/bitmap.h"
22 #include "wx/variant.h"
23 #include "wx/listctrl.h"
25 #if defined(__WXGTK20__)
27 // #define wxUSE_GENERICDATAVIEWCTRL 1
28 #elif defined(__WXMAC__)
30 #define wxUSE_GENERICDATAVIEWCTRL 1
33 // ----------------------------------------------------------------------------
34 // wxDataViewCtrl flags
35 // ----------------------------------------------------------------------------
37 // ----------------------------------------------------------------------------
38 // wxDataViewCtrl globals
39 // ----------------------------------------------------------------------------
41 class WXDLLIMPEXP_FWD_ADV wxDataViewItem
;
42 class WXDLLIMPEXP_FWD_ADV wxDataViewModel
;
43 class WXDLLIMPEXP_FWD_ADV wxDataViewCtrl
;
44 class WXDLLIMPEXP_FWD_ADV wxDataViewColumn
;
45 class WXDLLIMPEXP_FWD_ADV wxDataViewRenderer
;
46 class WXDLLIMPEXP_FWD_ADV wxDataViewModelNotifier
;
47 class wxDataViewEventModelNotifier
;
49 extern WXDLLIMPEXP_DATA_ADV(const wxChar
) wxDataViewCtrlNameStr
[];
51 // the default width of new (text) columns:
52 #define wxDVC_DEFAULT_WIDTH 80
54 // the default width of new toggle columns:
55 #define wxDVC_TOGGLE_DEFAULT_WIDTH 30
57 // the default minimal width of the columns:
58 #define wxDVC_DEFAULT_MINWIDTH 30
60 // the default alignment of wxDataViewRenderers:
61 #define wxDVR_DEFAULT_ALIGNMENT (wxALIGN_LEFT|wxALIGN_TOP)
64 // ---------------------------------------------------------
66 // ---------------------------------------------------------
68 class WXDLLIMPEXP_ADV wxDataViewItem
71 wxDataViewItem( void* id
= NULL
)
73 wxDataViewItem( const wxDataViewItem
&item
)
75 bool IsOk() const { return m_id
!= NULL
; }
76 void* GetID() const { return m_id
; }
82 bool operator == (const wxDataViewItem
&left
, const wxDataViewItem
&right
);
84 // ---------------------------------------------------------
86 // ---------------------------------------------------------
88 class WXDLLIMPEXP_ADV wxDataViewModel
: public wxObjectRefData
93 virtual unsigned int GetColumnCount() const = 0;
95 // return type as reported by wxVariant
96 virtual wxString
GetColumnType( unsigned int col
) const = 0;
98 // get value into a wxVariant
99 virtual void GetValue( wxVariant
&variant
,
100 const wxDataViewItem
&item
, unsigned int col
) const = 0;
102 // set value, call ValueChanged() afterwards!
103 virtual bool SetValue( const wxVariant
&variant
,
104 const wxDataViewItem
&item
, unsigned int col
) = 0;
107 virtual bool HasChildren( const wxDataViewItem
&item
) const = 0;
108 virtual wxDataViewItem
GetFirstChild( const wxDataViewItem
&parent
) const = 0;
109 virtual wxDataViewItem
GetNextSibling( const wxDataViewItem
&item
) const = 0;
111 // delegated notifiers
112 virtual bool ItemAdded( const wxDataViewItem
&parent
, const wxDataViewItem
&item
);
113 virtual bool ItemDeleted( const wxDataViewItem
&item
);
114 virtual bool ItemChanged( const wxDataViewItem
&item
);
115 virtual bool ValueChanged( const wxDataViewItem
&item
, unsigned int col
);
116 virtual bool Cleared();
119 virtual void Resort();
121 void AddNotifier( wxDataViewModelNotifier
*notifier
);
122 void RemoveNotifier( wxDataViewModelNotifier
*notifier
);
124 // default compare function
125 virtual int Compare( const wxDataViewItem
&item1
, const wxDataViewItem
&item2
);
127 void SetSortingColumn( unsigned int col
) { m_sortingColumn
= col
; }
128 unsigned int GetSortingColumn() { return m_sortingColumn
; }
129 void SetSortOrderAscending( bool ascending
) { m_ascending
= ascending
; }
130 bool GetSortOrderAscending() { return m_ascending
; }
134 // the user should not delete this class directly: he should use DecRef() instead!
135 virtual ~wxDataViewModel() { }
138 unsigned int m_sortingColumn
;
142 // ---------------------------------------------------------
143 // wxDataViewVirtualListModel
144 // ---------------------------------------------------------
146 class wxDataViewIndexListModel
: public wxDataViewModel
149 wxDataViewIndexListModel();
150 ~wxDataViewIndexListModel();
152 virtual unsigned int GetRowCount() = 0;
154 virtual void GetValue( wxVariant
&variant
,
155 unsigned int row
, unsigned int col
) const = 0;
157 virtual bool SetValue( const wxVariant
&variant
,
158 unsigned int row
, unsigned int col
) = 0;
160 void ItemPrepended();
161 void ItemInserted( unsigned int before
);
163 void ItemChanged( unsigned int row
);
164 void ValueChanged( unsigned int row
, unsigned int col
);
166 wxDataViewItem
GetItem( unsigned int row
);
168 virtual int Compare( const wxDataViewItem
&item1
, const wxDataViewItem
&item2
);
172 // ---------------------------------------------------------
173 // wxDataViewModelNotifier
174 // ---------------------------------------------------------
176 class WXDLLIMPEXP_ADV wxDataViewModelNotifier
: public wxObject
179 wxDataViewModelNotifier() { }
180 virtual ~wxDataViewModelNotifier() { m_owner
= NULL
; }
182 virtual bool ItemAdded( const wxDataViewItem
&parent
, const wxDataViewItem
&item
) = 0;
183 virtual bool ItemDeleted( const wxDataViewItem
&item
) = 0;
184 virtual bool ItemChanged( const wxDataViewItem
&item
) = 0;
185 virtual bool ValueChanged( const wxDataViewItem
&item
, unsigned int col
) = 0;
186 virtual bool Cleared() = 0;
188 virtual void Resort() { };
190 void SetOwner( wxDataViewModel
*owner
) { m_owner
= owner
; }
191 wxDataViewModel
*GetOwner() { return m_owner
; }
194 wxDataViewModel
*m_owner
;
198 //-----------------------------------------------------------------------------
199 // wxDataViewEditorCtrlEvtHandler
200 //-----------------------------------------------------------------------------
202 class wxDataViewEditorCtrlEvtHandler
: public wxEvtHandler
205 wxDataViewEditorCtrlEvtHandler( wxControl
*editor
, wxDataViewRenderer
*owner
);
207 void AcceptChangesAndFinish();
208 void SetFocusOnIdle( bool focus
= true ) { m_focusOnIdle
= focus
; }
211 void OnChar( wxKeyEvent
&event
);
212 void OnKillFocus( wxFocusEvent
&event
);
213 void OnIdle( wxIdleEvent
&event
);
216 wxDataViewRenderer
*m_owner
;
217 wxControl
*m_editorCtrl
;
222 DECLARE_EVENT_TABLE()
225 // ---------------------------------------------------------
226 // wxDataViewRendererBase
227 // ---------------------------------------------------------
229 enum wxDataViewCellMode
231 wxDATAVIEW_CELL_INERT
,
232 wxDATAVIEW_CELL_ACTIVATABLE
,
233 wxDATAVIEW_CELL_EDITABLE
236 enum wxDataViewCellRenderState
238 wxDATAVIEW_CELL_SELECTED
= 1,
239 wxDATAVIEW_CELL_PRELIT
= 2,
240 wxDATAVIEW_CELL_INSENSITIVE
= 4,
241 wxDATAVIEW_CELL_FOCUSED
= 8
244 class WXDLLIMPEXP_ADV wxDataViewRendererBase
: public wxObject
247 wxDataViewRendererBase( const wxString
&varianttype
,
248 wxDataViewCellMode mode
= wxDATAVIEW_CELL_INERT
,
249 int alignment
= wxDVR_DEFAULT_ALIGNMENT
);
251 virtual bool Validate( wxVariant
& WXUNUSED(value
) )
254 void SetOwner( wxDataViewColumn
*owner
) { m_owner
= owner
; }
255 wxDataViewColumn
* GetOwner() { return m_owner
; }
257 // renderer properties:
259 virtual bool SetValue( const wxVariant
& WXUNUSED(value
) ) = 0;
260 virtual bool GetValue( wxVariant
& WXUNUSED(value
) ) const = 0;
262 wxString
GetVariantType() const { return m_variantType
; }
264 virtual void SetMode( wxDataViewCellMode mode
) = 0;
265 virtual wxDataViewCellMode
GetMode() const = 0;
267 // NOTE: Set/GetAlignment do not take/return a wxAlignment enum but
268 // rather an "int"; that's because for rendering cells it's allowed
269 // to combine alignment flags (e.g. wxALIGN_LEFT|wxALIGN_BOTTOM)
270 virtual void SetAlignment( int align
) = 0;
271 virtual int GetAlignment() const = 0;
274 virtual bool HasEditorCtrl()
276 virtual wxControl
* CreateEditorCtrl(wxWindow
* WXUNUSED(parent
),
277 wxRect
WXUNUSED(labelRect
),
278 const wxVariant
& WXUNUSED(value
))
280 virtual bool GetValueFromEditorCtrl(wxControl
* WXUNUSED(editor
),
281 wxVariant
& WXUNUSED(value
))
284 virtual bool StartEditing( const wxDataViewItem
&item
, wxRect labelRect
);
285 virtual void CancelEditing();
286 virtual bool FinishEditing();
288 wxControl
*GetEditorCtrl() { return m_editorCtrl
; }
291 wxString m_variantType
;
292 wxDataViewColumn
*m_owner
;
293 wxControl
*m_editorCtrl
;
294 wxDataViewItem m_item
; // for m_editorCtrl
297 const wxDataViewCtrl
* GetView() const;
300 DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewRendererBase
)
303 // ---------------------------------------------------------
304 // wxDataViewColumnBase
305 // ---------------------------------------------------------
307 enum wxDataViewColumnFlags
309 wxDATAVIEW_COL_RESIZABLE
= 1,
310 wxDATAVIEW_COL_SORTABLE
= 2,
311 wxDATAVIEW_COL_HIDDEN
= 4
314 class WXDLLIMPEXP_ADV wxDataViewColumnBase
: public wxObject
317 wxDataViewColumnBase( const wxString
&title
, wxDataViewRenderer
*renderer
,
318 unsigned int model_column
, int width
= wxDVC_DEFAULT_WIDTH
,
319 wxAlignment align
= wxALIGN_CENTER
,
320 int flags
= wxDATAVIEW_COL_RESIZABLE
);
321 wxDataViewColumnBase( const wxBitmap
&bitmap
, wxDataViewRenderer
*renderer
,
322 unsigned int model_column
, int width
= wxDVC_DEFAULT_WIDTH
,
323 wxAlignment align
= wxALIGN_CENTER
,
324 int flags
= wxDATAVIEW_COL_RESIZABLE
);
325 virtual ~wxDataViewColumnBase();
329 virtual void SetTitle( const wxString
&title
) = 0;
330 virtual void SetAlignment( wxAlignment align
) = 0;
331 virtual void SetSortable( bool sortable
) = 0;
332 virtual void SetResizeable( bool resizeable
) = 0;
333 virtual void SetHidden( bool hidden
) = 0;
334 virtual void SetSortOrder( bool ascending
) = 0;
335 virtual void SetFlags( int flags
);
336 virtual void SetOwner( wxDataViewCtrl
*owner
)
338 virtual void SetBitmap( const wxBitmap
&bitmap
)
341 virtual void SetMinWidth( int minWidth
) = 0;
342 virtual void SetWidth( int width
) = 0;
347 virtual wxString
GetTitle() const = 0;
348 virtual wxAlignment
GetAlignment() const = 0;
349 virtual int GetWidth() const = 0;
350 virtual int GetMinWidth() const = 0;
352 virtual int GetFlags() const;
354 virtual bool IsSortable() const = 0;
355 virtual bool IsResizeable() const = 0;
356 virtual bool IsHidden() const = 0;
357 virtual bool IsSortOrderAscending() const = 0;
359 const wxBitmap
&GetBitmap() const { return m_bitmap
; }
360 unsigned int GetModelColumn() const { return m_model_column
; }
362 wxDataViewCtrl
*GetOwner() { return m_owner
; }
363 wxDataViewRenderer
* GetRenderer() { return m_renderer
; }
366 wxDataViewRenderer
*m_renderer
;
369 wxDataViewCtrl
*m_owner
;
372 DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewColumnBase
)
375 // ---------------------------------------------------------
376 // wxDataViewCtrlBase
377 // ---------------------------------------------------------
379 #define wxDV_SINGLE 0x0000 // for convenience
380 #define wxDV_MULTIPLE 0x0001 // can select multiple items
382 #define wxDV_NO_HEADER 0x0002 // column titles not visible
383 #define wxDV_HORIZ_RULES 0x0004 // light horizontal rules between rows
384 #define wxDV_VERT_RULES 0x0008 // light vertical rules between columns
386 class WXDLLIMPEXP_ADV wxDataViewCtrlBase
: public wxControl
389 wxDataViewCtrlBase();
390 virtual ~wxDataViewCtrlBase();
392 virtual bool AssociateModel( wxDataViewModel
*model
);
393 wxDataViewModel
* GetModel();
396 bool AppendTextColumn( const wxString
&label
, unsigned int model_column
,
397 wxDataViewCellMode mode
= wxDATAVIEW_CELL_INERT
, int width
= -1,
398 wxAlignment align
= wxALIGN_CENTER
,
399 int flags
= wxDATAVIEW_COL_RESIZABLE
);
400 bool AppendToggleColumn( const wxString
&label
, unsigned int model_column
,
401 wxDataViewCellMode mode
= wxDATAVIEW_CELL_INERT
, int width
= wxDVC_TOGGLE_DEFAULT_WIDTH
,
402 wxAlignment align
= wxALIGN_CENTER
,
403 int flags
= wxDATAVIEW_COL_RESIZABLE
);
404 bool AppendProgressColumn( const wxString
&label
, unsigned int model_column
,
405 wxDataViewCellMode mode
= wxDATAVIEW_CELL_INERT
, int width
= wxDVC_DEFAULT_WIDTH
,
406 wxAlignment align
= wxALIGN_CENTER
,
407 int flags
= wxDATAVIEW_COL_RESIZABLE
);
408 bool AppendDateColumn( const wxString
&label
, unsigned int model_column
,
409 wxDataViewCellMode mode
= wxDATAVIEW_CELL_ACTIVATABLE
, int width
= -1,
410 wxAlignment align
= wxALIGN_CENTER
,
411 int flags
= wxDATAVIEW_COL_RESIZABLE
);
412 bool AppendBitmapColumn( const wxString
&label
, unsigned int model_column
,
413 wxDataViewCellMode mode
= wxDATAVIEW_CELL_INERT
, int width
= -1,
414 wxAlignment align
= wxALIGN_CENTER
,
415 int flags
= wxDATAVIEW_COL_RESIZABLE
);
416 bool AppendTextColumn( const wxBitmap
&label
, unsigned int model_column
,
417 wxDataViewCellMode mode
= wxDATAVIEW_CELL_INERT
, int width
= -1,
418 wxAlignment align
= wxALIGN_CENTER
,
419 int flags
= wxDATAVIEW_COL_RESIZABLE
);
420 bool AppendToggleColumn( const wxBitmap
&label
, unsigned int model_column
,
421 wxDataViewCellMode mode
= wxDATAVIEW_CELL_INERT
, int width
= wxDVC_TOGGLE_DEFAULT_WIDTH
,
422 wxAlignment align
= wxALIGN_CENTER
,
423 int flags
= wxDATAVIEW_COL_RESIZABLE
);
424 bool AppendProgressColumn( const wxBitmap
&label
, unsigned int model_column
,
425 wxDataViewCellMode mode
= wxDATAVIEW_CELL_INERT
, int width
= wxDVC_DEFAULT_WIDTH
,
426 wxAlignment align
= wxALIGN_CENTER
,
427 int flags
= wxDATAVIEW_COL_RESIZABLE
);
428 bool AppendDateColumn( const wxBitmap
&label
, unsigned int model_column
,
429 wxDataViewCellMode mode
= wxDATAVIEW_CELL_ACTIVATABLE
, int width
= -1,
430 wxAlignment align
= wxALIGN_CENTER
,
431 int flags
= wxDATAVIEW_COL_RESIZABLE
);
432 bool AppendBitmapColumn( const wxBitmap
&label
, unsigned int model_column
,
433 wxDataViewCellMode mode
= wxDATAVIEW_CELL_INERT
, int width
= -1,
434 wxAlignment align
= wxALIGN_CENTER
,
435 int flags
= wxDATAVIEW_COL_RESIZABLE
);
437 virtual bool AppendColumn( wxDataViewColumn
*col
);
439 virtual unsigned int GetColumnCount() const;
441 virtual bool DeleteColumn( unsigned int pos
);
442 virtual bool ClearColumns();
443 virtual wxDataViewColumn
* GetColumn( unsigned int pos
);
445 void SetExpanderColumn( unsigned int col
)
446 { m_expander_column
= col
; DoSetExpanderColumn(); }
447 unsigned int GetExpanderColumn() const
448 { return m_expander_column
; }
450 void SetIndent( int indent
)
451 { m_indent
= indent
; DoSetIndent(); }
452 int GetIndent() const
455 // TODO selection code
456 virtual wxDataViewItem
GetSelection() = 0;
459 virtual void DoSetExpanderColumn() = 0 ;
460 virtual void DoSetIndent() = 0;
463 wxDataViewModel
*m_model
;
465 wxDataViewEventModelNotifier
*m_eventNotifier
;
466 unsigned int m_expander_column
;
470 DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewCtrlBase
)
473 // ----------------------------------------------------------------------------
474 // wxDataViewEvent - the event class for the wxDataViewCtrl notifications
475 // ----------------------------------------------------------------------------
477 class WXDLLIMPEXP_ADV wxDataViewEvent
: public wxNotifyEvent
480 wxDataViewEvent(wxEventType commandType
= wxEVT_NULL
, int winid
= 0)
481 : wxNotifyEvent(commandType
, winid
),
485 m_value(wxNullVariant
),
489 wxDataViewEvent(const wxDataViewEvent
& event
)
490 : wxNotifyEvent(event
),
491 m_item(event
.m_item
),
493 m_model(event
.m_model
),
494 m_value(event
.m_value
),
495 m_column(event
.m_column
)
498 wxDataViewItem
GetItem() const { return m_item
; }
499 void SetItem( const wxDataViewItem
&item
) { m_item
= item
; }
501 int GetColumn() const { return m_col
; }
502 void SetColumn( int col
) { m_col
= col
; }
504 wxDataViewModel
* GetModel() const { return m_model
; }
505 void SetModel( wxDataViewModel
*model
) { m_model
= model
; }
507 const wxVariant
&GetValue() const { return m_value
; }
508 void SetValue( const wxVariant
&value
) { m_value
= value
; }
510 // for wxEVT_DATAVIEW_COLUMN_HEADER_CLICKED only
511 void SetDataViewColumn( wxDataViewColumn
*col
) { m_column
= col
; }
512 wxDataViewColumn
*GetDataViewColumn() const { return m_column
; }
514 virtual wxEvent
*Clone() const { return new wxDataViewEvent(*this); }
517 wxDataViewItem m_item
;
519 wxDataViewModel
*m_model
;
521 wxDataViewColumn
*m_column
;
524 DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxDataViewEvent
)
527 BEGIN_DECLARE_EVENT_TYPES()
528 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV
, wxEVT_COMMAND_DATAVIEW_ITEM_SELECTED
, -1)
529 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV
, wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED
, -1)
530 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV
, wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICK
, -1)
531 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV
, wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK
, -1)
532 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV
, wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED
, -1)
533 // notifications from the model to the control
534 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV
, wxEVT_COMMAND_DATAVIEW_MODEL_ITEM_ADDED
, -1)
535 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV
, wxEVT_COMMAND_DATAVIEW_MODEL_ITEM_DELETED
, -1)
536 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV
, wxEVT_COMMAND_DATAVIEW_MODEL_ITEM_CHANGED
, -1)
537 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV
, wxEVT_COMMAND_DATAVIEW_MODEL_VALUE_CHANGED
, -1)
538 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV
, wxEVT_COMMAND_DATAVIEW_MODEL_CLEARED
, -1)
539 END_DECLARE_EVENT_TYPES()
541 typedef void (wxEvtHandler::*wxDataViewEventFunction
)(wxDataViewEvent
&);
543 #define wxDataViewEventHandler(func) \
544 (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxDataViewEventFunction, &func)
546 #define wx__DECLARE_DATAVIEWEVT(evt, id, fn) \
547 wx__DECLARE_EVT1(wxEVT_COMMAND_DATAVIEW_ ## evt, id, wxDataViewEventHandler(fn))
549 #define EVT_DATAVIEW_ITEM_SELECTED(id, fn) wx__DECLARE_DATAVIEWEVT(ITEM_SELECTED, id, fn)
550 #define EVT_DATAVIEW_ITEM_ACTIVATED(id, fn) wx__DECLARE_DATAVIEWEVT(ITEM_ACTIVATED, id, fn)
551 #define EVT_DATAVIEW_COLUMN_HEADER_CLICK(id, fn) wx__DECLARE_DATAVIEWEVT(COLUMN_HEADER_CLICK, id, fn)
552 #define EVT_DATAVIEW_COLUMN_HEADER_RIGHT_CLICKED(id, fn) wx__DECLARE_DATAVIEWEVT(COLUMN_HEADER_RIGHT_CLICK, id, fn)
553 #define EVT_DATAVIEW_COLUMN_SORTED(id, fn) wx__DECLARE_DATAVIEWEVT(COLUMN_SORTED, id, fn)
555 #define EVT_DATAVIEW_MODEL_ITEM_ADDED(id, fn) wx__DECLARE_DATAVIEWEVT(MODEL_ITEM_APPENDED, id, fn)
556 #define EVT_DATAVIEW_MODEL_ITEM_DELETED(id, fn) wx__DECLARE_DATAVIEWEVT(MODEL_ITEM_DELETED, id, fn)
557 #define EVT_DATAVIEW_MODEL_ITEM_CHANGED(id, fn) wx__DECLARE_DATAVIEWEVT(MODEL_ITEM_CHANGED, id, fn)
558 #define EVT_DATAVIEW_MODEL_VALUE_CHANGED(id, fn) wx__DECLARE_DATAVIEWEVT(MODEL_VALUE_CHANGED, id, fn)
559 #define EVT_DATAVIEW_MODEL_CLEARED(id, fn) wx__DECLARE_DATAVIEWEVT(MODEL_CLEARED, id, fn)
562 #if defined(wxUSE_GENERICDATAVIEWCTRL)
563 #include "wx/generic/dataview.h"
564 #elif defined(__WXGTK20__)
565 #include "wx/gtk/dataview.h"
566 #elif defined(__WXMAC__)
567 #include "wx/mac/dataview.h"
569 #include "wx/generic/dataview.h"
572 #endif // wxUSE_DATAVIEWCTRL
575 // _WX_DATAVIEW_H_BASE_