]>
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 | |
46327813 | 7 | // Licence: wxWindows licence |
c801d85f KB |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
10 | ||
11 | #ifndef __GTKFILEDLGH__ | |
12 | #define __GTKFILEDLGH__ | |
13 | ||
ab7ce33c | 14 | #if defined(__GNUG__) && !defined(__APPLE__) |
c801d85f KB |
15 | #pragma interface |
16 | #endif | |
17 | ||
18 | #include "wx/dialog.h" | |
19 | ||
20 | //------------------------------------------------------------------------- | |
21 | // File selector | |
22 | //------------------------------------------------------------------------- | |
23 | ||
c801d85f KB |
24 | class wxFileDialog: public wxDialog |
25 | { | |
0e1399b3 VZ |
26 | public: |
27 | wxFileDialog() { } | |
28 | ||
29 | wxFileDialog(wxWindow *parent, | |
30 | const wxString& message = wxFileSelectorPromptStr, | |
31 | const wxString& defaultDir = "", | |
32 | const wxString& defaultFile = "", | |
33 | const wxString& wildCard = wxFileSelectorDefaultWildcardStr, | |
34 | long style = 0, | |
35 | const wxPoint& pos = wxDefaultPosition); | |
36 | ||
37 | void SetMessage(const wxString& message) { m_message = message; } | |
3218cf58 | 38 | void SetPath(const wxString& path); |
0e1399b3 VZ |
39 | void SetDirectory(const wxString& dir) { m_dir = dir; } |
40 | void SetFilename(const wxString& name) { m_fileName = name; } | |
41 | void SetWildcard(const wxString& wildCard) { m_wildCard = wildCard; } | |
42 | void SetStyle(long style) { m_dialogStyle = style; } | |
43 | void SetFilterIndex(int filterIndex) { m_filterIndex = filterIndex; } | |
44 | ||
45 | wxString GetMessage() const { return m_message; } | |
46 | wxString GetPath() const { return m_path; } | |
47 | wxString GetDirectory() const { return m_dir; } | |
48 | wxString GetFilename() const { return m_fileName; } | |
49 | wxString GetWildcard() const { return m_wildCard; } | |
50 | long GetStyle() const { return m_dialogStyle; } | |
51 | int GetFilterIndex() const { return m_filterIndex ; } | |
2748d251 RR |
52 | |
53 | protected: | |
c801d85f KB |
54 | wxString m_message; |
55 | long m_dialogStyle; | |
56 | wxWindow * m_parent; | |
57 | wxString m_dir; | |
58 | wxString m_path; // Full path | |
59 | wxString m_fileName; | |
60 | wxString m_wildCard; | |
61 | int m_filterIndex; | |
20e05ffb RR |
62 | |
63 | private: | |
64 | DECLARE_DYNAMIC_CLASS(wxFileDialog) | |
c801d85f KB |
65 | }; |
66 | ||
b600ed13 | 67 | #endif // __GTKFILEDLGH__ |