1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKFILEDLGH__
12 #define __GTKFILEDLGH__
14 #if defined(__GNUG__) && !defined(__APPLE__)
18 #include "wx/dialog.h"
20 //-------------------------------------------------------------------------
22 //-------------------------------------------------------------------------
24 class wxFileDialog
: public wxDialog
29 wxFileDialog(wxWindow
*parent
,
30 const wxString
& message
= wxFileSelectorPromptStr
,
31 const wxString
& defaultDir
= "",
32 const wxString
& defaultFile
= "",
33 const wxString
& wildCard
= wxFileSelectorDefaultWildcardStr
,
35 const wxPoint
& pos
= wxDefaultPosition
);
37 void SetMessage(const wxString
& message
) { m_message
= message
; }
38 void SetPath(const wxString
& path
);
39 void SetDirectory(const wxString
& dir
) { m_dir
= dir
; }
40 void SetFilename(const wxString
& name
) { m_fileName
= name
; }
41 void SetWildcard(const wxString
& wildCard
) { m_wildCard
= wildCard
; }
42 void SetStyle(long style
) { m_dialogStyle
= style
; }
43 void SetFilterIndex(int filterIndex
) { m_filterIndex
= filterIndex
; }
45 wxString
GetMessage() const { return m_message
; }
46 wxString
GetPath() const { return m_path
; }
47 wxString
GetDirectory() const { return m_dir
; }
48 wxString
GetFilename() const { return m_fileName
; }
49 wxString
GetWildcard() const { return m_wildCard
; }
50 long GetStyle() const { return m_dialogStyle
; }
51 int GetFilterIndex() const { return m_filterIndex
; }
58 wxString m_path
; // Full path
64 DECLARE_DYNAMIC_CLASS(wxFileDialog
)
67 #endif // __GTKFILEDLGH__