Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOHViewer
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Public
PASSOFT
SOHViewer
Commits
7bdccc39
Commit
7bdccc39
authored
1 year ago
by
Lan Dam
Browse files
Options
Downloads
Patches
Plain Diff
modify function and variable names to be more descriptive
parent
d0322059
No related branches found
No related tags found
1 merge request
!261
Feature for users to hide/show and reorder channels
Pipeline
#3623
passed with stage
in 6 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sohstationviewer/view/select_channels_to_show_dialog.py
+13
-8
13 additions, 8 deletions
sohstationviewer/view/select_channels_to_show_dialog.py
with
13 additions
and
8 deletions
sohstationviewer/view/select_channels_to_show_dialog.py
+
13
−
8
View file @
7bdccc39
...
...
@@ -19,11 +19,16 @@ class SelectChanelsToShowDialog(QDialog):
super
(
SelectChanelsToShowDialog
,
self
).
__init__
()
self
.
parent
=
parent
self
.
channel_list_widget1
=
self
.
create_chan_list_widget
(
# reorderablable_chan_list_widget: list widget where channels can be
# reordered by dragging and dropping, used to display SOH and waveform
# channels
self
.
reorderable_chan_list_widget
=
self
.
create_chan_list_widget
(
self
.
parent
.
plotting_data1
,
self
.
parent
.
pref_order
,
True
)
self
.
channel_list_widget2
=
self
.
create_chan_list_widget
(
# unreorderable_chan_list_widget: list widget where channels can NOT be
# reordered, used to display mass position channels
self
.
unreorderable_chan_list_widget
=
self
.
create_chan_list_widget
(
self
.
parent
.
plotting_data2
,
[],
False
)
...
...
@@ -86,11 +91,11 @@ class SelectChanelsToShowDialog(QDialog):
"
* Check to show/ uncheck to hide a channel.
\n\n
"
"
* Drop and drag channels in the first list to reorder.
"
)
main_layout
.
addWidget
(
label
)
main_layout
.
addWidget
(
self
.
chan
nel
_list_widget
1
)
main_layout
.
addWidget
(
self
.
reorderable_
chan_list_widget
)
label
=
QLabel
(
"
* Mass Position channels won
'
t be reorderable.
"
)
main_layout
.
addWidget
(
label
)
main_layout
.
addWidget
(
self
.
chan
nel
_list_widget
2
)
main_layout
.
addWidget
(
self
.
unreorderable_
chan_list_widget
)
button_layout
=
QtWidgets
.
QHBoxLayout
()
main_layout
.
addLayout
(
button_layout
)
...
...
@@ -132,10 +137,10 @@ class SelectChanelsToShowDialog(QDialog):
"""
new_pref_order
=
(
self
.
channel_list_widget
_to_plotting_data
(
self
.
chan
nel
_list_widget
1
,
self
.
parent
.
plotting_data1
))
self
.
channel_list_widget
_to_plotting_data
(
self
.
chan
nel
_list_widget
2
,
self
.
parent
.
plotting_data2
)
self
.
apply_selection
_to_plotting_data
_channel_visible
(
self
.
reorderable_
chan_list_widget
,
self
.
parent
.
plotting_data1
))
self
.
apply_selection
_to_plotting_data
_channel_visible
(
self
.
unreorderable_
chan_list_widget
,
self
.
parent
.
plotting_data2
)
self
.
parent
.
clear
()
self
.
parent
.
plot_channels
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment