]>
Commit | Line | Data |
---|---|---|
8cf73271 SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: dirdlg.h | |
3 | // Purpose: wxDirDialog class | |
4 | // Author: Stefan Csomor | |
5 | // Modified by: | |
6 | // Created: 1998-01-01 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Stefan Csomor | |
65571936 | 9 | // Licence: wxWindows licence |
8cf73271 SC |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_DIRDLG_H_ | |
13 | #define _WX_DIRDLG_H_ | |
14 | ||
8cf73271 SC |
15 | class WXDLLEXPORT wxDirDialog : public wxDialog |
16 | { | |
17 | public: | |
18 | wxDirDialog(wxWindow *parent, | |
19 | const wxString& message = wxDirSelectorPromptStr, | |
20 | const wxString& defaultPath = _T(""), | |
0f0b19d6 | 21 | long style = wxDD_DEFAULT_STYLE, |
8cf73271 SC |
22 | const wxPoint& pos = wxDefaultPosition, |
23 | const wxSize& size = wxDefaultSize, | |
24 | const wxString& name = wxDirDialogNameStr); | |
25 | ||
26 | void SetMessage(const wxString& message) { m_message = message; } | |
27 | void SetPath(const wxString& path) { m_path = path; } | |
28 | void SetStyle(long style) { m_dialogStyle = style; } | |
29 | ||
30 | wxString GetMessage() const { return m_message; } | |
31 | wxString GetPath() const { return m_path; } | |
32 | long GetStyle() const { return m_dialogStyle; } | |
33 | ||
34 | virtual int ShowModal(); | |
35 | ||
36 | protected: | |
37 | wxString m_message; | |
38 | long m_dialogStyle; | |
39 | wxWindow * m_parent; | |
40 | wxString m_path; | |
41 | ||
42 | DECLARE_DYNAMIC_CLASS(wxDirDialog) | |
43 | }; | |
44 | ||
45 | #endif | |
46 | // _WX_DIRDLG_H_ |