]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dirdlg.h
gtk_window_[un]fullscreen only available with GTK >= 2.2
[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 15
e78d4a23
VZ
16#define wxDD_DEFAULT_STYLE \
17 (wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxDD_NEW_DIR_BUTTON)
18
19/*
20 The interface (TODO: make the other classes really derive from it!) is
21 something like this:
22
23class WXDLLEXPORT wxDirDialogBase : public wxDialog
24{
25public:
26 wxDirDialogBase(wxWindow *parent,
27 const wxString& title = wxFileSelectorPromptStr,
28 const wxString& defaultPath = wxEmptyString,
29 long style = wxDD_DEFAULT_STYLE,
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& sz = wxDefaultSize,
32 const wxString& name = _T("dirdialog"));
33
34 void SetMessage(const wxString& message);
35 void SetPath(const wxString& path);
36 void SetStyle(long style);
37
38 wxString GetMessage() const;
39 wxString GetPath() const;
40 long GetStyle() const;
41};
42
43*/
44
ba7463d8 45// Universal and non-port related switches with need for generic implementation
67f6e901 46#if defined(__WXMSW__) && (defined(__WXUNIVERSAL__) || \
67f6e901
RD
47 defined(__SALFORDC__) || \
48 !wxUSE_OLE || \
49 (defined (__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS))
ba7463d8 50
4a70a30b 51 #include "wx/generic/dirdlgg.h"
ba7463d8 52 #define wxDirDialog wxGenericDirDialog
9b141468
WS
53
54// MS Smartphone
55#elif defined(__SMARTPHONE__) && defined(__WXWINCE__)
56
57 #include "wx/generic/dirdlgg.h"
58 #define wxDirDialog wxGenericDirDialog
ba7463d8
WS
59
60// Native MSW
61#elif defined(__WXMSW__)
62
63 #include "wx/msw/dirdlg.h"
64
65// Native Mac
34138703 66#elif defined(__WXMAC__)
ba7463d8 67
10eb1f1e 68 #include "wx/mac/dirdlg.h"
c801d85f 69
ba7463d8
WS
70// Other ports use generic implementation
71#elif defined(__WXMOTIF__) || \
72 defined(__WXGTK__) || \
73 defined(__WXX11__) || \
74 defined(__WXMGL__) || \
75 defined(__WXCOCOA__) || \
76 defined(__WXPM__)
77
78 #include "wx/generic/dirdlgg.h"
e78d4a23 79 #define wxDirDialog wxGenericDirDialog
ba7463d8 80
e78d4a23
VZ
81#endif
82
10eb1f1e
VZ
83// ----------------------------------------------------------------------------
84// common ::wxDirSelector() function
85// ----------------------------------------------------------------------------
86
10eb1f1e
VZ
87WXDLLEXPORT wxString
88wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
89 const wxString& defaultPath = wxEmptyString,
e78d4a23 90 long style = wxDD_DEFAULT_STYLE,
10eb1f1e
VZ
91 const wxPoint& pos = wxDefaultPosition,
92 wxWindow *parent = NULL);
93
1e6feb95
VZ
94#endif // wxUSE_DIRDLG
95
c801d85f 96#endif
34138703 97 // _WX_DIRDLG_H_BASE_