changeset 1496:042587afed2e

Add popup menu for transition
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 03 May 2011 12:35:04 +0800
parents 75cfacaa106e
children 08329d3bf452
files pyink/FSM_window.glade pyink/FSM_window.py
diffstat 2 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/FSM_window.glade	Tue May 03 01:45:14 2011 +0800
+++ b/pyink/FSM_window.glade	Tue May 03 12:35:04 2011 +0800
@@ -634,4 +634,25 @@
       <action-widget response="0">transition_cancel</action-widget>
     </action-widgets>
   </object>
+  <object class="GtkMenu" id="transition_menu">
+    <property name="visible">True</property>
+    <child>
+      <object class="GtkMenuItem" id="del_transition">
+        <property name="visible">True</property>
+        <property name="tooltip_text" translatable="yes">Delete the transition</property>
+        <property name="label" translatable="yes">Delete</property>
+        <property name="use_underline">True</property>
+        <signal name="activate" handler="on_del_transition_activate"/>
+      </object>
+    </child>
+    <child>
+      <object class="GtkMenuItem" id="edit_transition">
+        <property name="visible">True</property>
+        <property name="tooltip_text" translatable="yes">Edit properties of the transition</property>
+        <property name="label" translatable="yes">Edit</property>
+        <property name="use_underline">True</property>
+        <signal name="activate" handler="on_edit_transition_activate"/>
+      </object>
+    </child>
+  </object>
 </interface>
--- a/pyink/FSM_window.py	Tue May 03 01:45:14 2011 +0800
+++ b/pyink/FSM_window.py	Tue May 03 12:35:04 2011 +0800
@@ -236,6 +236,12 @@
 
     def on_transition_cancel_clicked(self, *args):
         pass
+
+    def on_del_transition_activate(self, *args):
+        pass
+
+    def on_edit_transition_activate(self, *args):
+        pass
     pass