2006-03-12 10:30:52 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/cocoa/dirdlg.h
|
|
|
|
// Purpose: wxDirDialog class
|
|
|
|
// Author: Ryan Norton
|
|
|
|
// Modified by: Hiroyuki Nakamura(maloninc)
|
|
|
|
// Created: 2006-01-10
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Ryan Norton
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_COCOA_DIRDLG_H_
|
|
|
|
#define _WX_COCOA_DIRDLG_H_
|
|
|
|
|
|
|
|
DECLARE_WXCOCOA_OBJC_CLASS(NSSavePanel);
|
|
|
|
|
|
|
|
#define wxDirDialog wxCocoaDirDialog
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
// wxDirDialog
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxDirDialog: public wxDirDialogBase
|
2006-03-12 10:30:52 -05:00
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxDirDialog)
|
2009-02-08 06:45:59 -05:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxDirDialog);
|
2006-03-12 10:30:52 -05:00
|
|
|
public:
|
|
|
|
wxDirDialog(wxWindow *parent,
|
|
|
|
const wxString& message = wxDirSelectorPromptStr,
|
2009-07-23 16:30:22 -04:00
|
|
|
const wxString& defaultPath = wxT(""),
|
2006-03-12 10:30:52 -05:00
|
|
|
long style = wxDD_DEFAULT_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
const wxString& name = wxDirDialogNameStr);
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxDirDialog();
|
2006-03-12 10:30:52 -05:00
|
|
|
|
|
|
|
virtual int ShowModal();
|
2009-08-21 06:41:26 -04:00
|
|
|
|
2006-03-12 10:30:52 -05:00
|
|
|
inline WX_NSSavePanel GetNSSavePanel()
|
|
|
|
{ return (WX_NSSavePanel)m_cocoaNSWindow; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
wxString m_dir;
|
|
|
|
wxWindow * m_parent;
|
|
|
|
wxString m_fileName;
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxArrayString m_fileNames;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_DIRDLG_H_
|
|
|
|
|