-%module cmndlgs
-%{
/////////////////////////////////////////////////////////////////////////////
// Name: cmndlgs.i
// Purpose: SWIG definitions for the Common Dialog Classes
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
+%module cmndlgs
+%{
#include "helpers.h"
#include <wx/colordlg.h>
#include <wx/dirdlg.h>
#include <wx/fontdlg.h>
-#include <wx/printdlg.h>
+#include <wx/progdlg.h>
%}
//----------------------------------------------------------------------
%import misc.i
%import gdi.i
%import windows.i
+%import frames.i
+%pragma(python) code = "import wx"
//----------------------------------------------------------------------
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);
public:
wxColourDialog(wxWindow* parent, wxColourData* data = NULL);
+ %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)"
+
wxColourData& GetColourData();
int ShowModal();
};
long style = 0,
const wxPoint& pos = wxPyDefaultPosition);
+ %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)"
+
wxString GetPath();
wxString GetMessage();
long GetStyle();
long style = 0,
const wxPoint& pos = wxPyDefaultPosition);
+ %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)"
+
wxString GetDirectory();
wxString GetFilename();
int GetFilterIndex();
}
}
+ %pragma(python) addtomethod = "__init__:wx._StdDialogCallbacks(self)"
+
int GetSelection();
wxString GetStringSelection();
void SetSelection(int sel);
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();
public:
wxFontDialog(wxWindow* parent, wxFontData* data = NULL);
- 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__:wx._StdDialogCallbacks(self)"
- wxPageSetupData& GetPageSetupData();
+ wxFontData& GetFontData();
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);
-
- wxPrintData& GetPrintData();
- wxDC* GetPrintDC();
- int ShowModal();
-};
//----------------------------------------------------------------------
long style = wxOK | wxCANCEL | wxCENTRE,
const wxPoint& pos = wxPyDefaultPosition);
+ %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.1 1998/08/09 08:25:49 RD
-// Initial version
-//
-//
+ bool Update(int value = -1, const char* newmsg = NULL);
+ void Resume();
+}
+
+//----------------------------------------------------------------------