virtual ~wxGenericFileDialog();
virtual void SetMessage(const wxString& message) { SetTitle(message); }
- virtual void SetPath(const wxString& path);
- virtual void SetFilterIndex(int filterIndex);
- virtual void SetWildcard(const wxString& wildCard);
-
- // for multiple file selection
- virtual void GetPaths(wxArrayString& paths) const;
- virtual void GetFilenames(wxArrayString& files) const;
+ virtual void SetPath(const wxString& path)
+ { m_filectrl->SetPath(path); }
+ virtual void SetFilterIndex(int filterIndex)
+ { m_filectrl->SetFilterIndex(filterIndex); }
+ virtual void SetWildcard(const wxString& wildCard)
+ { m_filectrl->SetWildcard(wildCard); }
+
+ virtual wxString GetPath() const
+ { return m_filectrl->GetPath(); }
+ virtual void GetPaths(wxArrayString& paths) const
+ { m_filectrl->GetPaths(paths); }
+ virtual wxString GetDirectory() const
+ { return m_filectrl->GetDirectory(); }
+ virtual wxString GetFilename() const
+ { return m_filectrl->GetFilename(); }
+ virtual void GetFilenames(wxArrayString& files) const
+ { m_filectrl->GetFilenames(files); }
+ virtual wxString GetWildcard() const
+ { return m_filectrl->GetWildcard(); }
+ virtual int GetFilterIndex() const
+ { return m_filectrl->GetFilterIndex(); }
// implementation only from now on
// -------------------------------
void OnNew( wxCommandEvent &event );
void OnFileActivated( wxFileCtrlEvent &event);
- virtual void UpdateControls();
-
private:
- // Don't use this implementation at all :-)
+ // if true, don't use this implementation at all
bool m_bypassGenericImpl;
protected:
+ // update the state of m_upDirButton and m_newDirButton depending on the
+ // currently selected directory
+ void OnUpdateButtonsUI(wxUpdateUIEvent& event);
wxString m_filterExtension;
wxGenericFileCtrl *m_filectrl;
private:
void Init();
+
DECLARE_DYNAMIC_CLASS(wxGenericFileDialog)
DECLARE_EVENT_TABLE()