[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r10013 - in trunk/gnue-forms/src: . GFObjects
From: |
reinhard |
Subject: |
[gnue] r10013 - in trunk/gnue-forms/src: . GFObjects |
Date: |
Tue, 27 Oct 2009 11:54:42 -0500 (CDT) |
Author: reinhard
Date: 2009-10-27 11:54:42 -0500 (Tue, 27 Oct 2009)
New Revision: 10013
Modified:
trunk/gnue-forms/src/GFObjects/GFTabStop.py
trunk/gnue-forms/src/GFParser.py
Log:
Allow an entry outside a grid to be linked to the grid for handling of cursor
and page keys.
Modified: trunk/gnue-forms/src/GFObjects/GFTabStop.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFTabStop.py 2009-10-27 16:00:31 UTC (rev
10012)
+++ trunk/gnue-forms/src/GFObjects/GFTabStop.py 2009-10-27 16:54:42 UTC (rev
10013)
@@ -94,6 +94,13 @@
self._page = self.findParentOfType('GFPage')
self._page._entryList.append(self)
+ if hasattr(self, 'grid_link') and self.grid_link:
+ for grid in self._form.findChildrenOfType('GFGrid',
+ includeSelf=False, allowAllChildren=True):
+ if grid.name == self.grid_link:
+ self.__grid_link = grid
+ break
+
if not self.__grid_link:
self.__grid_link = self.findParentOfType('GFGrid')
Modified: trunk/gnue-forms/src/GFParser.py
===================================================================
--- trunk/gnue-forms/src/GFParser.py 2009-10-27 16:00:31 UTC (rev 10012)
+++ trunk/gnue-forms/src/GFParser.py 2009-10-27 16:54:42 UTC (rev 10013)
@@ -772,7 +772,14 @@
'Label': _('Display Mask'),
'Typecast': GTypecast.text,
'Description': 'Defines how the field data will be formatted '
- 'for display.' } },
+ 'for display.' },
+ 'grid_link': {
+ 'Typecast': GTypecast.name,
+ 'Label': _('Grid Link'),
+ 'Description': "If an entry is linked to a grid, the user will "
+ "be able to use the cursor up/down and page up/down "
+ "keys to move around in the grid while the focus "
+ "actually is in this entry."}},
'Positionable': True,
'ParentTags': ('page','hbox','vbox','box','gridline'),
'Label': u_('Entry'),
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r10013 - in trunk/gnue-forms/src: . GFObjects,
reinhard <=