]> git.saurik.com Git - wxWidgets.git/blame - src/common/dseldlg.cpp
add support for alpha in color dialog on OSX, see #14127
[wxWidgets.git] / src / common / dseldlg.cpp
CommitLineData
10eb1f1e
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: src/common/dseldlg.cpp
3// Purpose: implementation of ::wxDirSelector()
4// Author: Paul Thiessen
5// Modified by:
6// Created: 20.02.01
7// RCS-ID: $Id$
77ffb593 8// Copyright: (c) 2001 wxWidgets team
526954c5 9// Licence: wxWindows licence
10eb1f1e
VZ
10///////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// declarations
14// ============================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
10eb1f1e
VZ
20// For compilers that support precompilation, includes "wx.h".
21#include "wx/wxprec.h"
22
23#ifdef __BORLANDC__
24 #pragma hdrstop
25#endif
26
1ab440bc 27#if wxUSE_DIRDLG
10eb1f1e
VZ
28
29#include "wx/dirdlg.h"
30
1ab440bc
WS
31#ifndef WX_PRECOMP
32#endif //WX_PRECOMP
10eb1f1e
VZ
33
34// ============================================================================
35// implementation
36// ============================================================================
37
10eb1f1e
VZ
38wxString wxDirSelector(const wxString& message,
39 const wxString& defaultPath,
40 long style,
41 const wxPoint& pos,
42 wxWindow *parent)
43{
44 wxString path;
45
46 wxDirDialog dirDialog(parent, message, defaultPath, style, pos);
47 if ( dirDialog.ShowModal() == wxID_OK )
48 {
49 path = dirDialog.GetPath();
50 }
51
52 return path;
53}
54
55#endif // wxUSE_DIRDLG