2009-01-17 05:43:43 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-19 20:14:35 -04:00
|
|
|
// Name: wx/osx/dirdlg.h
|
2009-01-17 05:43:43 -05:00
|
|
|
// Purpose: wxDirDialog class
|
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 1998-01-01
|
|
|
|
// Copyright: (c) Stefan Csomor
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_DIRDLG_H_
|
|
|
|
#define _WX_DIRDLG_H_
|
|
|
|
|
2012-10-28 21:20:26 -04:00
|
|
|
#if wxOSX_USE_COCOA
|
|
|
|
DECLARE_WXCOCOA_OBJC_CLASS(NSOpenPanel);
|
|
|
|
#endif
|
|
|
|
|
2009-01-17 05:43:43 -05:00
|
|
|
class WXDLLIMPEXP_CORE wxDirDialog : public wxDirDialogBase
|
|
|
|
{
|
|
|
|
public:
|
2013-07-10 17:12:07 -04:00
|
|
|
wxDirDialog() { Init(); }
|
|
|
|
|
2009-01-17 05:43:43 -05:00
|
|
|
wxDirDialog(wxWindow *parent,
|
2013-07-10 17:12:07 -04:00
|
|
|
const wxString& message = wxDirSelectorPromptStr,
|
|
|
|
const wxString& defaultPath = wxT(""),
|
|
|
|
long style = wxDD_DEFAULT_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
const wxString& name = wxDirDialogNameStr)
|
|
|
|
{
|
|
|
|
Init();
|
|
|
|
|
|
|
|
Create(parent,message,defaultPath,style,pos,size,name);
|
|
|
|
}
|
|
|
|
|
|
|
|
void Create(wxWindow *parent,
|
2009-01-17 05:43:43 -05:00
|
|
|
const wxString& message = wxDirSelectorPromptStr,
|
2009-07-23 16:30:22 -04:00
|
|
|
const wxString& defaultPath = wxT(""),
|
2009-01-17 05:43:43 -05:00
|
|
|
long style = wxDD_DEFAULT_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
const wxString& name = wxDirDialogNameStr);
|
|
|
|
|
2011-06-08 20:28:28 -04:00
|
|
|
#if wxOSX_USE_COCOA
|
|
|
|
~wxDirDialog();
|
|
|
|
#endif
|
|
|
|
|
2009-01-17 05:43:43 -05:00
|
|
|
virtual int ShowModal();
|
2010-09-30 07:44:45 -04:00
|
|
|
|
2010-01-27 23:06:23 -05:00
|
|
|
#if wxOSX_USE_COCOA
|
|
|
|
virtual void ShowWindowModal();
|
|
|
|
virtual void ModalFinishedCallback(void* panel, int returnCode);
|
2010-09-30 07:44:45 -04:00
|
|
|
#endif
|
2009-01-17 05:43:43 -05:00
|
|
|
|
2012-10-28 21:20:26 -04:00
|
|
|
private:
|
2011-06-08 20:28:28 -04:00
|
|
|
#if wxOSX_USE_COCOA
|
2012-10-28 21:20:26 -04:00
|
|
|
// Create and initialize NSOpenPanel that we use in both ShowModal() and
|
|
|
|
// ShowWindowModal().
|
|
|
|
WX_NSOpenPanel OSXCreatePanel() const;
|
|
|
|
|
2011-06-08 20:28:28 -04:00
|
|
|
WX_NSObject m_sheetDelegate;
|
|
|
|
#endif
|
2012-10-28 21:20:26 -04:00
|
|
|
|
2013-07-10 17:12:07 -04:00
|
|
|
// Common part of all ctors.
|
|
|
|
void Init();
|
|
|
|
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxDirDialog);
|
2009-01-17 05:43:43 -05:00
|
|
|
};
|
|
|
|
|
2012-10-28 21:20:26 -04:00
|
|
|
#endif // _WX_DIRDLG_H_
|