X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/faf3cb3590e7bead27735c94014df39025cfc12b..b854b7b82e033d1dbd9d300402df50ec5e1e8b74:/utils/wxPython/src/cmndlgs.i diff --git a/utils/wxPython/src/cmndlgs.i b/utils/wxPython/src/cmndlgs.i index 56e22d9d1a..5b51790333 100644 --- a/utils/wxPython/src/cmndlgs.i +++ b/utils/wxPython/src/cmndlgs.i @@ -17,7 +17,7 @@ #include #include #include -#include +#include %} //---------------------------------------------------------------------- @@ -30,7 +30,9 @@ %import misc.i %import gdi.i %import windows.i +%import frames.i +%pragma(python) code = "import wx" //---------------------------------------------------------------------- @@ -52,20 +54,15 @@ class wxColourDialog : public wxDialog { public: wxColourDialog(wxWindow* parent, wxColourData* data = NULL); - %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)" + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" -#ifdef __WXMSW__ wxColourData& GetColourData(); -#else - wxColourData GetColourData(); -#endif int ShowModal(); }; //---------------------------------------------------------------------- -#ifdef __WXMSW__ class wxDirDialog : public wxDialog { public: wxDirDialog(wxWindow* parent, @@ -74,7 +71,7 @@ public: long style = 0, const wxPoint& pos = wxPyDefaultPosition); - %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)" + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" wxString GetPath(); wxString GetMessage(); @@ -83,7 +80,6 @@ public: void SetPath(const wxString& path); int ShowModal(); }; -#endif //---------------------------------------------------------------------- @@ -97,7 +93,7 @@ public: long style = 0, const wxPoint& pos = wxPyDefaultPosition); - %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)" + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" wxString GetDirectory(); wxString GetFilename(); @@ -140,7 +136,7 @@ public: } } - %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)" + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" int GetSelection(); wxString GetStringSelection(); @@ -160,7 +156,7 @@ public: long style = wxOK | wxCANCEL | wxCENTRE, const wxPoint& pos = wxPyDefaultPosition); - %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)" + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" wxString GetValue(); void SetValue(const wxString& value); @@ -194,101 +190,13 @@ class wxFontDialog : public wxDialog { public: wxFontDialog(wxWindow* parent, wxFontData* data = NULL); - %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)" + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" wxFontData& GetFontData(); int ShowModal(); }; -//---------------------------------------------------------------------- - -class wxPageSetupData { -public: - wxPageSetupData(); - ~wxPageSetupData(); - - void EnableHelp(bool flag); - void EnableMargins(bool flag); - void EnableOrientation(bool flag); - void EnablePaper(bool flag); - void EnablePrinter(bool flag); - wxPoint GetPaperSize(); - wxPoint GetMarginTopLeft(); - wxPoint GetMarginBottomRight(); - wxPoint GetMinMarginTopLeft(); - wxPoint GetMinMarginBottomRight(); - int GetOrientation(); - bool GetDefaultMinMargins(); - bool GetEnableMargins(); - bool GetEnableOrientation(); - bool GetEnablePaper(); - bool GetEnablePrinter(); - bool GetEnableHelp(); - bool GetDefaultInfo(); - void SetPaperSize(const wxPoint& size); - void SetMarginTopLeft(const wxPoint& pt); - void SetMarginBottomRight(const wxPoint& pt); - void SetMinMarginTopLeft(const wxPoint& pt); - void SetMinMarginBottomRight(const wxPoint& pt); - void SetOrientation(int orientation); - void SetDefaultMinMargins(bool flag); - void SetDefaultInfo(bool flag); -}; - - -class wxPageSetupDialog : public wxDialog { -public: - wxPageSetupDialog(wxWindow* parent, wxPageSetupData* data = NULL); - - %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)" - - wxPageSetupData& GetPageSetupData(); - int ShowModal(); -}; - -//---------------------------------------------------------------------- - -class wxPrintData { -public: - wxPrintData(); - ~wxPrintData(); - - void EnableHelp(bool flag); - void EnablePageNumbers(bool flag); - void EnablePrintToFile(bool flag); - void EnableSelection(bool flag); - bool GetAllPages(); - bool GetCollate(); - int GetFromPage(); - int GetMaxPage(); - int GetMinPage(); - int GetNoCopies(); - int GetOrientation(); - int GetToPage(); - void SetCollate(bool flag); - void SetFromPage(int page); - void SetMaxPage(int page); - void SetMinPage(int page); - void SetOrientation(int orientation); - void SetNoCopies(int n); - void SetPrintToFile(bool flag); - void SetSetupDialog(bool flag); - void SetToPage(int page); -}; - - -class wxPrintDialog : public wxDialog { -public: - wxPrintDialog(wxWindow* parent, wxPrintData* data = NULL); - - %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)" - - wxPrintData& GetPrintData(); - wxDC* GetPrintDC(); - int ShowModal(); -}; - //---------------------------------------------------------------------- class wxMessageDialog : public wxDialog { @@ -299,38 +207,24 @@ public: long style = wxOK | wxCANCEL | wxCENTRE, const wxPoint& pos = wxPyDefaultPosition); - %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)" + %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)" int ShowModal(); }; //---------------------------------------------------------------------- +class wxProgressDialog : public wxFrame { +public: + wxProgressDialog(const wxString& title, + const wxString& message, + int maximum = 100, + wxWindow* parent = NULL, + int style = wxPD_AUTO_HIDE | wxPD_APP_MODAL ); -///////////////////////////////////////////////////////////////////////////// -// -// $Log$ -// 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 -// -// + bool Update(int value = -1, const char* newmsg = NULL); + void Resume(); +} + +//----------------------------------------------------------------------