]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/common/dseldlg.cpp
trying to resolve GSocketManager API mess: the meaning of Install/Uninstall_Callback...
[wxWidgets.git] / src / common / dseldlg.cpp
... / ...
CommitLineData
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$
8// Copyright: (c) 2001 wxWidgets team
9// License: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// declarations
14// ============================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
20// For compilers that support precompilation, includes "wx.h".
21#include "wx/wxprec.h"
22
23#ifdef __BORLANDC__
24 #pragma hdrstop
25#endif
26
27#if wxUSE_DIRDLG
28
29#include "wx/dirdlg.h"
30
31#ifndef WX_PRECOMP
32#endif //WX_PRECOMP
33
34// ============================================================================
35// implementation
36// ============================================================================
37
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