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