]>
Commit | Line | Data |
---|---|---|
0e320a79 DW |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: filedlg.h | |
3 | // Purpose: wxFileDialog class | |
f0a56ab0 | 4 | // Author: David Webster |
0e320a79 | 5 | // Modified by: |
f0a56ab0 | 6 | // Created: 10/05/99 |
0e320a79 | 7 | // RCS-ID: $Id$ |
f0a56ab0 | 8 | // Copyright: (c) David Webster |
0e320a79 DW |
9 | // Licence: wxWindows licence |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_FILEDLG_H_ | |
13 | #define _WX_FILEDLG_H_ | |
14 | ||
0e320a79 DW |
15 | #include "wx/dialog.h" |
16 | ||
17 | /* | |
18 | * File selector | |
19 | */ | |
20 | ||
0e320a79 DW |
21 | class WXDLLEXPORT wxFileDialog: public wxDialog |
22 | { | |
23 | DECLARE_DYNAMIC_CLASS(wxFileDialog) | |
0e320a79 | 24 | public: |
b93f4bb9 DW |
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; } | |
25fc812c | 47 | inline void GetFilenames(wxArrayString& rasFilenames) { rasFilenames = m_asFileNames; } |
b93f4bb9 DW |
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 ; } | |
0e320a79 DW |
51 | |
52 | int ShowModal(); | |
f0a56ab0 DW |
53 | |
54 | protected: | |
b93f4bb9 DW |
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 | |
0e320a79 | 66 | |
b600ed13 | 67 | #endif // _WX_FILEDLG_H_ |