[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r6923 - trunk/gnue-designer/src/forms/wizards
From: |
jan |
Subject: |
[gnue] r6923 - trunk/gnue-designer/src/forms/wizards |
Date: |
Tue, 25 Jan 2005 17:52:48 -0600 (CST) |
Author: jan
Date: 2005-01-25 17:52:47 -0600 (Tue, 25 Jan 2005)
New Revision: 6923
Modified:
trunk/gnue-designer/src/forms/wizards/CreateWebForm.py
Log:
Improve wizard output
- create additional hooks for block selection
- grey-out non selected field
Modified: trunk/gnue-designer/src/forms/wizards/CreateWebForm.py
===================================================================
--- trunk/gnue-designer/src/forms/wizards/CreateWebForm.py 2005-01-25
10:15:23 UTC (rev 6922)
+++ trunk/gnue-designer/src/forms/wizards/CreateWebForm.py 2005-01-25
23:52:47 UTC (rev 6923)
@@ -389,9 +389,9 @@
'top: %spx;' % self.yBase +\
'left: %spx;\n' % self.xBase +\
'width: %spx;' % (self.Xsize*self.Xraster) +\
- 'height: %spx;' % (self.Ysize*self.Yraster) +\
+ 'height: %spx;\n' % (self.Ysize*self.Yraster) +\
'border-width: 1px;'+\
- 'border-style: solid;background-color:#EEEEEE;" align="center">\n'
+ 'border-style: solid;\nbackground-color:#EEEEEE;" align="center">\n'
outp+=' '
outp+='</DIV>'
return outp
@@ -423,7 +423,7 @@
'left: %spx;\n' %
(max([self.Xsize*self.Xraster,540])/2+self.xBase-270) +\
'width: %spx;' % 540 +\
'border-width: 1px;'+\
- 'border-style: solid;background-color:#EEEEEE;" align="center">\n'
+ 'border-style: solid;\nbackground-color:#EEEEEE;" align="center">\n'
self.yBase=self.yBase+50
@@ -493,7 +493,7 @@
'top: %spx;' % int(obj.Char__y*self.Yraster+self.yBase) +\
'left: %spx;' % int(obj.Char__x*self.Xraster+self.xBase) +\
'width: %spx;' % int(obj.Char__width*self.Xraster) +\
- 'height: %spx;' %
int(obj.Char__height*self.Yraster-self.baseline)
+ 'height: %spx;\n ' %
int(obj.Char__height*self.Yraster-self.baseline)
if visible==0:
pos_code+='visibility:hidden;'
@@ -504,6 +504,9 @@
else:
pos_code+='font-size: %spx;' % int(self.fontsize_entry)
+ if obj._type=='GFEntry':
+ pos_code+='background: #F6F6F6;'
+
if obj._type=='GFBox':
pos_code+='border-width: 1px; border-style: solid;"'
else:
@@ -523,9 +526,9 @@
else:
outp+=' <input type="text"'
- outp+=' name="%s" id="%s_%s_field" ' % (obj.name,obj.block,obj.field)
+ outp+=' name="%s"\n id="%s_%s_field" ' %
(obj.name,obj.block,obj.field)
- outp+='onfocus="getForm().gotoBlock('+"'%s'" % obj.block +\
+ outp+='\n onfocus="getForm().gotoBlock('+"'%s'" % obj.block +\
');"\n';
outp+=pos_code;
@@ -542,17 +545,17 @@
elif obj._type=='GFLabel':
- outp+=' <!-- Label %s -->\n' % obj.name
+ outp+='\n <!-- Label %s -->\n' % obj.name
outp+=' <DIV %s id="%s_label">%s</DIV>\n' %\
(pos_code,obj.name,obj.text)
elif obj._type=='GFButton':
- outp+=' <!-- Button %s -->\n' % obj.name
+ outp+='\n <!-- Button %s -->\n' % obj.name
outp+=' <button %s id="%s_button">%s</button>\n' % \
(pos_code,obj.name,obj.label)
elif obj._type=='GFBox':
- outp+=' <!-- Box %s -->\n' % obj.name
+ outp+='\n <!-- Box %s -->\n' % obj.name
outp+=' <div %s id="%s_box">%s</div>\n' % \
(pos_code,obj.name,obj.label)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r6923 - trunk/gnue-designer/src/forms/wizards,
jan <=