1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2002-12-04 14:11:26 +00:00
|
|
|
// Name: wx/msw/filedlg.h
|
1998-05-20 14:12:05 +00:00
|
|
|
// Purpose: wxFileDialog class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 23:52:45 +00:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 23:52:45 +00:00
|
|
|
#ifndef _WX_FILEDLG_H_
|
|
|
|
#define _WX_FILEDLG_H_
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2003-08-09 12:38:21 +00:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
1999-12-07 00:48:45 +00:00
|
|
|
#pragma interface "filedlg.h"
|
1998-05-20 14:12:05 +00:00
|
|
|
#endif
|
|
|
|
|
2003-07-19 17:22:05 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
// wxFileDialog
|
|
|
|
//-------------------------------------------------------------------------
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2003-07-19 17:22:05 +00:00
|
|
|
class WXDLLEXPORT wxFileDialog: public wxFileDialogBase
|
1998-05-20 14:12:05 +00:00
|
|
|
{
|
|
|
|
public:
|
2002-12-04 14:11:26 +00:00
|
|
|
wxFileDialog(wxWindow *parent,
|
|
|
|
const wxString& message = wxFileSelectorPromptStr,
|
|
|
|
const wxString& defaultDir = wxEmptyString,
|
|
|
|
const wxString& defaultFile = wxEmptyString,
|
|
|
|
const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
|
|
|
|
long style = 0,
|
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2003-07-19 17:22:05 +00:00
|
|
|
virtual void SetPath(const wxString& path);
|
|
|
|
virtual void GetPaths(wxArrayString& paths) const;
|
2003-09-24 15:06:53 +00:00
|
|
|
virtual void GetFilenames(wxArrayString& files) const;
|
1999-12-07 00:48:45 +00:00
|
|
|
|
2002-12-04 14:11:26 +00:00
|
|
|
virtual int ShowModal();
|
1999-01-24 23:31:39 +00:00
|
|
|
|
2004-07-25 16:56:00 +00:00
|
|
|
protected:
|
2004-08-03 06:58:37 +00:00
|
|
|
|
2004-09-29 08:03:26 +00:00
|
|
|
#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
|
2004-07-25 16:56:00 +00:00
|
|
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
|
|
|
virtual void DoGetSize( int *width, int *height ) const;
|
|
|
|
virtual void DoGetPosition( int *x, int *y ) const;
|
2004-09-29 08:03:26 +00:00
|
|
|
#endif // !(__SMARTPHONE__ && __WXWINCE__)
|
2004-07-25 16:56:00 +00:00
|
|
|
|
2003-07-19 17:22:05 +00:00
|
|
|
private:
|
1999-12-07 00:48:45 +00:00
|
|
|
wxArrayString m_fileNames;
|
2004-07-25 16:56:00 +00:00
|
|
|
bool m_bMovedWindow;
|
1999-12-07 00:48:45 +00:00
|
|
|
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxFileDialog)
|
2003-01-02 23:38:11 +00:00
|
|
|
DECLARE_NO_COPY_CLASS(wxFileDialog)
|
1998-05-20 14:12:05 +00:00
|
|
|
};
|
|
|
|
|
2003-06-14 13:31:49 +00:00
|
|
|
#endif // _WX_FILEDLG_H_
|
1999-12-07 00:48:45 +00:00
|
|
|
|