]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
8ef94bfc | 2 | // Name: wx/gtk1/filedlg.h |
c801d85f KB |
3 | // Purpose: |
4 | // Author: Robert Roebling | |
58614078 | 5 | // Copyright: (c) 1998 Robert Roebling |
65571936 | 6 | // Licence: wxWindows licence |
c801d85f KB |
7 | ///////////////////////////////////////////////////////////////////////////// |
8 | ||
c801d85f KB |
9 | #ifndef __GTKFILEDLGH__ |
10 | #define __GTKFILEDLGH__ | |
11 | ||
4e1901b7 RR |
12 | #include "wx/generic/filedlgg.h" |
13 | ||
c801d85f | 14 | //------------------------------------------------------------------------- |
f74172ab | 15 | // wxFileDialog |
c801d85f KB |
16 | //------------------------------------------------------------------------- |
17 | ||
20123d49 | 18 | class WXDLLIMPEXP_CORE wxFileDialog: public wxGenericFileDialog |
c801d85f | 19 | { |
0e1399b3 VZ |
20 | public: |
21 | wxFileDialog() { } | |
22 | ||
23 | wxFileDialog(wxWindow *parent, | |
24 | const wxString& message = wxFileSelectorPromptStr, | |
f74172ab VZ |
25 | const wxString& defaultDir = wxEmptyString, |
26 | const wxString& defaultFile = wxEmptyString, | |
0e1399b3 | 27 | const wxString& wildCard = wxFileSelectorDefaultWildcardStr, |
ff3e84ff VZ |
28 | long style = wxFD_DEFAULT_STYLE, |
29 | const wxPoint& pos = wxDefaultPosition, | |
30 | const wxSize& sz = wxDefaultSize, | |
31 | const wxString& name = wxFileDialogNameStr); | |
f8bc53eb JS |
32 | |
33 | virtual ~wxFileDialog(); | |
34 | ||
35 | virtual wxString GetPath() const; | |
9755e73b | 36 | virtual void GetPaths(wxArrayString& paths) const; |
f8bc53eb JS |
37 | virtual wxString GetDirectory() const; |
38 | virtual wxString GetFilename() const; | |
9755e73b | 39 | virtual void GetFilenames(wxArrayString& files) const; |
f8bc53eb JS |
40 | virtual int GetFilterIndex() const; |
41 | ||
9755e73b VS |
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); | |
f8bc53eb | 48 | |
4e1901b7 RR |
49 | virtual int ShowModal(); |
50 | virtual bool Show( bool show = true ); | |
51 | ||
c2740a5a RR |
52 | //private: |
53 | bool m_destroyed_by_delete; | |
4e1901b7 | 54 | |
5b2e23bf RR |
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 | ||
f8bc53eb | 62 | private: |
20e05ffb | 63 | DECLARE_DYNAMIC_CLASS(wxFileDialog) |
4e1901b7 | 64 | DECLARE_EVENT_TABLE() |
f8bc53eb | 65 | void OnFakeOk( wxCommandEvent &event ); |
c801d85f KB |
66 | }; |
67 | ||
b600ed13 | 68 | #endif // __GTKFILEDLGH__ |