]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/dirdlg.h
Don't create multiple parent-less top level frames in layout sample.
[wxWidgets.git] / include / wx / osx / dirdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/dirdlg.h
3 // Purpose: wxDirDialog class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // RCS-ID: $Id$
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DIRDLG_H_
13 #define _WX_DIRDLG_H_
14
15 #if wxOSX_USE_COCOA
16 DECLARE_WXCOCOA_OBJC_CLASS(NSOpenPanel);
17 #endif
18
19 class WXDLLIMPEXP_CORE wxDirDialog : public wxDirDialogBase
20 {
21 public:
22 wxDirDialog(wxWindow *parent,
23 const wxString& message = wxDirSelectorPromptStr,
24 const wxString& defaultPath = wxT(""),
25 long style = wxDD_DEFAULT_STYLE,
26 const wxPoint& pos = wxDefaultPosition,
27 const wxSize& size = wxDefaultSize,
28 const wxString& name = wxDirDialogNameStr);
29
30 #if wxOSX_USE_COCOA
31 ~wxDirDialog();
32 #endif
33
34 virtual int ShowModal();
35
36 #if wxOSX_USE_COCOA
37 virtual void ShowWindowModal();
38 virtual void ModalFinishedCallback(void* panel, int returnCode);
39 #endif
40
41 private:
42 #if wxOSX_USE_COCOA
43 // Create and initialize NSOpenPanel that we use in both ShowModal() and
44 // ShowWindowModal().
45 WX_NSOpenPanel OSXCreatePanel() const;
46
47 WX_NSObject m_sheetDelegate;
48 #endif
49
50 DECLARE_DYNAMIC_CLASS(wxDirDialog)
51 };
52
53 #endif // _WX_DIRDLG_H_