1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/dirdlg.h
3 // Purpose: wxDirDialog class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 DECLARE_WXCOCOA_OBJC_CLASS(NSOpenPanel
);
19 class WXDLLIMPEXP_CORE wxDirDialog
: public wxDirDialogBase
22 wxDirDialog() { Init(); }
24 wxDirDialog(wxWindow
*parent
,
25 const wxString
& message
= wxDirSelectorPromptStr
,
26 const wxString
& defaultPath
= wxT(""),
27 long style
= wxDD_DEFAULT_STYLE
,
28 const wxPoint
& pos
= wxDefaultPosition
,
29 const wxSize
& size
= wxDefaultSize
,
30 const wxString
& name
= wxDirDialogNameStr
)
34 Create(parent
,message
,defaultPath
,style
,pos
,size
,name
);
37 void Create(wxWindow
*parent
,
38 const wxString
& message
= wxDirSelectorPromptStr
,
39 const wxString
& defaultPath
= wxT(""),
40 long style
= wxDD_DEFAULT_STYLE
,
41 const wxPoint
& pos
= wxDefaultPosition
,
42 const wxSize
& size
= wxDefaultSize
,
43 const wxString
& name
= wxDirDialogNameStr
);
49 virtual int ShowModal();
52 virtual void ShowWindowModal();
53 virtual void ModalFinishedCallback(void* panel
, int returnCode
);
58 // Create and initialize NSOpenPanel that we use in both ShowModal() and
60 WX_NSOpenPanel
OSXCreatePanel() const;
62 WX_NSObject m_sheetDelegate
;
65 // Common part of all ctors.
68 DECLARE_DYNAMIC_CLASS(wxDirDialog
)
71 #endif // _WX_DIRDLG_H_