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)
|
1998-05-20 10:01:55 -04:00
|
|
|
#pragma interface
|
|
|
|
#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);
|
2004-11-27 18:18:40 -05:00
|
|
|
|
|
|
|
~wxFileDialog();
|
1999-02-03 09:28:55 -05:00
|
|
|
|
2004-11-18 19:30:24 -05:00
|
|
|
virtual void GetPaths(wxArrayString& paths) const;
|
|
|
|
virtual void GetFilenames(wxArrayString& files) const;
|
1999-11-22 14:44:25 -05:00
|
|
|
|
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);
|
2004-11-28 17:54:13 -05:00
|
|
|
|
2004-12-05 15:30:18 -05:00
|
|
|
virtual int ShowModal();
|
|
|
|
virtual bool Show( bool show = true );
|
|
|
|
|
|
|
|
void OnFakeOk( wxCommandEvent &event );
|
|
|
|
|
2004-11-28 17:54:13 -05:00
|
|
|
//private:
|
|
|
|
bool m_destroyed_by_delete;
|
|
|
|
|
2004-11-28 05:49:01 -05:00
|
|
|
void UpdateFromDialog();
|
|
|
|
void UpdateDialog();
|
2004-12-05 15:30:18 -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()
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
2003-06-14 09:31:49 -04:00
|
|
|
#endif // __GTKFILEDLGH__
|