1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2002-04-05 10:11:37 +00:00
|
|
|
// Name: wx/msw/dirdlg.h
|
1998-05-20 14:12:05 +00:00
|
|
|
// Purpose: wxDirDialog class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
1998-08-07 23:52:45 +00:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-08-24 10:31:41 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 23:52:45 +00:00
|
|
|
#ifndef _WX_DIRDLG_H_
|
|
|
|
#define _WX_DIRDLG_H_
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxDirDialog : public wxDirDialogBase
|
1998-05-20 14:12:05 +00:00
|
|
|
{
|
|
|
|
public:
|
2002-04-05 10:11:37 +00:00
|
|
|
wxDirDialog(wxWindow *parent,
|
2002-05-04 12:38:51 +00:00
|
|
|
const wxString& message = wxDirSelectorPromptStr,
|
2002-04-05 10:11:37 +00:00
|
|
|
const wxString& defaultPath = wxEmptyString,
|
2004-08-13 23:56:57 +00:00
|
|
|
long style = wxDD_DEFAULT_STYLE,
|
2002-05-04 12:38:51 +00:00
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
const wxString& name = wxDirDialogNameStr);
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2002-04-05 20:20:32 +00:00
|
|
|
void SetPath(const wxString& path);
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2002-04-05 10:11:37 +00:00
|
|
|
virtual int ShowModal();
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2002-04-05 10:11:37 +00:00
|
|
|
private:
|
2012-04-15 23:18:12 +00:00
|
|
|
// The real implementations of ShowModal(), used for Windows versions
|
|
|
|
// before and since Vista.
|
|
|
|
int ShowSHBrowseForFolder(WXHWND owner);
|
|
|
|
int ShowIFileDialog(WXHWND owner);
|
|
|
|
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDirDialog);
|
1998-05-20 14:12:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-08-07 23:52:45 +00:00
|
|
|
// _WX_DIRDLG_H_
|