int firstDragY;
int oldDragX;
int oldDragY;
+ bool m_mouseCaptured;
+// long m_treeItem;
wxResourceEditorDialogHandler(wxPanel *dialog, wxItemResource *resource, wxEvtHandler *oldHandler,
wxResourceManager *manager);
- ~wxResourceEditorDialogHandler(void) {}
-
- bool OnClose(void);
+ ~wxResourceEditorDialogHandler(void);
void OnPaint(wxPaintEvent& event);
void OnMouseEvent(wxMouseEvent& event);
virtual void OnItemLeftClick(wxControl *item, int x, int y, int keys);
virtual void OnItemRightClick(wxControl *item, int x, int y, int keys);
virtual void OnItemSelect(wxControl *item, bool select);
- virtual void OnItemMove(wxControl *item, int x, int y) {};
- virtual void OnItemSize(wxControl *item, int w, int h) {};
+ virtual void OnItemMove(
+ wxControl *WXUNUSED(item), int WXUNUSED(x), int WXUNUSED(y) ) {};
+ virtual void OnItemSize(
+ wxControl *WXUNUSED(item), int WXUNUSED(w), int WXUNUSED(h) ) {};
void AddChildHandlers(void);
void PaintSelectionHandles(wxDC& dc);
void ProcessItemEvent(wxControl *item, wxMouseEvent& event, int selectionHandle);
+// Accessors
+/*
+ inline long GetTreeItem() const { return m_treeItem; }
+ inline void SetTreeItem(long item) { m_treeItem = item; }
+*/
+
DECLARE_EVENT_TABLE()
};
bool isSelected;
int handleSize; // selection handle size
int handleMargin; // Distance between item edge and handle edge
+ long m_treeItem;
static int dragOffsetX; // Distance between pointer at start of drag and
static int dragOffsetY; // top-left of item
wxResourceEditorControlHandler(wxControl *control, wxEvtHandler *oldHandler);
- ~wxResourceEditorControlHandler(void) {}
+ ~wxResourceEditorControlHandler(void);
void OnMouseEvent(wxMouseEvent& event);
virtual void OnRightClick(int x, int y, int keys);
virtual void OnSelect(bool select);
+// Accessors
+/*
+ inline long GetTreeItem() const { return m_treeItem; }
+ inline void SetTreeItem(long item) { m_treeItem = item; }
+*/
+
DECLARE_EVENT_TABLE()
};