changeset 1513:5d4c7ec05bcd

Add comments
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 10 May 2011 23:43:12 +0800
parents 89426a38752f
children fa4d0480d6cb
files pyink/FSM_window.py
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/FSM_window.py	Tue May 10 23:23:29 2011 +0800
+++ b/pyink/FSM_window.py	Tue May 10 23:43:12 2011 +0800
@@ -1022,6 +1022,14 @@
     pass
 
 
+## \brief Management selections
+#
+# There is only one state, control points of a transition, or
+# transition being selected at any instance.  This class manage
+# selection to keep the requirement consisted.  When caller select a
+# new state, control points of a transition, or transition, the class
+# will de-select previous one automatically.
+#
 class _select_manager(object):
     selected_state = None
     selected_transition = None
@@ -1069,6 +1077,8 @@
         self.deselect = hide
         pass
 
+    ## \brief Forget all state of the instance
+    #
     def reset(self):
         try:
             del self.deselect
@@ -1081,6 +1091,12 @@
     pass
 
 
+## \brief Handle popup menu for states and transitions.
+#
+# _FSM_popup.popup_install_handler() must be called to install event
+# handlers.  It should be called when FSM_window entering a new mode
+# since it will ungrab all events to activate a new mode.
+#
 class _FSM_popup(object):
     _window = None
     _compview = None