Remove tests
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / ext / dataview / XS / DataViewModel.xsp
1 #############################################################################
2 ## Name:        ext/dataview/XS/DataViewModel.xsp
3 ## Purpose:     XS++ for Wx::DataViewModel
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     05/11/2007
7 ## RCS-ID:      $Id: DataViewModel.xsp 2312 2007-12-31 00:34:47Z mbarbon $
8 ## Copyright:   (c) 2007 Mattia Barbon
9 ## Licence:     This program is free software; you can redistribute it and/or
10 ##              modify it under the same terms as Perl itself
11 #############################################################################
12
13 #if wxUSE_DATAVIEWCTRL
14
15 %module{Wx};
16
17 #include <wx/dataview.h>
18
19 %name{Wx::DataViewModel} class wxDataViewModel
20 {
21     ~wxDataViewModel()
22        %code%{ THIS->DecRef(); %};
23
24     void Resort();
25
26     unsigned int GetColumnCount() const;
27     wxString GetColumnType( unsigned int col );
28
29     bool SetValue( const wxVariant &variant,
30                    const wxDataViewItem &item, unsigned int col );
31
32     wxDataViewItem& GetParent( const wxDataViewItem &item ) const;
33     bool IsContainer( const wxDataViewItem &item ) const;
34     bool HasContainerColumns( const wxDataViewItem& item ) const;
35
36     bool ItemAdded( const wxDataViewItem &parent, const wxDataViewItem &item );
37     bool ItemDeleted( const wxDataViewItem &parent, const wxDataViewItem &item );
38     bool ItemChanged( const wxDataViewItem &item );
39     bool ValueChanged( const wxDataViewItem &item, unsigned int col );
40     bool Cleared();
41
42     bool HasDefaultCompare() const;
43 };
44
45 #endif