X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af49c4b8a2d3553e733e71c7dd3911881f4c1a2a..1542ea396a625766c59d683adbb1d613c1344d50:/include/wx/generic/filedlgg.h?ds=sidebyside diff --git a/include/wx/generic/filedlgg.h b/include/wx/generic/filedlgg.h index f085322411..9dacc71243 100644 --- a/include/wx/generic/filedlgg.h +++ b/include/wx/generic/filedlgg.h @@ -49,14 +49,14 @@ public: wxFileDialog(wxWindow *parent, const wxString& message = wxFileSelectorPromptStr, - const wxString& defaultDir = "", - const wxString& defaultFile = "", + const wxString& defaultDir = _T(""), + const wxString& defaultFile = _T(""), const wxString& wildCard = wxFileSelectorDefaultWildcardStr, long style = 0, const wxPoint& pos = wxDefaultPosition); virtual ~wxFileDialog(); - void SetMessage(const wxString& message) { m_message = message; } + void SetMessage(const wxString& message) { SetTitle(message); } void SetPath(const wxString& path); void SetDirectory(const wxString& dir) { m_dir = dir; } void SetFilename(const wxString& name) { m_fileName = name; } @@ -76,6 +76,11 @@ public: void GetPaths(wxArrayString& paths) const; void GetFilenames(wxArrayString& files) const; + // implementation only from now on + // ------------------------------- + + virtual int ShowModal(); + void OnSelected( wxListEvent &event ); void OnActivated( wxListEvent &event ); void OnList( wxCommandEvent &event ); @@ -84,13 +89,17 @@ public: void OnHome( wxCommandEvent &event ); void OnListOk( wxCommandEvent &event ); void OnNew( wxCommandEvent &event ); - void OnChoice( wxCommandEvent &event ); + void OnChoiceFilter( wxCommandEvent &event ); void OnTextEnter( wxCommandEvent &event ); + void OnTextChange( wxCommandEvent &event ); void OnCheck( wxCommandEvent &event ); void HandleAction( const wxString &fn ); protected: + // use the filter with the given index + void DoSetFilterIndex(int filterindex); + wxString m_message; long m_dialogStyle; wxString m_dir; @@ -109,8 +118,9 @@ private: DECLARE_DYNAMIC_CLASS(wxFileDialog) DECLARE_EVENT_TABLE() - static long s_lastViewStyle; // list or report? - static bool s_lastShowHidden; + // these variables are preserved between wxFileDialog calls + static long ms_lastViewStyle; // list or report? + static bool ms_lastShowHidden; // did we show hidden files? }; // File selector - backward compatibility @@ -154,3 +164,4 @@ wxSaveFileSelector(const wxChar *what, #endif // _WX_DIRDLGG_H_ +