1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: filedlg.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-29 13:03:18 -05:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GTKFILEDLGH__
|
|
|
|
#define __GTKFILEDLGH__
|
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
2004-12-27 03:52:17 -05:00
|
|
|
#pragma interface "filedlggtk.h"
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
|
|
|
|
2004-12-05 15:30:18 -05:00
|
|
|
#include "wx/generic/filedlgg.h"
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
//-------------------------------------------------------------------------
|
2003-07-19 13:22:05 -04:00
|
|
|
// wxFileDialog
|
1998-05-20 10:01:55 -04:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
2004-12-05 15:30:18 -05:00
|
|
|
class wxFileDialog: public wxGenericFileDialog
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
1999-02-02 07:07:25 -05:00
|
|
|
public:
|
|
|
|
wxFileDialog() { }
|
|
|
|
|
|
|
|
wxFileDialog(wxWindow *parent,
|
|
|
|
const wxString& message = wxFileSelectorPromptStr,
|
2003-07-19 13:22:05 -04:00
|
|
|
const wxString& defaultDir = wxEmptyString,
|
|
|
|
const wxString& defaultFile = wxEmptyString,
|
1999-02-02 07:07:25 -05:00
|
|
|
const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
|
|
|
|
long style = 0,
|
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
2005-03-31 16:20:58 -05:00
|
|
|
|
|
|
|
virtual ~wxFileDialog();
|
|
|
|
|
|
|
|
virtual wxString GetPath() const;
|
2004-11-18 19:30:24 -05:00
|
|
|
virtual void GetPaths(wxArrayString& paths) const;
|
2005-03-31 16:20:58 -05:00
|
|
|
virtual wxString GetDirectory() const;
|
|
|
|
virtual wxString GetFilename() const;
|
2004-11-18 19:30:24 -05:00
|
|
|
virtual void GetFilenames(wxArrayString& files) const;
|
2005-03-31 16:20:58 -05:00
|
|
|
virtual int GetFilterIndex() const;
|
|
|
|
|
2004-11-18 19:30:24 -05: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 16:20:58 -05:00
|
|
|
|
2004-12-05 15:30:18 -05:00
|
|
|
virtual int ShowModal();
|
|
|
|
virtual bool Show( bool show = true );
|
|
|
|
|
2004-11-28 17:54:13 -05:00
|
|
|
//private:
|
|
|
|
bool m_destroyed_by_delete;
|
2004-12-05 15:30:18 -05:00
|
|
|
|
2005-03-31 16:20:58 -05:00
|
|
|
private:
|
1999-11-22 14:44:25 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxFileDialog)
|
2004-12-05 15:30:18 -05:00
|
|
|
DECLARE_EVENT_TABLE()
|
2005-03-31 16:20:58 -05:00
|
|
|
void OnFakeOk( wxCommandEvent &event );
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
2003-06-14 09:31:49 -04:00
|
|
|
#endif // __GTKFILEDLGH__
|