1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-20 00:14:35 +00:00
|
|
|
// Name: wx/gtk/filedlg.h
|
1998-05-20 14:01:55 +00:00
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-29 18:03:18 +00:00
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2008-08-07 06:51:10 +00:00
|
|
|
#ifndef _WX_GTKFILEDLG_H_
|
|
|
|
#define _WX_GTKFILEDLG_H_
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2007-09-17 00:14:34 +00:00
|
|
|
#include "wx/gtk/filectrl.h" // for wxGtkFileChooser
|
2004-12-05 20:30:18 +00:00
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
//-------------------------------------------------------------------------
|
2003-07-19 17:22:05 +00:00
|
|
|
// wxFileDialog
|
1998-05-20 14:01:55 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
2007-11-05 18:43:14 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxFileDialog: public wxFileDialogBase
|
1998-05-20 14:01:55 +00:00
|
|
|
{
|
1999-02-02 12:07:25 +00:00
|
|
|
public:
|
|
|
|
wxFileDialog() { }
|
|
|
|
|
|
|
|
wxFileDialog(wxWindow *parent,
|
|
|
|
const wxString& message = wxFileSelectorPromptStr,
|
2003-07-19 17:22:05 +00:00
|
|
|
const wxString& defaultDir = wxEmptyString,
|
|
|
|
const wxString& defaultFile = wxEmptyString,
|
1999-02-02 12:07:25 +00:00
|
|
|
const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
|
2006-05-28 23:32:12 +00:00
|
|
|
long style = wxFD_DEFAULT_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& sz = wxDefaultSize,
|
|
|
|
const wxString& name = wxFileDialogNameStr);
|
2012-03-14 12:32:27 +00:00
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
const wxString& message = wxFileSelectorPromptStr,
|
|
|
|
const wxString& defaultDir = wxEmptyString,
|
|
|
|
const wxString& defaultFile = wxEmptyString,
|
|
|
|
const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
|
|
|
|
long style = wxFD_DEFAULT_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& sz = wxDefaultSize,
|
|
|
|
const wxString& name = wxFileDialogNameStr);
|
2008-08-26 16:19:23 +00:00
|
|
|
virtual ~wxFileDialog();
|
2005-03-31 21:20:58 +00:00
|
|
|
|
2014-03-30 00:02:23 +00:00
|
|
|
virtual wxString GetPath() const wxOVERRIDE;
|
|
|
|
virtual void GetPaths(wxArrayString& paths) const wxOVERRIDE;
|
|
|
|
virtual wxString GetFilename() const wxOVERRIDE;
|
|
|
|
virtual void GetFilenames(wxArrayString& files) const wxOVERRIDE;
|
|
|
|
virtual int GetFilterIndex() const wxOVERRIDE;
|
2005-03-31 21:20:58 +00:00
|
|
|
|
2014-03-30 00:02:23 +00:00
|
|
|
virtual void SetMessage(const wxString& message) wxOVERRIDE;
|
|
|
|
virtual void SetPath(const wxString& path) wxOVERRIDE;
|
|
|
|
virtual void SetDirectory(const wxString& dir) wxOVERRIDE;
|
|
|
|
virtual void SetFilename(const wxString& name) wxOVERRIDE;
|
|
|
|
virtual void SetWildcard(const wxString& wildCard) wxOVERRIDE;
|
|
|
|
virtual void SetFilterIndex(int filterIndex) wxOVERRIDE;
|
2005-03-31 21:20:58 +00:00
|
|
|
|
2014-03-30 00:02:23 +00:00
|
|
|
virtual int ShowModal() wxOVERRIDE;
|
2004-12-05 20:30:18 +00:00
|
|
|
|
2014-03-30 00:02:23 +00:00
|
|
|
virtual bool SupportsExtraControl() const wxOVERRIDE { return true; }
|
2006-05-28 23:01:21 +00:00
|
|
|
|
2013-05-31 23:21:27 +00:00
|
|
|
// Implementation only.
|
|
|
|
void GTKSelectionChanged(const wxString& filename);
|
|
|
|
|
2004-12-05 20:30:18 +00:00
|
|
|
|
2006-02-08 21:47:09 +00:00
|
|
|
protected:
|
2005-04-25 19:13:28 +00:00
|
|
|
// override this from wxTLW since the native
|
|
|
|
// form doesn't have any m_wxwindow
|
|
|
|
virtual void DoSetSize(int x, int y,
|
|
|
|
int width, int height,
|
2014-03-30 00:02:23 +00:00
|
|
|
int sizeFlags = wxSIZE_AUTO) wxOVERRIDE;
|
2005-04-25 19:13:28 +00:00
|
|
|
|
|
|
|
|
2005-03-31 21:20:58 +00:00
|
|
|
private:
|
2013-05-22 13:36:14 +00:00
|
|
|
void OnFakeOk( wxCommandEvent &event );
|
2008-08-07 06:51:10 +00:00
|
|
|
void OnSize(wxSizeEvent&);
|
2014-03-30 00:02:23 +00:00
|
|
|
virtual void AddChildGTK(wxWindowGTK* child) wxOVERRIDE;
|
2007-09-17 00:14:34 +00:00
|
|
|
|
|
|
|
wxGtkFileChooser m_fc;
|
2008-08-07 06:51:10 +00:00
|
|
|
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxFileDialog);
|
|
|
|
wxDECLARE_EVENT_TABLE();
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
2008-08-07 06:51:10 +00:00
|
|
|
#endif // _WX_GTKFILEDLG_H_
|