1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxDirDialogGTK
4 // Author: Francesco Montorsi
6 // Copyright: (c) 2006 Francesco Montorsi
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKDIRDLGH__
11 #define __GTKDIRDLGH__
13 #include "wx/generic/dirdlgg.h"
15 //-------------------------------------------------------------------------
17 //-------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxDirDialogGTK
: public wxGenericDirDialog
24 wxDirDialogGTK(wxWindow
*parent
,
25 const wxString
& message
= wxDirSelectorPromptStr
,
26 const wxString
& defaultPath
= wxEmptyString
,
27 long style
= wxDD_DEFAULT_STYLE
,
28 const wxPoint
& pos
= wxDefaultPosition
,
29 const wxSize
& size
= wxDefaultSize
,
30 const wxString
& name
= wxDirDialogNameStr
);
32 virtual ~wxDirDialogGTK();
35 public: // overrides from wxGenericDirDialog
37 wxString
GetPath() const;
38 void SetPath(const wxString
& path
);
40 virtual int ShowModal();
41 virtual bool Show( bool show
= true );
44 //private: must be accessible by GTK callback
45 bool m_destroyed_by_delete
;
48 // override this from wxTLW since the native
49 // form doesn't have any m_wxwindow
50 virtual void DoSetSize(int x
, int y
,
51 int width
, int height
,
52 int sizeFlags
= wxSIZE_AUTO
);
56 DECLARE_DYNAMIC_CLASS(wxDirDialogGTK
)
58 void OnFakeOk( wxCommandEvent
&event
);
61 #endif // __GTKDIRDLGH__