]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/dirdlg.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[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
937f314d
VZ
7// Copyright: (c) Ryan Norton
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_COCOA_DIRDLG_H_
12#define _WX_COCOA_DIRDLG_H_
13
14DECLARE_WXCOCOA_OBJC_CLASS(NSSavePanel);
15
16#define wxDirDialog wxCocoaDirDialog
17//-------------------------------------------------------------------------
18// wxDirDialog
19//-------------------------------------------------------------------------
20
53a2db12 21class WXDLLIMPEXP_CORE wxDirDialog: public wxDirDialogBase
937f314d
VZ
22{
23 DECLARE_DYNAMIC_CLASS(wxDirDialog)
c0c133e1 24 wxDECLARE_NO_COPY_CLASS(wxDirDialog);
937f314d
VZ
25public:
26 wxDirDialog(wxWindow *parent,
27 const wxString& message = wxDirSelectorPromptStr,
9a83f860 28 const wxString& defaultPath = wxT(""),
937f314d
VZ
29 long style = wxDD_DEFAULT_STYLE,
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& size = wxDefaultSize,
32 const wxString& name = wxDirDialogNameStr);
d3c7fc99 33 virtual ~wxDirDialog();
937f314d 34
937f314d 35 virtual int ShowModal();
03647350 36
937f314d
VZ
37 inline WX_NSSavePanel GetNSSavePanel()
38 { return (WX_NSSavePanel)m_cocoaNSWindow; }
39
40protected:
937f314d
VZ
41 wxString m_dir;
42 wxWindow * m_parent;
937f314d
VZ
43 wxString m_fileName;
44
45private:
46 wxArrayString m_fileNames;
47};
48
49#endif // _WX_DIRDLG_H_
50