File: MessageDialog.xsp

package info (click to toggle)
libwx-perl 0.9702-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,240 kB
  • ctags: 1,812
  • sloc: cpp: 8,988; perl: 6,366; makefile: 38; ansic: 1
file content (46 lines) | stat: -rwxr-xr-x 1,760 bytes parent folder | download
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
#############################################################################
## Name:        XS/MessageDialog.xsp
## Purpose:     XS for Wx::MessageDialog
## Author:      Mattia Barbon
## Modified by:
## Created:     27/11/2000
## RCS-ID:      $Id: MessageDialog.xsp 2118 2007-08-05 17:20:14Z mbarbon $
## Copyright:   (c) 2000-2004, 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};

%typemap{wxMessageDialog*}{simple};

#include <wx/msgdlg.h>

#define wxPL_MSGDLG_STYLE wxOK|wxCENTRE

%name{Wx::MessageDialog} class wxMessageDialog {
    wxMessageDialog( wxWindow* parent, wxString message, 
                     wxString caption = wxMessageBoxCaptionStr,
                     long style = wxPL_MSGDLG_STYLE, 
                     wxPoint pos = wxDefaultPosition );

    int ShowModal();

#if WXPERL_W_VERSION_GE( 2, 9, 0 )
    bool SetYesNoLabels( const wxString& yes,
                         const wxString& no );
    bool SetYesNoCancelLabels( const wxString& yes,
                               const wxString& no,
                               const wxString& cancel );
    bool SetOKLabel( const wxString& ok );
    bool SetOKCancelLabels( const wxString& ok,
                            const wxString& cancel );
    void SetMessage( const wxString& message );
    void SetExtendedMessage( const wxString& extendedMessage );
#endif
};

%name{Wx::MessageBox}
int wxMessageBox( wxString message, wxString caption = wxT("Message"),
                  int style = wxPL_MSGDLG_STYLE, wxWindow* parent = NULL,
                  int x = -1, int y = -1 );