]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/dirdlg.h
more fixes to handling the paths with trailing slashes in wxDirDlg
[wxWidgets.git] / include / wx / msw / dirdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/dirdlg.h
3 // Purpose: wxDirDialog class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DIRDLG_H_
13 #define _WX_DIRDLG_H_
14
15 #ifdef __GNUG__
16 #pragma interface "dirdlg.h"
17 #endif
18
19 #include "wx/dialog.h"
20
21 WXDLLEXPORT_DATA(extern const wxChar*) wxFileSelectorPromptStr;
22
23 class WXDLLEXPORT wxDirDialog : public wxDialog
24 {
25 public:
26 wxDirDialog(wxWindow *parent,
27 const wxString& message = wxFileSelectorPromptStr,
28 const wxString& defaultPath = wxEmptyString,
29 long style = 0,
30 const wxPoint& pos = wxDefaultPosition);
31
32 void SetMessage(const wxString& message) { m_message = message; }
33 void SetPath(const wxString& path) { m_path = path; }
34 void SetStyle(long style) { m_dialogStyle = style; }
35
36 wxString GetMessage() const { return m_message; }
37 wxString GetPath() const { return m_path; }
38 long GetStyle() const { return m_dialogStyle; }
39
40 virtual int ShowModal();
41
42 protected:
43 wxString m_message;
44 long m_dialogStyle;
45 wxString m_path;
46
47 private:
48 DECLARE_DYNAMIC_CLASS(wxDirDialog)
49 };
50
51 #endif
52 // _WX_DIRDLG_H_