Commit 5da1a071 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Update ASN.1 editor to support multiple variables

parent 4b2dd629
......@@ -355,9 +355,10 @@ class asn1Editor(QTreeView):
pass
return value
def getVariable(self, row=0):
def getVariable(self, root=None):
''' Read the ASN.1 variable from the tree editor '''
root = self.treeItem
root = root or self.treeItem
row = root.row()
name = root.text()
asnType = self.model.item(row, 1).text()
if asnType == 'SEQOF':
......@@ -435,7 +436,7 @@ class asn1Editor(QTreeView):
if plotters != None:
for plotter in plotters:
self.plotterBackend.updatePlot(plotter, value)
self.hideUnusedFields(root, True)
self.hideUnusedFields(root, True, row=row)
if self.plotterBackend is not None:
self.plotterBackend.refresh()
# Inform the thread to update the tree (expand all branches)
......
......@@ -2,7 +2,7 @@
# Resource object code
#
# Created: Wed Dec 24 18:12:18 2014
# Created: Wed Dec 24 18:33:01 2014
# by: The Resource Compiler for PySide (Qt v4.8.4)
#
# WARNING! All changes made in this file will be lost!
......
......@@ -89,6 +89,7 @@ class sdlHandler(object):
self.dock.hide()
# Dock widget to display the internal state
self.asn1_editor = asn1_value_editor.asn1Editor(self.parent)
self.asn1_editor.hideExtraColumns()
self.dock_state = QDockWidget('Internal state', self.parent)
self.dock_state.setFloating(True)
self.dock_state.resize(400, 400)
......
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