1 #############################################################################
2 ## Name: XS/EditableListBox.xsp
3 ## Purpose: XS++ for Wx::EditableListBox
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: EditableListBox.xsp 2139 2007-08-12 13:33:17Z 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 #############################################################################
15 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
17 #include <wx/editlbox.h>
19 %typemap{wxEditableListBox*}{simple};
20 %typemap{wxListCtrl*}{simple};
21 %typemap{wxBitmapButton*}{simple};
23 %name{Wx::EditableListBox} class wxEditableListBox
31 MATCH_VOIDM_REDISP( newDefault )
32 MATCH_ANY_REDISP( newFull )
33 END_OVERLOAD( "Wx::EditableListBox::new" )
36 %name{newDefault} wxEditableListBox()
37 %code{% RETVAL = new wxEditableListBox();
38 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
40 %name{newFull} wxEditableListBox( wxWindow *parent,
41 wxWindowID id, const wxString& label,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
44 long style = wxEL_DEFAULT_STYLE,
45 const wxString& name = wxEditableListBoxNameStr )
46 %code{% RETVAL = new wxEditableListBox( parent, id, label, pos, size,
48 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
51 bool Create( wxWindow *parent,
52 wxWindowID id, const wxString& label,
53 const wxPoint& pos = wxDefaultPosition,
54 const wxSize& size = wxDefaultSize,
55 long style = wxEL_DEFAULT_STYLE,
56 const wxString& name = wxEditableListBoxNameStr );
58 void SetStrings( const wxArrayString& strings );
62 wxEditableListBox::GetStrings()
64 wxArrayString strings;
65 THIS->GetStrings( strings );
67 wxPli_stringarray_push( aTHX_ strings );
71 wxListCtrl* GetListCtrl();
72 wxBitmapButton* GetDelButton();
73 wxBitmapButton* GetNewButton();
74 wxBitmapButton* GetUpButton();
75 wxBitmapButton* GetDownButton();
76 wxBitmapButton* GetEditButton();