summaryrefslogtreecommitdiffstats
path: root/Project/Element.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-08-29 17:26:50 -0300
committerThales1330 <thaleslima.ufu@gmail.com>2016-08-29 17:26:50 -0300
commit06e57f5c75772dcba902e3032c756f79090f3424 (patch)
treeaef78570496dae05d2945e0190bd4591ec799cd0 /Project/Element.h
parent8e00906e0517b335a6c33f682334bda3c1eadb69 (diff)
downloadPSP.git-06e57f5c75772dcba902e3032c756f79090f3424.tar.gz
PSP.git-06e57f5c75772dcba902e3032c756f79090f3424.tar.xz
PSP.git-06e57f5c75772dcba902e3032c756f79090f3424.zip
Delete implemented
Diffstat (limited to 'Project/Element.h')
-rw-r--r--Project/Element.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Project/Element.h b/Project/Element.h
index bccd993..ec7496a 100644
--- a/Project/Element.h
+++ b/Project/Element.h
@@ -25,7 +25,8 @@ enum ContextMenuID
ID_LINE_ADD_NODE,
ID_LINE_REMOVE_NODE,
- ID_ROTATE
+ ID_ROTATE,
+ ID_DELETE
};
class Element
@@ -71,6 +72,7 @@ class Element
virtual bool NodeContains(wxPoint2DDouble position) { return false; }
virtual void UpdateNodes() {}
virtual bool SetNodeParent(Element* parent) { return false; }
+ virtual void RemoveParent(Element* parent) {}
virtual void RotateNode(Element* parent) {}
virtual wxPoint2DDouble GetSwitchPoint(Element* parent,
wxPoint2DDouble parentPoint,