]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/wx-console/wxbtreectrl.h
- wxbRestorePanel : The user can now mark/unmark a range of files selected with...
[bacula/bacula] / bacula / src / wx-console / wxbtreectrl.h
index 72b4f802a97294df4e4e9569d9dc829eaeb86772..e1710313a5f2f0d87d86ac86a43a2663c640256a 100644 (file)
@@ -36,7 +36,7 @@
 #include <wx/treectrl.h>
 
 BEGIN_DECLARE_EVENT_TYPES()
-   DECLARE_LOCAL_EVENT_TYPE(wxbTREE_MARKED_EVENT,       1)
+   DECLARE_EVENT_TYPE(wxbTREE_MARKED_EVENT,       618)
 END_DECLARE_EVENT_TYPES()
 
 /* Customized tree event, used for marking events */
@@ -64,13 +64,15 @@ typedef void (wxEvtHandler::*wxTreeMarkedEventFunction)(wxbTreeMarkedEvent&);
 /* Customized tree, which transmit double clicks on images */
 class wxbTreeCtrl: public wxTreeCtrl {
    public:
-      wxbTreeCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize);
+      wxbTreeCtrl(wxWindow* parent, wxEvtHandler* handler, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize);
       ~wxbTreeCtrl();
       
    private:
       void OnDoubleClicked(wxMouseEvent& event);
       void OnRightClicked(wxMouseEvent& event);
       
+      wxEvtHandler* handler;
+      
       DECLARE_EVENT_TABLE();
 };