Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zhang, Tong
Online Model App
Commits
7876bf9f
Commit
7876bf9f
authored
Aug 09, 2021
by
Tong Zhang
Browse files
UI: Update UI.
parent
5a832bc7
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/myApp/ui/resources_rc.py
View file @
7876bf9f
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/myApp/ui/ui_app.py
View file @
7876bf9f
...
...
@@ -90,6 +90,17 @@ class Ui_MainWindow(object):
self
.
new_cset_dsbox
.
setSingleStep
(
0.1
)
self
.
new_cset_dsbox
.
setObjectName
(
"new_cset_dsbox"
)
self
.
horizontalLayout
.
addWidget
(
self
.
new_cset_dsbox
)
self
.
label_12
=
QtWidgets
.
QLabel
(
self
.
centralwidget
)
self
.
label_12
.
setObjectName
(
"label_12"
)
self
.
horizontalLayout
.
addWidget
(
self
.
label_12
)
self
.
update_rate_dsbox
=
QtWidgets
.
QDoubleSpinBox
(
self
.
centralwidget
)
self
.
update_rate_dsbox
.
setPrefix
(
""
)
self
.
update_rate_dsbox
.
setDecimals
(
1
)
self
.
update_rate_dsbox
.
setMinimum
(
0.1
)
self
.
update_rate_dsbox
.
setMaximum
(
10.0
)
self
.
update_rate_dsbox
.
setProperty
(
"value"
,
1.0
)
self
.
update_rate_dsbox
.
setObjectName
(
"update_rate_dsbox"
)
self
.
horizontalLayout
.
addWidget
(
self
.
update_rate_dsbox
)
self
.
gridLayout
.
addLayout
(
self
.
horizontalLayout
,
1
,
0
,
1
,
1
)
self
.
tabWidget
=
QtWidgets
.
QTabWidget
(
self
.
centralwidget
)
self
.
tabWidget
.
setObjectName
(
"tabWidget"
)
...
...
@@ -478,6 +489,8 @@ class Ui_MainWindow(object):
self
.
actionAuto_Update
.
toggled
[
'bool'
].
connect
(
MainWindow
.
onAutoUpdateModel
)
self
.
actionUpdate
.
triggered
.
connect
(
MainWindow
.
onUpdateModel
)
self
.
update_rate_dsbox
.
valueChanged
[
'double'
].
connect
(
MainWindow
.
on_update_rate
)
QtCore
.
QMetaObject
.
connectSlotsByName
(
MainWindow
)
def
retranslateUi
(
self
,
MainWindow
):
...
...
@@ -491,6 +504,8 @@ class Ui_MainWindow(object):
"Click to see the details of selected device."
))
self
.
elem_probe_btn
.
setText
(
_translate
(
"MainWindow"
,
"info"
))
self
.
label_2
.
setText
(
_translate
(
"MainWindow"
,
"Proposed Setting"
))
self
.
label_12
.
setText
(
_translate
(
"MainWindow"
,
"Update Rate"
))
self
.
update_rate_dsbox
.
setSuffix
(
_translate
(
"MainWindow"
,
" Hz"
))
self
.
label_3
.
setText
(
_translate
(
"MainWindow"
,
"Show results after"
))
self
.
target_elem_probe_btn
.
setToolTip
(
_translate
(
"MainWindow"
,
...
...
src/myApp/ui/ui_app.ui
View file @
7876bf9f
...
...
@@ -143,6 +143,35 @@
</property>
</widget>
</item>
<item>
<widget
class=
"QLabel"
name=
"label_12"
>
<property
name=
"text"
>
<string>
Update Rate
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QDoubleSpinBox"
name=
"update_rate_dsbox"
>
<property
name=
"prefix"
>
<string/>
</property>
<property
name=
"suffix"
>
<string>
Hz
</string>
</property>
<property
name=
"decimals"
>
<number>
1
</number>
</property>
<property
name=
"minimum"
>
<double>
0.100000000000000
</double>
</property>
<property
name=
"maximum"
>
<double>
10.000000000000000
</double>
</property>
<property
name=
"value"
>
<double>
1.000000000000000
</double>
</property>
</widget>
</item>
</layout>
</item>
<item
row=
"0"
column=
"0"
>
...
...
@@ -1102,6 +1131,22 @@
</hint>
</hints>
</connection>
<connection>
<sender>
update_rate_dsbox
</sender>
<signal>
valueChanged(double)
</signal>
<receiver>
MainWindow
</receiver>
<slot>
on_update_rate()
</slot>
<hints>
<hint
type=
"sourcelabel"
>
<x>
1686
</x>
<y>
884
</y>
</hint>
<hint
type=
"destinationlabel"
>
<x>
1730
</x>
<y>
858
</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>
onAbout()
</slot>
...
...
@@ -1113,5 +1158,6 @@
<slot>
onExportLatfile()
</slot>
<slot>
onUpdateModel()
</slot>
<slot>
onAutoUpdateModel()
</slot>
<slot>
on_update_rate()
</slot>
</slots>
</ui>
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