1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/dirdlg.h
3 // Purpose: wxDirDialog
4 // Author: Francesco Montorsi
6 // Copyright: (c) 2006 Francesco Montorsi
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKDIRDLGH__
11 #define __GTKDIRDLGH__
13 //-------------------------------------------------------------------------
15 //-------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxDirDialog
: public wxDirDialogBase
22 wxDirDialog(wxWindow
*parent
,
23 const wxString
& message
= wxDirSelectorPromptStr
,
24 const wxString
& defaultPath
= wxEmptyString
,
25 long style
= wxDD_DEFAULT_STYLE
,
26 const wxPoint
& pos
= wxDefaultPosition
,
27 const wxSize
& size
= wxDefaultSize
,
28 const wxString
& name
= wxDirDialogNameStr
);
29 bool Create(wxWindow
*parent
,
30 const wxString
& message
= wxDirSelectorPromptStr
,
31 const wxString
& defaultPath
= wxEmptyString
,
32 long style
= wxDD_DEFAULT_STYLE
,
33 const wxPoint
& pos
= wxDefaultPosition
,
34 const wxSize
& size
= wxDefaultSize
,
35 const wxString
& name
= wxDirDialogNameStr
);
36 virtual ~wxDirDialog() { }
39 public: // overrides from wxGenericDirDialog
41 wxString
GetPath() const;
42 void SetPath(const wxString
& path
);
46 // override this from wxTLW since the native
47 // form doesn't have any m_wxwindow
48 virtual void DoSetSize(int x
, int y
,
49 int width
, int height
,
50 int sizeFlags
= wxSIZE_AUTO
);
54 void OnFakeOk( wxCommandEvent
&event
);
56 DECLARE_DYNAMIC_CLASS(wxDirDialog
)
60 #endif // __GTKDIRDLGH__