]>
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 | ||
10 | ||
11 | #ifndef __GTKFILEDLGH__ | |
12 | #define __GTKFILEDLGH__ | |
13 | ||
12028905 | 14 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
49a14366 | 15 | #pragma interface "filedlggtk.h" |
c801d85f KB |
16 | #endif |
17 | ||
4e1901b7 RR |
18 | #include "wx/generic/filedlgg.h" |
19 | ||
c801d85f | 20 | //------------------------------------------------------------------------- |
f74172ab | 21 | // wxFileDialog |
c801d85f KB |
22 | //------------------------------------------------------------------------- |
23 | ||
20123d49 | 24 | class WXDLLIMPEXP_CORE wxFileDialog: public wxGenericFileDialog |
c801d85f | 25 | { |
0e1399b3 VZ |
26 | public: |
27 | wxFileDialog() { } | |
28 | ||
29 | wxFileDialog(wxWindow *parent, | |
30 | const wxString& message = wxFileSelectorPromptStr, | |
f74172ab VZ |
31 | const wxString& defaultDir = wxEmptyString, |
32 | const wxString& defaultFile = wxEmptyString, | |
0e1399b3 VZ |
33 | const wxString& wildCard = wxFileSelectorDefaultWildcardStr, |
34 | long style = 0, | |
35 | const wxPoint& pos = wxDefaultPosition); | |
f8bc53eb JS |
36 | |
37 | virtual ~wxFileDialog(); | |
38 | ||
39 | virtual wxString GetPath() const; | |
9755e73b | 40 | virtual void GetPaths(wxArrayString& paths) const; |
f8bc53eb JS |
41 | virtual wxString GetDirectory() const; |
42 | virtual wxString GetFilename() const; | |
9755e73b | 43 | virtual void GetFilenames(wxArrayString& files) const; |
f8bc53eb JS |
44 | virtual int GetFilterIndex() const; |
45 | ||
9755e73b VS |
46 | virtual void SetMessage(const wxString& message); |
47 | virtual void SetPath(const wxString& path); | |
48 | virtual void SetDirectory(const wxString& dir); | |
49 | virtual void SetFilename(const wxString& name); | |
50 | virtual void SetWildcard(const wxString& wildCard); | |
51 | virtual void SetFilterIndex(int filterIndex); | |
f8bc53eb | 52 | |
4e1901b7 RR |
53 | virtual int ShowModal(); |
54 | virtual bool Show( bool show = true ); | |
55 | ||
c2740a5a RR |
56 | //private: |
57 | bool m_destroyed_by_delete; | |
4e1901b7 | 58 | |
5b2e23bf RR |
59 | // override this from wxTLW since the native |
60 | // form doesn't have any m_wxwindow | |
61 | virtual void DoSetSize(int x, int y, | |
62 | int width, int height, | |
63 | int sizeFlags = wxSIZE_AUTO); | |
64 | ||
65 | ||
f8bc53eb | 66 | private: |
20e05ffb | 67 | DECLARE_DYNAMIC_CLASS(wxFileDialog) |
4e1901b7 | 68 | DECLARE_EVENT_TABLE() |
f8bc53eb | 69 | void OnFakeOk( wxCommandEvent &event ); |
c801d85f KB |
70 | }; |
71 | ||
b600ed13 | 72 | #endif // __GTKFILEDLGH__ |