1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/filedlg.h
3 // Purpose: wxFileDialog class
7 // Copyright: (c) Ryan Norton
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_COCOA_FILEDLG_H_
12 #define _WX_COCOA_FILEDLG_H_
14 DECLARE_WXCOCOA_OBJC_CLASS(NSSavePanel
);
16 #define wxFileDialog wxCocoaFileDialog
17 //-------------------------------------------------------------------------
19 //-------------------------------------------------------------------------
21 class WXDLLIMPEXP_CORE wxFileDialog
: public wxFileDialogBase
23 DECLARE_DYNAMIC_CLASS(wxFileDialog
)
24 wxDECLARE_NO_COPY_CLASS(wxFileDialog
);
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();
37 virtual void SetPath(const wxString
& path
);
38 virtual void GetPaths(wxArrayString
& paths
) const;
39 virtual void GetFilenames(wxArrayString
& files
) const;
41 virtual int ShowModal();
43 inline WX_NSSavePanel
GetNSSavePanel()
44 { return (WX_NSSavePanel
)m_cocoaNSWindow
; }
47 WX_NSMutableArray m_wildcards
;
48 wxArrayString m_fileNames
;
51 #endif // _WX_FILEDLG_H_