File: ProgressDialog.xs

package info (click to toggle)
libwx-perl 1%3A0.9928-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,300 kB
  • ctags: 2,322
  • sloc: cpp: 11,044; perl: 8,646; ansic: 710; makefile: 48
file content (103 lines) | stat: -rw-r--r-- 2,111 bytes parent folder | download | duplicates (5)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#############################################################################
## Name:        XS/ProgressDialog.xs
## Purpose:     XS for Wx::ProgressDialog
## Author:      Mattia Barbon
## Modified by:
## Created:     29/12/2000
## RCS-ID:      $Id: ProgressDialog.xs 3487 2013-04-16 22:01:57Z mdootson $
## Copyright:   (c) 2000-2002, 2004 Mattia Barbon
## Licence:     This program is free software; you can redistribute it and/or
##              modify it under the same terms as Perl itself
#############################################################################

#include <wx/progdlg.h>

MODULE=Wx PACKAGE=Wx::ProgressDialog

wxProgressDialog*
wxProgressDialog::new( title, message, maximum = 100, parent = 0, style = wxPD_AUTO_HIDE|wxPD_APP_MODAL )
    wxString title
    wxString message
    int maximum
    wxWindow* parent
    long style
  CODE:
    RETVAL = new wxProgressDialog( title, message, maximum, parent, style );
  OUTPUT: RETVAL

void
wxProgressDialog::Resume()


#if WXPERL_W_VERSION_GE( 2, 9, 1 )

bool
wxProgressDialog::Update( value = -1, newmsg = wxEmptyString )
    int value
    wxString newmsg
  PREINIT:
    bool skipval = false;
  CODE:
    RETVAL = THIS->Update( value, newmsg, &skipval);
    if( skipval )
        RETVAL = false;

  OUTPUT: RETVAL


bool 
wxProgressDialog::Pulse( newmsg = wxEmptyString )
	wxString newmsg
  PREINIT:
    bool skipval = false;    
  CODE:
    RETVAL = THIS->Pulse(newmsg, &skipval);
    if( skipval )
        RETVAL = false;
    
  OUTPUT: RETVAL


int
wxProgressDialog::GetRange()

int
wxProgressDialog::GetValue()

wxString
wxProgressDialog::GetMessage()

void
wxProgressDialog::SetRange( maximum )
    int maximum

bool
wxProgressDialog::WasCancelled()

bool
wxProgressDialog::WasSkipped()

bool
wxProgressDialog::Show( show = true )
	bool show

#else

bool
wxProgressDialog::Update( value = -1, newmsg = wxEmptyString )
    int value
    wxString newmsg

#if WXPERL_W_VERSION_GE( 2, 8, 0 )

bool
wxProgressDialog::Show( show = true )
	bool show

bool 
wxProgressDialog::Pulse( newmsg = wxEmptyString )
	wxString newmsg

#endif

#endif