1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/filedlg.h
3 // Purpose: wxFileDialog class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_FILEDLG_H_
13 #define _WX_FILEDLG_H_
16 #pragma interface "filedlg.h"
19 #include "wx/dialog.h"
25 class WXDLLEXPORT wxFileDialog
: public wxDialog
28 wxFileDialog(wxWindow
*parent
,
29 const wxString
& message
= wxFileSelectorPromptStr
,
30 const wxString
& defaultDir
= wxEmptyString
,
31 const wxString
& defaultFile
= wxEmptyString
,
32 const wxString
& wildCard
= wxFileSelectorDefaultWildcardStr
,
34 const wxPoint
& pos
= wxDefaultPosition
);
36 void SetMessage(const wxString
& message
) { m_message
= message
; }
37 void SetPath(const wxString
& path
);
38 void SetDirectory(const wxString
& dir
) { m_dir
= dir
; }
39 void SetFilename(const wxString
& name
) { m_fileName
= name
; }
40 void SetWildcard(const wxString
& wildCard
) { m_wildCard
= wildCard
; }
41 void SetStyle(long style
) { m_dialogStyle
= style
; }
42 void SetFilterIndex(int filterIndex
) { m_filterIndex
= filterIndex
; }
44 wxString
GetMessage() const { return m_message
; }
45 wxString
GetPath() const { return m_path
; }
46 void GetPaths(wxArrayString
& paths
) const;
47 wxString
GetDirectory() const { return m_dir
; }
48 wxString
GetFilename() const { return m_fileName
; }
49 void GetFilenames(wxArrayString
& files
) const { files
= m_fileNames
; }
50 wxString
GetWildcard() const { return m_wildCard
; }
51 long GetStyle() const { return m_dialogStyle
; }
52 int GetFilterIndex() const { return m_filterIndex
; }
54 virtual int ShowModal();
61 wxString m_path
; // Full path
63 wxArrayString m_fileNames
;
68 DECLARE_DYNAMIC_CLASS(wxFileDialog
)
69 DECLARE_NO_COPY_CLASS(wxFileDialog
)
72 #endif // _WX_FILEDLG_H_