]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dirdlg.h
Added CmdDown() to grid events
[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
28 #ifdef __WXWINCE__
29 #define wxDD_DEFAULT_STYLE \
30 (wxDEFAULT_DIALOG_STYLE | wxDD_NEW_DIR_BUTTON)
31 #else
32 #define wxDD_DEFAULT_STYLE \
33 (wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxDD_NEW_DIR_BUTTON)
34 #endif
35
36 /*
37 The interface (TODO: make the other classes really derive from it!) is
38 something like this:
39
40 class WXDLLEXPORT wxDirDialogBase : public wxDialog
41 {
42 public:
43 wxDirDialogBase(wxWindow *parent,
44 const wxString& title = wxFileSelectorPromptStr,
45 const wxString& defaultPath = wxEmptyString,
46 long style = wxDD_DEFAULT_STYLE,
47 const wxPoint& pos = wxDefaultPosition,
48 const wxSize& sz = wxDefaultSize,
49 const wxString& name = _T("dirdialog"));
50
51 void SetMessage(const wxString& message);
52 void SetPath(const wxString& path);
53 void SetStyle(long style);
54
55 wxString GetMessage() const;
56 wxString GetPath() const;
57 long GetStyle() const;
58 };
59
60 */
61
62 // Universal and non-port related switches with need for generic implementation
63 #if defined(__WXMSW__) && (defined(__WXUNIVERSAL__) || \
64 defined(__SALFORDC__) || \
65 !wxUSE_OLE || \
66 (defined (__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS))
67
68 #include "wx/generic/dirdlgg.h"
69 #define wxDirDialog wxGenericDirDialog
70
71 // MS PocketPC or MS Smartphone
72 #elif defined(__WXMSW__) && defined(__WXWINCE__) && !defined(__HANDHELDPC__)
73
74 #include "wx/generic/dirdlgg.h"
75 #define wxDirDialog wxGenericDirDialog
76
77 // Native MSW
78 #elif defined(__WXMSW__)
79
80 #include "wx/msw/dirdlg.h"
81
82 // Native Mac
83 #elif defined(__WXMAC__)
84
85 #include "wx/mac/dirdlg.h"
86
87 // Native Cocoa
88 #elif defined(__WXCOCOA__)
89
90 #include "wx/cocoa/dirdlg.h"
91
92 // Other ports use generic implementation
93 #elif defined(__WXMOTIF__) || \
94 defined(__WXGTK__) || \
95 defined(__WXX11__) || \
96 defined(__WXMGL__) || \
97 defined(__WXCOCOA__) || \
98 defined(__WXPM__)
99
100 #include "wx/generic/dirdlgg.h"
101 #define wxDirDialog wxGenericDirDialog
102
103 #endif
104
105 // ----------------------------------------------------------------------------
106 // common ::wxDirSelector() function
107 // ----------------------------------------------------------------------------
108
109 WXDLLEXPORT wxString
110 wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
111 const wxString& defaultPath = wxEmptyString,
112 long style = wxDD_DEFAULT_STYLE,
113 const wxPoint& pos = wxDefaultPosition,
114 wxWindow *parent = NULL);
115
116 #endif // wxUSE_DIRDLG
117
118 #endif
119 // _WX_DIRDLG_H_BASE_