]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dirdlg.h
added stub of GetEscapeId()
[wxWidgets.git] / include / wx / dirdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dirdlg.h
3 // Purpose: wxDirDialog base class
4 // Author: Robert Roebling
5 // Modified by:
6 // Created:
7 // Copyright: (c) Robert Roebling
8 // RCS-ID: $Id$
9 // Licence: wxWindows Licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DIRDLG_H_BASE_
13 #define _WX_DIRDLG_H_BASE_
14
15 #if wxUSE_DIRDLG
16
17 #include "wx/dialog.h"
18
19 // ----------------------------------------------------------------------------
20 // constants
21 // ----------------------------------------------------------------------------
22
23 extern WXDLLEXPORT_DATA(const wxChar*) wxDirDialogNameStr;
24 extern WXDLLEXPORT_DATA(const wxChar*) wxDirDialogDefaultFolderStr;
25 extern WXDLLEXPORT_DATA(const wxChar*) wxDirSelectorPromptStr;
26
27 #ifdef __WXWINCE__
28 #define wxDD_DEFAULT_STYLE \
29 (wxDEFAULT_DIALOG_STYLE | wxDD_NEW_DIR_BUTTON)
30 #else
31 #define wxDD_DEFAULT_STYLE \
32 (wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxDD_NEW_DIR_BUTTON)
33 #endif
34
35 /*
36 The interface (TODO: make the other classes really derive from it!) is
37 something like this:
38
39 class WXDLLEXPORT wxDirDialogBase : public wxDialog
40 {
41 public:
42 wxDirDialogBase(wxWindow *parent,
43 const wxString& title = wxFileSelectorPromptStr,
44 const wxString& defaultPath = wxEmptyString,
45 long style = wxDD_DEFAULT_STYLE,
46 const wxPoint& pos = wxDefaultPosition,
47 const wxSize& sz = wxDefaultSize,
48 const wxString& name = _T("dirdialog"));
49
50 void SetMessage(const wxString& message);
51 void SetPath(const wxString& path);
52 void SetStyle(long style);
53
54 wxString GetMessage() const;
55 wxString GetPath() const;
56 long GetStyle() const;
57 };
58
59 */
60
61 // Universal and non-port related switches with need for generic implementation
62 #if defined(__WXMSW__) && (defined(__WXUNIVERSAL__) || \
63 defined(__SALFORDC__) || \
64 !wxUSE_OLE || \
65 (defined (__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS))
66
67 #include "wx/generic/dirdlgg.h"
68 #define wxDirDialog wxGenericDirDialog
69
70 // MS PocketPC or MS Smartphone
71 #elif defined(__WXMSW__) && defined(__WXWINCE__) && !defined(__HANDHELDPC__)
72
73 #include "wx/generic/dirdlgg.h"
74 #define wxDirDialog wxGenericDirDialog
75
76 // Native MSW
77 #elif defined(__WXMSW__)
78
79 #include "wx/msw/dirdlg.h"
80
81 // Native Mac
82 #elif defined(__WXMAC__)
83
84 #include "wx/mac/dirdlg.h"
85
86 // Other ports use generic implementation
87 #elif defined(__WXMOTIF__) || \
88 defined(__WXGTK__) || \
89 defined(__WXX11__) || \
90 defined(__WXMGL__) || \
91 defined(__WXCOCOA__) || \
92 defined(__WXPM__)
93
94 #include "wx/generic/dirdlgg.h"
95 #define wxDirDialog wxGenericDirDialog
96
97 #endif
98
99 // ----------------------------------------------------------------------------
100 // common ::wxDirSelector() function
101 // ----------------------------------------------------------------------------
102
103 WXDLLEXPORT wxString
104 wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
105 const wxString& defaultPath = wxEmptyString,
106 long style = wxDD_DEFAULT_STYLE,
107 const wxPoint& pos = wxDefaultPosition,
108 wxWindow *parent = NULL);
109
110 #endif // wxUSE_DIRDLG
111
112 #endif
113 // _WX_DIRDLG_H_BASE_