]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/filedlg.h
many wxItemContainer-related changes:
[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
15 //-------------------------------------------------------------------------
16 // wxFileDialog
17 //-------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_CORE wxFileDialog: public wxGenericFileDialog
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
34 virtual ~wxFileDialog() {}
35
36 virtual wxString GetPath() const;
37 virtual void GetPaths(wxArrayString& paths) const;
38 virtual wxString GetDirectory() const;
39 virtual wxString GetFilename() const;
40 virtual void GetFilenames(wxArrayString& files) const;
41 virtual int GetFilterIndex() const;
42
43 virtual void SetMessage(const wxString& message);
44 virtual void SetPath(const wxString& path);
45 virtual void SetDirectory(const wxString& dir);
46 virtual void SetFilename(const wxString& name);
47 virtual void SetWildcard(const wxString& wildCard);
48 virtual void SetFilterIndex(int filterIndex);
49
50 virtual int ShowModal();
51 virtual bool Show( bool show = true );
52
53
54
55 protected:
56 // override this from wxTLW since the native
57 // form doesn't have any m_wxwindow
58 virtual void DoSetSize(int x, int y,
59 int width, int height,
60 int sizeFlags = wxSIZE_AUTO);
61
62
63 private:
64 DECLARE_DYNAMIC_CLASS(wxFileDialog)
65 DECLARE_EVENT_TABLE()
66 void OnFakeOk( wxCommandEvent &event );
67 };
68
69 #endif // __GTKFILEDLGH__