]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/filedlg.h
compilation fix for Mingw: it doesn't have std::wostream
[wxWidgets.git] / include / wx / gtk / filedlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: filedlg.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef __GTKFILEDLGH__
11 #define __GTKFILEDLGH__
12
13 #include "wx/generic/filedlgg.h"
14 #include "wx/gtk/filectrl.h" // for wxGtkFileChooser
15
16 //-------------------------------------------------------------------------
17 // wxFileDialog
18 //-------------------------------------------------------------------------
19
20 class WXDLLIMPEXP_CORE wxFileDialog: public wxGenericFileDialog
21 {
22 public:
23 wxFileDialog() { }
24
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);
34
35 virtual ~wxFileDialog() {}
36
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;
43
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);
50
51 virtual int ShowModal();
52 virtual bool Show( bool show = true );
53
54
55
56 protected:
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);
62
63
64 private:
65 DECLARE_DYNAMIC_CLASS(wxFileDialog)
66 DECLARE_EVENT_TABLE()
67 void OnFakeOk( wxCommandEvent &event );
68
69 wxGtkFileChooser m_fc;
70 };
71
72 #endif // __GTKFILEDLGH__