1
0
forked from IPKM/nmreval
closes #123

Co-authored-by: Dominik Demuth <dominik.demuth@physik.tu-darmstadt.de>
Reviewed-on: IPKM/nmreval#192
This commit is contained in:
2023-12-28 16:58:37 +00:00
parent 694d47267d
commit 24bba43b40
3 changed files with 27 additions and 6 deletions

View File

@ -410,6 +410,7 @@ class DataTree(QtWidgets.QTreeWidget):
self.ctx_sets(evt, menu)
def ctx_graphs(self, evt, menu):
copy_action = menu.addAction('Replicate graph!')
del_action = menu.addAction('Exterminate graph!')
sort_menu = menu.addMenu('Sort sets')
@ -436,6 +437,10 @@ class DataTree(QtWidgets.QTreeWidget):
for gid in graphs:
self.management.delete_graph(gid)
elif action == copy_action:
for gid in graphs:
self.management.copy_graph(gid)
elif action.parent() == col_menu:
for gid in graphs:
self.management.set_cycle(self.management.graphs[gid].sets, action.text())