]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dirdlg.h
added LVSICF_NOSCROLL
[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(__WXCOCOA__)
64 #include "wx/generic/dirdlgg.h"
65 #elif defined(__WXPM__)
66 #include "wx/generic/dirdlgg.h"
67 #endif
68
69 #if !defined(__WXMSW__) && !defined(__WXMAC__)
70 #define wxDirDialog wxGenericDirDialog
71 #endif
72
73 // ----------------------------------------------------------------------------
74 // common ::wxDirSelector() function
75 // ----------------------------------------------------------------------------
76
77 WXDLLEXPORT wxString
78 wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
79 const wxString& defaultPath = wxEmptyString,
80 long style = wxDD_DEFAULT_STYLE,
81 const wxPoint& pos = wxDefaultPosition,
82 wxWindow *parent = NULL);
83
84 #endif // wxUSE_DIRDLG
85
86 #endif
87 // _WX_DIRDLG_H_BASE_