]>
Commit | Line | Data |
---|---|---|
34138703 JS |
1 | #ifndef _WX_DIRDLG_H_BASE_ |
2 | #define _WX_DIRDLG_H_BASE_ | |
c801d85f | 3 | |
1e6feb95 VZ |
4 | #if wxUSE_DIRDLG |
5 | ||
48013bb0 GD |
6 | #include "wx/dialog.h" |
7 | ||
1044a386 JS |
8 | // ---------------------------------------------------------------------------- |
9 | // constants | |
10 | // ---------------------------------------------------------------------------- | |
11 | ||
12 | WXDLLEXPORT_DATA(extern const wxChar*) wxDirDialogNameStr; | |
13 | WXDLLEXPORT_DATA(extern const wxChar*) wxDirDialogDefaultFolderStr; | |
e78d4a23 | 14 | WXDLLEXPORT_DATA(extern const wxChar*) wxDirSelectorPromptStr; |
1044a386 | 15 | |
e78d4a23 VZ |
16 | #define wxDD_DEFAULT_STYLE \ |
17 | (wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxDD_NEW_DIR_BUTTON) | |
18 | ||
19 | /* | |
20 | The interface (TODO: make the other classes really derive from it!) is | |
21 | something like this: | |
22 | ||
23 | class WXDLLEXPORT wxDirDialogBase : public wxDialog | |
24 | { | |
25 | public: | |
26 | wxDirDialogBase(wxWindow *parent, | |
27 | const wxString& title = wxFileSelectorPromptStr, | |
28 | const wxString& defaultPath = wxEmptyString, | |
29 | long style = wxDD_DEFAULT_STYLE, | |
30 | const wxPoint& pos = wxDefaultPosition, | |
31 | const wxSize& sz = wxDefaultSize, | |
32 | const wxString& name = _T("dirdialog")); | |
33 | ||
34 | void SetMessage(const wxString& message); | |
35 | void SetPath(const wxString& path); | |
36 | void SetStyle(long style); | |
37 | ||
38 | wxString GetMessage() const; | |
39 | wxString GetPath() const; | |
40 | long GetStyle() const; | |
41 | }; | |
42 | ||
43 | */ | |
44 | ||
2049ba38 | 45 | #if defined(__WXMSW__) |
529b7f71 | 46 | #if defined(__WXWINCE__) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS) || defined(__SALFORDC__) || !wxUSE_OLE |
10eb1f1e | 47 | #include "wx/generic/dirdlgg.h" |
ed8a10f8 | 48 | #define wxDirDialog wxGenericDirDialog |
10eb1f1e VZ |
49 | #else |
50 | #include "wx/msw/dirdlg.h" | |
51 | #endif | |
2049ba38 | 52 | #elif defined(__WXMOTIF__) |
10eb1f1e | 53 | #include "wx/generic/dirdlgg.h" |
2049ba38 | 54 | #elif defined(__WXGTK__) |
10eb1f1e | 55 | #include "wx/generic/dirdlgg.h" |
83df96d6 JS |
56 | #elif defined(__WXX11__) |
57 | #include "wx/generic/dirdlgg.h" | |
4a70a30b VS |
58 | #elif defined(__WXMGL__) |
59 | #include "wx/generic/dirdlgg.h" | |
34138703 | 60 | #elif defined(__WXMAC__) |
10eb1f1e | 61 | #include "wx/mac/dirdlg.h" |
0201182b DE |
62 | #elif defined(__WXCOCOA__) |
63 | #include "wx/generic/dirdlgg.h" | |
1777b9bb | 64 | #elif defined(__WXPM__) |
957aea45 | 65 | #include "wx/generic/dirdlgg.h" |
c801d85f KB |
66 | #endif |
67 | ||
e78d4a23 VZ |
68 | #if !defined(__WXMSW__) && !defined(__WXMAC__) |
69 | #define wxDirDialog wxGenericDirDialog | |
70 | #endif | |
71 | ||
10eb1f1e VZ |
72 | // ---------------------------------------------------------------------------- |
73 | // common ::wxDirSelector() function | |
74 | // ---------------------------------------------------------------------------- | |
75 | ||
10eb1f1e VZ |
76 | WXDLLEXPORT wxString |
77 | wxDirSelector(const wxString& message = wxDirSelectorPromptStr, | |
78 | const wxString& defaultPath = wxEmptyString, | |
e78d4a23 | 79 | long style = wxDD_DEFAULT_STYLE, |
10eb1f1e VZ |
80 | const wxPoint& pos = wxDefaultPosition, |
81 | wxWindow *parent = NULL); | |
82 | ||
1e6feb95 VZ |
83 | #endif // wxUSE_DIRDLG |
84 | ||
c801d85f | 85 | #endif |
34138703 | 86 | // _WX_DIRDLG_H_BASE_ |