]>
Commit | Line | Data |
---|---|---|
34138703 JS |
1 | #ifndef _WX_FILEDLG_H_BASE_ |
2 | #define _WX_FILEDLG_H_BASE_ | |
c801d85f | 3 | |
2049ba38 | 4 | #if defined(__WXMSW__) |
c801d85f | 5 | #include "wx/msw/filedlg.h" |
2049ba38 | 6 | #elif defined(__WXMOTIF__) |
34138703 | 7 | #include "wx/motif/filedlg.h" |
2049ba38 | 8 | #elif defined(__WXGTK__) |
c801d85f | 9 | #include "wx/gtk/filedlg.h" |
7c78e7c7 RR |
10 | #elif defined(__WXQT__) |
11 | #include "wx/qt/filedlg.h" | |
34138703 JS |
12 | #elif defined(__WXMAC__) |
13 | #include "wx/mac/filedlg.h" | |
14 | #elif defined(__WXSTUBS__) | |
15 | #include "wx/stubs/filedlg.h" | |
c801d85f KB |
16 | #endif |
17 | ||
ba681060 VZ |
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 | ||
c801d85f | 54 | #endif |
34138703 | 55 | // _WX_FILEDLG_H_BASE_ |