|
@@ -1,7 +1,7 @@
|
|
|
"""
|
|
|
Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
|
|
|
|
|
|
-Date: Wed Jan 24 10:24:10 2018
|
|
|
+Date: Wed Jan 24 15:02:21 2018
|
|
|
|
|
|
Model author: Yentl Van Tendeloo
|
|
|
Model name: Modelverse Visual Editor - Tkinter Version
|
|
@@ -6031,10 +6031,6 @@ class MainWindow(RuntimeClassBase, tk.Toplevel, SCCDWidget):
|
|
|
self.contains = [i for i in self.rendered if i["type"] == "contains"]
|
|
|
self.rendered = [i for i in self.rendered if i["type"] not in ["Group", "contains"]]
|
|
|
self.rendered.reverse()
|
|
|
- print("Got elements to render:")
|
|
|
- print("Groups: " + str(self.groups))
|
|
|
- print("Contains: " + str(self.contains))
|
|
|
- print("Others: " + str(self.rendered))
|
|
|
self.big_step.outputEventOM(Event("broad_cast", None, [self, Event("mv_request", None, ['alter_context', [current_rendered_model, 'formalisms/MM_render/graphical']])]))
|
|
|
|
|
|
def _init_key_status_enter(self):
|
|
@@ -6499,8 +6495,6 @@ class MainWindow(RuntimeClassBase, tk.Toplevel, SCCDWidget):
|
|
|
|
|
|
def _init_init_running_rerender_model_request_render_1_exec(self, parameters):
|
|
|
result = parameters[0]
|
|
|
- print("Got result: " + str(result))
|
|
|
- print("Finding elements:")
|
|
|
self.rendered = []
|
|
|
|
|
|
group_counter = 0
|
|
@@ -6508,7 +6502,6 @@ class MainWindow(RuntimeClassBase, tk.Toplevel, SCCDWidget):
|
|
|
edges = []
|
|
|
|
|
|
for elem in list(result):
|
|
|
- print("Got element: " + str(elem))
|
|
|
is_edge = False
|
|
|
attrs = {}
|
|
|
for key, value in elem.items():
|
|
@@ -6524,10 +6517,6 @@ class MainWindow(RuntimeClassBase, tk.Toplevel, SCCDWidget):
|
|
|
element_type = value
|
|
|
else:
|
|
|
attrs[key] = value
|
|
|
- print("ID: " + str(element_id))
|
|
|
- print("Is association: " + str(is_edge))
|
|
|
- print("Type: " + str(element_type))
|
|
|
- print("Attributes: " + str(attrs))
|
|
|
max_text = 0
|
|
|
|
|
|
if is_edge:
|
|
@@ -6536,7 +6525,6 @@ class MainWindow(RuntimeClassBase, tk.Toplevel, SCCDWidget):
|
|
|
groups[element_id] = cs_elem_id
|
|
|
else:
|
|
|
# Add the group
|
|
|
- print("Searching location in " + str(self.locations))
|
|
|
x, y = self.locations.get(element_id, (30 + (group_counter * 150) % 1000, 30 + ((group_counter / 10) * 150)))
|
|
|
self.rendered.append({"id": str(group_counter), "type": "Group", "x": x, "y": y, "__asid": element_id})
|
|
|
self.locations[element_id] = (x, y)
|
|
@@ -6616,7 +6604,6 @@ class MainWindow(RuntimeClassBase, tk.Toplevel, SCCDWidget):
|
|
|
def _init_mover_move_0_exec(self, parameters):
|
|
|
asid = parameters[0]
|
|
|
location = parameters[1]
|
|
|
- print("MOVE LOCATION")
|
|
|
self.locations[asid] = location
|
|
|
|
|
|
def initializeStatechart(self):
|