]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/cocoa/dirdlg.h | |
3 | // Purpose: wxDirDialog class | |
4 | // Author: Ryan Norton | |
5 | // Modified by: Hiroyuki Nakamura(maloninc) | |
6 | // Created: 2006-01-10 | |
7 | // Copyright: (c) Ryan Norton | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_COCOA_DIRDLG_H_ | |
12 | #define _WX_COCOA_DIRDLG_H_ | |
13 | ||
14 | DECLARE_WXCOCOA_OBJC_CLASS(NSSavePanel); | |
15 | ||
16 | #define wxDirDialog wxCocoaDirDialog | |
17 | //------------------------------------------------------------------------- | |
18 | // wxDirDialog | |
19 | //------------------------------------------------------------------------- | |
20 | ||
21 | class WXDLLIMPEXP_CORE wxDirDialog: public wxDirDialogBase | |
22 | { | |
23 | DECLARE_DYNAMIC_CLASS(wxDirDialog) | |
24 | wxDECLARE_NO_COPY_CLASS(wxDirDialog); | |
25 | public: | |
26 | wxDirDialog(wxWindow *parent, | |
27 | const wxString& message = wxDirSelectorPromptStr, | |
28 | const wxString& defaultPath = wxT(""), | |
29 | long style = wxDD_DEFAULT_STYLE, | |
30 | const wxPoint& pos = wxDefaultPosition, | |
31 | const wxSize& size = wxDefaultSize, | |
32 | const wxString& name = wxDirDialogNameStr); | |
33 | virtual ~wxDirDialog(); | |
34 | ||
35 | virtual int ShowModal(); | |
36 | ||
37 | inline WX_NSSavePanel GetNSSavePanel() | |
38 | { return (WX_NSSavePanel)m_cocoaNSWindow; } | |
39 | ||
40 | protected: | |
41 | wxString m_dir; | |
42 | wxWindow * m_parent; | |
43 | wxString m_fileName; | |
44 | ||
45 | private: | |
46 | wxArrayString m_fileNames; | |
47 | }; | |
48 | ||
49 | #endif // _WX_DIRDLG_H_ | |
50 |