File: wizard.h

package info (click to toggle)
libwx-perl 1%3A0.9932-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,300 kB
  • sloc: cpp: 11,064; perl: 8,603; ansic: 711; makefile: 53
file content (80 lines) | stat: -rw-r--r-- 3,021 bytes parent folder | download | duplicates (7)
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
/////////////////////////////////////////////////////////////////////////////
// Name:        cpp/wizard.h
// Purpose:     c++ wrapper for wxWizard/wxWizardPage
// Author:      Mattia Barbon
// Modified by:
// Created:     28/08/2002
// RCS-ID:      $Id: wizard.h 2057 2007-06-18 23:03:00Z mbarbon $
// Copyright:   (c) 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
/////////////////////////////////////////////////////////////////////////////

#define DEC_V_CBACK_BOOL__WXWIZARDPAGE( NAME ) \
    bool NAME( wxWizardPage* page )

#define DEF_V_CBACK_BOOL__WXWIZARDPAGE( CLASS, BASE, METHOD )                \
    DEF_V_CBACK_BOOL__WXOBJECTsP_( wxWizardPage*, CLASS,                     \
                                  return BASE::METHOD( p1 ),                 \
                                  METHOD, wxPli_NOCONST )

#define DEC_V_CBACK_WXWIZARDPAGE__VOID_const( NAME ) \
    wxWizardPage* NAME() const

#define DEF_V_CBACK_WXWIZARDPAGE__VOID_const_pure( CLASS, BASE, METHOD )     \
    DEF_V_CBACK_WXOBJECTsP__VOID_( wxWizardPage*, Wx::WizardPage,            \
                                   CLASS, return NULL, METHOD, wxPli_CONST )

class wxPliWizard : public wxWizard
{
    WXPLI_DECLARE_DYNAMIC_CLASS( wxPliWizard );
    WXPLI_DECLARE_V_CBACK();
public:
    WXPLI_DEFAULT_CONSTRUCTOR( wxPliWizard, "Wx::Wizard", true );
    WXPLI_CONSTRUCTOR_5( wxPliWizard, "Wx::Wizard", true,
                         wxWindow*, wxWindowID, const wxString&,
                         const wxBitmap&, const wxPoint& ); 

    DEC_V_CBACK_BOOL__WXWIZARDPAGE( HasPrevPage );
    DEC_V_CBACK_BOOL__WXWIZARDPAGE( HasNextPage );
};

WXPLI_IMPLEMENT_DYNAMIC_CLASS( wxPliWizard, wxWizard );

DEF_V_CBACK_BOOL__WXWIZARDPAGE( wxPliWizard, wxWizard, HasPrevPage );
DEF_V_CBACK_BOOL__WXWIZARDPAGE( wxPliWizard, wxWizard, HasNextPage );

class wxPliWizardPage : public wxWizardPage
{
    WXPLI_DECLARE_DYNAMIC_CLASS( wxPliWizardPage );
    WXPLI_DECLARE_V_CBACK();
public:
    wxPliWizardPage( const char* package )
        : wxWizardPage(),
          m_callback( "Wx::WizardPage" )
    {
        m_callback.SetSelf( wxPli_make_object( this, package ), true );
    }

    wxPliWizardPage( const char* package, wxWizard* parent,
                     const wxBitmap& bitmap )
        :wxWizardPage( parent, bitmap ),
         m_callback( "Wx::WizardPage" )
    {
        m_callback.SetSelf( wxPli_make_object( this, package ), true );
    }

    DEC_V_CBACK_WXWIZARDPAGE__VOID_const( GetPrev );
    DEC_V_CBACK_WXWIZARDPAGE__VOID_const( GetNext );
};

WXPLI_IMPLEMENT_DYNAMIC_CLASS( wxPliWizardPage, wxWizardPage );

DEF_V_CBACK_WXWIZARDPAGE__VOID_const_pure( wxPliWizardPage, wxWizardPage,
                                           GetPrev );
DEF_V_CBACK_WXWIZARDPAGE__VOID_const_pure( wxPliWizardPage, wxWizardPage,
                                           GetNext );

// local variables:
// mode: c++
// end: