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; }
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 );
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;
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
#endif
// _WX_DIRDLGG_H_
+