1 ///////////////////////////////////////////////////////////////////////////// 2 // Name: DirCtrl.cpp 3 // Purpose: The control to display a directory listing as tree 4 // Author: Alex Thuering 5 // Created: 25.10.2008 6 // RCS-ID: $Id: DirCtrl.h,v 1.1 2008/10/25 21:00:20 ntalex Exp $ 7 // Copyright: (c) Alex Thuering 8 // Licence: GPL 9 ///////////////////////////////////////////////////////////////////////////// 10 11 #ifndef DVDSTYLER_DIRCTRL_H 12 #define DVDSTYLER_DIRCTRL_H 13 14 #include <wx/wx.h> 15 #include <wx/dirctrl.h> 16 17 class DirCtrl: public wxGenericDirCtrl { 18 public: 19 DirCtrl(wxWindow* parent, const wxWindowID id = wxID_ANY); 20 virtual ~DirCtrl(); 21 private: 22 wxMenu* m_contextMenu; 23 void OnMouseUp(wxMouseEvent &event); 24 void OnKeyDown(wxKeyEvent& event); 25 void OnRefresh(wxCommandEvent& event); 26 DECLARE_EVENT_TABLE() 27 }; 28 29 #endif // DVDSTYLER_DIRCTRL_H 30