]> git.saurik.com Git - wxWidgets.git/blob - include/wx/filedlg.h
binary insertion
[wxWidgets.git] / include / wx / filedlg.h
1 #ifndef _WX_FILEDLG_H_BASE_
2 #define _WX_FILEDLG_H_BASE_
3
4 #if defined(__WXMSW__)
5 #include "wx/msw/filedlg.h"
6 #elif defined(__WXMOTIF__)
7 #include "wx/motif/filedlg.h"
8 #elif defined(__WXGTK__)
9 #include "wx/gtk/filedlg.h"
10 #elif defined(__WXQT__)
11 #include "wx/qt/filedlg.h"
12 #elif defined(__WXMAC__)
13 #include "wx/mac/filedlg.h"
14 #elif defined(__WXSTUBS__)
15 #include "wx/stubs/filedlg.h"
16 #endif
17
18 // File selector - backward compatibility
19 WXDLLEXPORT wxString
20 wxFileSelector(const char *message = wxFileSelectorPromptStr,
21 const char *default_path = NULL,
22 const char *default_filename = NULL,
23 const char *default_extension = NULL,
24 const char *wildcard = wxFileSelectorDefaultWildcardStr,
25 int flags = 0,
26 wxWindow *parent = NULL,
27 int x = -1, int y = -1);
28
29 // An extended version of wxFileSelector
30 WXDLLEXPORT wxString
31 wxFileSelectorEx(const char *message = wxFileSelectorPromptStr,
32 const char *default_path = NULL,
33 const char *default_filename = NULL,
34 int *indexDefaultExtension = NULL,
35 const char *wildcard = wxFileSelectorDefaultWildcardStr,
36 int flags = 0,
37 wxWindow *parent = NULL,
38 int x = -1, int y = -1);
39
40 // Ask for filename to load
41 WXDLLEXPORT wxString
42 wxLoadFileSelector(const char *what,
43 const char *extension,
44 const char *default_name = (const char *)NULL,
45 wxWindow *parent = (wxWindow *) NULL);
46
47 // Ask for filename to save
48 WXDLLEXPORT wxString
49 wxSaveFileSelector(const char *what,
50 const char *extension,
51 const char *default_name = (const char *) NULL,
52 wxWindow *parent = (wxWindow *) NULL);
53
54 #endif
55 // _WX_FILEDLG_H_BASE_