Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nexus
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
nexus
Commits
2e1c6b85
Commit
2e1c6b85
authored
1 year ago
by
Destiny Kuehn
Committed by
Maeva Pourpoint
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
enable channel multiselection
parent
46c0d5f9
No related branches found
Branches containing commit
No related tags found
1 merge request
!22
Fix issue #38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nexus/nexus.py
+7
-6
7 additions, 6 deletions
nexus/nexus.py
with
7 additions
and
6 deletions
nexus/nexus.py
+
7
−
6
View file @
2e1c6b85
...
...
@@ -689,6 +689,8 @@ class NexusWindow(*load_ui("NexusWindow.ui")):
self
.
root_node
=
InventoryNode
(
'
root
'
)
self
.
inv_model
=
InventoryModel
(
self
.
root_node
,
self
)
self
.
uiInventoryTree
.
setModel
(
self
.
inv_model
)
self
.
uiInventoryTree
.
setSelectionMode
(
QtWidgets
.
QAbstractItemView
.
ExtendedSelection
)
self
.
selector
=
self
.
uiInventoryTree
.
selectionModel
()
self
.
inventory
=
obspyImproved
.
InventoryIm
()
...
...
@@ -771,17 +773,16 @@ class NexusWindow(*load_ui("NexusWindow.ui")):
self
.
reshape_tree
()
def
subtract
(
self
):
item
=
self
.
get_inv_obj_from_selection
()
self
.
inventory
.
delete
(
item
)
items
=
self
.
get_inv_obj_from_selection
()
for
item
in
items
:
i
=
item
.
model
().
get_node
(
item
).
_inv_obj
self
.
inventory
.
delete
(
i
)
self
.
inv_model
.
add_inventory
(
self
.
inventory
)
self
.
reshape_tree
()
def
get_inv_obj_from_selection
(
self
):
index_list
=
self
.
selector
.
selectedRows
()
if
len
(
index_list
)
!=
1
:
return
index
=
index_list
[
0
]
return
index
.
model
().
get_node
(
index
).
_inv_obj
return
index_list
def
calculate_responses
(
self
):
self
.
status_message
(
'
Calculating responses...
'
)
...
...
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