reSWIGged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-05-10 23:12:34 +00:00
parent 4a692286ca
commit 01f6b6d3c8
18 changed files with 1105 additions and 455 deletions

View File

@@ -2473,97 +2473,98 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags)
#define SWIGTYPE_p_wxBitmap swig_types[11]
#define SWIGTYPE_p_wxBoxSizer swig_types[12]
#define SWIGTYPE_p_wxCURHandler swig_types[13]
#define SWIGTYPE_p_wxChildFocusEvent swig_types[14]
#define SWIGTYPE_p_wxCloseEvent swig_types[15]
#define SWIGTYPE_p_wxColour swig_types[16]
#define SWIGTYPE_p_wxCommandEvent swig_types[17]
#define SWIGTYPE_p_wxContextMenuEvent swig_types[18]
#define SWIGTYPE_p_wxControl swig_types[19]
#define SWIGTYPE_p_wxControlWithItems swig_types[20]
#define SWIGTYPE_p_wxDateEvent swig_types[21]
#define SWIGTYPE_p_wxDialog swig_types[22]
#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[23]
#define SWIGTYPE_p_wxDropFilesEvent swig_types[24]
#define SWIGTYPE_p_wxDuplexMode swig_types[25]
#define SWIGTYPE_p_wxEraseEvent swig_types[26]
#define SWIGTYPE_p_wxEvent swig_types[27]
#define SWIGTYPE_p_wxEvtHandler swig_types[28]
#define SWIGTYPE_p_wxFSFile swig_types[29]
#define SWIGTYPE_p_wxFileSystem swig_types[30]
#define SWIGTYPE_p_wxFlexGridSizer swig_types[31]
#define SWIGTYPE_p_wxFocusEvent swig_types[32]
#define SWIGTYPE_p_wxFont swig_types[33]
#define SWIGTYPE_p_wxFrame swig_types[34]
#define SWIGTYPE_p_wxGBSizerItem swig_types[35]
#define SWIGTYPE_p_wxGIFHandler swig_types[36]
#define SWIGTYPE_p_wxGridBagSizer swig_types[37]
#define SWIGTYPE_p_wxGridSizer swig_types[38]
#define SWIGTYPE_p_wxICOHandler swig_types[39]
#define SWIGTYPE_p_wxIcon swig_types[40]
#define SWIGTYPE_p_wxIconizeEvent swig_types[41]
#define SWIGTYPE_p_wxIdleEvent swig_types[42]
#define SWIGTYPE_p_wxImage swig_types[43]
#define SWIGTYPE_p_wxImageHandler swig_types[44]
#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[45]
#define SWIGTYPE_p_wxInitDialogEvent swig_types[46]
#define SWIGTYPE_p_wxInputStream swig_types[47]
#define SWIGTYPE_p_wxJPEGHandler swig_types[48]
#define SWIGTYPE_p_wxKeyEvent swig_types[49]
#define SWIGTYPE_p_wxLayoutConstraints swig_types[50]
#define SWIGTYPE_p_wxMaximizeEvent swig_types[51]
#define SWIGTYPE_p_wxMenu swig_types[52]
#define SWIGTYPE_p_wxMenuBar swig_types[53]
#define SWIGTYPE_p_wxMenuEvent swig_types[54]
#define SWIGTYPE_p_wxMenuItem swig_types[55]
#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[56]
#define SWIGTYPE_p_wxMouseEvent swig_types[57]
#define SWIGTYPE_p_wxMoveEvent swig_types[58]
#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[59]
#define SWIGTYPE_p_wxNcPaintEvent swig_types[60]
#define SWIGTYPE_p_wxNotifyEvent swig_types[61]
#define SWIGTYPE_p_wxObject swig_types[62]
#define SWIGTYPE_p_wxOutputStream swig_types[63]
#define SWIGTYPE_p_wxPCXHandler swig_types[64]
#define SWIGTYPE_p_wxPNGHandler swig_types[65]
#define SWIGTYPE_p_wxPNMHandler swig_types[66]
#define SWIGTYPE_p_wxPaintEvent swig_types[67]
#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[68]
#define SWIGTYPE_p_wxPanel swig_types[69]
#define SWIGTYPE_p_wxPaperSize swig_types[70]
#define SWIGTYPE_p_wxPoint swig_types[71]
#define SWIGTYPE_p_wxPyApp swig_types[72]
#define SWIGTYPE_p_wxPyCommandEvent swig_types[73]
#define SWIGTYPE_p_wxPyEvent swig_types[74]
#define SWIGTYPE_p_wxPyImageHandler swig_types[75]
#define SWIGTYPE_p_wxPySizer swig_types[76]
#define SWIGTYPE_p_wxPyValidator swig_types[77]
#define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[78]
#define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[79]
#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[80]
#define SWIGTYPE_p_wxScrollEvent swig_types[81]
#define SWIGTYPE_p_wxScrollWinEvent swig_types[82]
#define SWIGTYPE_p_wxSetCursorEvent swig_types[83]
#define SWIGTYPE_p_wxShowEvent swig_types[84]
#define SWIGTYPE_p_wxSize swig_types[85]
#define SWIGTYPE_p_wxSizeEvent swig_types[86]
#define SWIGTYPE_p_wxSizer swig_types[87]
#define SWIGTYPE_p_wxSizerItem swig_types[88]
#define SWIGTYPE_p_wxStaticBoxSizer swig_types[89]
#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[90]
#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[91]
#define SWIGTYPE_p_wxTIFFHandler swig_types[92]
#define SWIGTYPE_p_wxUpdateUIEvent swig_types[93]
#define SWIGTYPE_p_wxValidator swig_types[94]
#define SWIGTYPE_p_wxWindow swig_types[95]
#define SWIGTYPE_p_wxWindowCreateEvent swig_types[96]
#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[97]
#define SWIGTYPE_p_wxXPMHandler swig_types[98]
#define SWIGTYPE_p_wxXmlDocument swig_types[99]
#define SWIGTYPE_p_wxXmlNode swig_types[100]
#define SWIGTYPE_p_wxXmlProperty swig_types[101]
#define SWIGTYPE_p_wxXmlResource swig_types[102]
static swig_type_info *swig_types[104];
static swig_module_info swig_module = {swig_types, 103, 0, 0, 0, 0};
#define SWIGTYPE_p_wxChar swig_types[14]
#define SWIGTYPE_p_wxChildFocusEvent swig_types[15]
#define SWIGTYPE_p_wxCloseEvent swig_types[16]
#define SWIGTYPE_p_wxColour swig_types[17]
#define SWIGTYPE_p_wxCommandEvent swig_types[18]
#define SWIGTYPE_p_wxContextMenuEvent swig_types[19]
#define SWIGTYPE_p_wxControl swig_types[20]
#define SWIGTYPE_p_wxControlWithItems swig_types[21]
#define SWIGTYPE_p_wxDateEvent swig_types[22]
#define SWIGTYPE_p_wxDialog swig_types[23]
#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[24]
#define SWIGTYPE_p_wxDropFilesEvent swig_types[25]
#define SWIGTYPE_p_wxDuplexMode swig_types[26]
#define SWIGTYPE_p_wxEraseEvent swig_types[27]
#define SWIGTYPE_p_wxEvent swig_types[28]
#define SWIGTYPE_p_wxEvtHandler swig_types[29]
#define SWIGTYPE_p_wxFSFile swig_types[30]
#define SWIGTYPE_p_wxFileSystem swig_types[31]
#define SWIGTYPE_p_wxFlexGridSizer swig_types[32]
#define SWIGTYPE_p_wxFocusEvent swig_types[33]
#define SWIGTYPE_p_wxFont swig_types[34]
#define SWIGTYPE_p_wxFrame swig_types[35]
#define SWIGTYPE_p_wxGBSizerItem swig_types[36]
#define SWIGTYPE_p_wxGIFHandler swig_types[37]
#define SWIGTYPE_p_wxGridBagSizer swig_types[38]
#define SWIGTYPE_p_wxGridSizer swig_types[39]
#define SWIGTYPE_p_wxICOHandler swig_types[40]
#define SWIGTYPE_p_wxIcon swig_types[41]
#define SWIGTYPE_p_wxIconizeEvent swig_types[42]
#define SWIGTYPE_p_wxIdleEvent swig_types[43]
#define SWIGTYPE_p_wxImage swig_types[44]
#define SWIGTYPE_p_wxImageHandler swig_types[45]
#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[46]
#define SWIGTYPE_p_wxInitDialogEvent swig_types[47]
#define SWIGTYPE_p_wxInputStream swig_types[48]
#define SWIGTYPE_p_wxJPEGHandler swig_types[49]
#define SWIGTYPE_p_wxKeyEvent swig_types[50]
#define SWIGTYPE_p_wxLayoutConstraints swig_types[51]
#define SWIGTYPE_p_wxMaximizeEvent swig_types[52]
#define SWIGTYPE_p_wxMenu swig_types[53]
#define SWIGTYPE_p_wxMenuBar swig_types[54]
#define SWIGTYPE_p_wxMenuEvent swig_types[55]
#define SWIGTYPE_p_wxMenuItem swig_types[56]
#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[57]
#define SWIGTYPE_p_wxMouseEvent swig_types[58]
#define SWIGTYPE_p_wxMoveEvent swig_types[59]
#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[60]
#define SWIGTYPE_p_wxNcPaintEvent swig_types[61]
#define SWIGTYPE_p_wxNotifyEvent swig_types[62]
#define SWIGTYPE_p_wxObject swig_types[63]
#define SWIGTYPE_p_wxOutputStream swig_types[64]
#define SWIGTYPE_p_wxPCXHandler swig_types[65]
#define SWIGTYPE_p_wxPNGHandler swig_types[66]
#define SWIGTYPE_p_wxPNMHandler swig_types[67]
#define SWIGTYPE_p_wxPaintEvent swig_types[68]
#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[69]
#define SWIGTYPE_p_wxPanel swig_types[70]
#define SWIGTYPE_p_wxPaperSize swig_types[71]
#define SWIGTYPE_p_wxPoint swig_types[72]
#define SWIGTYPE_p_wxPyApp swig_types[73]
#define SWIGTYPE_p_wxPyCommandEvent swig_types[74]
#define SWIGTYPE_p_wxPyEvent swig_types[75]
#define SWIGTYPE_p_wxPyImageHandler swig_types[76]
#define SWIGTYPE_p_wxPySizer swig_types[77]
#define SWIGTYPE_p_wxPyValidator swig_types[78]
#define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[79]
#define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[80]
#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[81]
#define SWIGTYPE_p_wxScrollEvent swig_types[82]
#define SWIGTYPE_p_wxScrollWinEvent swig_types[83]
#define SWIGTYPE_p_wxSetCursorEvent swig_types[84]
#define SWIGTYPE_p_wxShowEvent swig_types[85]
#define SWIGTYPE_p_wxSize swig_types[86]
#define SWIGTYPE_p_wxSizeEvent swig_types[87]
#define SWIGTYPE_p_wxSizer swig_types[88]
#define SWIGTYPE_p_wxSizerItem swig_types[89]
#define SWIGTYPE_p_wxStaticBoxSizer swig_types[90]
#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[91]
#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[92]
#define SWIGTYPE_p_wxTIFFHandler swig_types[93]
#define SWIGTYPE_p_wxUpdateUIEvent swig_types[94]
#define SWIGTYPE_p_wxValidator swig_types[95]
#define SWIGTYPE_p_wxWindow swig_types[96]
#define SWIGTYPE_p_wxWindowCreateEvent swig_types[97]
#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[98]
#define SWIGTYPE_p_wxXPMHandler swig_types[99]
#define SWIGTYPE_p_wxXmlDocument swig_types[100]
#define SWIGTYPE_p_wxXmlNode swig_types[101]
#define SWIGTYPE_p_wxXmlProperty swig_types[102]
#define SWIGTYPE_p_wxXmlResource swig_types[103]
static swig_type_info *swig_types[105];
static swig_module_info swig_module = {swig_types, 104, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
@@ -4343,37 +4344,41 @@ fail:
SWIGINTERN PyObject *_wrap_XmlResource_GetXRCID(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxString *arg1 = 0 ;
wxChar *arg1 = (wxChar *) 0 ;
int arg2 = (int) wxID_NONE ;
int result;
bool temp1 = false ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char * kwnames[] = {
(char *) "str_id", NULL
(char *) "str_id",(char *) "value_if_not_found", NULL
};
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_GetXRCID",kwnames,&obj0)) SWIG_fail;
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
temp1 = true;
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResource_GetXRCID",kwnames,&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetXRCID" "', expected argument " "1"" of type '" "wxChar const *""'");
}
arg1 = reinterpret_cast< wxChar * >(argp1);
if (obj1) {
ecode2 = SWIG_AsVal_int(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_GetXRCID" "', expected argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (int)wxXmlResource::GetXRCID((wxString const &)*arg1);
result = (int)wxXmlResource::GetXRCID((wxChar const *)arg1,arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
resultobj = SWIG_From_int(static_cast< int >(result));
{
if (temp1)
delete arg1;
}
return resultobj;
fail:
{
if (temp1)
delete arg1;
}
return NULL;
}
@@ -8466,6 +8471,15 @@ static PyMethodDef SwigMethods[] = {
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
static void *_p_wxControlTo_p_wxWindow(void *x) {
return (void *)((wxWindow *) ((wxControl *) x));
}
static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
}
static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
return (void *)((wxWindow *) ((wxMenuBar *) x));
}
static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
return (void *)((wxObject *) ((wxLayoutConstraints *) x));
}
@@ -8703,15 +8717,6 @@ static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
static void *_p_wxValidatorTo_p_wxObject(void *x) {
return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
}
static void *_p_wxControlTo_p_wxWindow(void *x) {
return (void *)((wxWindow *) ((wxControl *) x));
}
static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
}
static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
return (void *)((wxWindow *) ((wxMenuBar *) x));
}
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0};
@@ -8720,6 +8725,7 @@ static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_wxArtClient = {"_p_wxArtClient", "wxArtClient *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", "wxDialog *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
@@ -8831,6 +8837,7 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_wxBitmap,
&_swigt__p_wxBoxSizer,
&_swigt__p_wxCURHandler,
&_swigt__p_wxChar,
&_swigt__p_wxChildFocusEvent,
&_swigt__p_wxCloseEvent,
&_swigt__p_wxColour,
@@ -8930,6 +8937,7 @@ static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0,
static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_wxArtClient[] = { {&_swigt__p_wxArtClient, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_wxDialog[] = { {&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
@@ -9041,6 +9049,7 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_wxBitmap,
_swigc__p_wxBoxSizer,
_swigc__p_wxCURHandler,
_swigc__p_wxChar,
_swigc__p_wxChildFocusEvent,
_swigc__p_wxCloseEvent,
_swigc__p_wxColour,