]>
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
)
62 wxDirCtrl(wxWindow
*parent
, const wxWindowID id
= -1, const wxString
&dir
= "/",
63 const wxPoint
& pos
= wxDefaultPosition
,
64 const wxSize
& size
= wxDefaultSize
,
65 const long style
= wxTR_HAS_BUTTONS
,
66 const wxString
& name
= "wxTreeCtrl" );
67 void OnExpandItem( const wxTreeEvent
&event
);
68 void OnCollapseItem( const wxTreeEvent
&event
);
69 void OnDeleteItem( const wxTreeEvent
&event
);