1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxFileDialog class
8 // Copyright: (c) AUTHOR
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 WXDLLEXPORT_DATA(extern const char*) wxFileSelectorPromptStr
;
26 WXDLLEXPORT_DATA(extern const char*) wxFileSelectorDefaultWildcardStr
;
28 class WXDLLEXPORT wxFileDialog
: public wxDialog
30 DECLARE_DYNAMIC_CLASS(wxFileDialog
)
36 wxString m_path
; // Full path
41 wxFileDialog(wxWindow
*parent
, const wxString
& message
= wxFileSelectorPromptStr
,
42 const wxString
& defaultDir
= "", const wxString
& defaultFile
= "", const wxString
& wildCard
= wxFileSelectorDefaultWildcardStr
,
43 long style
= 0, const wxPoint
& pos
= wxDefaultPosition
);
45 inline void SetMessage(const wxString
& message
) { m_message
= message
; }
46 inline void SetPath(const wxString
& path
) { m_path
= path
; }
47 inline void SetDirectory(const wxString
& dir
) { m_dir
= dir
; }
48 inline void SetFilename(const wxString
& name
) { m_fileName
= name
; }
49 inline void SetWildcard(const wxString
& wildCard
) { m_wildCard
= wildCard
; }
50 inline void SetStyle(long style
) { m_dialogStyle
= style
; }
51 inline void SetFilterIndex(int filterIndex
) { m_filterIndex
= filterIndex
; }
53 inline wxString
GetMessage() const { return m_message
; }
54 inline wxString
GetPath() const { return m_path
; }
55 inline wxString
GetDirectory() const { return m_dir
; }
56 inline wxString
GetFilename() const { return m_fileName
; }
57 inline wxString
GetWildcard() const { return m_wildCard
; }
58 inline long GetStyle() const { return m_dialogStyle
; }
59 inline int GetFilterIndex() const { return m_filterIndex
; }
66 #define wxOVERWRITE_PROMPT 0x0004
67 #define wxHIDE_READONLY 0x0008
68 #define wxFILE_MUST_EXIST 0x0010