Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / AboutDialog.xsp
1 #############################################################################
2 ## Name:        XS/AboutDialog.xsp
3 ## Purpose:     XS+++ for Wx::AboutBox
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     01/11/2006
7 ## RCS-ID:      $Id: AboutDialog.xsp 2202 2007-08-23 19:55:17Z mbarbon $
8 ## Copyright:   (c) 2006-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 %module{Wx};
14
15 %typemap{wxAboutDialogInfo*}{simple};
16 %typemap{const wxAboutDialogInfo&}{reference};
17
18 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
19
20 #include <wx/aboutdlg.h>
21
22 %name{Wx::AboutDialogInfo} class wxAboutDialogInfo
23 {
24     wxAboutDialogInfo();
25
26     void SetName( const wxString& name );
27     wxString GetName() const;
28
29     void SetVersion( const wxString& version );
30     bool HasVersion() const;
31     wxString GetVersion() const;
32
33     void SetDescription( const wxString& desc );
34     bool HasDescription() const;
35     wxString GetDescription() const;
36
37     void SetCopyright( const wxString& copyright );
38     bool HasCopyright() const;
39     wxString GetCopyright() const;
40
41     void SetLicence( const wxString& licence );
42     void SetLicense( const wxString& licence );
43     bool HasLicence() const;
44     wxString GetLicence() const;
45
46     void SetIcon( const wxIcon& icon );
47     bool HasIcon() const;
48     wxIcon GetIcon() const;
49
50     void SetWebSite( const wxString& url,
51                      const wxString& desc = wxEmptyString );
52
53     bool HasWebSite() const;
54
55     wxString GetWebSiteURL() const;
56     wxString GetWebSiteDescription() const;
57
58     void SetDevelopers( const wxArrayString& developers );
59     void AddDeveloper( const wxString& developer );
60
61     bool HasDevelopers() const;
62 ##    const wxArrayString& GetDevelopers() const;
63
64     void SetDocWriters( const wxArrayString& docwriters );
65     void AddDocWriter( const wxString& docwriter );
66
67     bool HasDocWriters() const;
68 ##    const wxArrayString& GetDocWriters() const;
69
70     void SetArtists( const wxArrayString& artists );
71     void AddArtist( const wxString& artist );
72
73     bool HasArtists() const;
74 ##    const wxArrayString& GetArtists() const;
75
76     void SetTranslators( const wxArrayString& translators );
77     void AddTranslator( const wxString& translator );
78
79     bool HasTranslators() const;
80 ##    const wxArrayString& GetTranslators() const;
81 };
82
83 %name{Wx::AboutBox} void wxAboutBox( const wxAboutDialogInfo& info );
84
85 #endif