]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/filedlg.h
Further WinCE mods
[wxWidgets.git] / include / wx / gtk1 / filedlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: filedlg.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10
11 #ifndef __GTKFILEDLGH__
12 #define __GTKFILEDLGH__
13
14 #if defined(__GNUG__) && !defined(__APPLE__)
15 #pragma interface
16 #endif
17
18 #include "wx/dialog.h"
19
20 //-------------------------------------------------------------------------
21 // File selector
22 //-------------------------------------------------------------------------
23
24 class wxFileDialog: public wxDialog
25 {
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; }
38 void SetPath(const wxString& path);
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 ; }
52
53 protected:
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;
62
63 private:
64 DECLARE_DYNAMIC_CLASS(wxFileDialog)
65 };
66
67 #endif // __GTKFILEDLGH__