]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dirdlg.h
experimental --inplace flag implementation
[wxWidgets.git] / include / wx / dirdlg.h
CommitLineData
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
12WXDLLEXPORT_DATA(extern const wxChar*) wxDirDialogNameStr;
13WXDLLEXPORT_DATA(extern const wxChar*) wxDirDialogDefaultFolderStr;
e78d4a23 14WXDLLEXPORT_DATA(extern const wxChar*) wxDirSelectorPromptStr;
1044a386
JS
15WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString;
16
e78d4a23
VZ
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
24class WXDLLEXPORT wxDirDialogBase : public wxDialog
25{
26public:
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
2049ba38 46#if defined(__WXMSW__)
7fc0bd1c 47 #if defined(__WIN16__) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS) || defined(__SALFORDC__) || !wxUSE_OLE
10eb1f1e 48 #include "wx/generic/dirdlgg.h"
ed8a10f8 49 #define wxDirDialog wxGenericDirDialog
10eb1f1e
VZ
50 #else
51 #include "wx/msw/dirdlg.h"
52 #endif
2049ba38 53#elif defined(__WXMOTIF__)
10eb1f1e 54 #include "wx/generic/dirdlgg.h"
2049ba38 55#elif defined(__WXGTK__)
10eb1f1e 56 #include "wx/generic/dirdlgg.h"
83df96d6
JS
57#elif defined(__WXX11__)
58 #include "wx/generic/dirdlgg.h"
4a70a30b
VS
59#elif defined(__WXMGL__)
60 #include "wx/generic/dirdlgg.h"
34138703 61#elif defined(__WXMAC__)
10eb1f1e 62 #include "wx/mac/dirdlg.h"
1777b9bb 63#elif defined(__WXPM__)
957aea45 64 #include "wx/generic/dirdlgg.h"
c801d85f
KB
65#endif
66
e78d4a23
VZ
67#if !defined(__WXMSW__) && !defined(__WXMAC__)
68 #define wxDirDialog wxGenericDirDialog
69#endif
70
10eb1f1e
VZ
71// ----------------------------------------------------------------------------
72// common ::wxDirSelector() function
73// ----------------------------------------------------------------------------
74
10eb1f1e
VZ
75WXDLLEXPORT wxString
76wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
77 const wxString& defaultPath = wxEmptyString,
e78d4a23 78 long style = wxDD_DEFAULT_STYLE,
10eb1f1e
VZ
79 const wxPoint& pos = wxDefaultPosition,
80 wxWindow *parent = NULL);
81
1e6feb95
VZ
82#endif // wxUSE_DIRDLG
83
c801d85f 84#endif
34138703 85 // _WX_DIRDLG_H_BASE_