1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/dirdlg.h
3 // Purpose: wxDirDialog
4 // Author: Francesco Montorsi
5 // Copyright: (c) 2006 Francesco Montorsi
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
10 #define __GTKDIRDLGH__
12 //-------------------------------------------------------------------------
14 //-------------------------------------------------------------------------
16 class WXDLLIMPEXP_CORE wxDirDialog
: public wxDirDialogBase
21 wxDirDialog(wxWindow
*parent
,
22 const wxString
& message
= wxDirSelectorPromptStr
,
23 const wxString
& defaultPath
= wxEmptyString
,
24 long style
= wxDD_DEFAULT_STYLE
,
25 const wxPoint
& pos
= wxDefaultPosition
,
26 const wxSize
& size
= wxDefaultSize
,
27 const wxString
& name
= wxDirDialogNameStr
);
28 bool Create(wxWindow
*parent
,
29 const wxString
& message
= wxDirSelectorPromptStr
,
30 const wxString
& defaultPath
= wxEmptyString
,
31 long style
= wxDD_DEFAULT_STYLE
,
32 const wxPoint
& pos
= wxDefaultPosition
,
33 const wxSize
& size
= wxDefaultSize
,
34 const wxString
& name
= wxDirDialogNameStr
);
35 virtual ~wxDirDialog() { }
38 public: // overrides from wxGenericDirDialog
40 wxString
GetPath() const;
41 void SetPath(const wxString
& path
);
44 // Implementation only.
50 // override this from wxTLW since the native
51 // form doesn't have any m_wxwindow
52 virtual void DoSetSize(int x
, int y
,
53 int width
, int height
,
54 int sizeFlags
= wxSIZE_AUTO
);
58 wxString m_selectedDirectory
;
60 DECLARE_DYNAMIC_CLASS(wxDirDialog
)
63 #endif // __GTKDIRDLGH__