]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/dirdlg.h
Add wxNOEXCEPT to all wxTextCtrl dtors.
[wxWidgets.git] / include / wx / osx / dirdlg.h
CommitLineData
6762286d 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/osx/dirdlg.h
6762286d
SC
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
95c854df
VZ
15#if wxOSX_USE_COCOA
16 DECLARE_WXCOCOA_OBJC_CLASS(NSOpenPanel);
17#endif
18
6762286d
SC
19class WXDLLIMPEXP_CORE wxDirDialog : public wxDirDialogBase
20{
21public:
22 wxDirDialog(wxWindow *parent,
23 const wxString& message = wxDirSelectorPromptStr,
9a83f860 24 const wxString& defaultPath = wxT(""),
6762286d
SC
25 long style = wxDD_DEFAULT_STYLE,
26 const wxPoint& pos = wxDefaultPosition,
27 const wxSize& size = wxDefaultSize,
28 const wxString& name = wxDirDialogNameStr);
29
681bf55c
SC
30#if wxOSX_USE_COCOA
31 ~wxDirDialog();
32#endif
33
6762286d 34 virtual int ShowModal();
ce00f59b 35
bfa92264
KO
36#if wxOSX_USE_COCOA
37 virtual void ShowWindowModal();
38 virtual void ModalFinishedCallback(void* panel, int returnCode);
ce00f59b 39#endif
6762286d 40
95c854df 41private:
681bf55c 42#if wxOSX_USE_COCOA
95c854df
VZ
43 // Create and initialize NSOpenPanel that we use in both ShowModal() and
44 // ShowWindowModal().
45 WX_NSOpenPanel OSXCreatePanel() const;
46
681bf55c
SC
47 WX_NSObject m_sheetDelegate;
48#endif
95c854df
VZ
49
50 DECLARE_DYNAMIC_CLASS(wxDirDialog)
6762286d
SC
51};
52
95c854df 53#endif // _WX_DIRDLG_H_