X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..9398120d298d745763f253d87d774be3b134b43f:/utils/dialoged/src/dlghndlr.h diff --git a/utils/dialoged/src/dlghndlr.h b/utils/dialoged/src/dlghndlr.h index e54ba36097..ce39f648fa 100644 --- a/utils/dialoged/src/dlghndlr.h +++ b/utils/dialoged/src/dlghndlr.h @@ -19,6 +19,7 @@ #define wxDRAG_MODE_CONTINUE_RIGHT 4 #define wxDRAG_TYPE_NONE 0 #define wxDRAG_TYPE_ITEM 100 +#define wxDRAG_TYPE_BOUNDING_BOX 200 #define wxKEY_SHIFT 1 #define wxKEY_CTRL 2 @@ -51,6 +52,8 @@ public: void OnPaint(wxPaintEvent& event); void OnMouseEvent(wxMouseEvent& event); void OnSize(wxSizeEvent& event); + void OnObjectEdit(wxCommandEvent& event); + void OnObjectDelete(wxCommandEvent& event); virtual void OnItemEvent(wxControl *win, wxMouseEvent& event); virtual void OnLeftClick(int x, int y, int keys); @@ -66,7 +69,12 @@ public: void AddChildHandlers(void); void PaintSelectionHandles(wxDC& dc); void ProcessItemEvent(wxControl *item, wxMouseEvent& event, int selectionHandle); - + + virtual void DrawBoundingBox(wxDC& dc, int x, int y, int w, int h); + virtual void OnDragBegin(int x, int y, int keys, wxDC& dc, int selectionHandle); + virtual void OnDragContinue(bool paintIt, int x, int y, int keys, wxDC& dc, int selectionHandle); + virtual void OnDragEnd(int x, int y, int keys, wxDC& dc, int selectionHandle); + // Accessors /* inline long GetTreeItem() const { return m_treeItem; }