1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/filedlg.h
3 // Purpose: wxFileDialog class
8 // Copyright: (c) Ryan Norton
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_COCOA_FILEDLG_H_
13 #define _WX_COCOA_FILEDLG_H_
15 DECLARE_WXCOCOA_OBJC_CLASS(NSSavePanel
);
17 #define wxFileDialog wxCocoaFileDialog
18 //-------------------------------------------------------------------------
20 //-------------------------------------------------------------------------
22 class WXDLLEXPORT wxFileDialog
: public wxFileDialogBase
24 DECLARE_DYNAMIC_CLASS(wxFileDialog
)
25 DECLARE_NO_COPY_CLASS(wxFileDialog
)
27 wxFileDialog(wxWindow
*parent
,
28 const wxString
& message
= wxFileSelectorPromptStr
,
29 const wxString
& defaultDir
= wxEmptyString
,
30 const wxString
& defaultFile
= wxEmptyString
,
31 const wxString
& wildCard
= wxFileSelectorDefaultWildcardStr
,
33 const wxPoint
& pos
= wxDefaultPosition
);
36 virtual void SetPath(const wxString
& path
);
37 virtual void GetPaths(wxArrayString
& paths
) const;
38 virtual void GetFilenames(wxArrayString
& files
) const;
40 virtual int ShowModal();
42 inline WX_NSSavePanel
GetNSSavePanel()
43 { return (WX_NSSavePanel
)m_cocoaNSWindow
; }
46 WX_NSMutableArray m_wildcards
;
47 wxArrayString m_fileNames
;
50 #endif // _WX_FILEDLG_H_