]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dirdlg.h
Applied patch [ 619705 ] Fixes wxApp::GetComCtl32Version
[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"
0201182b
DE
63#elif defined(__WXCOCOA__)
64 #include "wx/generic/dirdlgg.h"
1777b9bb 65#elif defined(__WXPM__)
957aea45 66 #include "wx/generic/dirdlgg.h"
c801d85f
KB
67#endif
68
e78d4a23
VZ
69#if !defined(__WXMSW__) && !defined(__WXMAC__)
70 #define wxDirDialog wxGenericDirDialog
71#endif
72
10eb1f1e
VZ
73// ----------------------------------------------------------------------------
74// common ::wxDirSelector() function
75// ----------------------------------------------------------------------------
76
10eb1f1e
VZ
77WXDLLEXPORT wxString
78wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
79 const wxString& defaultPath = wxEmptyString,
e78d4a23 80 long style = wxDD_DEFAULT_STYLE,
10eb1f1e
VZ
81 const wxPoint& pos = wxDefaultPosition,
82 wxWindow *parent = NULL);
83
1e6feb95
VZ
84#endif // wxUSE_DIRDLG
85
c801d85f 86#endif
34138703 87 // _WX_DIRDLG_H_BASE_