/[gnue]/gnue-designer/src/forms/LayoutEditor/ReorderFocus.py
ViewVC logotype

Diff of /gnue-designer/src/forms/LayoutEditor/ReorderFocus.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jcater, Tue Aug 12 22:45:13 2003 UTC revision 1.2 by jcater, Wed Aug 13 23:43:08 2003 UTC
# Line 28  Line 28 
28    
29  import sys, string  import sys, string
30  from gnue.common.apps import GDebug  from gnue.common.apps import GDebug
31    from WidgetFocusTab import WidgetFocusTab
32  #  #
33  #  #
34  #  #
# Line 39  class ReorderFocus: Line 39  class ReorderFocus:
39    def start(self, page):    def start(self, page):
40      self.list = []      self.list = []
41      self.page = page      self.page = page
42      print "I am SOOO there, dude!"      self.page.walk(self._buildList)
43    
44        i = 0
45        for tab in self.list:
46          tab.setOrder(i)
47          i += 1
48    
49      def _buildList(self, object):
50        # TODO: More intelligence
51        # TODO: allow only cycling thru current block, selection, or page
52        if object._type in ('GFEntry','GFButton'):
53          self.list.append(WidgetFocusTab(self.instance, object))
54    
55    def end(self):    def end(self):
56      pass      for object in self.list:
57          object.close()
58        self.list = []
59    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26