1 #ifndef _WX_DIRDLG_H_BASE_
2 #define _WX_DIRDLG_H_BASE_
8 // ----------------------------------------------------------------------------
10 // ----------------------------------------------------------------------------
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
;
17 #define wxDD_DEFAULT_STYLE \
18 (wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxDD_NEW_DIR_BUTTON)
21 The interface (TODO: make the other classes really derive from it!) is
24 class WXDLLEXPORT wxDirDialogBase : public wxDialog
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"));
35 void SetMessage(const wxString& message);
36 void SetPath(const wxString& path);
37 void SetStyle(long style);
39 wxString GetMessage() const;
40 wxString GetPath() const;
41 long GetStyle() const;
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
51 #include "wx/msw/dirdlg.h"
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"
67 #if !defined(__WXMSW__) && !defined(__WXMAC__)
68 #define wxDirDialog wxGenericDirDialog
71 // ----------------------------------------------------------------------------
72 // common ::wxDirSelector() function
73 // ----------------------------------------------------------------------------
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
);
82 #endif // wxUSE_DIRDLG