Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
asn1-value-editor
Commits
7fb9298d
Commit
7fb9298d
authored
Jul 18, 2016
by
Maxime Perrotin
Browse files
Fix random TCs
parent
74362e90
Changes
2
Show whitespace changes
Inline
Side-by-side
asn1_value_editor/asn1_value_editor.py
View file @
7fb9298d
...
...
@@ -677,7 +677,7 @@ class asn1Editor(QTreeView):
self
.
backend
.
sendTC
(
self
.
asn1Instance
)
def
loadTC
(
self
):
''' Load/Decode a TC and populate the values in the model '''
''' Load/Decode a TC and populate the values in the model
XXX fix this with ctypes
'''
filename
=
QFileDialog
.
getOpenFileName
(
self
,
"Open TC"
,
"."
,
"ASN.1 Variable (*.tc)"
)[
0
]
if
len
(
filename
)
==
0
:
return
...
...
asn1_value_editor/sdlHandler.py
View file @
7fb9298d
...
...
@@ -703,12 +703,18 @@ class sdlHandler(QObject):
# tc with a param, use the Send button
for
vals
in
self
.
param_tc_editors
:
if
vals
[
'name'
]
==
name
:
argpy
=
vn
.
fromValueNotationToPySide
(
name
,
arg
)
vals
[
'editor'
].
updateVariable
(
argpy
)
# Can't call click from this here, must send a signal
asn1Instance
=
vals
[
'editor'
].
asn1Instance
ASN1_AST
=
self
.
proc
.
dataview
sort
=
ASN1_AST
[
vals
[
'editor'
].
item
[
'nodeTypename'
]].
type
vn
.
valueNotationToCTypes
(
gser
=
arg
,
dest
=
asn1Instance
,
sort
=
sort
,
ASN1Mod
=
ASN1
,
ASN1_AST
=
ASN1_AST
)
vals
[
'editor'
].
updateVariable
()
# Send a signal to click on the button
self
.
clicker
.
connect
(
vals
[
'send_btn'
].
click
)
self
.
clicker
.
emit
()
#vals['send_btn'].click()
def
random_step
(
self
):
''' One step of random simulation '''
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment