]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/filedlg.h
got rid of wxBuffer (finally!!!)
[wxWidgets.git] / include / wx / os2 / filedlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: filedlg.h
3 // Purpose: wxFileDialog class
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/05/99
7 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_FILEDLG_H_
13 #define _WX_FILEDLG_H_
14
15 #include "wx/dialog.h"
16
17 /*
18 * File selector
19 */
20
21 class WXDLLEXPORT wxFileDialog: public wxDialog
22 {
23 DECLARE_DYNAMIC_CLASS(wxFileDialog)
24 public:
25 wxFileDialog( wxWindow* pParent
26 ,const wxString& rsMessage = wxFileSelectorPromptStr
27 ,const wxString& rsDefaultDir = ""
28 ,const wxString& rsDefaultFile = ""
29 ,const wxString& rsWildCard = wxFileSelectorDefaultWildcardStr
30 ,long lStyle = 0
31 ,const wxPoint& rPos = wxDefaultPosition
32 );
33
34 inline void SetMessage(const wxString& rsMessage) { m_sMessage = rsMessage; }
35 inline void SetPath(const wxString& rsPath) { m_sPath = rsPath; }
36 inline void SetDirectory(const wxString& rsDir) { m_sDir = rsDir; }
37 inline void SetFilename(const wxString& rsName) { m_sFileName = rsName; }
38 inline void SetWildcard(const wxString& rsWildCard) { m_sWildCard = rsWildCard; }
39 inline void SetStyle(long lStyle) { m_lDialogStyle = lStyle; }
40 inline void SetFilterIndex(int nFilterIndex) { m_nFilterIndex = nFilterIndex; }
41
42 inline wxString GetMessage(void) const { return m_sMessage; }
43 inline wxString GetPath(void) const { return m_sPath; }
44 void GetPaths(wxArrayString& rasPath) const;
45 inline wxString GetDirectory(void) const { return m_sDir; }
46 inline wxString GetFilename(void) const { return m_sFileName; }
47 inline void GetFilenames(wxArrayString& rasFilenames) { rasFilenames = m_asFileNames; }
48 inline wxString GetWildcard(void) const { return m_sWildCard; }
49 inline long GetStyle(void) const { return m_lDialogStyle; }
50 inline int GetFilterIndex() const { return m_nFilterIndex ; }
51
52 int ShowModal();
53
54 protected:
55 wxString m_sMessage;
56 long m_lDialogStyle;
57 wxWindow* m_pParent;
58 wxString m_sDir;
59 wxString m_sPath; // Full path
60 wxString m_sFileName;
61 wxArrayString m_asFileNames;
62 wxString m_sWildCard;
63 int m_nFilterIndex;
64 wxPoint m_vPos;
65 }; // end of CLASS wxFileDialog
66
67 #endif // _WX_FILEDLG_H_