]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dirdlg.h
Start/EndDrawingOnTop are still used under Motif, don't deprecate them
[wxWidgets.git] / include / wx / dirdlg.h
CommitLineData
99d80019
JS
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
34138703
JS
12#ifndef _WX_DIRDLG_H_BASE_
13#define _WX_DIRDLG_H_BASE_
c801d85f 14
1e6feb95
VZ
15#if wxUSE_DIRDLG
16
48013bb0
GD
17#include "wx/dialog.h"
18
1044a386
JS
19// ----------------------------------------------------------------------------
20// constants
21// ----------------------------------------------------------------------------
22
16cba29d
WS
23extern WXDLLEXPORT_DATA(const wxChar*) wxDirDialogNameStr;
24extern WXDLLEXPORT_DATA(const wxChar*) wxDirDialogDefaultFolderStr;
25extern WXDLLEXPORT_DATA(const wxChar*) wxDirSelectorPromptStr;
1044a386 26
30dfe2ff
JS
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
e78d4a23
VZ
34
35/*
36 The interface (TODO: make the other classes really derive from it!) is
37 something like this:
38
39class WXDLLEXPORT wxDirDialogBase : public wxDialog
40{
41public:
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
ba7463d8 61// Universal and non-port related switches with need for generic implementation
67f6e901 62#if defined(__WXMSW__) && (defined(__WXUNIVERSAL__) || \
67f6e901
RD
63 defined(__SALFORDC__) || \
64 !wxUSE_OLE || \
65 (defined (__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS))
ba7463d8 66
4a70a30b 67 #include "wx/generic/dirdlgg.h"
ba7463d8 68 #define wxDirDialog wxGenericDirDialog
9b141468 69
bcfced36
JS
70// MS PocketPC or MS Smartphone
71#elif defined(__WXMSW__) && defined(__WXWINCE__) && !defined(__HANDHELDPC__)
9b141468
WS
72
73 #include "wx/generic/dirdlgg.h"
74 #define wxDirDialog wxGenericDirDialog
ba7463d8
WS
75
76// Native MSW
77#elif defined(__WXMSW__)
78
79 #include "wx/msw/dirdlg.h"
80
81// Native Mac
34138703 82#elif defined(__WXMAC__)
ba7463d8 83
10eb1f1e 84 #include "wx/mac/dirdlg.h"
c801d85f 85
ba7463d8
WS
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"
e78d4a23 95 #define wxDirDialog wxGenericDirDialog
ba7463d8 96
e78d4a23
VZ
97#endif
98
10eb1f1e
VZ
99// ----------------------------------------------------------------------------
100// common ::wxDirSelector() function
101// ----------------------------------------------------------------------------
102
10eb1f1e
VZ
103WXDLLEXPORT wxString
104wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
105 const wxString& defaultPath = wxEmptyString,
e78d4a23 106 long style = wxDD_DEFAULT_STYLE,
10eb1f1e
VZ
107 const wxPoint& pos = wxDefaultPosition,
108 wxWindow *parent = NULL);
109
1e6feb95
VZ
110#endif // wxUSE_DIRDLG
111
c801d85f 112#endif
34138703 113 // _WX_DIRDLG_H_BASE_