1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-01-23 02:28:01 +00:00
|
|
|
// Name: wx/gtk1/filedlg.h
|
1998-05-20 14:01:55 +00:00
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-29 18:03:18 +00:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __GTKFILEDLGH__
|
|
|
|
#define __GTKFILEDLGH__
|
|
|
|
|
2004-12-05 20:30:18 +00:00
|
|
|
#include "wx/generic/filedlgg.h"
|
|
|
|
|
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
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxFileDialog: public wxGenericFileDialog
|
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);
|
2005-03-31 21:20:58 +00:00
|
|
|
|
|
|
|
virtual ~wxFileDialog();
|
|
|
|
|
|
|
|
virtual wxString GetPath() const;
|
2004-11-19 00:30:24 +00:00
|
|
|
virtual void GetPaths(wxArrayString& paths) const;
|
2005-03-31 21:20:58 +00:00
|
|
|
virtual wxString GetDirectory() const;
|
|
|
|
virtual wxString GetFilename() const;
|
2004-11-19 00:30:24 +00:00
|
|
|
virtual void GetFilenames(wxArrayString& files) const;
|
2005-03-31 21:20:58 +00:00
|
|
|
virtual int GetFilterIndex() const;
|
|
|
|
|
2004-11-19 00:30:24 +00:00
|
|
|
virtual void SetMessage(const wxString& message);
|
|
|
|
virtual void SetPath(const wxString& path);
|
|
|
|
virtual void SetDirectory(const wxString& dir);
|
|
|
|
virtual void SetFilename(const wxString& name);
|
|
|
|
virtual void SetWildcard(const wxString& wildCard);
|
|
|
|
virtual void SetFilterIndex(int filterIndex);
|
2005-03-31 21:20:58 +00:00
|
|
|
|
2004-12-05 20:30:18 +00:00
|
|
|
virtual int ShowModal();
|
|
|
|
virtual bool Show( bool show = true );
|
|
|
|
|
2004-11-28 22:54:13 +00:00
|
|
|
//private:
|
|
|
|
bool m_destroyed_by_delete;
|
2004-12-05 20:30:18 +00:00
|
|
|
|
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,
|
|
|
|
int sizeFlags = wxSIZE_AUTO);
|
|
|
|
|
|
|
|
|
2005-03-31 21:20:58 +00:00
|
|
|
private:
|
1999-11-22 19:44:25 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxFileDialog)
|
2004-12-05 20:30:18 +00:00
|
|
|
DECLARE_EVENT_TABLE()
|
2005-03-31 21:20:58 +00:00
|
|
|
void OnFakeOk( wxCommandEvent &event );
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
2003-06-14 13:31:49 +00:00
|
|
|
#endif // __GTKFILEDLGH__
|