]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dirdlg.h
wxDirDialog now has the same ctor under all platforms and also uses the
[wxWidgets.git] / include / wx / dirdlg.h
1 #ifndef _WX_DIRDLG_H_BASE_
2 #define _WX_DIRDLG_H_BASE_
3
4 #if wxUSE_DIRDLG
5
6 // ----------------------------------------------------------------------------
7 // constants
8 // ----------------------------------------------------------------------------
9
10 WXDLLEXPORT_DATA(extern const wxChar*) wxDirDialogNameStr;
11 WXDLLEXPORT_DATA(extern const wxChar*) wxDirDialogDefaultFolderStr;
12 WXDLLEXPORT_DATA(extern const wxChar*) wxDirSelectorPromptStr;
13 WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString;
14
15 #define wxDD_DEFAULT_STYLE \
16 (wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxDD_NEW_DIR_BUTTON)
17
18 /*
19 The interface (TODO: make the other classes really derive from it!) is
20 something like this:
21
22 class WXDLLEXPORT wxDirDialogBase : public wxDialog
23 {
24 public:
25 wxDirDialogBase(wxWindow *parent,
26 const wxString& title = wxFileSelectorPromptStr,
27 const wxString& defaultPath = wxEmptyString,
28 long style = wxDD_DEFAULT_STYLE,
29 const wxPoint& pos = wxDefaultPosition,
30 const wxSize& sz = wxDefaultSize,
31 const wxString& name = _T("dirdialog"));
32
33 void SetMessage(const wxString& message);
34 void SetPath(const wxString& path);
35 void SetStyle(long style);
36
37 wxString GetMessage() const;
38 wxString GetPath() const;
39 long GetStyle() const;
40 };
41
42 */
43
44 #if defined(__WXMSW__)
45 #if defined(__WIN16__) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS) || defined(__SALFORDC__) || !wxUSE_OLE
46 #include "wx/generic/dirdlgg.h"
47 #define wxDirDialog wxGenericDirDialog
48 #else
49 #include "wx/msw/dirdlg.h"
50 #endif
51 #elif defined(__WXMOTIF__)
52 #include "wx/generic/dirdlgg.h"
53 #elif defined(__WXGTK__)
54 #include "wx/generic/dirdlgg.h"
55 #elif defined(__WXX11__)
56 #include "wx/generic/dirdlgg.h"
57 #elif defined(__WXMGL__)
58 #include "wx/generic/dirdlgg.h"
59 #elif defined(__WXMAC__)
60 #include "wx/mac/dirdlg.h"
61 #elif defined(__WXPM__)
62 #include "wx/generic/dirdlgg.h"
63 #endif
64
65 #if !defined(__WXMSW__) && !defined(__WXMAC__)
66 #define wxDirDialog wxGenericDirDialog
67 #endif
68
69 // ----------------------------------------------------------------------------
70 // common ::wxDirSelector() function
71 // ----------------------------------------------------------------------------
72
73 WXDLLEXPORT wxString
74 wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
75 const wxString& defaultPath = wxEmptyString,
76 long style = wxDD_DEFAULT_STYLE,
77 const wxPoint& pos = wxDefaultPosition,
78 wxWindow *parent = NULL);
79
80 #endif // wxUSE_DIRDLG
81
82 #endif
83 // _WX_DIRDLG_H_BASE_