Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
5b2bec1b
Commit
5b2bec1b
authored
Jun 18, 2020
by
Samuel GAIST
Browse files
[widgets][algorithmeditor] Add tooltip to all buttons
parent
303106cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/widgets/algorithmeditor.py
View file @
5b2bec1b
...
...
@@ -347,6 +347,8 @@ class ParameterEditor(DeletableEditor):
def
__init__
(
self
,
parent
=
None
):
super
().
__init__
(
parent
=
None
)
self
.
delete_button
.
setToolTip
(
self
.
tr
(
"Remove parameter"
))
self
.
name_lineedit
=
QLineEdit
()
self
.
name_lineedit
.
setValidator
(
QRegularExpressionValidator
(
NAME_REGULAREXPRESSION
,
self
)
...
...
@@ -380,6 +382,8 @@ class ResultEditor(DeletableEditor):
def
__init__
(
self
,
dataformat_model
,
parent
=
None
):
super
().
__init__
(
parent
)
self
.
delete_button
.
setToolTip
(
self
.
tr
(
"Remove result"
))
proxy_model
=
QSortFilterProxyModel
()
proxy_model
.
setSourceModel
(
dataformat_model
)
proxy_model
.
setFilterRegExp
(
...
...
@@ -514,9 +518,15 @@ class GroupEditor(DeletableEditor):
self
.
dataformat_model
=
dataformat_model
self
.
delete_button
.
setToolTip
(
self
.
tr
(
"Remove group"
))
self
.
name_lineedit
=
QLineEdit
()
self
.
inputs_widget
=
IOWidget
(
self
.
tr
(
"Inputs"
),
self
.
dataformat_model
)
self
.
inputs_widget
.
add_button
.
setToolTip
(
self
.
tr
(
"Add input"
))
self
.
inputs_widget
.
remove_button
.
setToolTip
(
self
.
tr
(
"Remove input"
))
self
.
outputs_widget
=
IOWidget
(
self
.
tr
(
"Outputs"
),
self
.
dataformat_model
)
self
.
outputs_widget
.
add_button
.
setToolTip
(
self
.
tr
(
"Add output"
))
self
.
outputs_widget
.
remove_button
.
setToolTip
(
self
.
tr
(
"Remove output"
))
self
.
unsynchronized_checkbox
=
QCheckBox
(
self
.
tr
(
"Unsynchronized"
))
self
.
groupbox
=
QGroupBox
()
self
.
loop_groupbox
=
QGroupBox
(
self
.
tr
(
"Loop"
))
...
...
@@ -612,14 +622,17 @@ class AlgorithmEditor(AbstractAssetEditor):
self
.
group_list_widget
=
EditorListWidget
()
self
.
add_group_button
=
QPushButton
(
self
.
tr
(
"+"
))
self
.
add_group_button
.
setToolTip
(
self
.
tr
(
"Add group"
))
self
.
add_group_button
.
setFixedSize
(
30
,
30
)
self
.
parameter_list_widget
=
EditorListWidget
()
self
.
add_parameter_button
=
QPushButton
(
self
.
tr
(
"+"
))
self
.
add_parameter_button
.
setToolTip
(
self
.
tr
(
"Add parameter"
))
self
.
add_parameter_button
.
setFixedSize
(
30
,
30
)
self
.
result_list_widget
=
EditorListWidget
()
self
.
add_result_button
=
QPushButton
(
self
.
tr
(
"+"
))
self
.
add_result_button
.
setToolTip
(
self
.
tr
(
"Add result"
))
self
.
add_result_button
.
setFixedSize
(
30
,
30
)
self
.
dataformat_model
=
DataFormatModel
()
...
...
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