- wxPyHtmlListBox(wxWindow *parent,
- wxWindowID id = wxID_ANY,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxPyVListBoxNameStr)
- : wxHtmlListBox(parent, id, pos, size, style, name)
- {}
-
- // Overridable virtuals
-
- // this method must be implemented in the derived class and should return
- // the body (i.e. without <html>) of the HTML for the given item
- DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem);
-
- // this function may be overridden to decorate HTML returned by OnGetItem()
- DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup);
-
-// TODO:
-// // this method allows to customize the selection appearance: it may be used
-// // to specify the colour of the text which normally has the given colour
-// // colFg when it is inside the selection
-// //
-// // by default, the original colour is not used at all and all text has the
-// // same (default for this system) colour inside selection
-// virtual wxColour GetSelectedTextColour(const wxColour& colFg) const;
-
-// // this is the same as GetSelectedTextColour() but allows to customize the
-// // background colour -- this is even more rarely used as you can change it
-// // globally using SetSelectionBackground()
-// virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const;
-
-
- PYPRIVATE;
-};
-
-
-IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox)
-
-IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem);
-IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup);
-
-
-
-
-
-#ifndef wxHAS_TASK_BAR_ICON
-// implement dummy classes for platforms that don't have it
-
-class wxTaskBarIcon : public wxEvtHandler
-{
-public:
- wxTaskBarIcon() { wxPyRaiseNotImplemented(); }
-};
-
-
-class wxTaskBarIconEvent : public wxEvent
-{
-public:
- wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *)
- { wxPyRaiseNotImplemented(); }
- virtual wxEvent* Clone() const { return NULL; }
- bool IsOk() const { return false; }
- bool IsIconInstalled() const { return false; }
- bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxPyEmptyString) { return false; }
- bool RemoveIcon() { return false; }
- bool PopupMenu(wxMenu *menu) { return false; }
-};
-
-enum {
- wxEVT_TASKBAR_MOVE = 0,
- wxEVT_TASKBAR_LEFT_DOWN = 0,
- wxEVT_TASKBAR_LEFT_UP = 0,
- wxEVT_TASKBAR_RIGHT_DOWN = 0,
- wxEVT_TASKBAR_RIGHT_UP = 0,
- wxEVT_TASKBAR_LEFT_DCLICK = 0,
- wxEVT_TASKBAR_RIGHT_DCLICK = 0,
-};
-
-
-#else
-// Otherwise make a class that can virtualize CreatePopupMenu
-class wxPyTaskBarIcon : public wxTaskBarIcon
-{
- DECLARE_ABSTRACT_CLASS(wxPyTaskBarIcon);
-public:
- wxPyTaskBarIcon() : wxTaskBarIcon()
- {}
-
- wxMenu* CreatePopupMenu() {
- wxMenu *rval = NULL;
- bool found;
- bool blocked = wxPyBeginBlockThreads();
- if ((found = wxPyCBH_findCallback(m_myInst, "CreatePopupMenu"))) {
- PyObject* ro;
- wxMenu* ptr;
- ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
- if (ro) {
- if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxMenu")))
- rval = ptr;
- Py_DECREF(ro);
- }
- }
- wxPyEndBlockThreads(blocked);
- if (! found)
- rval = wxTaskBarIcon::CreatePopupMenu();
- return rval;
- }
-
- PYPRIVATE;
-};
-
-IMPLEMENT_ABSTRACT_CLASS(wxPyTaskBarIcon, wxTaskBarIcon);
-
-#endif
-
-void wxPyTaskBarIcon_Destroy(wxPyTaskBarIcon *self){
- self->RemoveIcon();
- delete self;
- }
- static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
- static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
- static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr);
- static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
- static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr);
- static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr);
-PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){
- wxArrayString arr;
- self->GetFilenames(arr);
- return wxArrayString2PyList_helper(arr);
- }
-PyObject *wxFileDialog_GetPaths(wxFileDialog *self){
- wxArrayString arr;
- self->GetPaths(arr);
- return wxArrayString2PyList_helper(arr);
- }
-PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){
- return wxArrayInt2PyList_helper(self->GetSelections());
- }
-wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString const &message,wxString const &caption,int choices,wxString *choices_array,long style,wxPoint const &pos){
- return new wxSingleChoiceDialog(parent, message, caption,
- choices, choices_array, NULL, style, pos);
- }
- static const wxString wxPyGetPasswordFromUserPromptStr(wxGetPasswordFromUserPromptStr);
-
-#include <wx/mdi.h>
-
- // C++ version of Python aware wxWindow
-class wxPyWindow : public wxWindow
-{
- DECLARE_DYNAMIC_CLASS(wxPyWindow)
-public:
- wxPyWindow() : wxWindow() {}
- wxPyWindow(wxWindow* parent, const wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxPyPanelNameStr)
- : wxWindow(parent, id, pos, size, style, name) {}
-
- void SetBestSize(const wxSize& size) { wxWindow::SetBestSize(size); }
-
- DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
- DEC_PYCALLBACK_VOID_INT5(DoSetSize);
- DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
- DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
-
- DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
- DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
- DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
-
- DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
- DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
-
- DEC_PYCALLBACK__(InitDialog);
- DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
- DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
- DEC_PYCALLBACK_BOOL_(Validate);
-
- DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
- DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
- DEC_PYCALLBACK_SIZE_const(GetMaxSize);
-
- DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
- DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
-
- DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
- DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
- DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
-
- PYPRIVATE;
-};
-
-IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow);
-
-IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow);
-IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize);
-IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize);
-IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize);
-
-IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize);
-IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize);
-IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition);
-
-IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize);
-IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize);
-
-IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog);
-IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow);
-IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow);
-IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate);
-
-IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus);
-IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard);
-IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize);
-
-IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild);
-IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild);
-
-IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours);
-IMP_PYCALLBACK__COLOUR(wxPyWindow, wxWindow, ApplyParentThemeBackground);
-IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes);
-
-
- // C++ version of Python aware wxPanel
-class wxPyPanel : public wxPanel
-{
- DECLARE_DYNAMIC_CLASS(wxPyPanel)
-public:
- wxPyPanel() : wxPanel() {}
- wxPyPanel(wxWindow* parent, const wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxPyPanelNameStr)
- : wxPanel(parent, id, pos, size, style, name) {}
-
- void SetBestSize(const wxSize& size) { wxPanel::SetBestSize(size); }
-
-
- DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
- DEC_PYCALLBACK_VOID_INT5(DoSetSize);
- DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
- DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
-
- DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
- DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
- DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
-
- DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
- DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
-
- DEC_PYCALLBACK__(InitDialog);
- DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
- DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
- DEC_PYCALLBACK_BOOL_(Validate);
-
- DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
- DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
- DEC_PYCALLBACK_SIZE_const(GetMaxSize);
-
- DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
- DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
-
- DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
- DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
- DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
-
- PYPRIVATE;
-};
-
-IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel);
-
-IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow);
-IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize);
-IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize);
-IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize);
-
-IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize);
-IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize);
-IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition);
-
-IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize);
-IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize);
-
-IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog);
-IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow);
-IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow);
-IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate);
-
-IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus);
-IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard);
-IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize);
-
-IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild);
-IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild);
-
-IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours);
-IMP_PYCALLBACK__COLOUR(wxPyPanel, wxPanel, ApplyParentThemeBackground);
-IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes);
-
-
- // C++ version of Python aware wxScrolledWindow
-class wxPyScrolledWindow : public wxScrolledWindow
-{
- DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow)
-public:
- wxPyScrolledWindow() : wxScrolledWindow() {}
- wxPyScrolledWindow(wxWindow* parent, const wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxPyPanelNameStr)
- : wxScrolledWindow(parent, id, pos, size, style, name) {}
-
- void SetBestSize(const wxSize& size) { wxScrolledWindow::SetBestSize(size); }
-
- DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
- DEC_PYCALLBACK_VOID_INT5(DoSetSize);
- DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
- DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
-
- DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
- DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
- DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
-
- DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
- DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
-
- DEC_PYCALLBACK__(InitDialog);
- DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
- DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
- DEC_PYCALLBACK_BOOL_(Validate);
-
- DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
- DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
- DEC_PYCALLBACK_SIZE_const(GetMaxSize);
-
- DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
- DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
-
- DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
- DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
- DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
-
- PYPRIVATE;
-};
-
-IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow);
-
-IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow);
-IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize);
-IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize);
-IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize);
-
-IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize);
-IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize);
-IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition);
-
-IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize);
-IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize);
-
-IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog);
-IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow);
-IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow);
-IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate);
-
-IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus);
-IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard);
-IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize);
-
-IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild);
-IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild);
-
-IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours);
-IMP_PYCALLBACK__COLOUR(wxPyScrolledWindow, wxScrolledWindow, ApplyParentThemeBackground);
-IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes);
-
-
-
-#include "wx/wxPython/printfw.h"
-
-
- static const wxString wxPyPrintoutTitleStr(wxT("Printout"));
- static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas"));
-
-
-IMPLEMENT_ABSTRACT_CLASS(wxPyPrintout, wxPrintout);
-
-// Since this one would be tough and ugly to do with the Macros...
-void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) {
- bool hadErr = false;
- bool found;
-
- bool blocked = wxPyBeginBlockThreads();
- if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) {
- PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
- if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) {
- PyObject* val;
-
- val = PyTuple_GetItem(result, 0);
- if (PyInt_Check(val)) *minPage = PyInt_AsLong(val);
- else hadErr = true;
-
- val = PyTuple_GetItem(result, 1);
- if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val);
- else hadErr = true;
-
- val = PyTuple_GetItem(result, 2);
- if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val);
- else hadErr = true;
-
- val = PyTuple_GetItem(result, 3);
- if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val);
- else hadErr = true;
- }
- else
- hadErr = true;
-
- if (hadErr) {
- PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers.");
- PyErr_Print();
- }
- Py_DECREF(result);
- }
- wxPyEndBlockThreads(blocked);
- if (! found)
- wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo);
-}
-
-void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) {
- wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo);
-}
-
-
-IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument);
-IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument);
-IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting);
-IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting);
-IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting);
-IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage);
-IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage);
-
-
-
-
-
-#define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \
- bool CBNAME(wxPreviewCanvas* a, wxDC& b); \
- bool base_##CBNAME(wxPreviewCanvas* a, wxDC& b)
-
-
-#define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \
- bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \
- bool rval=false; \
- bool found; \
- bool blocked = wxPyBeginBlockThreads(); \
- if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
- PyObject* win = wxPyMake_wxObject(a,false); \
- PyObject* dc = wxPyMake_wxObject(&b,false); \
- rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc)); \
- Py_DECREF(win); \
- Py_DECREF(dc); \
- } \
- wxPyEndBlockThreads(blocked); \
- if (! found) \
- rval = PCLASS::CBNAME(a, b); \
- return rval; \
- } \
- bool CLASS::base_##CBNAME(wxPreviewCanvas* a, wxDC& b) { \
- return PCLASS::CBNAME(a, b); \
- }
-
-
-
-
-class wxPyPrintPreview : public wxPrintPreview
-{
- DECLARE_CLASS(wxPyPrintPreview)
-public:
- wxPyPrintPreview(wxPyPrintout* printout,
- wxPyPrintout* printoutForPrinting,
- wxPrintDialogData* data=NULL)
- : wxPrintPreview(printout, printoutForPrinting, data)
- {}
- wxPyPrintPreview(wxPyPrintout* printout,
- wxPyPrintout* printoutForPrinting,
- wxPrintData* data=NULL)
- : wxPrintPreview(printout, printoutForPrinting, data)
- {}
-
- DEC_PYCALLBACK_BOOL_INT(SetCurrentPage);
- DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage);
- DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage);
- DEC_PYCALLBACK_BOOL_INT(RenderPage);
- DEC_PYCALLBACK_VOID_INT(SetZoom);
- DEC_PYCALLBACK_BOOL_BOOL(Print);
- DEC_PYCALLBACK_VOID_(DetermineScaling);
-
- PYPRIVATE;
-};
-
-// Stupid renamed classes... Fix this in 2.5...
-#if defined(__WXMSW__)
-IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview );
-#elif defined(__WXMAC__)
-IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview );
-#else
-IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview );
-#endif
-
-IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage);
-IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage);
-IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage);
-IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage);
-IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom);
-IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print);
-IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling);
-
-
-class wxPyPreviewFrame : public wxPreviewFrame
-{
- DECLARE_CLASS(wxPyPreviewFrame);
-public:
- wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent,
- const wxString& title,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE,
- const wxString& name = wxPyFrameNameStr)
- : wxPreviewFrame(preview, parent, title, pos, size, style, name)
- {}
-
- void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; }
- void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; }
-
- DEC_PYCALLBACK_VOID_(Initialize);
- DEC_PYCALLBACK_VOID_(CreateCanvas);
- DEC_PYCALLBACK_VOID_(CreateControlBar);
-
- PYPRIVATE;
-};
-
-IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame);
-
-IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize);
-IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas);
-IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar);
-
-
-class wxPyPreviewControlBar : public wxPreviewControlBar
-{
- DECLARE_CLASS(wxPyPreviewControlBar);
-public:
- wxPyPreviewControlBar(wxPrintPreview *preview,
- long buttons,
- wxWindow *parent,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxPyPanelNameStr)
- : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name)
- {}
-
- void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; }
-
- DEC_PYCALLBACK_VOID_(CreateButtons);
- DEC_PYCALLBACK_VOID_INT(SetZoomControl);
-
- PYPRIVATE;
-};
-
-IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar);
-IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons);
-IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl);
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-static PyObject *_wrap_new_Panel(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxWindow *arg1 = (wxWindow *) 0 ;
- int arg2 = (int) (int)-1 ;
- wxPoint const &arg3_defvalue = wxDefaultPosition ;
- wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
- wxSize const &arg4_defvalue = wxDefaultSize ;
- wxSize *arg4 = (wxSize *) &arg4_defvalue ;
- long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ;
- wxString const &arg6_defvalue = wxPyPanelNameStr ;
- wxString *arg6 = (wxString *) &arg6_defvalue ;
- wxPanel *result;
- wxPoint temp3 ;
- wxSize temp4 ;
- bool temp6 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- char *kwnames[] = {
- (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj2) {
- {
- arg3 = &temp3;
- if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
- }
- }
- if (obj3) {
- {
- arg4 = &temp4;
- if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
- }
- }
- if (obj4) {
- arg5 = (long)SWIG_As_long(obj4);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj5) {
- {
- arg6 = wxString_in_helper(obj5);
- if (arg6 == NULL) SWIG_fail;
- temp6 = true;
- }
- }
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1);
- {
- if (temp6)
- delete arg6;
- }
- return resultobj;
- fail:
- {
- if (temp6)
- delete arg6;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_new_PrePanel(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxPanel *result;
- char *kwnames[] = {
- NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePanel",kwnames)) goto fail;
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxPanel *)new wxPanel();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Panel_Create(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxPanel *arg1 = (wxPanel *) 0 ;
- wxWindow *arg2 = (wxWindow *) 0 ;
- int arg3 = (int) (int)-1 ;
- wxPoint const &arg4_defvalue = wxDefaultPosition ;
- wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
- wxSize const &arg5_defvalue = wxDefaultSize ;
- wxSize *arg5 = (wxSize *) &arg5_defvalue ;
- long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ;
- wxString const &arg7_defvalue = wxPyPanelNameStr ;
- wxString *arg7 = (wxString *) &arg7_defvalue ;
- bool result;
- wxPoint temp4 ;
- wxSize temp5 ;
- bool temp7 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- PyObject * obj6 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj2) {
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj3) {
- {
- arg4 = &temp4;
- if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
- }
- }
- if (obj4) {
- {
- arg5 = &temp5;
- if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
- }
- }
- if (obj5) {
- arg6 = (long)SWIG_As_long(obj5);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj6) {
- {
- arg7 = wxString_in_helper(obj6);
- if (arg7 == NULL) SWIG_fail;
- temp7 = true;
- }
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- {
- if (temp7)
- delete arg7;
- }
- return resultobj;
- fail:
- {
- if (temp7)
- delete arg7;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_Panel_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxPanel *arg1 = (wxPanel *) 0 ;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Panel_InitDialog",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->InitDialog();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Panel_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxPanel *arg1 = (wxPanel *) 0 ;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Panel_SetFocus",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetFocus();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Panel_SetFocusIgnoringChildren(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxPanel *arg1 = (wxPanel *) 0 ;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Panel_SetFocusIgnoringChildren",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetFocusIgnoringChildren();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Panel_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
- wxVisualAttributes result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "variant", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Panel_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
- if (obj0) {
- arg1 = (int)SWIG_As_int(obj0);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = wxPanel::GetClassDefaultAttributes((wxWindowVariant )arg1);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- wxVisualAttributes * resultptr;
- resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
- resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * Panel_swigregister(PyObject *, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_wxPanel, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_ScrolledWindow(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxWindow *arg1 = (wxWindow *) 0 ;
- int arg2 = (int) (int)-1 ;
- wxPoint const &arg3_defvalue = wxDefaultPosition ;
- wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
- wxSize const &arg4_defvalue = wxDefaultSize ;
- wxSize *arg4 = (wxSize *) &arg4_defvalue ;
- long arg5 = (long) wxHSCROLL|wxVSCROLL ;
- wxString const &arg6_defvalue = wxPyPanelNameStr ;
- wxString *arg6 = (wxString *) &arg6_defvalue ;
- wxScrolledWindow *result;
- wxPoint temp3 ;
- wxSize temp4 ;
- bool temp6 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- char *kwnames[] = {
- (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj2) {
- {
- arg3 = &temp3;
- if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
- }
- }
- if (obj3) {
- {
- arg4 = &temp4;
- if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
- }
- }
- if (obj4) {
- arg5 = (long)SWIG_As_long(obj4);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj5) {
- {
- arg6 = wxString_in_helper(obj5);
- if (arg6 == NULL) SWIG_fail;
- temp6 = true;
- }
- }
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1);
- {
- if (temp6)
- delete arg6;
- }
- return resultobj;
- fail:
- {
- if (temp6)
- delete arg6;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_new_PreScrolledWindow(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *result;
- char *kwnames[] = {
- NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrolledWindow",kwnames)) goto fail;
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxScrolledWindow *)new wxScrolledWindow();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_Create(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- wxWindow *arg2 = (wxWindow *) 0 ;
- int arg3 = (int) (int)-1 ;
- wxPoint const &arg4_defvalue = wxDefaultPosition ;
- wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
- wxSize const &arg5_defvalue = wxDefaultSize ;
- wxSize *arg5 = (wxSize *) &arg5_defvalue ;
- long arg6 = (long) wxHSCROLL|wxVSCROLL ;
- wxString const &arg7_defvalue = wxPyPanelNameStr ;
- wxString *arg7 = (wxString *) &arg7_defvalue ;
- bool result;
- wxPoint temp4 ;
- wxSize temp5 ;
- bool temp7 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- PyObject * obj6 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj2) {
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj3) {
- {
- arg4 = &temp4;
- if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
- }
- }
- if (obj4) {
- {
- arg5 = &temp5;
- if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
- }
- }
- if (obj5) {
- arg6 = (long)SWIG_As_long(obj5);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj6) {
- {
- arg7 = wxString_in_helper(obj6);
- if (arg7 == NULL) SWIG_fail;
- temp7 = true;
- }
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- {
- if (temp7)
- delete arg7;
- }
- return resultobj;
- fail:
- {
- if (temp7)
- delete arg7;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- int arg2 ;
- int arg3 ;
- int arg4 ;
- int arg5 ;
- int arg6 = (int) 0 ;
- int arg7 = (int) 0 ;
- bool arg8 = (bool) false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- PyObject * obj6 = 0 ;
- PyObject * obj7 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- arg4 = (int)SWIG_As_int(obj3);
- if (PyErr_Occurred()) SWIG_fail;
- arg5 = (int)SWIG_As_int(obj4);
- if (PyErr_Occurred()) SWIG_fail;
- if (obj5) {
- arg6 = (int)SWIG_As_int(obj5);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj6) {
- arg7 = (int)SWIG_As_int(obj6);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj7) {
- arg8 = (bool)SWIG_As_bool(obj7);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_Scroll(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- int arg2 ;
- int arg3 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "x",(char *) "y", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->Scroll(arg2,arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- int arg2 ;
- int result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "orient", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_From_int((int)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- int arg2 ;
- int arg3 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "orient",(char *) "pageSize", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetScrollPageSize(arg2,arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- int arg2 ;
- int arg3 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "xstep",(char *) "ystep", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetScrollRate(arg2,arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- int *arg2 = (int *) 0 ;
- int *arg3 = (int *) 0 ;
- int temp2 ;
- int res2 = 0 ;
- int temp3 ;
- int res3 = 0 ;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- arg2 = &temp2; res2 = SWIG_NEWOBJ;
- arg3 = &temp3; res3 = SWIG_NEWOBJ;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScrollPixelsPerUnit",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
- SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
- resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
- SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- bool arg2 ;
- bool arg3 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (bool)SWIG_As_bool(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (bool)SWIG_As_bool(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->EnableScrolling(arg2,arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- int *arg2 = (int *) 0 ;
- int *arg3 = (int *) 0 ;
- int temp2 ;
- int res2 = 0 ;
- int temp3 ;
- int res3 = 0 ;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- arg2 = &temp2; res2 = SWIG_NEWOBJ;
- arg3 = &temp3; res3 = SWIG_NEWOBJ;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetViewStart",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
- SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
- resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
- SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_SetScale(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- double arg2 ;
- double arg3 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "xs",(char *) "ys", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (double)SWIG_As_double(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (double)SWIG_As_double(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetScale(arg2,arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- double result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleX",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (double)((wxScrolledWindow const *)arg1)->GetScaleX();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_From_double((double)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- double result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleY",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (double)((wxScrolledWindow const *)arg1)->GetScaleY();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_From_double((double)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *, PyObject *args) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- wxPoint *arg2 = 0 ;
- wxPoint result;
- wxPoint temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- arg2 = &temp2;
- if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- wxPoint * resultptr;
- resultptr = new wxPoint((wxPoint &) result);
- resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *, PyObject *args) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- int arg2 ;
- int arg3 ;
- int *arg4 = (int *) 0 ;
- int *arg5 = (int *) 0 ;
- int temp4 ;
- int res4 = 0 ;
- int temp5 ;
- int res5 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- arg4 = &temp4; res4 = SWIG_NEWOBJ;
- arg5 = &temp5; res5 = SWIG_NEWOBJ;
- if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
- SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
- resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
- SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[4];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 3); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if (argc == 2) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- } else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2);
- }
- if (_v) {
- return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self,args);
- }
- }
- }
- if (argc == 3) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- } else {
- _v = 1;
- }
- }
- if (_v) {
- _v = SWIG_Check_int(argv[1]);
- if (_v) {
- _v = SWIG_Check_int(argv[2]);
- if (_v) {
- return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self,args);
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'");
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *, PyObject *args) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- wxPoint *arg2 = 0 ;
- wxPoint result;
- wxPoint temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
-
- if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- arg2 = &temp2;
- if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- wxPoint * resultptr;
- resultptr = new wxPoint((wxPoint &) result);
- resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *, PyObject *args) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- int arg2 ;
- int arg3 ;
- int *arg4 = (int *) 0 ;
- int *arg5 = (int *) 0 ;
- int temp4 ;
- int res4 = 0 ;
- int temp5 ;
- int res5 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
-
- arg4 = &temp4; res4 = SWIG_NEWOBJ;
- arg5 = &temp5; res5 = SWIG_NEWOBJ;
- if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
- SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
- resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
- SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[4];
- int ii;
-
- argc = PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 3); ii++) {
- argv[ii] = PyTuple_GetItem(args,ii);
- }
- if (argc == 2) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- } else {
- _v = 1;
- }
- }
- if (_v) {
- {
- _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2);
- }
- if (_v) {
- return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self,args);
- }
- }
- }
- if (argc == 3) {
- int _v;
- {
- void *ptr;
- if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) {
- _v = 0;
- PyErr_Clear();
- } else {
- _v = 1;
- }
- }
- if (_v) {
- _v = SWIG_Check_int(argv[1]);
- if (_v) {
- _v = SWIG_Check_int(argv[2]);
- if (_v) {
- return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self,args);
- }
- }
- }
- }
-
- PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'");
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_AdjustScrollbars",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->AdjustScrollbars();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- wxScrollWinEvent *arg2 = 0 ;
- int result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "event", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxScrollWinEvent,
- SWIG_POINTER_EXCEPTION | 0)) == -1)
- SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference");
- SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (int)(arg1)->CalcScrollInc(*arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_From_int((int)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- wxWindow *arg2 = (wxWindow *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "target", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetTargetWindow(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- wxWindow *result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetWindow",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = wxPyMake_wxObject(result, 0);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_SetTargetRect(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- wxRect *arg2 = 0 ;
- wxRect temp2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "rect", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetRect",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- arg2 = &temp2;
- if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetTargetRect((wxRect const &)*arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_GetTargetRect(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- wxRect result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetRect",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = ((wxScrolledWindow const *)arg1)->GetTargetRect();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- wxRect * resultptr;
- resultptr = new wxRect((wxRect &) result);
- resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_DoPrepareDC(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ;
- wxDC *arg2 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "dc", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_DoPrepareDC",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
- SWIG_POINTER_EXCEPTION | 0)) == -1)
- SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference");
- SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->DoPrepareDC(*arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_ScrolledWindow_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
- wxVisualAttributes result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "variant", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrolledWindow_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
- if (obj0) {
- arg1 = (int)SWIG_As_int(obj0);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = wxScrolledWindow::GetClassDefaultAttributes((wxWindowVariant )arg1);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- wxVisualAttributes * resultptr;
- resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
- resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * ScrolledWindow_swigregister(PyObject *, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_wxScrolledWindow, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static int _wrap_FrameNameStr_set(PyObject *) {
- PyErr_SetString(PyExc_TypeError,"Variable FrameNameStr is read-only.");
- return 1;
-}
-
-
-static PyObject *_wrap_FrameNameStr_get() {
- PyObject *pyobj;
-
- {
-#if wxUSE_UNICODE
- pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len());
-#else
- pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len());
-#endif
- }
- return pyobj;
-}
-
-
-static int _wrap_DialogNameStr_set(PyObject *) {
- PyErr_SetString(PyExc_TypeError,"Variable DialogNameStr is read-only.");
- return 1;
-}
-
-
-static PyObject *_wrap_DialogNameStr_get() {
- PyObject *pyobj;
-
- {
-#if wxUSE_UNICODE
- pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len());
-#else
- pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len());
-#endif
- }
- return pyobj;
-}
-
-
-static int _wrap_StatusLineNameStr_set(PyObject *) {
- PyErr_SetString(PyExc_TypeError,"Variable StatusLineNameStr is read-only.");
- return 1;
-}
-
-
-static PyObject *_wrap_StatusLineNameStr_get() {
- PyObject *pyobj;
-
- {
-#if wxUSE_UNICODE
- pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len());
-#else
- pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len());
-#endif
- }
- return pyobj;
-}
-
-
-static int _wrap_ToolBarNameStr_set(PyObject *) {
- PyErr_SetString(PyExc_TypeError,"Variable ToolBarNameStr is read-only.");
- return 1;
-}
-
-
-static PyObject *_wrap_ToolBarNameStr_get() {
- PyObject *pyobj;
-
- {
-#if wxUSE_UNICODE
- pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len());
-#else
- pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len());
-#endif
- }
- return pyobj;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_Maximize(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- bool arg2 = (bool) true ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "maximize", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (bool)SWIG_As_bool(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->Maximize(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_Restore(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_Restore",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->Restore();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_Iconize(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- bool arg2 = (bool) true ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "iconize", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (bool)SWIG_As_bool(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->Iconize(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsMaximized",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsIconized",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- wxIcon result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetIcon",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = ((wxTopLevelWindow const *)arg1)->GetIcon();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- wxIcon * resultptr;
- resultptr = new wxIcon((wxIcon &) result);
- resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- wxIcon *arg2 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "icon", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
- SWIG_POINTER_EXCEPTION | 0)) == -1)
- SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference");
- SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetIcon((wxIcon const &)*arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- wxIconBundle *arg2 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "icons", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIconBundle,
- SWIG_POINTER_EXCEPTION | 0)) == -1)
- SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference");
- SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetIcons((wxIconBundle const &)*arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- bool arg2 ;
- long arg3 = (long) wxFULLSCREEN_ALL ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "show",(char *) "style", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (bool)SWIG_As_bool(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- if (obj2) {
- arg3 = (long)SWIG_As_long(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->ShowFullScreen(arg2,arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsFullScreen",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- wxString *arg2 = 0 ;
- bool temp2 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "title", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- arg2 = wxString_in_helper(obj1);
- if (arg2 == NULL) SWIG_fail;
- temp2 = true;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetTitle((wxString const &)*arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- {
- if (temp2)
- delete arg2;
- }
- return resultobj;
- fail:
- {
- if (temp2)
- delete arg2;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- wxString result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetTitle",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = ((wxTopLevelWindow const *)arg1)->GetTitle();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
-#if wxUSE_UNICODE
- resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
-#else
- resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
-#endif
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_SetShape(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- wxRegion *arg2 = 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "region", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
- SWIG_POINTER_EXCEPTION | 0)) == -1)
- SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference");
- SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->SetShape((wxRegion const &)*arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_RequestUserAttention(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- int arg2 = (int) wxUSER_ATTENTION_INFO ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "flags", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_RequestUserAttention",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->RequestUserAttention(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_IsActive(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsActive",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->IsActive();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_MacSetMetalAppearance(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- bool arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "on", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_MacSetMetalAppearance",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (bool)SWIG_As_bool(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxTopLevelWindow_MacSetMetalAppearance(arg1,arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_TopLevelWindow_MacGetMetalAppearance(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_MacGetMetalAppearance",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)wxTopLevelWindow_MacGetMetalAppearance((wxTopLevelWindow const *)arg1);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * TopLevelWindow_swigregister(PyObject *, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_wxTopLevelWindow, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_Frame(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxWindow *arg1 = (wxWindow *) 0 ;
- int arg2 = (int) (int)-1 ;
- wxString const &arg3_defvalue = wxPyEmptyString ;
- wxString *arg3 = (wxString *) &arg3_defvalue ;
- wxPoint const &arg4_defvalue = wxDefaultPosition ;
- wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
- wxSize const &arg5_defvalue = wxDefaultSize ;
- wxSize *arg5 = (wxSize *) &arg5_defvalue ;
- long arg6 = (long) wxDEFAULT_FRAME_STYLE ;
- wxString const &arg7_defvalue = wxPyFrameNameStr ;
- wxString *arg7 = (wxString *) &arg7_defvalue ;
- wxFrame *result;
- bool temp3 = false ;
- wxPoint temp4 ;
- wxSize temp5 ;
- bool temp7 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- PyObject * obj6 = 0 ;
- char *kwnames[] = {
- (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj2) {
- {
- arg3 = wxString_in_helper(obj2);
- if (arg3 == NULL) SWIG_fail;
- temp3 = true;
- }
- }
- if (obj3) {
- {
- arg4 = &temp4;
- if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
- }
- }
- if (obj4) {
- {
- arg5 = &temp5;
- if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
- }
- }
- if (obj5) {
- arg6 = (long)SWIG_As_long(obj5);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj6) {
- {
- arg7 = wxString_in_helper(obj6);
- if (arg7 == NULL) SWIG_fail;
- temp7 = true;
- }
- }
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFrame, 1);
- {
- if (temp3)
- delete arg3;
- }
- {
- if (temp7)
- delete arg7;
- }
- return resultobj;
- fail:
- {
- if (temp3)
- delete arg3;
- }
- {
- if (temp7)
- delete arg7;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_new_PreFrame(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *result;
- char *kwnames[] = {
- NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFrame",kwnames)) goto fail;
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxFrame *)new wxFrame();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFrame, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_Create(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- wxWindow *arg2 = (wxWindow *) 0 ;
- int arg3 = (int) (int)-1 ;
- wxString const &arg4_defvalue = wxPyEmptyString ;
- wxString *arg4 = (wxString *) &arg4_defvalue ;
- wxPoint const &arg5_defvalue = wxDefaultPosition ;
- wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
- wxSize const &arg6_defvalue = wxDefaultSize ;
- wxSize *arg6 = (wxSize *) &arg6_defvalue ;
- long arg7 = (long) wxDEFAULT_FRAME_STYLE ;
- wxString const &arg8_defvalue = wxPyFrameNameStr ;
- wxString *arg8 = (wxString *) &arg8_defvalue ;
- bool result;
- bool temp4 = false ;
- wxPoint temp5 ;
- wxSize temp6 ;
- bool temp8 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- PyObject * obj6 = 0 ;
- PyObject * obj7 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj2) {
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj3) {
- {
- arg4 = wxString_in_helper(obj3);
- if (arg4 == NULL) SWIG_fail;
- temp4 = true;
- }
- }
- if (obj4) {
- {
- arg5 = &temp5;
- if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
- }
- }
- if (obj5) {
- {
- arg6 = &temp6;
- if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
- }
- }
- if (obj6) {
- arg7 = (long)SWIG_As_long(obj6);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj7) {
- {
- arg8 = wxString_in_helper(obj7);
- if (arg8 == NULL) SWIG_fail;
- temp8 = true;
- }
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- {
- if (temp4)
- delete arg4;
- }
- {
- if (temp8)
- delete arg8;
- }
- return resultobj;
- fail:
- {
- if (temp4)
- delete arg4;
- }
- {
- if (temp8)
- delete arg8;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- wxPoint result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetClientAreaOrigin",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = ((wxFrame const *)arg1)->GetClientAreaOrigin();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- wxPoint * resultptr;
- resultptr = new wxPoint((wxPoint &) result);
- resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_SendSizeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_SendSizeEvent",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SendSizeEvent();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_SetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- wxMenuBar *arg2 = (wxMenuBar *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "menubar", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetMenuBar(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- wxMenuBar *result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetMenuBar",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = wxPyMake_wxObject(result, 0);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_ProcessCommand(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- int arg2 ;
- bool result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "winid", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->ProcessCommand(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_CreateStatusBar(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- int arg2 = (int) 1 ;
- long arg3 = (long) wxST_SIZEGRIP ;
- int arg4 = (int) 0 ;
- wxString const &arg5_defvalue = wxPyStatusLineNameStr ;
- wxString *arg5 = (wxString *) &arg5_defvalue ;
- wxStatusBar *result;
- bool temp5 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj2) {
- arg3 = (long)SWIG_As_long(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj3) {
- arg4 = (int)SWIG_As_int(obj3);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj4) {
- {
- arg5 = wxString_in_helper(obj4);
- if (arg5 == NULL) SWIG_fail;
- temp5 = true;
- }
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = wxPyMake_wxObject(result, 0);
- }
- {
- if (temp5)
- delete arg5;
- }
- return resultobj;
- fail:
- {
- if (temp5)
- delete arg5;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_GetStatusBar(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- wxStatusBar *result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBar",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = wxPyMake_wxObject(result, 0);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_SetStatusBar(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- wxStatusBar *arg2 = (wxStatusBar *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "statBar", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxStatusBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetStatusBar(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_SetStatusText(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- wxString *arg2 = 0 ;
- int arg3 = (int) 0 ;
- bool temp2 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "text",(char *) "number", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- arg2 = wxString_in_helper(obj1);
- if (arg2 == NULL) SWIG_fail;
- temp2 = true;
- }
- if (obj2) {
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetStatusText((wxString const &)*arg2,arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- {
- if (temp2)
- delete arg2;
- }
- return resultobj;
- fail:
- {
- if (temp2)
- delete arg2;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_SetStatusWidths(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- int arg2 ;
- int *arg3 = (int *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "widths", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- arg2 = PyList_Size(obj1);
- arg3 = int_LIST_helper(obj1);
- if (arg3 == NULL) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetStatusWidths(arg2,(int const *)arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- {
- if (arg3) delete [] arg3;
- }
- return resultobj;
- fail:
- {
- if (arg3) delete [] arg3;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_PushStatusText(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- wxString *arg2 = 0 ;
- int arg3 = (int) 0 ;
- bool temp2 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "text",(char *) "number", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- arg2 = wxString_in_helper(obj1);
- if (arg2 == NULL) SWIG_fail;
- temp2 = true;
- }
- if (obj2) {
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->PushStatusText((wxString const &)*arg2,arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- {
- if (temp2)
- delete arg2;
- }
- return resultobj;
- fail:
- {
- if (temp2)
- delete arg2;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_PopStatusText(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- int arg2 = (int) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "number", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->PopStatusText(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_SetStatusBarPane(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- int arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "n", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetStatusBarPane(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_GetStatusBarPane(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBarPane",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (int)((wxFrame const *)arg1)->GetStatusBarPane();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_From_int((int)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_CreateToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- long arg2 = (long) -1 ;
- int arg3 = (int) -1 ;
- wxString const &arg4_defvalue = wxPyToolBarNameStr ;
- wxString *arg4 = (wxString *) &arg4_defvalue ;
- wxToolBar *result;
- bool temp4 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (long)SWIG_As_long(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj2) {
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj3) {
- {
- arg4 = wxString_in_helper(obj3);
- if (arg4 == NULL) SWIG_fail;
- temp4 = true;
- }
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = wxPyMake_wxObject(result, 0);
- }
- {
- if (temp4)
- delete arg4;
- }
- return resultobj;
- fail:
- {
- if (temp4)
- delete arg4;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- wxToolBar *result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetToolBar",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = wxPyMake_wxObject(result, 0);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_SetToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- wxToolBar *arg2 = (wxToolBar *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "toolbar", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetToolBar(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_DoGiveHelp(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- wxString *arg2 = 0 ;
- bool arg3 ;
- bool temp2 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "text",(char *) "show", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- arg2 = wxString_in_helper(obj1);
- if (arg2 == NULL) SWIG_fail;
- temp2 = true;
- }
- arg3 = (bool)SWIG_As_bool(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->DoGiveHelp((wxString const &)*arg2,arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- {
- if (temp2)
- delete arg2;
- }
- return resultobj;
- fail:
- {
- if (temp2)
- delete arg2;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_DoMenuUpdates(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxFrame *arg1 = (wxFrame *) 0 ;
- wxMenu *arg2 = (wxMenu *) NULL ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "menu", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->DoMenuUpdates(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Frame_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
- wxVisualAttributes result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "variant", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Frame_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
- if (obj0) {
- arg1 = (int)SWIG_As_int(obj0);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = wxFrame::GetClassDefaultAttributes((wxWindowVariant )arg1);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- wxVisualAttributes * resultptr;
- resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
- resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * Frame_swigregister(PyObject *, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_wxFrame, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_Dialog(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxWindow *arg1 = (wxWindow *) 0 ;
- int arg2 = (int) (int)-1 ;
- wxString const &arg3_defvalue = wxPyEmptyString ;
- wxString *arg3 = (wxString *) &arg3_defvalue ;
- wxPoint const &arg4_defvalue = wxDefaultPosition ;
- wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
- wxSize const &arg5_defvalue = wxDefaultSize ;
- wxSize *arg5 = (wxSize *) &arg5_defvalue ;
- long arg6 = (long) wxDEFAULT_DIALOG_STYLE ;
- wxString const &arg7_defvalue = wxPyDialogNameStr ;
- wxString *arg7 = (wxString *) &arg7_defvalue ;
- wxDialog *result;
- bool temp3 = false ;
- wxPoint temp4 ;
- wxSize temp5 ;
- bool temp7 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- PyObject * obj6 = 0 ;
- char *kwnames[] = {
- (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj2) {
- {
- arg3 = wxString_in_helper(obj2);
- if (arg3 == NULL) SWIG_fail;
- temp3 = true;
- }
- }
- if (obj3) {
- {
- arg4 = &temp4;
- if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
- }
- }
- if (obj4) {
- {
- arg5 = &temp5;
- if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
- }
- }
- if (obj5) {
- arg6 = (long)SWIG_As_long(obj5);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj6) {
- {
- arg7 = wxString_in_helper(obj6);
- if (arg7 == NULL) SWIG_fail;
- temp7 = true;
- }
- }
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1);
- {
- if (temp3)
- delete arg3;
- }
- {
- if (temp7)
- delete arg7;
- }
- return resultobj;
- fail:
- {
- if (temp3)
- delete arg3;
- }
- {
- if (temp7)
- delete arg7;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_new_PreDialog(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxDialog *result;
- char *kwnames[] = {
- NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDialog",kwnames)) goto fail;
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxDialog *)new wxDialog();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Dialog_Create(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxDialog *arg1 = (wxDialog *) 0 ;
- wxWindow *arg2 = (wxWindow *) 0 ;
- int arg3 = (int) (int)-1 ;
- wxString const &arg4_defvalue = wxPyEmptyString ;
- wxString *arg4 = (wxString *) &arg4_defvalue ;
- wxPoint const &arg5_defvalue = wxDefaultPosition ;
- wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
- wxSize const &arg6_defvalue = wxDefaultSize ;
- wxSize *arg6 = (wxSize *) &arg6_defvalue ;
- long arg7 = (long) wxDEFAULT_DIALOG_STYLE ;
- wxString const &arg8_defvalue = wxPyDialogNameStr ;
- wxString *arg8 = (wxString *) &arg8_defvalue ;
- bool result;
- bool temp4 = false ;
- wxPoint temp5 ;
- wxSize temp6 ;
- bool temp8 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- PyObject * obj6 = 0 ;
- PyObject * obj7 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj2) {
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj3) {
- {
- arg4 = wxString_in_helper(obj3);
- if (arg4 == NULL) SWIG_fail;
- temp4 = true;
- }
- }
- if (obj4) {
- {
- arg5 = &temp5;
- if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
- }
- }
- if (obj5) {
- {
- arg6 = &temp6;
- if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
- }
- }
- if (obj6) {
- arg7 = (long)SWIG_As_long(obj6);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj7) {
- {
- arg8 = wxString_in_helper(obj7);
- if (arg8 == NULL) SWIG_fail;
- temp8 = true;
- }
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- {
- if (temp4)
- delete arg4;
- }
- {
- if (temp8)
- delete arg8;
- }
- return resultobj;
- fail:
- {
- if (temp4)
- delete arg4;
- }
- {
- if (temp8)
- delete arg8;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_Dialog_SetReturnCode(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxDialog *arg1 = (wxDialog *) 0 ;
- int arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "returnCode", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetReturnCode(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Dialog_GetReturnCode(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxDialog *arg1 = (wxDialog *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_GetReturnCode",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (int)((wxDialog const *)arg1)->GetReturnCode();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_From_int((int)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Dialog_CreateTextSizer(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxDialog *arg1 = (wxDialog *) 0 ;
- wxString *arg2 = 0 ;
- wxSizer *result;
- bool temp2 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "message", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- arg2 = wxString_in_helper(obj1);
- if (arg2 == NULL) SWIG_fail;
- temp2 = true;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = wxPyMake_wxSizer(result, 0);
- }
- {
- if (temp2)
- delete arg2;
- }
- return resultobj;
- fail:
- {
- if (temp2)
- delete arg2;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxDialog *arg1 = (wxDialog *) 0 ;
- long arg2 ;
- wxSizer *result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "flags", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (long)SWIG_As_long(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxSizer *)(arg1)->CreateButtonSizer(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = wxPyMake_wxSizer(result, 0);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Dialog_IsModal(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxDialog *arg1 = (wxDialog *) 0 ;
- bool result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModal",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)((wxDialog const *)arg1)->IsModal();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Dialog_ShowModal(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxDialog *arg1 = (wxDialog *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_ShowModal",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (int)(arg1)->ShowModal();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_From_int((int)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Dialog_EndModal(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxDialog *arg1 = (wxDialog *) 0 ;
- int arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "retCode", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->EndModal(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_Dialog_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
- wxVisualAttributes result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "variant", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Dialog_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
- if (obj0) {
- arg1 = (int)SWIG_As_int(obj0);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = wxDialog::GetClassDefaultAttributes((wxWindowVariant )arg1);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- wxVisualAttributes * resultptr;
- resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
- resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * Dialog_swigregister(PyObject *, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_wxDialog, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_MiniFrame(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxWindow *arg1 = (wxWindow *) 0 ;
- int arg2 = (int) (int)-1 ;
- wxString const &arg3_defvalue = wxPyEmptyString ;
- wxString *arg3 = (wxString *) &arg3_defvalue ;
- wxPoint const &arg4_defvalue = wxDefaultPosition ;
- wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
- wxSize const &arg5_defvalue = wxDefaultSize ;
- wxSize *arg5 = (wxSize *) &arg5_defvalue ;
- long arg6 = (long) wxDEFAULT_FRAME_STYLE ;
- wxString const &arg7_defvalue = wxPyFrameNameStr ;
- wxString *arg7 = (wxString *) &arg7_defvalue ;
- wxMiniFrame *result;
- bool temp3 = false ;
- wxPoint temp4 ;
- wxSize temp5 ;
- bool temp7 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- PyObject * obj6 = 0 ;
- char *kwnames[] = {
- (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj2) {
- {
- arg3 = wxString_in_helper(obj2);
- if (arg3 == NULL) SWIG_fail;
- temp3 = true;
- }
- }
- if (obj3) {
- {
- arg4 = &temp4;
- if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
- }
- }
- if (obj4) {
- {
- arg5 = &temp5;
- if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
- }
- }
- if (obj5) {
- arg6 = (long)SWIG_As_long(obj5);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj6) {
- {
- arg7 = wxString_in_helper(obj6);
- if (arg7 == NULL) SWIG_fail;
- temp7 = true;
- }
- }
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1);
- {
- if (temp3)
- delete arg3;
- }
- {
- if (temp7)
- delete arg7;
- }
- return resultobj;
- fail:
- {
- if (temp3)
- delete arg3;
- }
- {
- if (temp7)
- delete arg7;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_new_PreMiniFrame(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxMiniFrame *result;
- char *kwnames[] = {
- NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMiniFrame",kwnames)) goto fail;
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxMiniFrame *)new wxMiniFrame();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_MiniFrame_Create(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxMiniFrame *arg1 = (wxMiniFrame *) 0 ;
- wxWindow *arg2 = (wxWindow *) 0 ;
- int arg3 = (int) (int)-1 ;
- wxString const &arg4_defvalue = wxPyEmptyString ;
- wxString *arg4 = (wxString *) &arg4_defvalue ;
- wxPoint const &arg5_defvalue = wxDefaultPosition ;
- wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
- wxSize const &arg6_defvalue = wxDefaultSize ;
- wxSize *arg6 = (wxSize *) &arg6_defvalue ;
- long arg7 = (long) wxDEFAULT_FRAME_STYLE ;
- wxString const &arg8_defvalue = wxPyFrameNameStr ;
- wxString *arg8 = (wxString *) &arg8_defvalue ;
- bool result;
- bool temp4 = false ;
- wxPoint temp5 ;
- wxSize temp6 ;
- bool temp8 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- PyObject * obj6 = 0 ;
- PyObject * obj7 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMiniFrame,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj2) {
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj3) {
- {
- arg4 = wxString_in_helper(obj3);
- if (arg4 == NULL) SWIG_fail;
- temp4 = true;
- }
- }
- if (obj4) {
- {
- arg5 = &temp5;
- if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
- }
- }
- if (obj5) {
- {
- arg6 = &temp6;
- if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
- }
- }
- if (obj6) {
- arg7 = (long)SWIG_As_long(obj6);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj7) {
- {
- arg8 = wxString_in_helper(obj7);
- if (arg8 == NULL) SWIG_fail;
- temp8 = true;
- }
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- {
- if (temp4)
- delete arg4;
- }
- {
- if (temp8)
- delete arg8;
- }
- return resultobj;
- fail:
- {
- if (temp4)
- delete arg4;
- }
- {
- if (temp8)
- delete arg8;
- }
- return NULL;
-}
-
-
-static PyObject * MiniFrame_swigregister(PyObject *, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_wxMiniFrame, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_SplashScreenWindow(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxBitmap *arg1 = 0 ;
- wxWindow *arg2 = (wxWindow *) 0 ;
- int arg3 ;
- wxPoint const &arg4_defvalue = wxDefaultPosition ;
- wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
- wxSize const &arg5_defvalue = wxDefaultSize ;
- wxSize *arg5 = (wxSize *) &arg5_defvalue ;
- long arg6 = (long) wxNO_BORDER ;
- wxSplashScreenWindow *result;
- wxPoint temp4 ;
- wxSize temp5 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- char *kwnames[] = {
- (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
- SWIG_POINTER_EXCEPTION | 0)) == -1)
- SWIG_fail;
- if (arg1 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference");
- SWIG_fail;
- }
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- if (obj3) {
- {
- arg4 = &temp4;
- if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
- }
- }
- if (obj4) {
- {
- arg5 = &temp5;
- if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
- }
- }
- if (obj5) {
- arg6 = (long)SWIG_As_long(obj5);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ;
- wxBitmap *arg2 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "bitmap", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
- SWIG_POINTER_EXCEPTION | 0)) == -1)
- SWIG_fail;
- if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference");
- SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetBitmap((wxBitmap const &)*arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ;
- wxBitmap *result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreenWindow_GetBitmap",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- {
- wxBitmap &_result_ref = (arg1)->GetBitmap();
- result = (wxBitmap *) &_result_ref;
- }
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- wxBitmap* resultptr = new wxBitmap(*result);
- resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * SplashScreenWindow_swigregister(PyObject *, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreenWindow, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_SplashScreen(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxBitmap *arg1 = 0 ;
- long arg2 ;
- int arg3 ;
- wxWindow *arg4 = (wxWindow *) 0 ;
- int arg5 = (int) -1 ;
- wxPoint const &arg6_defvalue = wxDefaultPosition ;
- wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
- wxSize const &arg7_defvalue = wxDefaultSize ;
- wxSize *arg7 = (wxSize *) &arg7_defvalue ;
- long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ;
- wxSplashScreen *result;
- wxPoint temp6 ;
- wxSize temp7 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- PyObject * obj5 = 0 ;
- PyObject * obj6 = 0 ;
- PyObject * obj7 = 0 ;
- char *kwnames[] = {
- (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
- SWIG_POINTER_EXCEPTION | 0)) == -1)
- SWIG_fail;
- if (arg1 == NULL) {
- PyErr_SetString(PyExc_TypeError,"null reference");
- SWIG_fail;
- }
- arg2 = (long)SWIG_As_long(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj4) {
- arg5 = (int)SWIG_As_int(obj4);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj5) {
- {
- arg6 = &temp6;
- if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
- }
- }
- if (obj6) {
- {
- arg7 = &temp7;
- if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
- }
- }
- if (obj7) {
- arg8 = (long)SWIG_As_long(obj7);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreen, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxSplashScreen *arg1 = (wxSplashScreen *) 0 ;
- long result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashStyle",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_From_long((long)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxSplashScreen *arg1 = (wxSplashScreen *) 0 ;
- wxSplashScreenWindow *result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashWindow",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 0);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_SplashScreen_GetTimeout(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxSplashScreen *arg1 = (wxSplashScreen *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetTimeout",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (int)((wxSplashScreen const *)arg1)->GetTimeout();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_From_int((int)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * SplashScreen_swigregister(PyObject *, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreen, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static PyObject *_wrap_new_StatusBar(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxWindow *arg1 = (wxWindow *) 0 ;
- int arg2 = (int) -1 ;
- long arg3 = (long) wxST_SIZEGRIP ;
- wxString const &arg4_defvalue = wxPyStatusLineNameStr ;
- wxString *arg4 = (wxString *) &arg4_defvalue ;
- wxStatusBar *result;
- bool temp4 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- char *kwnames[] = {
- (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj2) {
- arg3 = (long)SWIG_As_long(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj3) {
- {
- arg4 = wxString_in_helper(obj3);
- if (arg4 == NULL) SWIG_fail;
- temp4 = true;
- }
- }
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStatusBar, 1);
- {
- if (temp4)
- delete arg4;
- }
- return resultobj;
- fail:
- {
- if (temp4)
- delete arg4;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_new_PreStatusBar(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxStatusBar *result;
- char *kwnames[] = {
- NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStatusBar",kwnames)) goto fail;
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxStatusBar *)new wxStatusBar();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStatusBar, 1);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_StatusBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxStatusBar *arg1 = (wxStatusBar *) 0 ;
- wxWindow *arg2 = (wxWindow *) 0 ;
- int arg3 = (int) -1 ;
- long arg4 = (long) wxST_SIZEGRIP ;
- wxString const &arg5_defvalue = wxPyStatusLineNameStr ;
- wxString *arg5 = (wxString *) &arg5_defvalue ;
- bool result;
- bool temp5 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- PyObject * obj3 = 0 ;
- PyObject * obj4 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj2) {
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj3) {
- arg4 = (long)SWIG_As_long(obj3);
- if (PyErr_Occurred()) SWIG_fail;
- }
- if (obj4) {
- {
- arg5 = wxString_in_helper(obj4);
- if (arg5 == NULL) SWIG_fail;
- temp5 = true;
- }
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
- }
- {
- if (temp5)
- delete arg5;
- }
- return resultobj;
- fail:
- {
- if (temp5)
- delete arg5;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxStatusBar *arg1 = (wxStatusBar *) 0 ;
- int arg2 = (int) 1 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "number", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetFieldsCount(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxStatusBar *arg1 = (wxStatusBar *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetFieldsCount",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (int)((wxStatusBar const *)arg1)->GetFieldsCount();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_From_int((int)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_StatusBar_SetStatusText(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxStatusBar *arg1 = (wxStatusBar *) 0 ;
- wxString *arg2 = 0 ;
- int arg3 = (int) 0 ;
- bool temp2 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "text",(char *) "number", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- arg2 = wxString_in_helper(obj1);
- if (arg2 == NULL) SWIG_fail;
- temp2 = true;
- }
- if (obj2) {
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetStatusText((wxString const &)*arg2,arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- {
- if (temp2)
- delete arg2;
- }
- return resultobj;
- fail:
- {
- if (temp2)
- delete arg2;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_StatusBar_GetStatusText(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxStatusBar *arg1 = (wxStatusBar *) 0 ;
- int arg2 = (int) 0 ;
- wxString result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "number", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = ((wxStatusBar const *)arg1)->GetStatusText(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
-#if wxUSE_UNICODE
- resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
-#else
- resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
-#endif
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_StatusBar_PushStatusText(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxStatusBar *arg1 = (wxStatusBar *) 0 ;
- wxString *arg2 = 0 ;
- int arg3 = (int) 0 ;
- bool temp2 = false ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "text",(char *) "number", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- arg2 = wxString_in_helper(obj1);
- if (arg2 == NULL) SWIG_fail;
- temp2 = true;
- }
- if (obj2) {
- arg3 = (int)SWIG_As_int(obj2);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->PushStatusText((wxString const &)*arg2,arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- {
- if (temp2)
- delete arg2;
- }
- return resultobj;
- fail:
- {
- if (temp2)
- delete arg2;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_StatusBar_PopStatusText(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxStatusBar *arg1 = (wxStatusBar *) 0 ;
- int arg2 = (int) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "number", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- if (obj1) {
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->PopStatusText(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxStatusBar *arg1 = (wxStatusBar *) 0 ;
- int arg2 ;
- int *arg3 = (int *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "widths", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- arg2 = PyList_Size(obj1);
- arg3 = int_LIST_helper(obj1);
- if (arg3 == NULL) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetStatusWidths(arg2,(int const *)arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- {
- if (arg3) delete [] arg3;
- }
- return resultobj;
- fail:
- {
- if (arg3) delete [] arg3;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_StatusBar_SetStatusStyles(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxStatusBar *arg1 = (wxStatusBar *) 0 ;
- int arg2 ;
- int *arg3 = (int *) 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "styles", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusStyles",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- arg2 = PyList_Size(obj1);
- arg3 = int_LIST_helper(obj1);
- if (arg3 == NULL) SWIG_fail;
- }
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetStatusStyles(arg2,(int const *)arg3);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- {
- if (arg3) delete [] arg3;
- }
- return resultobj;
- fail:
- {
- if (arg3) delete [] arg3;
- }
- return NULL;
-}
-
-
-static PyObject *_wrap_StatusBar_GetFieldRect(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxStatusBar *arg1 = (wxStatusBar *) 0 ;
- int arg2 ;
- wxRect result;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "i", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = wxStatusBar_GetFieldRect(arg1,arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- wxRect * resultptr;
- resultptr = new wxRect((wxRect &) result);
- resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_StatusBar_SetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxStatusBar *arg1 = (wxStatusBar *) 0 ;
- int arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "height", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- arg2 = (int)SWIG_As_int(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetMinHeight(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_StatusBar_GetBorderX(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxStatusBar *arg1 = (wxStatusBar *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderX",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (int)((wxStatusBar const *)arg1)->GetBorderX();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_From_int((int)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_StatusBar_GetBorderY(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxStatusBar *arg1 = (wxStatusBar *) 0 ;
- int result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "self", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderY",kwnames,&obj0)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar,
- SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (int)((wxStatusBar const *)arg1)->GetBorderY();
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- resultobj = SWIG_From_int((int)result);
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject *_wrap_StatusBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
- wxVisualAttributes result;
- PyObject * obj0 = 0 ;
- char *kwnames[] = {
- (char *) "variant", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StatusBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
- if (obj0) {
- arg1 = (int)SWIG_As_int(obj0);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- if (!wxPyCheckForApp()) SWIG_fail;
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = wxStatusBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- {
- wxVisualAttributes * resultptr;
- resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
- resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
- }
- return resultobj;
- fail:
- return NULL;
-}
-
-
-static PyObject * StatusBar_swigregister(PyObject *, PyObject *args) {
- PyObject *obj;
- if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
- SWIG_TypeClientData(SWIGTYPE_p_wxStatusBar, obj);
- Py_INCREF(obj);
- return Py_BuildValue((char *)"");
-}
-static int _wrap_SplitterNameStr_set(PyObject *) {
- PyErr_SetString(PyExc_TypeError,"Variable SplitterNameStr is read-only.");
- return 1;
-}