]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/gtk/filedlg.h |
c801d85f KB |
3 | // Purpose: |
4 | // Author: Robert Roebling | |
58614078 RR |
5 | // Id: $Id$ |
6 | // Copyright: (c) 1998 Robert Roebling | |
65571936 | 7 | // Licence: wxWindows licence |
c801d85f KB |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
f1d5aa4e PC |
10 | #ifndef _WX_GTKFILEDLG_H_ |
11 | #define _WX_GTKFILEDLG_H_ | |
c801d85f | 12 | |
0cf3e587 | 13 | #include "wx/gtk/filectrl.h" // for wxGtkFileChooser |
4e1901b7 | 14 | |
c801d85f | 15 | //------------------------------------------------------------------------- |
f74172ab | 16 | // wxFileDialog |
c801d85f KB |
17 | //------------------------------------------------------------------------- |
18 | ||
700d08c1 | 19 | class WXDLLIMPEXP_CORE wxFileDialog: public wxFileDialogBase |
c801d85f | 20 | { |
0e1399b3 VZ |
21 | public: |
22 | wxFileDialog() { } | |
23 | ||
24 | wxFileDialog(wxWindow *parent, | |
25 | const wxString& message = wxFileSelectorPromptStr, | |
f74172ab VZ |
26 | const wxString& defaultDir = wxEmptyString, |
27 | const wxString& defaultFile = wxEmptyString, | |
0e1399b3 | 28 | const wxString& wildCard = wxFileSelectorDefaultWildcardStr, |
ff3e84ff VZ |
29 | long style = wxFD_DEFAULT_STYLE, |
30 | const wxPoint& pos = wxDefaultPosition, | |
31 | const wxSize& sz = wxDefaultSize, | |
32 | const wxString& name = wxFileDialogNameStr); | |
e3f54c8f VZ |
33 | bool Create(wxWindow *parent, |
34 | const wxString& message = wxFileSelectorPromptStr, | |
35 | const wxString& defaultDir = wxEmptyString, | |
36 | const wxString& defaultFile = wxEmptyString, | |
37 | const wxString& wildCard = wxFileSelectorDefaultWildcardStr, | |
38 | long style = wxFD_DEFAULT_STYLE, | |
39 | const wxPoint& pos = wxDefaultPosition, | |
40 | const wxSize& sz = wxDefaultSize, | |
41 | const wxString& name = wxFileDialogNameStr); | |
9ff9d30c | 42 | virtual ~wxFileDialog(); |
f8bc53eb JS |
43 | |
44 | virtual wxString GetPath() const; | |
9755e73b | 45 | virtual void GetPaths(wxArrayString& paths) const; |
f8bc53eb JS |
46 | virtual wxString GetDirectory() const; |
47 | virtual wxString GetFilename() const; | |
9755e73b | 48 | virtual void GetFilenames(wxArrayString& files) const; |
f8bc53eb JS |
49 | virtual int GetFilterIndex() const; |
50 | ||
9755e73b VS |
51 | virtual void SetMessage(const wxString& message); |
52 | virtual void SetPath(const wxString& path); | |
53 | virtual void SetDirectory(const wxString& dir); | |
54 | virtual void SetFilename(const wxString& name); | |
55 | virtual void SetWildcard(const wxString& wildCard); | |
56 | virtual void SetFilterIndex(int filterIndex); | |
f8bc53eb | 57 | |
4e1901b7 | 58 | virtual int ShowModal(); |
4e1901b7 | 59 | |
8ce68f7f | 60 | virtual bool SupportsExtraControl() const { return true; } |
a552d120 | 61 | |
05083921 VZ |
62 | // Implementation only. |
63 | void GTKOnAccept(); | |
64 | void GTKOnCancel(); | |
4e1901b7 | 65 | |
6f02a879 | 66 | protected: |
5b2e23bf RR |
67 | // override this from wxTLW since the native |
68 | // form doesn't have any m_wxwindow | |
69 | virtual void DoSetSize(int x, int y, | |
70 | int width, int height, | |
71 | int sizeFlags = wxSIZE_AUTO); | |
72 | ||
73 | ||
f8bc53eb | 74 | private: |
f1d5aa4e | 75 | void OnSize(wxSizeEvent&); |
48200154 | 76 | virtual void AddChildGTK(wxWindowGTK* child); |
0cf3e587 | 77 | |
05083921 | 78 | wxString m_selectedDirectory; |
0cf3e587 | 79 | wxGtkFileChooser m_fc; |
f1d5aa4e PC |
80 | |
81 | DECLARE_DYNAMIC_CLASS(wxFileDialog) | |
82 | DECLARE_EVENT_TABLE() | |
c801d85f KB |
83 | }; |
84 | ||
f1d5aa4e | 85 | #endif // _WX_GTKFILEDLG_H_ |