1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKFILEDLGH__
11 #define __GTKFILEDLGH__
13 #include "wx/generic/filedlgg.h"
14 #include "wx/gtk/filectrl.h" // for wxGtkFileChooser
16 //-------------------------------------------------------------------------
18 //-------------------------------------------------------------------------
20 class WXDLLIMPEXP_CORE wxFileDialog
: public wxGenericFileDialog
25 wxFileDialog(wxWindow
*parent
,
26 const wxString
& message
= wxFileSelectorPromptStr
,
27 const wxString
& defaultDir
= wxEmptyString
,
28 const wxString
& defaultFile
= wxEmptyString
,
29 const wxString
& wildCard
= wxFileSelectorDefaultWildcardStr
,
30 long style
= wxFD_DEFAULT_STYLE
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& sz
= wxDefaultSize
,
33 const wxString
& name
= wxFileDialogNameStr
);
35 virtual ~wxFileDialog() {}
37 virtual wxString
GetPath() const;
38 virtual void GetPaths(wxArrayString
& paths
) const;
39 virtual wxString
GetDirectory() const;
40 virtual wxString
GetFilename() const;
41 virtual void GetFilenames(wxArrayString
& files
) const;
42 virtual int GetFilterIndex() const;
44 virtual void SetMessage(const wxString
& message
);
45 virtual void SetPath(const wxString
& path
);
46 virtual void SetDirectory(const wxString
& dir
);
47 virtual void SetFilename(const wxString
& name
);
48 virtual void SetWildcard(const wxString
& wildCard
);
49 virtual void SetFilterIndex(int filterIndex
);
51 virtual int ShowModal();
52 virtual bool Show( bool show
= true );
57 // override this from wxTLW since the native
58 // form doesn't have any m_wxwindow
59 virtual void DoSetSize(int x
, int y
,
60 int width
, int height
,
61 int sizeFlags
= wxSIZE_AUTO
);
65 DECLARE_DYNAMIC_CLASS(wxFileDialog
)
67 void OnFakeOk( wxCommandEvent
&event
);
69 wxGtkFileChooser m_fc
;
72 #endif // __GTKFILEDLGH__