X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7bf854050fd5c04469d4334524433a31d4ba997a..9f06bcb3b8aea7aa709754a217c26e94fe2d5954:/utils/wxPython/src/cmndlgs.i?ds=sidebyside diff --git a/utils/wxPython/src/cmndlgs.i b/utils/wxPython/src/cmndlgs.i index 06ca87ef77..4a17cfce36 100644 --- a/utils/wxPython/src/cmndlgs.i +++ b/utils/wxPython/src/cmndlgs.i @@ -1,5 +1,3 @@ -%module cmndlgs -%{ ///////////////////////////////////////////////////////////////////////////// // Name: cmndlgs.i // Purpose: SWIG definitions for the Common Dialog Classes @@ -12,7 +10,9 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// +%module cmndlgs +%{ #include "helpers.h" #include #include @@ -31,6 +31,7 @@ %import gdi.i %import windows.i +%pragma(python) code = "import wx" //---------------------------------------------------------------------- @@ -41,7 +42,7 @@ public: bool GetChooseFull(); wxColour& GetColour(); - wxColour& GetCustomColour(int i); + wxColour GetCustomColour(int i); void SetChooseFull(int flag); void SetColour(const wxColour& colour); void SetCustomColour(int i, const wxColour& colour); @@ -52,6 +53,8 @@ class wxColourDialog : public wxDialog { public: wxColourDialog(wxWindow* parent, wxColourData* data = NULL); + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" + wxColourData& GetColourData(); int ShowModal(); }; @@ -67,6 +70,8 @@ public: long style = 0, const wxPoint& pos = wxPyDefaultPosition); + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" + wxString GetPath(); wxString GetMessage(); long GetStyle(); @@ -87,6 +92,8 @@ public: long style = 0, const wxPoint& pos = wxPyDefaultPosition); + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" + wxString GetDirectory(); wxString GetFilename(); int GetFilterIndex(); @@ -128,6 +135,8 @@ public: } } + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" + int GetSelection(); wxString GetStringSelection(); void SetSelection(int sel); @@ -146,6 +155,8 @@ public: long style = wxOK | wxCANCEL | wxCENTRE, const wxPoint& pos = wxPyDefaultPosition); + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" + wxString GetValue(); void SetValue(const wxString& value); int ShowModal(); @@ -178,6 +189,8 @@ class wxFontDialog : public wxDialog { public: wxFontDialog(wxWindow* parent, wxFontData* data = NULL); + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" + wxFontData& GetFontData(); int ShowModal(); }; @@ -223,6 +236,8 @@ class wxPageSetupDialog : public wxDialog { public: wxPageSetupDialog(wxWindow* parent, wxPageSetupData* data = NULL); + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" + wxPageSetupData& GetPageSetupData(); int ShowModal(); }; @@ -262,8 +277,10 @@ class wxPrintDialog : public wxDialog { public: wxPrintDialog(wxWindow* parent, wxPrintData* data = NULL); + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" + wxPrintData& GetPrintData(); - wxDC* GetPrintDC(); + %new wxDC* GetPrintDC(); int ShowModal(); }; @@ -277,6 +294,8 @@ public: long style = wxOK | wxCANCEL | wxCENTRE, const wxPoint& pos = wxPyDefaultPosition); + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" + int ShowModal(); }; @@ -286,6 +305,53 @@ public: ///////////////////////////////////////////////////////////////////////////// // // $Log$ +// Revision 1.8 1998/12/17 14:07:25 RR +// Removed minor differences between wxMSW and wxGTK +// +// Revision 1.7 1998/12/15 20:41:14 RD +// Changed the import semantics from "from wxPython import *" to "from +// wxPython.wx import *" This is for people who are worried about +// namespace pollution, they can use "from wxPython import wx" and then +// prefix all the wxPython identifiers with "wx." +// +// Added wxTaskbarIcon for wxMSW. +// +// Made the events work for wxGrid. +// +// Added wxConfig. +// +// Added wxMiniFrame for wxGTK, (untested.) +// +// Changed many of the args and return values that were pointers to gdi +// objects to references to reflect changes in the wxWindows API. +// +// Other assorted fixes and additions. +// +// Revision 1.6 1998/11/25 08:45:22 RD +// +// Added wxPalette, wxRegion, wxRegionIterator, wxTaskbarIcon +// Added events for wxGrid +// Other various fixes and additions +// +// Revision 1.5 1998/11/15 23:03:43 RD +// Removing some ifdef's for wxGTK +// +// Revision 1.4 1998/10/02 06:40:34 RD +// +// Version 0.4 of wxPython for MSW. +// +// Revision 1.3 1998/08/18 19:48:13 RD +// more wxGTK compatibility things. +// +// It builds now but there are serious runtime problems... +// +// Revision 1.2 1998/08/15 07:36:25 RD +// - Moved the header in the .i files out of the code that gets put into +// the .cpp files. It caused CVS conflicts because of the RCS ID being +// different each time. +// +// - A few minor fixes. +// // Revision 1.1 1998/08/09 08:25:49 RD // Initial version //