]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: filedlg.h | |
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 | ||
c801d85f KB |
10 | #ifndef __GTKFILEDLGH__ |
11 | #define __GTKFILEDLGH__ | |
12 | ||
4e1901b7 RR |
13 | #include "wx/generic/filedlgg.h" |
14 | ||
c801d85f | 15 | //------------------------------------------------------------------------- |
f74172ab | 16 | // wxFileDialog |
c801d85f KB |
17 | //------------------------------------------------------------------------- |
18 | ||
20123d49 | 19 | class WXDLLIMPEXP_CORE wxFileDialog: public wxGenericFileDialog |
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 VZ |
28 | const wxString& wildCard = wxFileSelectorDefaultWildcardStr, |
29 | long style = 0, | |
30 | const wxPoint& pos = wxDefaultPosition); | |
f8bc53eb | 31 | |
a552d120 | 32 | virtual ~wxFileDialog() {} |
f8bc53eb JS |
33 | |
34 | virtual wxString GetPath() const; | |
9755e73b | 35 | virtual void GetPaths(wxArrayString& paths) const; |
f8bc53eb JS |
36 | virtual wxString GetDirectory() const; |
37 | virtual wxString GetFilename() const; | |
9755e73b | 38 | virtual void GetFilenames(wxArrayString& files) const; |
f8bc53eb JS |
39 | virtual int GetFilterIndex() const; |
40 | ||
9755e73b VS |
41 | virtual void SetMessage(const wxString& message); |
42 | virtual void SetPath(const wxString& path); | |
43 | virtual void SetDirectory(const wxString& dir); | |
44 | virtual void SetFilename(const wxString& name); | |
45 | virtual void SetWildcard(const wxString& wildCard); | |
46 | virtual void SetFilterIndex(int filterIndex); | |
f8bc53eb | 47 | |
4e1901b7 RR |
48 | virtual int ShowModal(); |
49 | virtual bool Show( bool show = true ); | |
50 | ||
a552d120 | 51 | |
4e1901b7 | 52 | |
6f02a879 | 53 | protected: |
5b2e23bf RR |
54 | // override this from wxTLW since the native |
55 | // form doesn't have any m_wxwindow | |
56 | virtual void DoSetSize(int x, int y, | |
57 | int width, int height, | |
58 | int sizeFlags = wxSIZE_AUTO); | |
59 | ||
60 | ||
f8bc53eb | 61 | private: |
20e05ffb | 62 | DECLARE_DYNAMIC_CLASS(wxFileDialog) |
4e1901b7 | 63 | DECLARE_EVENT_TABLE() |
f8bc53eb | 64 | void OnFakeOk( wxCommandEvent &event ); |
c801d85f KB |
65 | }; |
66 | ||
b600ed13 | 67 | #endif // __GTKFILEDLGH__ |