1 #ifndef _WX_DIRDLG_H_BASE_
2 #define _WX_DIRDLG_H_BASE_
6 // ----------------------------------------------------------------------------
8 // ----------------------------------------------------------------------------
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
;
15 #define wxDD_DEFAULT_STYLE \
16 (wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxDD_NEW_DIR_BUTTON)
19 The interface (TODO: make the other classes really derive from it!) is
22 class WXDLLEXPORT wxDirDialogBase : public wxDialog
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"));
33 void SetMessage(const wxString& message);
34 void SetPath(const wxString& path);
35 void SetStyle(long style);
37 wxString GetMessage() const;
38 wxString GetPath() const;
39 long GetStyle() const;
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
49 #include "wx/msw/dirdlg.h"
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"
65 #if !defined(__WXMSW__) && !defined(__WXMAC__)
66 #define wxDirDialog wxGenericDirDialog
69 // ----------------------------------------------------------------------------
70 // common ::wxDirSelector() function
71 // ----------------------------------------------------------------------------
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
);
80 #endif // wxUSE_DIRDLG