Commit 1d687193 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[gui] Add todo: double click to item metadata; Fix typos

parent fbab693e
......@@ -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:
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment