1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/filedlg.h
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"
15 //-------------------------------------------------------------------------
17 //-------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxFileDialog
: public wxGenericFileDialog
24 wxFileDialog(wxWindow
*parent
,
25 const wxString
& message
= wxFileSelectorPromptStr
,
26 const wxString
& defaultDir
= wxEmptyString
,
27 const wxString
& defaultFile
= wxEmptyString
,
28 const wxString
& wildCard
= wxFileSelectorDefaultWildcardStr
,
30 const wxPoint
& pos
= wxDefaultPosition
);
32 virtual ~wxFileDialog();
34 virtual wxString
GetPath() const;
35 virtual void GetPaths(wxArrayString
& paths
) const;
36 virtual wxString
GetDirectory() const;
37 virtual wxString
GetFilename() const;
38 virtual void GetFilenames(wxArrayString
& files
) const;
39 virtual int GetFilterIndex() const;
41 virtual void SetMessage(const wxString
& message
);
42 virtual void SetPath(const wxString
& path
);
43 virtual void SetDirectory(const wxString
& dir
);
44 virtual void SetFilename(const wxString
& name
);
45 virtual void SetWildcard(const wxString
& wildCard
);
46 virtual void SetFilterIndex(int filterIndex
);
48 virtual int ShowModal();
49 virtual bool Show( bool show
= true );
52 bool m_destroyed_by_delete
;
54 // override this from wxTLW since the native
55 // form doesn't have any m_wxwindow
56 virtual void DoSetSize(int x
, int y
,
57 int width
, int height
,
58 int sizeFlags
= wxSIZE_AUTO
);
62 DECLARE_DYNAMIC_CLASS(wxFileDialog
)
64 void OnFakeOk( wxCommandEvent
&event
);
67 #endif // __GTKFILEDLGH__