]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/filedlg.h
Compilation fix after r62754.
[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 _WX_GTKFILEDLG_H_
11 #define _WX_GTKFILEDLG_H_
12
13 #include "wx/gtk/filectrl.h" // for wxGtkFileChooser
14
15 //-------------------------------------------------------------------------
16 // wxFileDialog
17 //-------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_CORE wxFileDialog: public wxFileDialogBase
20 {
21 public:
22 wxFileDialog() { }
23
24 wxFileDialog(wxWindow *parent,
25 const wxString& message = wxFileSelectorPromptStr,
26 const wxString& defaultDir = wxEmptyString,
27 const wxString& defaultFile = wxEmptyString,
28 const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
29 long style = wxFD_DEFAULT_STYLE,
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& sz = wxDefaultSize,
32 const wxString& name = wxFileDialogNameStr);
33 virtual ~wxFileDialog();
34
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;
41
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);
48
49 virtual int ShowModal();
50
51 virtual bool SupportsExtraControl() const { return true; }
52
53
54 protected:
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);
60
61
62 private:
63 void OnFakeOk( wxCommandEvent &event );
64 void OnSize(wxSizeEvent&);
65 virtual void AddChildGTK(wxWindowGTK* child);
66
67 wxGtkFileChooser m_fc;
68
69 DECLARE_DYNAMIC_CLASS(wxFileDialog)
70 DECLARE_EVENT_TABLE()
71 };
72
73 #endif // _WX_GTKFILEDLG_H_