/[pcsx2_0.9.7]/trunk/3rdparty/wxWidgets/src/common/dseldlg.cpp
ViewVC logotype

Contents of /trunk/3rdparty/wxWidgets/src/common/dseldlg.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (10 years, 3 months ago) by william
File size: 1654 byte(s)
committing r3113 initial commit again...
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: dseldlg.cpp 39613 2006-06-07 11:44:19Z ABX $
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
38 wxString 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

  ViewVC Help
Powered by ViewVC 1.1.22