]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/filedlg.h
More WinCE mods.
[wxWidgets.git] / include / wx / msw / filedlg.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
2b5f62a0 2// Name: wx/msw/filedlg.h
2bda0e17
KB
3// Purpose: wxFileDialog class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc 8// Copyright: (c) Julian Smart
ba681060 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_FILEDLG_H_
13#define _WX_FILEDLG_H_
2bda0e17
KB
14
15#ifdef __GNUG__
c61f4f6d 16 #pragma interface "filedlg.h"
2bda0e17
KB
17#endif
18
19#include "wx/dialog.h"
20
21/*
22 * File selector
23 */
24
2bda0e17
KB
25class WXDLLEXPORT wxFileDialog: public wxDialog
26{
2bda0e17 27public:
2b5f62a0
VZ
28 wxFileDialog(wxWindow *parent,
29 const wxString& message = wxFileSelectorPromptStr,
30 const wxString& defaultDir = wxEmptyString,
31 const wxString& defaultFile = wxEmptyString,
32 const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
33 long style = 0,
34 const wxPoint& pos = wxDefaultPosition);
2bda0e17 35
c61f4f6d 36 void SetMessage(const wxString& message) { m_message = message; }
2b5f62a0 37 void SetPath(const wxString& path);
c61f4f6d
VZ
38 void SetDirectory(const wxString& dir) { m_dir = dir; }
39 void SetFilename(const wxString& name) { m_fileName = name; }
40 void SetWildcard(const wxString& wildCard) { m_wildCard = wildCard; }
41 void SetStyle(long style) { m_dialogStyle = style; }
42 void SetFilterIndex(int filterIndex) { m_filterIndex = filterIndex; }
43
44 wxString GetMessage() const { return m_message; }
45 wxString GetPath() const { return m_path; }
46 void GetPaths(wxArrayString& paths) const;
47 wxString GetDirectory() const { return m_dir; }
48 wxString GetFilename() const { return m_fileName; }
49 void GetFilenames(wxArrayString& files) const { files = m_fileNames; }
50 wxString GetWildcard() const { return m_wildCard; }
51 long GetStyle() const { return m_dialogStyle; }
52 int GetFilterIndex() const { return m_filterIndex ; }
53
2b5f62a0 54 virtual int ShowModal();
ba681060
VZ
55
56protected:
c61f4f6d
VZ
57 wxString m_message;
58 long m_dialogStyle;
59 wxWindow * m_parent;
60 wxString m_dir;
61 wxString m_path; // Full path
62 wxString m_fileName;
63 wxArrayString m_fileNames;
64 wxString m_wildCard;
65 int m_filterIndex;
66
67private:
68 DECLARE_DYNAMIC_CLASS(wxFileDialog)
22f3361e 69 DECLARE_NO_COPY_CLASS(wxFileDialog)
2bda0e17
KB
70};
71
b600ed13 72#endif // _WX_FILEDLG_H_
c61f4f6d 73