X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7bf854050fd5c04469d4334524433a31d4ba997a..b854b7b82e033d1dbd9d300402df50ec5e1e8b74:/utils/wxPython/src/mdi.i diff --git a/utils/wxPython/src/mdi.i b/utils/wxPython/src/mdi.i index cdcacdf9b2..41de685303 100644 --- a/utils/wxPython/src/mdi.i +++ b/utils/wxPython/src/mdi.i @@ -1,5 +1,3 @@ -%module mdi -%{ ///////////////////////////////////////////////////////////////////////////// // Name: mdi.i // Purpose: MDI related class definitions for wxPython @@ -13,6 +11,9 @@ ///////////////////////////////////////////////////////////////////////////// +%module mdi + +%{ #include "helpers.h" %} @@ -25,6 +26,9 @@ %import _defs.i %import misc.i %import windows.i +%import frames.i + +%pragma(python) code = "import wx" //---------------------------------------------------------------------- @@ -38,11 +42,12 @@ public: long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, const char* name = "frame"); + %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)" + void ActivateNext(); void ActivatePrevious(); void ArrangeIcons(); void Cascade(); - void GetClientSize(int* OUTPUT, int* OUTPUT); wxMDIChildFrame* GetActiveChild(); wxMDIClientWindow* GetClientWindow(); wxWindow* GetToolBar(); @@ -50,7 +55,9 @@ public: // TODO: This isn't handled by the standard event-table system... //wxMDIClientWindow* OnCreateClient(); +#ifdef __WXMSW__ void SetToolBar(wxToolBar* toolbar); +#endif void Tile(); }; @@ -66,9 +73,12 @@ public: long style = wxDEFAULT_FRAME_STYLE, const char* name = "frame"); + %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)" + void Activate(); - void Maximize(); + void Maximize(bool maximize); void Restore(); + }; @@ -77,13 +87,8 @@ public: class wxMDIClientWindow : public wxWindow { public: wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0); + %pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)" + %pragma(python) addtomethod = "__init__:wx._StdOnScrollCallbacks(self)" }; //--------------------------------------------------------------------------- -///////////////////////////////////////////////////////////////////////////// -// -// $Log$ -// Revision 1.1 1998/08/09 08:25:51 RD -// Initial version -// -//