]> git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/dirdlg.h
renamed m_boxes to m_buttons because, well, it contains the radio buttons and not...
[wxWidgets.git] / include / wx / cocoa / dirdlg.h
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
15 DECLARE_WXCOCOA_OBJC_CLASS(NSSavePanel);
16
17 #define wxDirDialog wxCocoaDirDialog
18 //-------------------------------------------------------------------------
19 // wxDirDialog
20 //-------------------------------------------------------------------------
21
22 class WXDLLEXPORT wxDirDialog: public wxDirDialogBase
23 {
24 DECLARE_DYNAMIC_CLASS(wxDirDialog)
25 DECLARE_NO_COPY_CLASS(wxDirDialog)
26 public:
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 long GetStyle() const { return m_dialogStyle; }
37
38 virtual int ShowModal();
39
40 inline WX_NSSavePanel GetNSSavePanel()
41 { return (WX_NSSavePanel)m_cocoaNSWindow; }
42
43 protected:
44 long m_dialogStyle;
45 wxString m_dir;
46 wxWindow * m_parent;
47 wxString m_fileName;
48
49 private:
50 wxArrayString m_fileNames;
51 };
52
53 #endif // _WX_DIRDLG_H_
54