Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv31418
Modified Files:
directory.py
Log Message:
Changes in the table code of menu items:
o use percentage again, pixel sizes are bad because they don't scale
o add special handling to avoid hardcoding texts in the skin file
o new function for the skin: text_or_icon for this handling
Format for this texts inside a table:
ICON_<ORIENTATION>_<IMAGE_NAME>_<TEXT IF NO IMAGE IS THERE>
Index: directory.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/directory.py,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** directory.py 22 Oct 2003 03:00:11 -0000 1.54
--- directory.py 22 Oct 2003 18:26:08 -0000 1.55
***************
*** 10,13 ****
--- 10,22 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.55 2003/10/22 18:26:08 dischi
+ # Changes in the table code of menu items:
+ # o use percentage again, pixel sizes are bad because they don't scale
+ # o add special handling to avoid hardcoding texts in the skin file
+ # o new function for the skin: text_or_icon for this handling
+ #
+ # Format for this texts inside a table:
+ # ICON_<ORIENTATION>_<IMAGE_NAME>_<TEXT IF NO IMAGE IS THERE>
+ #
# Revision 1.54 2003/10/22 03:00:11 gsbarbieri
# Support icons instead of labels "on", "off" and "auto"
***************
*** 861,874 ****
if arg in self.modified_vars:
if arg == 'FORCE_SKIN_LAYOUT':
! item.name += str(getattr(self, arg))
elif getattr(self, arg):
! item.name += _('on')
else:
! item.name += _('off')
else:
if arg == 'FORCE_SKIN_LAYOUT':
! item.name += _('off')
else:
! item.name += _('auto')
# write folder.fxd
--- 870,884 ----
if arg in self.modified_vars:
if arg == 'FORCE_SKIN_LAYOUT':
! item.name += 'ICON_RIGHT_%s_%s' % (str(getattr(self, arg)),
! str(getattr(self, arg)))
elif getattr(self, arg):
! item.name += 'ICON_RIGHT_ON_' + _('on')
else:
! item.name += 'ICON_RIGHT_OFF_' + _('off')
else:
if arg == 'FORCE_SKIN_LAYOUT':
! item.name += 'ICON_RIGHT_OFF_' + _('off')
else:
! item.name += 'ICON_RIGHT_AUTO_' + _('auto')
# write folder.fxd
***************
*** 898,916 ****
if i in self.modified_vars:
if i == 'FORCE_SKIN_LAYOUT':
! name += str(getattr(self, i))
elif getattr(self, i):
! name += _('on')
else:
! name += _('off')
else:
if i == 'FORCE_SKIN_LAYOUT':
! name += _('off')
else:
! name += _('auto')
mi = menu_module.MenuItem(name, self.configure_set_var, i)
mi.description = descr
items.append(mi)
m = menu_module.Menu(_('Configure'), items)
! m.table = [ -1, 30 ] # < 0 == take all remaining space, > 1 pixels that this
column should use
m.back_one_menu = 2
menuw.pushmenu(m)
--- 908,927 ----
if i in self.modified_vars:
if i == 'FORCE_SKIN_LAYOUT':
! name += 'ICON_RIGHT_%s_%s' % (str(getattr(self, i)),
! str(getattr(self, i)))
elif getattr(self, i):
! name += 'ICON_RIGHT_ON_' + _('on')
else:
! name += 'ICON_RIGHT_OFF_' + _('off')
else:
if i == 'FORCE_SKIN_LAYOUT':
! name += 'ICON_RIGHT_OFF_' + _('off')
else:
! name += 'ICON_RIGHT_AUTO_' + _('auto')
mi = menu_module.MenuItem(name, self.configure_set_var, i)
mi.description = descr
items.append(mi)
m = menu_module.Menu(_('Configure'), items)
! m.table = (80, 20)
m.back_one_menu = 2
menuw.pushmenu(m)
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog