-%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>
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__:wxp._StdDialogCallbacks(self)"
+
+#ifdef __WXMSW__
wxColourData& GetColourData();
+#else
+ wxColourData GetColourData();
+#endif
int ShowModal();
};
//----------------------------------------------------------------------
+#ifdef __WXMSW__
class wxDirDialog : public wxDialog {
public:
wxDirDialog(wxWindow* parent,
long style = 0,
const wxPoint& pos = wxPyDefaultPosition);
+ %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)"
+
wxString GetPath();
wxString GetMessage();
long GetStyle();
void SetPath(const wxString& path);
int ShowModal();
};
+#endif
//----------------------------------------------------------------------
long style = 0,
const wxPoint& pos = wxPyDefaultPosition);
+ %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)"
+
wxString GetDirectory();
wxString GetFilename();
int GetFilterIndex();
}
}
+ %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)"
+
int GetSelection();
wxString GetStringSelection();
void SetSelection(int sel);
long style = wxOK | wxCANCEL | wxCENTRE,
const wxPoint& pos = wxPyDefaultPosition);
+ %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)"
+
wxString GetValue();
void SetValue(const wxString& value);
int ShowModal();
public:
wxFontDialog(wxWindow* parent, wxFontData* data = NULL);
+ %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)"
+
wxFontData& GetFontData();
int ShowModal();
};
//----------------------------------------------------------------------
+#ifdef __WXMSW__
class wxPageSetupData {
public:
wxPageSetupData();
public:
wxPageSetupDialog(wxWindow* parent, wxPageSetupData* data = NULL);
+ %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)"
+
wxPageSetupData& GetPageSetupData();
int ShowModal();
};
+#endif
//----------------------------------------------------------------------
+#ifdef __WXMSW__
class wxPrintData {
public:
wxPrintData();
public:
wxPrintDialog(wxWindow* parent, wxPrintData* data = NULL);
+ %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)"
+
wxPrintData& GetPrintData();
wxDC* GetPrintDC();
int ShowModal();
};
+#endif
//----------------------------------------------------------------------
long style = wxOK | wxCANCEL | wxCENTRE,
const wxPoint& pos = wxPyDefaultPosition);
+ %pragma(python) addtomethod = "__init__:wxp._StdDialogCallbacks(self)"
+
int ShowModal();
};
/////////////////////////////////////////////////////////////////////////////
//
// $Log$
+// 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
//