diff options
Diffstat (limited to 'Project/Line.cpp')
-rw-r--r-- | Project/Line.cpp | 11 |
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(); + } + } +} |