3 /////////////////////////////////////////////////////////////////////////////
5 // Purpose: SWIG definitions for the Common Dialog Classes
11 // Copyright: (c) 1998 by Total Control Software
12 // Licence: wxWindows license
13 /////////////////////////////////////////////////////////////////////////////
17 #include <wx/colordlg.h>
18 #include <wx/dirdlg.h>
19 #include <wx/fontdlg.h>
20 #include <wx/printdlg.h>
23 //----------------------------------------------------------------------
26 %include my_typemaps.i
28 // Import some definitions of other classes, etc.
35 //----------------------------------------------------------------------
43 wxColour& GetColour();
44 wxColour& GetCustomColour(int i);
45 void SetChooseFull(int flag);
46 void SetColour(const wxColour& colour);
47 void SetCustomColour(int i, const wxColour& colour);
51 class wxColourDialog : public wxDialog {
53 wxColourDialog(wxWindow* parent, wxColourData* data = NULL);
55 wxColourData& GetColourData();
60 //----------------------------------------------------------------------
62 class wxDirDialog : public wxDialog {
64 wxDirDialog(wxWindow* parent,
65 char* message = "Choose a directory",
66 char* defaultPath = "",
68 const wxPoint& pos = wxPyDefaultPosition);
71 wxString GetMessage();
73 void SetMessage(const wxString& message);
74 void SetPath(const wxString& path);
78 //----------------------------------------------------------------------
80 class wxFileDialog : public wxDialog {
82 wxFileDialog(wxWindow* parent,
83 char* message = "Choose a file",
84 char* defaultDir = "",
85 char* defaultFile = "",
86 char* wildcard = "*.*",
88 const wxPoint& pos = wxPyDefaultPosition);
90 wxString GetDirectory();
91 wxString GetFilename();
93 wxString GetMessage();
96 wxString GetWildcard();
97 void SetDirectory(const wxString& directory);
98 void SetFilename(const wxString& setfilename);
99 void SetFilterIndex(int filterIndex);
100 void SetMessage(const wxString& message);
101 void SetPath(const wxString& path);
102 void SetStyle(long style);
103 void SetWildcard(const wxString& wildCard);
108 //----------------------------------------------------------------------
110 //TODO: wxMultipleChoiceDialog
112 //----------------------------------------------------------------------
114 class wxSingleChoiceDialog : public wxDialog {
117 // TODO: ignoring clientData for now...
118 // SWIG is messing up the &/*'s for some reason.
119 wxSingleChoiceDialog(wxWindow* parent,
122 int LCOUNT, wxString* LIST,
123 //char** clientData = NULL,
124 long style = wxOK | wxCANCEL | wxCENTRE,
125 wxPoint* pos = &wxPyDefaultPosition) {
126 return new wxSingleChoiceDialog(parent, *message, *caption,
127 LCOUNT, LIST, NULL, style, *pos);
132 wxString GetStringSelection();
133 void SetSelection(int sel);
138 //----------------------------------------------------------------------
140 class wxTextEntryDialog : public wxDialog {
142 wxTextEntryDialog(wxWindow* parent,
144 char* caption = "Input Text",
145 char* defaultValue = "",
146 long style = wxOK | wxCANCEL | wxCENTRE,
147 const wxPoint& pos = wxPyDefaultPosition);
150 void SetValue(const wxString& value);
154 //----------------------------------------------------------------------
161 void EnableEffects(bool enable);
162 bool GetAllowSymbols();
163 wxColour& GetColour();
164 wxFont GetChosenFont();
165 bool GetEnableEffects();
166 wxFont GetInitialFont();
168 void SetAllowSymbols(bool allowSymbols);
169 void SetChosenFont(const wxFont& font);
170 void SetColour(const wxColour& colour);
171 void SetInitialFont(const wxFont& font);
172 void SetRange(int min, int max);
173 void SetShowHelp(bool showHelp);
177 class wxFontDialog : public wxDialog {
179 wxFontDialog(wxWindow* parent, wxFontData* data = NULL);
181 wxFontData& GetFontData();
186 //----------------------------------------------------------------------
188 class wxPageSetupData {
193 void EnableHelp(bool flag);
194 void EnableMargins(bool flag);
195 void EnableOrientation(bool flag);
196 void EnablePaper(bool flag);
197 void EnablePrinter(bool flag);
198 wxPoint GetPaperSize();
199 wxPoint GetMarginTopLeft();
200 wxPoint GetMarginBottomRight();
201 wxPoint GetMinMarginTopLeft();
202 wxPoint GetMinMarginBottomRight();
203 int GetOrientation();
204 bool GetDefaultMinMargins();
205 bool GetEnableMargins();
206 bool GetEnableOrientation();
207 bool GetEnablePaper();
208 bool GetEnablePrinter();
209 bool GetEnableHelp();
210 bool GetDefaultInfo();
211 void SetPaperSize(const wxPoint& size);
212 void SetMarginTopLeft(const wxPoint& pt);
213 void SetMarginBottomRight(const wxPoint& pt);
214 void SetMinMarginTopLeft(const wxPoint& pt);
215 void SetMinMarginBottomRight(const wxPoint& pt);
216 void SetOrientation(int orientation);
217 void SetDefaultMinMargins(bool flag);
218 void SetDefaultInfo(bool flag);
222 class wxPageSetupDialog : public wxDialog {
224 wxPageSetupDialog(wxWindow* parent, wxPageSetupData* data = NULL);
226 wxPageSetupData& GetPageSetupData();
230 //----------------------------------------------------------------------
237 void EnableHelp(bool flag);
238 void EnablePageNumbers(bool flag);
239 void EnablePrintToFile(bool flag);
240 void EnableSelection(bool flag);
247 int GetOrientation();
249 void SetCollate(bool flag);
250 void SetFromPage(int page);
251 void SetMaxPage(int page);
252 void SetMinPage(int page);
253 void SetOrientation(int orientation);
254 void SetNoCopies(int n);
255 void SetPrintToFile(bool flag);
256 void SetSetupDialog(bool flag);
257 void SetToPage(int page);
261 class wxPrintDialog : public wxDialog {
263 wxPrintDialog(wxWindow* parent, wxPrintData* data = NULL);
265 wxPrintData& GetPrintData();
270 //----------------------------------------------------------------------
272 class wxMessageDialog : public wxDialog {
274 wxMessageDialog(wxWindow* parent,
276 char* caption = "Message box",
277 long style = wxOK | wxCANCEL | wxCENTRE,
278 const wxPoint& pos = wxPyDefaultPosition);
283 //----------------------------------------------------------------------
286 /////////////////////////////////////////////////////////////////////////////
289 // Revision 1.1 1998/08/09 08:25:49 RD