Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
asn1-value-editor
Commits
2e59ec9f
Commit
2e59ec9f
authored
Jan 02, 2015
by
Maxime Perrotin
Browse files
Add undo, redo and reset buttons
parent
2c905ff7
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
asn1_value_editor/resources.py
View file @
2e59ec9f
This diff is collapsed.
Click to expand it.
asn1_value_editor/sdlHandler.py
View file @
2e59ec9f
...
...
@@ -145,12 +145,8 @@ class sdlHandler(QObject):
self
.
running
=
not
self
.
running
if
self
.
running
:
self
.
dock
.
show
()
#self.dock_state.show()
#self.dock_simu.show()
else
:
self
.
dock
.
hide
()
#self.dock_state.hide()
#self.dock_simu.hide()
def
check_state
(
self
):
''' Highlight the current state on the statechart diagram '''
...
...
@@ -172,7 +168,8 @@ class sdlHandler(QObject):
# get internal variables, translate them to swig, and print them
typename
=
sort
.
ReferencedTypeName
.
replace
(
'-'
,
'_'
)
setter_ptr
=
getattr
(
self
.
dll
,
"_set_{}"
.
format
(
var
))
value_as_gser
=
target_state
[
idx
]
value
=
target_state
[
idx
]
print
"Restoring {} = {}"
,
var
,
value
.
GSER
()
def
on_event
(
self
,
tc_name
=
None
,
param
=
None
):
''' Process signals indicating that a PI was called in the shared lib:
...
...
simulation.ui
View file @
2e59ec9f
...
...
@@ -27,21 +27,29 @@
<widget
class=
"QListWidget"
name=
"log_tm"
/>
</item>
<item>
<widget
class=
"QLabel"
name=
"label_3"
>
<property
name=
"enabled"
>
<bool>
false
</bool>
</property>
<property
name=
"text"
>
<string>
Console
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QLineEdit"
name=
"lineEdit"
>
<property
name=
"enabled"
>
<bool>
false
</bool>
</property>
</widget>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
>
<item>
<widget
class=
"QToolButton"
name=
"resetButton"
>
<property
name=
"text"
>
<string>
Reset
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QToolButton"
name=
"undoButton"
>
<property
name=
"text"
>
<string>
Undo
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QToolButton"
name=
"redoButton"
>
<property
name=
"text"
>
<string>
Redo
</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
...
...
Write
Preview
Supports
Markdown
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