2006-04-30 05:44:29 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dirdlg.h
|
2006-05-28 19:32:12 -04:00
|
|
|
// Purpose: wxDirDialog
|
2006-04-30 05:44:29 -04:00
|
|
|
// Author: Francesco Montorsi
|
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 2006 Francesco Montorsi
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __GTKDIRDLGH__
|
|
|
|
#define __GTKDIRDLGH__
|
|
|
|
|
|
|
|
#include "wx/generic/dirdlgg.h"
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------------
|
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
|
|
|
class WXDLLIMPEXP_CORE wxDirDialog : public wxGenericDirDialog
|
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);
|
|
|
|
|
2006-05-28 19:32:12 -04:00
|
|
|
virtual ~wxDirDialog() { }
|
2006-04-30 05:44:29 -04:00
|
|
|
|
|
|
|
|
|
|
|
public: // overrides from wxGenericDirDialog
|
|
|
|
|
|
|
|
wxString GetPath() const;
|
|
|
|
void SetPath(const wxString& path);
|
|
|
|
|
|
|
|
virtual int ShowModal();
|
|
|
|
virtual bool Show( bool show = true );
|
|
|
|
|
|
|
|
|
|
|
|
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,
|
|
|
|
int sizeFlags = wxSIZE_AUTO);
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
2006-05-28 19:32:12 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxDirDialog)
|
2006-04-30 05:44:29 -04:00
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
void OnFakeOk( wxCommandEvent &event );
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __GTKDIRDLGH__
|