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