1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/dirdlg.h
3 // Purpose: wxDirDialog class
4 // Author: Stefan Csomor
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
15 DECLARE_WXCOCOA_OBJC_CLASS(NSOpenPanel
);
18 class WXDLLIMPEXP_CORE wxDirDialog
: public wxDirDialogBase
21 wxDirDialog() { Init(); }
23 wxDirDialog(wxWindow
*parent
,
24 const wxString
& message
= wxDirSelectorPromptStr
,
25 const wxString
& defaultPath
= wxT(""),
26 long style
= wxDD_DEFAULT_STYLE
,
27 const wxPoint
& pos
= wxDefaultPosition
,
28 const wxSize
& size
= wxDefaultSize
,
29 const wxString
& name
= wxDirDialogNameStr
)
33 Create(parent
,message
,defaultPath
,style
,pos
,size
,name
);
36 void Create(wxWindow
*parent
,
37 const wxString
& message
= wxDirSelectorPromptStr
,
38 const wxString
& defaultPath
= wxT(""),
39 long style
= wxDD_DEFAULT_STYLE
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
,
42 const wxString
& name
= wxDirDialogNameStr
);
48 virtual int ShowModal();
51 virtual void ShowWindowModal();
52 virtual void ModalFinishedCallback(void* panel
, int returnCode
);
57 // Create and initialize NSOpenPanel that we use in both ShowModal() and
59 WX_NSOpenPanel
OSXCreatePanel() const;
61 WX_NSObject m_sheetDelegate
;
64 // Common part of all ctors.
67 DECLARE_DYNAMIC_CLASS(wxDirDialog
)
70 #endif // _WX_DIRDLG_H_