1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGenericDirCtrl class
4 // Builds on wxDirCtrl class written by Robert Roebling for the
5 // wxFile application, modified by Harm van der Heijden.
6 // Further modified for Windows.
7 // Author: Robert Roebling, Harm van der Heijden, Julian Smart et al
11 // Copyright: (c) Robert Roebling, Harm van der Heijden, Julian Smart
12 // Licence: wxWindows licence
13 /////////////////////////////////////////////////////////////////////////////
15 #ifndef _WX_DIRDLGG_H_
16 #define _WX_DIRDLGG_H_
19 #pragma interface "dirdlgg.h"
22 class WXDLLEXPORT wxGenericDirCtrl
;
23 class WXDLLEXPORT wxTextCtrl
;
24 class WXDLLEXPORT wxTreeEvent
;
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 class WXDLLEXPORT wxGenericDirDialog
: public wxDialog
33 wxGenericDirDialog() : wxDialog() { }
35 wxGenericDirDialog(wxWindow
* parent
,
36 const wxString
& title
= wxDirSelectorPromptStr
,
37 const wxString
& defaultPath
= wxEmptyString
,
38 long style
= wxDD_DEFAULT_STYLE
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& sz
= wxSize(450, 550),
41 const wxString
& name
= wxDirDialogNameStr
);
44 inline void SetMessage(const wxString
& message
) { m_message
= message
; }
45 void SetPath(const wxString
& path
);
46 inline void SetStyle(long style
) { m_dialogStyle
= style
; }
48 inline wxString
GetMessage(void) const { return m_message
; }
49 wxString
GetPath(void) const;
50 inline long GetStyle(void) const { return m_dialogStyle
; }
52 wxTextCtrl
* GetInputCtrl() const { return m_input
; }
59 void OnCloseWindow(wxCloseEvent
& event
);
60 void OnOK(wxCommandEvent
& event
);
61 void OnTreeSelected(wxTreeEvent
&event
);
62 void OnTreeKeyDown(wxTreeEvent
&event
);
63 void OnNew(wxCommandEvent
& event
);
64 void OnGoHome(wxCommandEvent
& event
);
65 void OnShowHidden(wxCommandEvent
& event
);
70 wxGenericDirCtrl
* m_dirCtrl
;
76 #endif // _WX_DIRDLGG_H_