]>
Commit | Line | Data |
---|---|---|
0dbd6262 SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: filedlg.h | |
3 | // Purpose: wxFileDialog class | |
a31a5f85 | 4 | // Author: Stefan Csomor |
0dbd6262 | 5 | // Modified by: |
a31a5f85 | 6 | // Created: 1998-01-01 |
0dbd6262 | 7 | // RCS-ID: $Id$ |
a31a5f85 | 8 | // Copyright: (c) Stefan Csomor |
d921af51 | 9 | // Licence: wxWindows licence |
0dbd6262 SC |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_FILEDLG_H_ | |
13 | #define _WX_FILEDLG_H_ | |
14 | ||
12028905 | 15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
0dbd6262 SC |
16 | #pragma interface "filedlg.h" |
17 | #endif | |
18 | ||
f74172ab VZ |
19 | //------------------------------------------------------------------------- |
20 | // wxFileDialog | |
21 | //------------------------------------------------------------------------- | |
0dbd6262 | 22 | |
f74172ab | 23 | class WXDLLEXPORT wxFileDialog: public wxFileDialogBase |
0dbd6262 SC |
24 | { |
25 | DECLARE_DYNAMIC_CLASS(wxFileDialog) | |
26 | protected: | |
5b781a67 SC |
27 | wxArrayString m_fileNames; |
28 | wxArrayString m_paths; | |
0dbd6262 | 29 | |
f74172ab VZ |
30 | public: |
31 | wxFileDialog(wxWindow *parent, | |
32 | const wxString& message = wxFileSelectorPromptStr, | |
33 | const wxString& defaultDir = wxEmptyString, | |
34 | const wxString& defaultFile = wxEmptyString, | |
35 | const wxString& wildCard = wxFileSelectorDefaultWildcardStr, | |
36 | long style = 0, | |
37 | const wxPoint& pos = wxDefaultPosition); | |
0dbd6262 | 38 | |
f74172ab | 39 | virtual void GetPaths(wxArrayString& paths) const { paths = m_paths; } |
e802b32a | 40 | virtual void GetFilenames(wxArrayString& files) const { files = m_fileNames ; } |
0dbd6262 | 41 | |
f74172ab | 42 | virtual int ShowModal(); |
a5b7b1ed SC |
43 | |
44 | // not supported for file dialog, RR | |
d84afea9 GD |
45 | virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y), |
46 | int WXUNUSED(width), int WXUNUSED(height), | |
47 | int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {} | |
0dbd6262 SC |
48 | }; |
49 | ||
b600ed13 | 50 | #endif // _WX_FILEDLG_H_ |