1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2002-12-04 09:11:26 -05:00
|
|
|
// Name: wx/msw/filedlg.h
|
1998-05-20 10:12:05 -04:00
|
|
|
// Purpose: wxFileDialog class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 19:52:45 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 19:52:45 -04:00
|
|
|
#ifndef _WX_FILEDLG_H_
|
|
|
|
#define _WX_FILEDLG_H_
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
1999-12-06 19:48:45 -05:00
|
|
|
#pragma interface "filedlg.h"
|
1998-05-20 10:12:05 -04:00
|
|
|
#endif
|
|
|
|
|
2003-07-19 13:22:05 -04:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
// wxFileDialog
|
|
|
|
//-------------------------------------------------------------------------
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2003-07-19 13:22:05 -04:00
|
|
|
class WXDLLEXPORT wxFileDialog: public wxFileDialogBase
|
1998-05-20 10:12:05 -04:00
|
|
|
{
|
|
|
|
public:
|
2002-12-04 09:11:26 -05: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 10:12:05 -04:00
|
|
|
|
2003-07-19 13:22:05 -04:00
|
|
|
virtual void SetPath(const wxString& path);
|
|
|
|
virtual void GetPaths(wxArrayString& paths) const;
|
2003-09-24 11:06:53 -04:00
|
|
|
virtual void GetFilenames(wxArrayString& files) const;
|
1999-12-06 19:48:45 -05:00
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
virtual int ShowModal();
|
1999-01-24 18:31:39 -05:00
|
|
|
|
2004-07-25 12:56:00 -04:00
|
|
|
protected:
|
2004-08-03 02:58:37 -04:00
|
|
|
|
2004-09-29 04:03:26 -04:00
|
|
|
#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
|
2004-07-25 12:56:00 -04: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 04:03:26 -04:00
|
|
|
#endif // !(__SMARTPHONE__ && __WXWINCE__)
|
2004-07-25 12:56:00 -04:00
|
|
|
|
2003-07-19 13:22:05 -04:00
|
|
|
private:
|
1999-12-06 19:48:45 -05:00
|
|
|
wxArrayString m_fileNames;
|
2004-07-25 12:56:00 -04:00
|
|
|
bool m_bMovedWindow;
|
1999-12-06 19:48:45 -05:00
|
|
|
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxFileDialog)
|
2003-01-02 18:38:11 -05:00
|
|
|
DECLARE_NO_COPY_CLASS(wxFileDialog)
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
2003-06-14 09:31:49 -04:00
|
|
|
#endif // _WX_FILEDLG_H_
|
1999-12-06 19:48:45 -05:00
|
|
|
|