14#ifndef _MAC_FILEDIALOG_H_
15#define _MAC_FILEDIALOG_H_
17#include "../FileDialog.h"
35 const wxString& message = wxFileSelectorPromptStr,
36 const wxString& defaultDir = wxEmptyString,
37 const wxString& defaultFile = wxEmptyString,
38 const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
39 long style = wxFD_DEFAULT_STYLE,
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& sz = wxDefaultSize,
42 const wxString&
name = wxFileDialogNameStr);
45 const wxString& message = wxFileSelectorPromptStr,
46 const wxString& defaultDir = wxEmptyString,
47 const wxString& defaultFile = wxEmptyString,
48 const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
49 long style = wxFD_DEFAULT_STYLE,
50 const wxPoint& pos = wxDefaultPosition,
51 const wxSize& sz = wxDefaultSize,
52 const wxString&
name = wxFileDialogNameStr);
64 virtual void ModalFinishedCallback(
void* panel,
int resultCode);
74 void DoViewResized(
void*
object);
75 void DoSendFolderChangedEvent(
void* panel,
const wxString& path);
76 void DoSendSelectionChangedEvent(
void* panel);
81 virtual void DoSetSize(
int WXUNUSED(x),
int WXUNUSED(y),
82 int WXUNUSED(width),
int WXUNUSED(height),
83 int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
88 void DoOnFilterSelected(
int index);
89 virtual void OnFilterSelected(wxCommandEvent &event);
91 wxArrayString m_filterExtensions;
92 wxArrayString m_filterNames;
93 wxChoice* m_filterChoice;
94 wxWindow* m_filterPanel;
95 bool m_useFileTypeFilter;
96 int m_firstFileTypeFilter;
97 wxArrayString m_currentExtensions;
98 WX_NSObject m_delegate;
99 WX_NSObject m_sheetDelegate;
Dialog used to present platform specific "Save As" dialog with custom controls.
virtual void SetFileExtension(const wxString &extension)
void SetupExtraControls(WXWindow nativeWindow)
virtual bool SupportsExtraControl() const
wxArrayString m_fileNames
virtual void GetPaths(wxArrayString &paths) const
void Create(wxWindow *parent, const wxString &message=wxFileSelectorPromptStr, const wxString &defaultDir=wxEmptyString, const wxString &defaultFile=wxEmptyString, const wxString &wildCard=wxFileSelectorDefaultWildcardStr, long style=wxFD_DEFAULT_STYLE, const wxPoint &pos=wxDefaultPosition, const wxSize &sz=wxDefaultSize, const wxString &name=wxFileDialogNameStr)
virtual void GetFilenames(wxArrayString &files) const
FileDialog(wxWindow *parent, const wxString &message=wxFileSelectorPromptStr, const wxString &defaultDir=wxEmptyString, const wxString &defaultFile=wxEmptyString, const wxString &wildCard=wxFileSelectorDefaultWildcardStr, long style=wxFD_DEFAULT_STYLE, const wxPoint &pos=wxDefaultPosition, const wxSize &sz=wxDefaultSize, const wxString &name=wxFileDialogNameStr)
virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(width), int WXUNUSED(height), int WXUNUSED(sizeFlags)=wxSIZE_AUTO)
ProjectFileIOExtensionRegistry::Extension extension