commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r5841 - trunk/gnue-designer/src/forms/LayoutEditor


From: btami
Subject: r5841 - trunk/gnue-designer/src/forms/LayoutEditor
Date: Fri, 28 May 2004 02:51:56 -0500 (CDT)

Author: btami
Date: 2004-05-28 02:51:52 -0500 (Fri, 28 May 2004)
New Revision: 5841

Modified:
   trunk/gnue-designer/src/forms/LayoutEditor/LayoutEditor.py
Log:
simpified code

Modified: trunk/gnue-designer/src/forms/LayoutEditor/LayoutEditor.py
===================================================================
--- trunk/gnue-designer/src/forms/LayoutEditor/LayoutEditor.py  2004-05-27 
21:22:44 UTC (rev 5840)
+++ trunk/gnue-designer/src/forms/LayoutEditor/LayoutEditor.py  2004-05-28 
07:51:52 UTC (rev 5841)
@@ -800,23 +800,8 @@
     self.__wizardrunner.positioned_run(x=x, y=y, width=width, height=height)
 
   def onAutoArrange(self, event):
-    mode = self.mode
-    self.mode = 'refocus'
-    if mode == 'move':
-      event.dispatchAfter('Cancel:LayoutEditor:Select')
-    elif mode == 'positioning':
-      self.__wizardrunner.cancel()
-      # Yes, you are reading this right...
-      # I'm triggering the exact event that
-      # triggered this method. Blame it on
-      # the Tuesday night atmospheric crack
-      # levels.
-      self.dispatchEvent('LayoutEditor:AutoArrange')
-      return
-
-    self.reorderfocus.start(self.page)
-    self.reorderfocus.autoArrange()
     self.dispatchEvent('LayoutEditor:FocusOrder')
+    self.reorderfocus.autoArrange()
 
   def beginFocusOrder(self, event):
     mode = self.mode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]