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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
  
     | 
    
      #############################################################################
## Name:        XS/EditableListBox.xsp
## Purpose:     XS++ for Wx::EditableListBox
## Author:      Mattia Barbon
## Modified by:
## Created:     12/08/2007
## RCS-ID:      $Id: EditableListBox.xsp 2139 2007-08-12 13:33:17Z 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
#############################################################################
%module{Wx};
#if WXPERL_W_VERSION_GE( 2, 9, 0 )
#include <wx/editlbox.h>
%typemap{wxEditableListBox*}{simple};
%typemap{wxListCtrl*}{simple};
%typemap{wxBitmapButton*}{simple};
%name{Wx::EditableListBox} class wxEditableListBox
{
%{
void
new( ... )
  PPCODE:
    BEGIN_OVERLOAD()
        MATCH_VOIDM_REDISP( newDefault )
        MATCH_ANY_REDISP( newFull )
    END_OVERLOAD( "Wx::EditableListBox::new" )
%}
    %name{newDefault} wxEditableListBox()
        %code{% RETVAL = new wxEditableListBox();
                wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
                %};
    %name{newFull} wxEditableListBox( wxWindow *parent,
                                      wxWindowID id, const wxString& label,
                                      const wxPoint& pos = wxDefaultPosition,
                                      const wxSize& size = wxDefaultSize,
                                      long style = wxEL_DEFAULT_STYLE,
                                      const wxString& name = wxEditableListBoxNameStr )
        %code{% RETVAL = new wxEditableListBox( parent, id, label, pos, size,
                                                style, name );
                wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
                %};
    bool Create( wxWindow *parent,
                 wxWindowID id, const wxString& label,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
                 long style = wxEL_DEFAULT_STYLE,
                 const wxString& name = wxEditableListBoxNameStr );
    void SetStrings( const wxArrayString& strings );
%{
void
wxEditableListBox::GetStrings()
  PPCODE:
    wxArrayString strings;
    THIS->GetStrings( strings );
    PUTBACK;
    wxPli_stringarray_push( aTHX_ strings );
    SPAGAIN;
%} 
    wxListCtrl* GetListCtrl();
    wxBitmapButton* GetDelButton();
    wxBitmapButton* GetNewButton();
    wxBitmapButton* GetUpButton();
    wxBitmapButton* GetDownButton();
    wxBitmapButton* GetEditButton();
};
#endif
 
     |