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
511a9056
Commit
511a9056
authored
Aug 21, 2015
by
Maxime Perrotin
Browse files
Add checker panel to configure simulation
parent
e2ca9bfd
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
asn1_value_editor.qrc
View file @
511a9056
...
...
@@ -3,6 +3,7 @@
<file>
logging.ui
</file>
<file>
plotDialog.ui
</file>
<file>
simulation.ui
</file>
<file>
checker.ui
</file>
<file>
internalState.ui
</file>
<file>
singleEditor.ui
</file>
<file>
tasteLogo_white.png
</file>
...
...
asn1_value_editor/resources.py
View file @
511a9056
This diff is collapsed.
Click to expand it.
asn1_value_editor/sdlHandler.py
View file @
511a9056
...
...
@@ -218,7 +218,7 @@ class sdlHandler(QObject):
self
.
dock_state
=
None
self
.
asn1_editor
=
None
self
.
tree_items
=
{}
self
.
dock_simu
=
self
.
start_simu
()
self
.
dock_simu
,
self
.
dock_checker
=
self
.
start_simu
()
self
.
current_sdl_state
=
''
# Handle the state of all timers ({'timerName': 'set'/'unset'})
self
.
timers
=
{}
...
...
@@ -551,7 +551,7 @@ class sdlHandler(QObject):
def
start_simu
(
self
):
'''
Set up the simulation bay, from
simulation.ui
file
Set up the simulation
and checker
bay
s
, from
UI
file
s
This panel handles parameterless signals and
the simulation console
'''
...
...
@@ -560,13 +560,22 @@ class sdlHandler(QObject):
widgets
=
loader
.
load
(
ui
,
parent
=
self
.
parent
)
dock
=
QDockWidget
(
'Simulation bay'
,
self
.
parent
)
dock
.
setFloating
(
False
)
#dock.resize(400, 400)
dock
.
setObjectName
(
'Simulation'
)
self
.
parent
.
addDockWidget
(
Qt
.
RightDockWidgetArea
,
dock
)
#dock.setAllowedAreas(Qt.NoDockWidgetArea)
dock
.
setWidget
(
widgets
)
dock
.
show
()
return
dock
loader
=
QUiLoader
()
checker_widgets
=
loader
.
load
(
QFile
(
':/checker.ui'
),
parent
=
self
.
parent
)
checker_dock
=
QDockWidget
(
'Checker bay'
,
self
.
parent
)
checker_dock
.
setFloating
(
False
)
checker_dock
.
setObjectName
(
'Checker'
)
self
.
parent
.
addDockWidget
(
Qt
.
RightDockWidgetArea
,
checker_dock
)
checker_dock
.
setWidget
(
checker_widgets
)
checker_dock
.
show
()
return
dock
,
checker_dock
@
Slot
()
def
add_to_msc
(
self
,
direction
,
msg
):
...
...
checker.ui
0 → 100644
View file @
511a9056
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
MainEditor
</class>
<widget
class=
"QDialog"
name=
"MainEditor"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
471
</width>
<height>
425
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
<string>
Edit ASN.1 value
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_3"
>
<item
row=
"2"
column=
"0"
>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout"
>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
>
<item>
<widget
class=
"QToolButton"
name=
"resetButton"
>
<property
name=
"text"
>
<string>
Random
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QToolButton"
name=
"undoButton"
>
<property
name=
"text"
>
<string>
Exhaustive
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QToolButton"
name=
"redoButton"
>
<property
name=
"text"
>
<string>
Stop
</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label"
>
<property
name=
"text"
>
<string>
Automatic simulation and model checking
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<layout
class=
"QGridLayout"
name=
"tc_grid"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QTableWidget"
name=
"tableWidget"
>
<column>
<property
name=
"text"
>
<string>
Input
</string>
</property>
</column>
<column>
<property
name=
"text"
>
<string>
Condition
</string>
</property>
</column>
<column>
<property
name=
"text"
>
<string>
Feed
</string>
</property>
</column>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
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