]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/dataview.h
More compilation.
[wxWidgets.git] / include / wx / gtk / dataview.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/dataview.h
3 // Purpose: wxDataViewCtrl GTK+2 implementation header
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef __GTKDATAVIEWCTRLH__
11 #define __GTKDATAVIEWCTRLH__
12
13 #include "wx/defs.h"
14 #include "wx/object.h"
15 #include "wx/list.h"
16 #include "wx/control.h"
17
18 // ---------------------------------------------------------
19 // classes
20 // ---------------------------------------------------------
21
22 class WXDLLIMPEXP_CORE wxDataViewCtrl;
23
24 // ---------------------------------------------------------
25 // wxDataViewCtrl
26 // ---------------------------------------------------------
27
28 class WXDLLIMPEXP_CORE wxDataViewCtrl: public wxDataViewCtrlBase
29 {
30 public:
31 wxDataViewCtrl()
32 {
33 Init();
34 }
35
36 wxDataViewCtrl( wxWindow *parent, wxWindowID id,
37 const wxPoint& pos = wxDefaultPosition,
38 const wxSize& size = wxDefaultSize, long style = 0,
39 const wxValidator& validator = wxDefaultValidator )
40 {
41 Create(parent, id, pos, size, style, validator );
42 }
43
44 virtual ~wxDataViewCtrl();
45
46 void Init();
47
48 bool Create(wxWindow *parent, wxWindowID id,
49 const wxPoint& pos = wxDefaultPosition,
50 const wxSize& size = wxDefaultSize, long style = 0,
51 const wxValidator& validator = wxDefaultValidator );
52
53 virtual bool AppendStringColumn( const wxString &label );
54
55 virtual bool AssociateModel( wxDataViewModel *model );
56
57
58 private:
59 DECLARE_DYNAMIC_CLASS(wxDataViewCtrl)
60 DECLARE_NO_COPY_CLASS(wxDataViewCtrl)
61 };
62
63
64 #endif // __GTKDATAVIEWCTRLH__