File: DataViewModel.xsp

package info (click to toggle)
libwx-perl 1%3A0.9932-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,300 kB
  • sloc: cpp: 11,064; perl: 8,603; ansic: 711; makefile: 53
file content (45 lines) | stat: -rw-r--r-- 1,517 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#############################################################################
## Name:        ext/dataview/XS/DataViewModel.xsp
## Purpose:     XS++ for Wx::DataViewModel
## Author:      Mattia Barbon
## Modified by:
## Created:     05/11/2007
## RCS-ID:      $Id: DataViewModel.xsp 2312 2007-12-31 00:34:47Z mbarbon $
## Copyright:   (c) 2007 Mattia Barbon
## Licence:     This program is free software; you can redistribute it and/or
##              modify it under the same terms as Perl itself
#############################################################################

#if wxUSE_DATAVIEWCTRL

%module{Wx};

#include <wx/dataview.h>

%name{Wx::DataViewModel} class wxDataViewModel
{
    ~wxDataViewModel()
       %code%{ THIS->DecRef(); %};

    void Resort();

    unsigned int GetColumnCount() const;
    wxString GetColumnType( unsigned int col );

    bool SetValue( const wxVariant &variant,
                   const wxDataViewItem &item, unsigned int col );

    wxDataViewItem& GetParent( const wxDataViewItem &item ) const;
    bool IsContainer( const wxDataViewItem &item ) const;
    bool HasContainerColumns( const wxDataViewItem& item ) const;

    bool ItemAdded( const wxDataViewItem &parent, const wxDataViewItem &item );
    bool ItemDeleted( const wxDataViewItem &parent, const wxDataViewItem &item );
    bool ItemChanged( const wxDataViewItem &item );
    bool ValueChanged( const wxDataViewItem &item, unsigned int col );
    bool Cleared();

    bool HasDefaultCompare() const;
};

#endif