- long style = 0,
- const wxPoint& pos = wxDefaultPosition);
- virtual ~wxFileDialog();
-
- void SetMessage(const wxString& message) { m_message = message; }
- void SetPath(const wxString& path);
- void SetDirectory(const wxString& dir) { m_dir = dir; }
- void SetFilename(const wxString& name) { m_fileName = name; }
- void SetWildcard(const wxString& wildCard) { m_wildCard = wildCard; }
- void SetStyle(long style) { m_dialogStyle = style; }
- void SetFilterIndex(int filterIndex);
-
- wxString GetMessage() const { return m_message; }
- wxString GetPath() const { return m_path; }
- wxString GetDirectory() const { return m_dir; }
- wxString GetFilename() const { return m_fileName; }
- wxString GetWildcard() const { return m_wildCard; }
- long GetStyle() const { return m_dialogStyle; }
- int GetFilterIndex() const { return m_filterIndex; }
-
- // for multiple file selection
- void GetPaths(wxArrayString& paths) const;
- void GetFilenames(wxArrayString& files) const;
-
- void OnSelected( wxListEvent &event );
- void OnActivated( wxListEvent &event );
+ long style = wxFD_DEFAULT_STYLE,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& sz = wxDefaultSize,
+ const wxString& name = wxFileDialogNameStr,
+ bool bypassGenericImpl = false );
+
+ virtual ~wxGenericFileDialog();
+
+ virtual void SetDirectory(const wxString& dir)
+ { m_filectrl->SetDirectory(dir); }
+ virtual void SetFilename(const wxString& name)
+ { m_filectrl->SetFilename(name); }
+ virtual void SetMessage(const wxString& message) { SetTitle(message); }
+ 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(); }
+ virtual bool SupportsExtraControl() const { return true; }
+
+ // implementation only from now on
+ // -------------------------------
+
+ virtual int ShowModal();
+ virtual bool Show( bool show = true );
+