]> git.saurik.com Git - wxWidgets.git/blame_incremental - user/wxFile/dirctrl.h
Third try to commit....
[wxWidgets.git] / user / wxFile / dirctrl.h
... / ...
CommitLineData
1/*
2 * File: DirCtrl.h
3 * Purpose: dir tree control
4 * Author: Robert Roebling
5 * Created: 1997
6 * Updated:
7 * Copyright:
8 */
9
10#ifndef __DIRCTRLH__
11#define __DIRCTRLH__
12
13#ifdef __GNUG__
14#pragma interface
15#endif
16
17#include "wx/treectrl.h"
18
19//-----------------------------------------------------------------------------
20// classes
21//-----------------------------------------------------------------------------
22
23class wxDirInfo;
24class wxDirCtrl;
25
26//-----------------------------------------------------------------------------
27// wxDirInfo
28//-----------------------------------------------------------------------------
29
30class wxDirInfo: public wxObject
31{
32 DECLARE_DYNAMIC_CLASS(wxDirInfo)
33
34 public:
35
36 wxString m_name;
37 wxString m_path;
38 bool m_showHidden;
39
40
41 wxDirInfo() {};
42 wxDirInfo( const wxString &path );
43 wxString GetName(void) const;
44 wxString GetPath(void) const;
45};
46
47//-----------------------------------------------------------------------------
48// wxDirCtrl
49//-----------------------------------------------------------------------------
50
51class wxDirCtrl: public wxTreeCtrl
52{
53 DECLARE_DYNAMIC_CLASS(wxDirCtrl)
54
55 public:
56
57 bool m_showHidden;
58 int m_dragX,m_dragY;
59 long m_rootId;
60
61 wxDirCtrl(void);
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 );
70
71 DECLARE_EVENT_TABLE()
72};
73
74#endif