2006-04-30 05:44:29 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-19 20:14:35 -04:00
|
|
|
// Name: wx/gtk/dirdlg.h
|
2006-05-28 19:32:12 -04:00
|
|
|
// Purpose: wxDirDialog
|
2006-04-30 05:44:29 -04:00
|
|
|
// Author: Francesco Montorsi
|
|
|
|
// Copyright: (c) 2006 Francesco Montorsi
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __GTKDIRDLGH__
|
|
|
|
#define __GTKDIRDLGH__
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------------
|
2006-05-28 19:32:12 -04:00
|
|
|
// wxDirDialog
|
2006-04-30 05:44:29 -04:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
2007-11-05 17:31:24 -05:00
|
|
|
class WXDLLIMPEXP_CORE wxDirDialog : public wxDirDialogBase
|
2006-04-30 05:44:29 -04:00
|
|
|
{
|
|
|
|
public:
|
2006-05-28 19:32:12 -04:00
|
|
|
wxDirDialog() { }
|
2006-04-30 05:44:29 -04:00
|
|
|
|
2006-05-28 19:32:12 -04:00
|
|
|
wxDirDialog(wxWindow *parent,
|
2006-04-30 05:44:29 -04:00
|
|
|
const wxString& message = wxDirSelectorPromptStr,
|
2006-05-06 16:10:11 -04:00
|
|
|
const wxString& defaultPath = wxEmptyString,
|
2006-04-30 05:44:29 -04:00
|
|
|
long style = wxDD_DEFAULT_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
const wxString& name = wxDirDialogNameStr);
|
2012-03-14 08:32:27 -04:00
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
const wxString& message = wxDirSelectorPromptStr,
|
|
|
|
const wxString& defaultPath = wxEmptyString,
|
|
|
|
long style = wxDD_DEFAULT_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
const wxString& name = wxDirDialogNameStr);
|
2006-05-28 19:32:12 -04:00
|
|
|
virtual ~wxDirDialog() { }
|
2006-04-30 05:44:29 -04:00
|
|
|
|
|
|
|
|
|
|
|
public: // overrides from wxGenericDirDialog
|
|
|
|
|
2014-03-29 20:02:23 -04:00
|
|
|
wxString GetPath() const wxOVERRIDE;
|
|
|
|
void SetPath(const wxString& path) wxOVERRIDE;
|
2006-04-30 05:44:29 -04:00
|
|
|
|
|
|
|
|
2012-10-25 19:26:36 -04:00
|
|
|
// Implementation only.
|
|
|
|
|
|
|
|
void GTKOnAccept();
|
|
|
|
void GTKOnCancel();
|
|
|
|
|
2006-04-30 05:44:29 -04:00
|
|
|
protected:
|
|
|
|
// override this from wxTLW since the native
|
|
|
|
// form doesn't have any m_wxwindow
|
|
|
|
virtual void DoSetSize(int x, int y,
|
|
|
|
int width, int height,
|
2014-03-29 20:02:23 -04:00
|
|
|
int sizeFlags = wxSIZE_AUTO) wxOVERRIDE;
|
2006-04-30 05:44:29 -04:00
|
|
|
|
|
|
|
|
|
|
|
private:
|
2012-10-25 19:26:36 -04:00
|
|
|
wxString m_selectedDirectory;
|
2007-11-05 17:31:24 -05:00
|
|
|
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxDirDialog);
|
2006-04-30 05:44:29 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __GTKDIRDLGH__
|