Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
asn1-value-editor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
asn1-value-editor
Commits
c3c50d55
Commit
c3c50d55
authored
Jul 03, 2018
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use default value in GUI if set in ASN1
parent
7d4e4124
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
README.md
README.md
+1
-0
asn1_value_editor/asn1_value_editor.py
asn1_value_editor/asn1_value_editor.py
+5
-1
asn1_value_editor/gui.py
asn1_value_editor/gui.py
+2
-0
No files found.
README.md
View file @
c3c50d55
...
...
@@ -34,6 +34,7 @@ LICENSE: LGPL - see LICENSE file
CHANGELOG:
1.
6.5 - GUI can display default values if set in ASN.1 models
1.
6.4 - Fix printing help with --help
1.
6.3 - Fix PI import names in opengeode 2.x.x simulator
1.
6.2 - Use mono prefix to call msc2py.exe
...
...
asn1_value_editor/asn1_value_editor.py
View file @
c3c50d55
...
...
@@ -16,7 +16,7 @@
__author__
=
"Maxime Perrotin"
__license__
=
"LGPLv3"
__version__
=
"1.6.
4
"
__version__
=
"1.6.
5
"
__url__
=
"http://taste.tuxfamily.org"
import
sys
...
...
@@ -249,6 +249,10 @@ class asn1Editor(QTreeView):
# Create an instance of the ASN.1 type using the backend
self
.
asn1Instance
=
self
.
backend
.
typeInstance
()
def
setDefaultValue
(
self
):
# Update the value to get default values if set in ASN1
self
.
updateVariable
()
def
hideExtraColumns
(
self
):
''' Hide the columns containing the type and constraint '''
self
.
setColumnHidden
(
1
,
True
)
...
...
asn1_value_editor/gui.py
View file @
c3c50d55
...
...
@@ -429,6 +429,7 @@ def gui():
if
isinstance
(
editor
,
asn1Viewer
):
# TM Viewer
hasTM
=
True
editor
.
setAsn1Model
(
datamodel
.
tm
[
editor
.
objectName
()])
editor
.
setDefaultValue
()
g_tmPool
[
encoder_backend
.
tmId
]
=
editor
editor
.
setPlotterBackend
(
plotter
)
# Connect the plot_refresh signal from editors to the plot manager
...
...
@@ -461,6 +462,7 @@ def gui():
button
.
hide
()
else
:
# TC Editor
editor
.
setAsn1Model
(
datamodel
.
tc
[
editor
.
objectName
()])
editor
.
setDefaultValue
()
if
not
msgQ
:
encoder_backend
.
udpController
=
udp
for
button
in
myButtons
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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