summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrenda-br2023-01-19 10:34:12 +0530
committerbrenda-br2023-01-19 10:34:12 +0530
commit4b65f30c2874f014d533dce9841d13b04b924d9a (patch)
tree6fb4fc041e513a3d61ab44f78e594c8d10cb5234
parent7dbb6b0e06281f37eff2179202a2ebdaf0fc2905 (diff)
downloadChemical-Simulator-GUI-4b65f30c2874f014d533dce9841d13b04b924d9a.tar.gz
Chemical-Simulator-GUI-4b65f30c2874f014d533dce9841d13b04b924d9a.tar.bz2
Chemical-Simulator-GUI-4b65f30c2874f014d533dce9841d13b04b924d9a.zip
Fix #33 Updated Lines when all unit operations are selected and moved
-rw-r--r--DockWidgets/__pycache__/DockWidget.cpython-37.pycbin4730 -> 4730 bytes
-rw-r--r--DockWidgets/__pycache__/DockWidgetCompoundSeparator.cpython-37.pycbin3614 -> 3614 bytes
-rw-r--r--DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37.pycbin10155 -> 10155 bytes
-rw-r--r--DockWidgets/__pycache__/DockWidgetFlash.cpython-37.pycbin3202 -> 3202 bytes
-rw-r--r--DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pycbin8986 -> 8986 bytes
-rw-r--r--DockWidgets/__pycache__/DockWidgetMixer.cpython-37.pycbin2388 -> 2388 bytes
-rw-r--r--DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pycbin5350 -> 5350 bytes
-rw-r--r--DockWidgets/__pycache__/DockWidgetSplitter.cpython-37.pycbin3023 -> 3023 bytes
-rw-r--r--Graphics.py19
-rw-r--r--Undo.datbin12144 -> 42133 bytes
10 files changed, 11 insertions, 8 deletions
diff --git a/DockWidgets/__pycache__/DockWidget.cpython-37.pyc b/DockWidgets/__pycache__/DockWidget.cpython-37.pyc
index 0ba8062..cca7be4 100644
--- a/DockWidgets/__pycache__/DockWidget.cpython-37.pyc
+++ b/DockWidgets/__pycache__/DockWidget.cpython-37.pyc
Binary files differ
diff --git a/DockWidgets/__pycache__/DockWidgetCompoundSeparator.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetCompoundSeparator.cpython-37.pyc
index 8d268fd..7bf913d 100644
--- a/DockWidgets/__pycache__/DockWidgetCompoundSeparator.cpython-37.pyc
+++ b/DockWidgets/__pycache__/DockWidgetCompoundSeparator.cpython-37.pyc
Binary files differ
diff --git a/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37.pyc
index 36c37df..34174b8 100644
--- a/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37.pyc
+++ b/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37.pyc
Binary files differ
diff --git a/DockWidgets/__pycache__/DockWidgetFlash.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetFlash.cpython-37.pyc
index 5598cca..9dfa718 100644
--- a/DockWidgets/__pycache__/DockWidgetFlash.cpython-37.pyc
+++ b/DockWidgets/__pycache__/DockWidgetFlash.cpython-37.pyc
Binary files differ
diff --git a/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc
index 2c0b566..d693fd0 100644
--- a/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc
+++ b/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc
Binary files differ
diff --git a/DockWidgets/__pycache__/DockWidgetMixer.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetMixer.cpython-37.pyc
index 8826d30..454fa28 100644
--- a/DockWidgets/__pycache__/DockWidgetMixer.cpython-37.pyc
+++ b/DockWidgets/__pycache__/DockWidgetMixer.cpython-37.pyc
Binary files differ
diff --git a/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc
index 3b7dff3..ec04e53 100644
--- a/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc
+++ b/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc
Binary files differ
diff --git a/DockWidgets/__pycache__/DockWidgetSplitter.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetSplitter.cpython-37.pyc
index 550ae4f..c888614 100644
--- a/DockWidgets/__pycache__/DockWidgetSplitter.cpython-37.pyc
+++ b/DockWidgets/__pycache__/DockWidgetSplitter.cpython-37.pyc
Binary files differ
diff --git a/Graphics.py b/Graphics.py
index 1478786..7d456fe 100644
--- a/Graphics.py
+++ b/Graphics.py
@@ -559,14 +559,17 @@ class NodeItem(QtWidgets.QGraphicsItem):
def mouseMoveEvent(self, event):
super(NodeItem, self).mouseMoveEvent(event)
- for op in self.output:
- for line in op.out_lines:
- line.pointA = line.source.get_center()
- line.pointB = line.target.get_center()
- for ip in self.input:
- for line in ip.in_lines:
- line.pointA = line.source.get_center()
- line.pointB = line.target.get_center()
+ items = self.graphicsView.items()
+ for i in items:
+ if(type(i) == NodeItem):
+ for op in i.output:
+ for line in op.out_lines:
+ line.pointA = line.source.get_center()
+ line.pointB = line.target.get_center()
+ for ip in i.input:
+ for line in ip.in_lines:
+ line.pointA = line.source.get_center()
+ line.pointB = line.target.get_center()
self.pos = event.scenePos()
self.obj.set_pos(self.pos)
diff --git a/Undo.dat b/Undo.dat
index 85026f9..b5ad0a9 100644
--- a/Undo.dat
+++ b/Undo.dat
Binary files differ