[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8975 - trunk/gnue-forms/src
From: |
jcater |
Subject: |
[gnue] r8975 - trunk/gnue-forms/src |
Date: |
Fri, 3 Nov 2006 18:18:31 -0600 (CST) |
Author: jcater
Date: 2006-11-03 18:18:30 -0600 (Fri, 03 Nov 2006)
New Revision: 8975
Modified:
trunk/gnue-forms/src/GFParser.py
Log:
added labels to tags; converted some plain-text descriptions to u_()
Modified: trunk/gnue-forms/src/GFParser.py
===================================================================
--- trunk/gnue-forms/src/GFParser.py 2006-11-04 00:17:03 UTC (rev 8974)
+++ trunk/gnue-forms/src/GFParser.py 2006-11-04 00:18:30 UTC (rev 8975)
@@ -46,6 +46,7 @@
+root_tag = 'form'
##
@@ -61,7 +62,7 @@
be used in the Forms Designer package where we will
not want the loaded form to connect to databases, etc)
"""
- return GParser.loadXMLObject (buffer, xmlFormsHandler, 'GFForm', 'form',
+ return GParser.loadXMLObject (buffer, xmlFormsHandler, 'GFForm', root_tag,
initialize, attributes={"_instance": instance,
"_connections": instance.connections },
url = url)
@@ -69,7 +70,6 @@
xmlElements = None
-
def getXMLelements():
global xmlElements
@@ -83,6 +83,7 @@
'BaseClass': GFForm.GFForm,
'Required': True,
'SingleInstance': True,
+ 'Label': u_('Form'),
'Attributes': {
'title': {
'Typecast': GTypecast.text,
@@ -119,6 +120,7 @@
"A menu or submenu containing menu items and/or submenus"),
'BaseClass' : commanders.GFMenu,
'ParentTags' : ['form', 'menu'],
+ 'Label': u_('Menu'),
'Attributes' : {
'name': {
'Label' : u_("Name"),
@@ -134,6 +136,7 @@
'Description': u_(
"A menu item that fires a trigger when selected"),
'BaseClass' : commanders.GFMenuItem,
+ 'Label': u_('Menu Item'),
'ParentTags' : ['menu'],
'Attributes' : {
'name': {
@@ -189,6 +192,7 @@
'Description': u_("A toolbar containing tool buttons"),
'BaseClass' : commanders.GFToolbar,
'ParentTags' : ['form'],
+ 'Label': u_('Toolbar'),
'Attributes' : {
'name': {
'Label' : u_("Name"),
@@ -200,6 +204,7 @@
'Description': u_("A button on a toolbar"),
'BaseClass' : commanders.GFToolButton,
'ParentTags' : ['toolbar'],
+ 'Label': u_('Toolbar Button'),
'Attributes' : {
'name': {
'Label' : u_("Name"),
@@ -255,6 +260,7 @@
'Importable': True,
'SingleInstance': True,
'ParentTags': ('form','dialog'),
+ 'Label': u_('Logic'),
'Description': 'Separation layer that contains "Business logic": '
'blocks, fields, block-level and field-level
triggers.'},
@@ -264,6 +270,7 @@
'Importable': True,
'SingleInstance': True,
'ParentTags': ('form','dialog'),
+ 'Label': u_('Layout'),
'Description': 'Separation layer that contains all the '
'visual elements on the form.' ,
'Attributes': {
@@ -322,6 +329,7 @@
'Description': 'For {tabbed} or {popup} pages, this contains '
'the caption to use for the page.' } },
'ParentTags': ('layout',),
+ 'Label': u_('Page'),
'Description': 'Encapsulates visual elements to be displayed '
'on a page.' },
@@ -432,6 +440,7 @@
'{<datasource>} tag) that provides this block '
'with it\'s data.' } },
'ParentTags': ('logic',),
+ 'Label': u_('Block'),
'Description': 'A block contains instructions on how Forms '
'should interact with a datasource.' },
@@ -441,23 +450,23 @@
'name': {
'Unique': True,
'Typecast': GTypecast.name,
- 'Description': 'The unique ID of the label.' },
+ 'Description': u_('The unique ID of the label.') },
'text': {
'Required': True,
'Typecast': GTypecast.text,
- 'Description': 'The text to be displayed.' },
+ 'Description': u_('The text to be displayed.') },
'for': {
'Required': False,
'References': 'entry.name',
'Typecast': GTypecast.name,
- 'Description': 'If this label is for a specific object, '
- 'name it here.' },
+ 'Description': u_('If this label is for a specific object, '
+ 'name it here.') },
'alignment': {
'Typecast': GTypecast.name,
'ValueSet': {
- 'left': {'Label': _('Left')},
- 'right': {'Label': _('Right')},
- 'center': {'Label': _('Centered')} },
+ 'left': {'Label': u_('Left')},
+ 'right': {'Label': u_('Right')},
+ 'center': {'Label': u_('Centered')} },
'Default': "left",
'Description': 'The justification of the label. Can be one of '
'the following: {left}, {right}, or {center}. '
@@ -473,6 +482,7 @@
'block level.' } },
'Positionable': True,
'ParentTags': ('page','box','hbox','vbox'),
+ 'Label': u_('Label'),
'Description': 'Displays static text' },
'field': {
@@ -614,7 +624,7 @@
'Label': _('Perform queries case-sensitive'),
'Default': False,
'Description': 'If "N", the entry widget ignores the case '
- 'of the information entered into the query
mask.'
+ 'of the information entered into the query mask.'
},
'editable': {
'Description': 'Only allow this object to be edited if it '
@@ -646,6 +656,7 @@
'Typecast': GTypecast.boolean,
'Default': True } },
'ParentTags': ('block',),
+ 'Label': u_('Field'),
'Description': 'A field represents a column in the database table '
'designated by the block.' },
@@ -733,6 +744,7 @@
'for display.' } },
'Positionable': True,
'ParentTags': ('page','hbox','vbox','box','gridline'),
+ 'Label': u_('Entry'),
'Description': 'An {entry} is the visual counterpart to a {field}, '
'it defines how the data in a field will be displayed '
'and how it can be edited.'},
@@ -755,6 +767,7 @@
'Description': 'The {block} to which this scrollbar scrolls.' }
},
'Positionable': True,
'ParentTags': ('page','vbox','hbox','box'),
+ 'Label': u_('Scrollbar'),
'Description': 'A scrollbar is a visual element that lets the user '
'move vertically layout elements linked to it.' },
@@ -777,6 +790,7 @@
},
'Positionable': True,
'ParentTags': ('page','vbox','hbox','box'),
+ 'Label': u_('Box (Vertical)'),
'Description': 'A box is a visual element that draws a box around '
'other visual elements, thus providing logical '
'separation for them.' },
@@ -799,6 +813,7 @@
},
'Positionable': True,
'ParentTags': ('page','vbox','hbox','box'),
+ 'Label': u_('Box (Horizontal)'),
'Description': 'A box is a visual element that draws a box around '
'other visual elements, thus providing logical '
'separation for them.' },
@@ -819,9 +834,10 @@
'entries.' } },
'Positionable': True,
'ParentTags': ('page','box'),
- 'Description': 'A box is a visual element that draws a box around '
+ 'Label': u_('Box'),
+ 'Description': u_('A box is a visual element that draws a box around '
'other visual elements, thus providing logical '
- 'separation for them.' },
+ 'separation for them.') },
'grid': {
'BaseClass': GFObjects.GFGrid,
'Attributes': {
@@ -835,13 +851,14 @@
'Description': 'The block for this grid.' },
'rows': {
'Typecast': GTypecast.whole,
- 'Description': 'Overrides the rows setting defined at the '
- 'block level.'},
+ 'Description': u_('Overrides the rows setting defined at the '
+ 'block level.')},
},
'Positionable': True,
'ParentTags': ('page','box','hbox','vbox'),
- 'Description': 'Displays a grid control' },
+ 'Label': u_('Grid'),
+ 'Description': u_('A grid is a layout container grouping fields into
repeating rows.') },
'gridline': {
'BaseClass': GFObjects.GFGridLine,
'Attributes': {
@@ -852,7 +869,8 @@
},
'Positionable': True,
'ParentTags': ('grid'),
- 'Description': 'Contains all elements of a sing line in a grid' },
+ 'Label': u_('Grid Row'),
+ 'Description': u_('Contains all elements of a single line in a grid')
},
'image': {
'BaseClass': GFObjects.GFImage,
@@ -915,6 +933,7 @@
'entries.' } },
'Positionable': True,
'ParentTags': ('page','vbox','hbox','box'),
+ 'Label': u_('Image'),
'Description': 'Displays an image.' },
'component': {
@@ -952,6 +971,7 @@
'entries.' } },
'Positionable': True,
'ParentTags': ('page','vbox','hbox','box'),
+ 'Label': u_('Embedded Component'),
'Description': 'TODO' },
'button': {
@@ -996,6 +1016,7 @@
'Description': 'Action to be executed when the button is
fired'}},
'Positionable': True,
'ParentTags': ('page','vbox','hbox','box','gridline'),
+ 'Label': u_('Button'),
'Description': 'A visual element with text placed on it, that '
'the user can push or click, and that event can run '
'a bound trigger.' },
@@ -1004,6 +1025,7 @@
'BaseClass': GFObjects.GFOptions,
'UsableBySiblings': True,
'ParentTags': ('form','dialog'),
+ 'Label': u_('Options'),
'Description': 'TODO' },
'option': {
@@ -1018,6 +1040,7 @@
'Description': 'TODO' } },
'MixedContent': True,
'ParentTags': ('options',),
+ 'Label': u_('Option'),
'Description': 'TODO' },
'title': {
@@ -1036,6 +1059,7 @@
'SingleInstance': True,
'Deprecated': 'Use the <form> attribute "title" instead.',
'ParentTags': ('options',),
+ 'Label': u_('Form Title'),
'Description': 'TODO' },
'name': {
@@ -1053,6 +1077,7 @@
'MixedContent': True,
'SingleInstance': True,
'ParentTags': ('options',),
+ 'Label': u_('Name'),
'Description': 'TODO' },
'author': {
@@ -1070,6 +1095,7 @@
'MixedContent': True,
'SingleInstance': True,
'ParentTags': ('options',),
+ 'Label': u_('Form Author'),
'Description': 'TODO' },
'description':{
@@ -1087,6 +1113,7 @@
'MixedContent': True,
'SingleInstance': True,
'ParentTags': ('options',),
+ 'Label': u_('Description'),
'Description': 'TODO' },
'version': {
@@ -1104,6 +1131,7 @@
'MixedContent': True,
'SingleInstance': True,
'ParentTags': ('options',),
+ 'Label': u_('Version'),
'Description': 'TODO' },
'tip': {
@@ -1121,6 +1149,7 @@
'MixedContent': True,
'SingleInstance': True,
'ParentTags': ('options',),
+ 'Label': u_('Tip'),
'Description': 'TODO' },
'parameter': {
'BaseClass': GFObjects.GFParameter,
@@ -1156,6 +1185,7 @@
'Default': "char",
'Description': 'TODO' } },
'ParentTags': ('form','dialog'),
+ 'Label': u_('Parameter'),
'Description': 'A form can get parameters from the outer world '
'or a calling form, and can pass values back too '
'in these parameters.' },
@@ -1174,6 +1204,8 @@
dialog['Importable'] = True
dialog['Attributes']['style']['Default']='dialog'
dialog['ParentTags']= ('form',)
+ dialog['Label'] = u_('Dialog')
+
xmlElements.update({'dialog':dialog})
@@ -1221,7 +1253,7 @@
updates = {
'action': {'ParentTags': ('form')}
}))
-
+
#
# Add trigger elements
#
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8975 - trunk/gnue-forms/src,
jcater <=