]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/dirdlg.h
remove unneeded gdiobj.h files
[wxWidgets.git] / include / wx / cocoa / dirdlg.h
CommitLineData
937f314d
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/dirdlg.h
3// Purpose: wxDirDialog class
4// Author: Ryan Norton
5// Modified by: Hiroyuki Nakamura(maloninc)
6// Created: 2006-01-10
7// RCS-ID: $Id$
8// Copyright: (c) Ryan Norton
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_COCOA_DIRDLG_H_
13#define _WX_COCOA_DIRDLG_H_
14
15DECLARE_WXCOCOA_OBJC_CLASS(NSSavePanel);
16
17#define wxDirDialog wxCocoaDirDialog
18//-------------------------------------------------------------------------
19// wxDirDialog
20//-------------------------------------------------------------------------
21
22class WXDLLEXPORT wxDirDialog: public wxDialog
23{
24 DECLARE_DYNAMIC_CLASS(wxDirDialog)
25 DECLARE_NO_COPY_CLASS(wxDirDialog)
26public:
27 wxDirDialog(wxWindow *parent,
28 const wxString& message = wxDirSelectorPromptStr,
29 const wxString& defaultPath = _T(""),
30 long style = wxDD_DEFAULT_STYLE,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize,
33 const wxString& name = wxDirDialogNameStr);
34 ~wxDirDialog();
35
36 wxString GetMessage() const { return m_message; }
37 wxString GetPath() const { return m_path; }
38 long GetStyle() const { return m_dialogStyle; }
39
40 virtual int ShowModal();
41
42 inline WX_NSSavePanel GetNSSavePanel()
43 { return (WX_NSSavePanel)m_cocoaNSWindow; }
44
45protected:
46 wxString m_message;
47 long m_dialogStyle;
48 wxString m_dir;
49 wxWindow * m_parent;
50 wxString m_path;
51 wxString m_fileName;
52
53private:
54 wxArrayString m_fileNames;
55};
56
57#endif // _WX_DIRDLG_H_
58