1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/filedlg.h
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef __GTKFILEDLGH__
10 #define __GTKFILEDLGH__
12 #include "wx/generic/filedlgg.h"
14 //-------------------------------------------------------------------------
16 //-------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxFileDialog
: public wxGenericFileDialog
23 wxFileDialog(wxWindow
*parent
,
24 const wxString
& message
= wxFileSelectorPromptStr
,
25 const wxString
& defaultDir
= wxEmptyString
,
26 const wxString
& defaultFile
= wxEmptyString
,
27 const wxString
& wildCard
= wxFileSelectorDefaultWildcardStr
,
28 long style
= wxFD_DEFAULT_STYLE
,
29 const wxPoint
& pos
= wxDefaultPosition
,
30 const wxSize
& sz
= wxDefaultSize
,
31 const wxString
& name
= wxFileDialogNameStr
);
33 virtual ~wxFileDialog();
35 virtual wxString
GetPath() const;
36 virtual void GetPaths(wxArrayString
& paths
) const;
37 virtual wxString
GetDirectory() const;
38 virtual wxString
GetFilename() const;
39 virtual void GetFilenames(wxArrayString
& files
) const;
40 virtual int GetFilterIndex() const;
42 virtual void SetMessage(const wxString
& message
);
43 virtual void SetPath(const wxString
& path
);
44 virtual void SetDirectory(const wxString
& dir
);
45 virtual void SetFilename(const wxString
& name
);
46 virtual void SetWildcard(const wxString
& wildCard
);
47 virtual void SetFilterIndex(int filterIndex
);
49 virtual int ShowModal();
50 virtual bool Show( bool show
= true );
53 bool m_destroyed_by_delete
;
55 // override this from wxTLW since the native
56 // form doesn't have any m_wxwindow
57 virtual void DoSetSize(int x
, int y
,
58 int width
, int height
,
59 int sizeFlags
= wxSIZE_AUTO
);
63 DECLARE_DYNAMIC_CLASS(wxFileDialog
)
65 void OnFakeOk( wxCommandEvent
&event
);
68 #endif // __GTKFILEDLGH__