Commit 6bee87c9 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Complete signallist update in data dictionary

parent 5924721b
......@@ -2243,11 +2243,17 @@ class OG_MainWindow(QtGui.QMainWindow, object):
map(lambda elem: change_state(elem, False),
(in_sig, out_sig, states, labels, dcl, timers))
for each in context.input_signals:
sort = each.get('type', '')
if sort:
sort = sort.ReferencedTypeName
QtGui.QTreeWidgetItem(in_sig, [each['name'],
each.get('type', '')])
sort])
for each in context.output_signals:
sort = each.get('type', '')
if sort:
sort = sort.ReferencedTypeName
QtGui.QTreeWidgetItem(out_sig, [each['name'],
each.get('type', '')])
sort])
for each in sorted(context.mapping.viewkeys()):
QtGui.QTreeWidgetItem(states, [each,])
for each in context.labels:
......
......@@ -844,6 +844,8 @@ class TextSymbol(HorizontalSymbol):
try:
Signalroute.completion_list |= set(sig['name']
for sig in ast.signals)
# Here: update input signals of the process AST since the
# signature of the signals may have changed...TODO
CONTEXT.signals += ast.signals
except AttributeError:
# no AST, e.g. in case of syntax errors in the text area
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment