62 const wxString& defaultDir,
63 const wxString& defaultFileName,
64 const wxString& defaultExtension,
65 const wxString& filter,
82 if ( !defaultExtension.empty() && filter.empty() )
83 filter2 = wxString(
wxT(
"*.")) + defaultExtension;
84 else if ( !filter.empty() )
88 defaultFileName, filter2,
89 flags, wxPoint(x, y));
96 wxArrayString descriptions, filters;
98 (void)wxParseCommonDialogsFilter(filter2, descriptions, filters);
99 for (
size_t n=0; n<filters.GetCount(); n++)
101 if (filters[n].Contains(defaultExtension))
115 filename = fileDialog.
GetPath();
126 const wxString& defaultDir,
127 const wxString& defaultFileName,
128 int* defaultFilterIndex,
129 const wxString& filter,
141 flags, wxPoint(x, y));
146 if ( defaultFilterIndex )
149 filename = fileDialog.
GetPath();
wxString FileSelector(const wxString &title, const wxString &defaultDir, const wxString &defaultFileName, const wxString &defaultExtension, const wxString &filter, int flags, wxWindow *parent, int x, int y)
wxString FileSelectorEx(const wxString &title, const wxString &defaultDir, const wxString &defaultFileName, int *defaultFilterIndex, const wxString &filter, int flags, wxWindow *parent, int x, int y)
virtual void SetUserPaneCreator(UserPaneCreatorFunction creator, wxUIntPtr userdata)
void CreateUserPane(wxWindow *parent)
virtual bool HasUserPaneCreator() const
UserPaneCreatorFunction m_creator
Dialog used to present platform specific "Save As" dialog with custom controls.
virtual int GetFilterIndex() const
virtual wxString GetPath() const
virtual void SetFilterIndex(int filterIndex)
constexpr size_t npos(-1)