]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/wx-console/wxbtreectrl.h
- wxbRestorePanel : Fixed problem when the newly created job is not at the end of...
[bacula/bacula] / bacula / src / wx-console / wxbtreectrl.h
index 024e473fd8894be49aaee21eb6991fe606bca567..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,15 +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:
-      bool marked;
-   
       void OnDoubleClicked(wxMouseEvent& event);
       void OnRightClicked(wxMouseEvent& event);
       
+      wxEvtHandler* handler;
+      
       DECLARE_EVENT_TABLE();
 };