summaryrefslogtreecommitdiffstats
path: root/Project/Line.cpp
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/Line.cpp
parent8e00906e0517b335a6c33f682334bda3c1eadb69 (diff)
downloadPSP.git-06e57f5c75772dcba902e3032c756f79090f3424.tar.gz
PSP.git-06e57f5c75772dcba902e3032c756f79090f3424.tar.xz
PSP.git-06e57f5c75772dcba902e3032c756f79090f3424.zip
Delete implemented
Diffstat (limited to 'Project/Line.cpp')
-rw-r--r--Project/Line.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Project/Line.cpp b/Project/Line.cpp
index 0cc5d11..6c5457e 100644
--- a/Project/Line.cpp
+++ b/Project/Line.cpp
@@ -284,6 +284,7 @@ bool Line::GetContextMenu(wxMenu& menu)
{
menu.Append(ID_LINE_REMOVE_NODE, _("Remove node"));
}
+ menu.Append(ID_DELETE, _("Delete line"));
return true;
}
@@ -419,3 +420,13 @@ void Line::UpdateNodes()
}
}
}
+
+void Line::RemoveParent(Element* parent)
+{
+ for(int i=0; i<2; i++) {
+ if(parent == m_parentList[i]) {
+ m_parentList[i] = NULL;
+ UpdateSwitchesPosition();
+ }
+ }
+}