]> git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/filedlg.h
Add lambda-friendly wxDialog::ShowWindowModalThenDo().
[wxWidgets.git] / include / wx / cocoa / filedlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/filedlg.h
3 // Purpose: wxFileDialog class
4 // Author: Ryan Norton
5 // Modified by:
6 // Created: 2004-10-02
7 // Copyright: (c) Ryan Norton
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_COCOA_FILEDLG_H_
12 #define _WX_COCOA_FILEDLG_H_
13
14 DECLARE_WXCOCOA_OBJC_CLASS(NSSavePanel);
15
16 #define wxFileDialog wxCocoaFileDialog
17 //-------------------------------------------------------------------------
18 // wxFileDialog
19 //-------------------------------------------------------------------------
20
21 class WXDLLIMPEXP_CORE wxFileDialog: public wxFileDialogBase
22 {
23 DECLARE_DYNAMIC_CLASS(wxFileDialog)
24 wxDECLARE_NO_COPY_CLASS(wxFileDialog);
25 public:
26 wxFileDialog(wxWindow *parent,
27 const wxString& message = wxFileSelectorPromptStr,
28 const wxString& defaultDir = wxEmptyString,
29 const wxString& defaultFile = wxEmptyString,
30 const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
31 long style = wxFD_DEFAULT_STYLE,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& sz = wxDefaultSize,
34 const wxString& name = wxFileDialogNameStr);
35 virtual ~wxFileDialog();
36
37 virtual void SetPath(const wxString& path);
38 virtual void GetPaths(wxArrayString& paths) const;
39 virtual void GetFilenames(wxArrayString& files) const;
40
41 virtual int ShowModal();
42
43 inline WX_NSSavePanel GetNSSavePanel()
44 { return (WX_NSSavePanel)m_cocoaNSWindow; }
45
46 private:
47 WX_NSMutableArray m_wildcards;
48 wxArrayString m_fileNames;
49 };
50
51 #endif // _WX_FILEDLG_H_
52