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 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
|
#############################################################################
## Name: XS/Dialog.xs
## Purpose: XS for Wx::Dialog
## Author: Mattia Barbon
## Modified by:
## Created: 29/10/2000
## RCS-ID: $Id: Dialog.xs 2382 2008-04-27 16:51:03Z mbarbon $
## Copyright: (c) 2000-2001, 2003-2004, 2006-2008 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};
#include <wx/dialog.h>
#include <wx/sizer.h>
#include <wx/button.h>
#include "cpp/dialog.h"
#include "cpp/overload.h"
%typemap{wxDialogLayoutAdaptationMode}{simple};
%name{Wx::Dialog} class wxDialog {
#if WXPERL_W_VERSION_GE( 2, 6, 3 )
void SetAffirmativeId( int affirmativeId );
int GetAffirmativeId();
int GetEscapeId() const;
#endif
#if WXPERL_W_VERSION_GE( 2, 7, 0 )
void SetEscapeId( int escapeId );
#endif
wxSizer* CreateTextSizer( const wxString &message );
wxSizer* CreateButtonSizer( long flags );
#if WXPERL_W_VERSION_GE( 2, 7, 2 )
wxSizer* CreateSeparatedButtonSizer( long flags );
#endif
#if WXPERL_W_VERSION_GE( 2, 6, 0 )
wxSizer* CreateStdDialogButtonSizer( long flags );
#endif
#if WXPERL_W_VERSION_GE( 2, 9, 0 )
void AddMainButtonId( wxWindowID id );
bool IsMainButtonId( wxWindowID id ) const;
%{
void
wxDialog::GetMainButtonIds()
PPCODE:
PUTBACK;
wxPli_intarray_push( aTHX_ THIS->GetMainButtonIds() );
SPAGAIN;
%}
bool CanDoLayoutAdaptation();
package_static bool IsLayoutAdaptationEnabled();
package_static void EnableLayoutAdaptation( bool enable );
wxWindow* GetContentWindow();
void SetLayoutAdaptationLevel( int level );
int GetLayoutAdaptationLevel() const;
void SetLayoutAdaptationMode( wxDialogLayoutAdaptationMode mode );
wxDialogLayoutAdaptationMode GetLayoutAdaptationMode() const;
void SetLayoutAdaptationDone( bool adaptationDone );
bool GetLayoutAdaptationDone() const;
#if defined(__WXMSW__) && defined(__POCKETPC__)
wxToolBar* GetToolBar() const;
#endif
#endif
};
%{
void
new( ... )
PPCODE:
BEGIN_OVERLOAD()
MATCH_VOIDM_REDISP( newDefault )
MATCH_ANY_REDISP( newFull )
END_OVERLOAD( "Wx::Dialog::new" )
wxDialog*
newDefault( CLASS )
PlClassName CLASS
CODE:
RETVAL = new wxPliDialog( CLASS );
wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
OUTPUT: RETVAL
wxDialog*
newFull( CLASS, parent, id = wxID_ANY, title = wxEmptyString, pos = wxDefaultPosition, size = wxDefaultSize, style = wxDEFAULT_DIALOG_STYLE, name = wxDialogNameStr )
PlClassName CLASS
wxWindow* parent
wxWindowID id
wxString title
wxPoint pos
wxSize size
long style
wxString name
CODE:
RETVAL = new wxPliDialog( CLASS, parent, id, title, pos,
size, style, name );
OUTPUT:
RETVAL
bool
wxDialog::Create( parent, id = wxID_ANY, title = wxEmptyString, pos = wxDefaultPosition, size = wxDefaultSize, style = wxDEFAULT_DIALOG_STYLE, name = wxDialogNameStr )
wxWindow* parent
wxWindowID id
wxString title
wxPoint pos
wxSize size
long style
wxString name
void
wxDialog::EndModal( retCode )
int retCode
int
wxDialog::GetReturnCode()
wxString
wxDialog::GetTitle()
bool
wxDialog::IsModal()
# void
# wxDialog::SetModal( flag )
# bool flag
void
wxDialog::SetIcon( icon )
wxIcon* icon
C_ARGS: *icon
void
wxDialog::SetIcons( icons )
wxIconBundle* icons
C_ARGS: *icons
void
wxDialog::SetReturnCode( retCode )
int retCode
void
wxDialog::SetTitle( title )
wxString title
int
wxDialog::ShowModal()
#if WXPERL_W_VERSION_GE( 2, 5, 4 )
void
wxDialog::SetFocusIgnoringChildren()
#endif
bool
wxDialog::TransferDataFromWindow()
CODE:
RETVAL = THIS->wxDialog::TransferDataFromWindow();
OUTPUT:
RETVAL
bool
wxDialog::TransferDataToWindow()
CODE:
RETVAL = THIS->wxDialog::TransferDataToWindow();
OUTPUT:
RETVAL
bool
wxDialog::Validate()
CODE:
RETVAL = THIS->wxDialog::Validate();
OUTPUT:
RETVAL
%}
|