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
VIGNET Pierre
cadbiom
Commits
1d687193
Commit
1d687193
authored
Jan 20, 2020
by
VIGNET Pierre
Browse files
[gui] Add todo: double click to item metadata; Fix typos
parent
fbab693e
Changes
2
Hide whitespace changes
Inline
Side-by-side
gui/cadbiom_gui/gt_gui/chart_controler.py
View file @
1d687193
...
...
@@ -116,6 +116,9 @@ class ChartControler(object):
model or node has changed. Used to dispatch related information in the GUI.
- edit_node: Inform Charter that a MacroNode will be edited.
TODO: just show metadata on double click on another item
=> add a signal to inform CharterInfo objects
:param model: Current chart model
:param mouse_role: Mouse action "select", "resizing", "moving"
:param current_node: Currently selected node
...
...
@@ -250,6 +253,8 @@ class ChartControler(object):
- Left click: Resize (a MacroNode) or move
- Right click: Open context menu
TODO: just show metadata on double click on another item
:param widget: gtk DrawingArea that emit the event
:param event: gdk mouse event with attributes (x, y)
:type widget: <NavView> or <ChartView>
...
...
@@ -316,6 +321,8 @@ class ChartControler(object):
if
self
.
current_node
and
self
.
current_node
.
is_macro
():
self
.
notify
(
"edit_node"
)
# TODO: just show metadata on double click on another item
if
event
.
button
==
1
:
# Left click
if
self
.
mouse_role
==
"select"
and
node
:
...
...
gui/cadbiom_gui/gt_gui/chart_misc_widgets.py
View file @
1d687193
...
...
@@ -194,6 +194,9 @@ class SearchManager(object):
def
on_show
(
self
,
widget
):
"""Show button callback: Show nodes of interest in the graph editor
Transitions with conditions where the selected nodes are involved
are also marked
"""
if
not
self
.
model
:
return
...
...
@@ -214,6 +217,8 @@ class SearchManager(object):
return
# Set the mark status of all selected nodes/transitions
# Transitions with conditions where the selected nodes are involved
# are also marked
self
.
model
.
set_search_mark
(
node_names
)
# Check/Display the marks in the nodes list
...
...
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