]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/filedlg.h
Fixed some duff #ifdefs
[wxWidgets.git] / include / wx / mac / filedlg.h
CommitLineData
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
af49c4b8 15#if defined(__GNUG__) && !defined(__APPLE__)
0dbd6262
SC
16#pragma interface "filedlg.h"
17#endif
18
19#include "wx/dialog.h"
20
21/*
22 * File selector
23 */
24
0dbd6262
SC
25class WXDLLEXPORT wxFileDialog: public wxDialog
26{
27DECLARE_DYNAMIC_CLASS(wxFileDialog)
28protected:
29 wxString m_message;
30 long m_dialogStyle;
31 wxWindow * m_parent;
32 wxString m_dir;
33 wxString m_path; // Full path
34 wxString m_fileName;
5b781a67
SC
35 wxArrayString m_fileNames;
36 wxArrayString m_paths;
0dbd6262
SC
37 wxString m_wildCard;
38 int m_filterIndex;
39public:
40 wxFileDialog(wxWindow *parent, const wxString& message = wxFileSelectorPromptStr,
c4e41ce3 41 const wxString& defaultDir = wxEmptyString, const wxString& defaultFile = wxEmptyString, const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
0dbd6262
SC
42 long style = 0, const wxPoint& pos = wxDefaultPosition);
43
44 inline void SetMessage(const wxString& message) { m_message = message; }
45 inline void SetPath(const wxString& path) { m_path = path; }
46 inline void SetDirectory(const wxString& dir) { m_dir = dir; }
47 inline void SetFilename(const wxString& name) { m_fileName = name; }
48 inline void SetWildcard(const wxString& wildCard) { m_wildCard = wildCard; }
49 inline void SetStyle(long style) { m_dialogStyle = style; }
50 inline void SetFilterIndex(int filterIndex) { m_filterIndex = filterIndex; }
51
52 inline wxString GetMessage() const { return m_message; }
53 inline wxString GetPath() const { return m_path; }
54 inline wxString GetDirectory() const { return m_dir; }
55 inline wxString GetFilename() const { return m_fileName; }
5b781a67
SC
56 void GetPaths(wxArrayString& paths) const { paths = m_paths; }
57 void GetFilenames(wxArrayString& files) const { files = m_fileNames; }
0dbd6262
SC
58 inline wxString GetWildcard() const { return m_wildCard; }
59 inline long GetStyle() const { return m_dialogStyle; }
60 inline int GetFilterIndex() const { return m_filterIndex ; }
61
62 int ShowModal();
a5b7b1ed
SC
63
64 // not supported for file dialog, RR
d84afea9
GD
65 virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
66 int WXUNUSED(width), int WXUNUSED(height),
67 int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
a5b7b1ed 68
0dbd6262
SC
69};
70
b600ed13 71#endif // _WX_FILEDLG_H_