]>
git.saurik.com Git - wxWidgets.git/blob - user/wxFile/dirctrl.h
3 * Purpose: dir tree control
4 * Author: Robert Roebling
17 #include "wx/treectrl.h"
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 class wxDirInfo
: public wxObject
32 DECLARE_DYNAMIC_CLASS(wxDirInfo
)
42 wxDirInfo( const wxString
&path
);
43 wxString
GetName(void) const;
44 wxString
GetPath(void) const;
47 //-----------------------------------------------------------------------------
49 //-----------------------------------------------------------------------------
51 class wxDirCtrl
: public wxTreeCtrl
53 DECLARE_DYNAMIC_CLASS(wxDirCtrl
)
61 wxDirCtrl(wxWindow
*parent
, const wxWindowID id
= -1, const wxString
&dir
= "/",
62 const wxPoint
& pos
= wxDefaultPosition
,
63 const wxSize
& size
= wxDefaultSize
,
64 const long style
= wxTR_HAS_BUTTONS
,
65 const wxString
& name
= "wxTreeCtrl" )
67 void OnExpandItem( const wxTreeEvent
&event
);
68 void OnDeleteItem( const wxTreeEvent
&event
);
69 void OnMouse( wxMouseEvent
&event
);