Re: [Freevo-devel] Re: What skin to use?

2003-03-23 Thread Brian J. Murrell
On Sat, Mar 22, 2003 at 11:29:28PM +0100, Dirk Meyer wrote:
 Yes. Try blue2 and go in the video menu, browse through it. Than press
 DISPLAY, and than again DISPLAY.

Cool.  While the iconic view has decent eye-candy potential, given
enough ancillary information, I do prefer the text view better.
More information for me to take in at once.

What I really, really would like to see is the item list scrollable.
When I hit DOWN while on the last item in the list, the list should
scroll up one item and the next item should appear on the bottom, and
vice-versa for going upwards.  I don't want to have to move my thumb
to another key just to see the next item or two.

 If you select an fxd file

fxd file?  I must have not been paying attention.

 you should
 see all the information in there.

 Oops, missing cvs add. Check out again please.

Works fine now.  :-)

 Now it should work with the images in the cvs. But I also added a test
 if image is None to avoid that in the future.

Good idea.

 Thanks for the report

NP.

b.

-- 
Brian J. Murrell


pgp0.pgp
Description: PGP signature


[Freevo-devel] Re: What skin to use?

2003-03-23 Thread Dirk Meyer
Aubin Paul wrote:
 I noticed you didn't comment on the view lists being implicitly
 scrollable.  Intentional?  :-)

 I would like to see that changed too; but I haven't had time to merge
 up to Dischi's new skin, when I do, that's one of the usability issues
 on my TODO list... 

Drop it from your TODO list. For the new skin, the handling is like I
think all people expect. If you merge our skins, you need to add your
skin to the setting of NEW_SKIN at the end of config.py.


Dischi

-- 
In the beginning was the word, and the word was content-type: text/plain


---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


AW: [Freevo-devel] Re: What skin to use?

2003-03-23 Thread Starkeeper
Ok, no more problems.
I did cvs update -d and now all works fine.

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Auftrag von Dirk
Meyer
Gesendet: Sonntag, 23. Marz 2003 21:02
An: [EMAIL PROTECTED]
Betreff: [Freevo-devel] Re: What skin to use?


Starkeeper wrote:
 Ok you'll get what you want, thats the output after a cvs update:

Still strange. I added more debug. Can you check out again please (and
check out with cvs update -d, there are some new needed
directories). After that, send me the trace again please.

Dischi

-- 
.sdrawkcab dootsrednu tub sdrawrof devil si efiL


---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel





---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-cvslog] freevo/src/gui Button.py,1.4,1.5 GUIObject.py,1.10,1.11 ListBox.py,1.5,1.6 ListItem.py,1.3,1.4

2003-03-23 Thread rshortt
Update of /cvsroot/freevo/freevo/src/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv20019

Modified Files:
Button.py GUIObject.py ListBox.py ListItem.py 
Log Message:
When selected these objects now use skin properties as well.


Index: Button.py
===
RCS file: /cvsroot/freevo/freevo/src/gui/Button.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Button.py   9 Mar 2003 21:37:06 -   1.4
--- Button.py   23 Mar 2003 23:19:39 -  1.5
***
*** 10,13 
--- 10,16 
  # ---
  # $Log$
+ # Revision 1.5  2003/03/23 23:19:39  rshortt
+ # When selected these objects now use skin properties as well.
+ #
  # Revision 1.4  2003/03/09 21:37:06  rshortt
  # Improved drawing.  draw() should now be called instead of _draw(). draw()
***
*** 160,166 
  raise TypeError, text
  
- # going to support sel_font soon!
  if button_default.font:   
! self.set_font(button_default.font.name, 
button_default.font.size, 
Color(button_default.font.color))
--- 163,169 
  raise TypeError, text
  
  if button_default.font:   
! self.set_font(self.label,
!   button_default.font.name, 
button_default.font.size, 
Color(button_default.font.color))
***
*** 169,172 
--- 172,185 
config.OSD_DEFAULT_FONTSIZE)
  
+ if button_selected.font:   
+ self.set_font(self.selected_label,
+   button_selected.font.name, 
+   button_selected.font.size, 
+   Color(button_selected.font.color))
+ else:
+ self.set_font(self.selected_label,
+   config.OSD_DEFAULT_FONTNAME,
+   config.OSD_DEFAULT_FONTSIZE)
+ 
  self.set_v_align(Align.BOTTOM)
  self.set_h_align(Align.CENTER)
***
*** 190,194 
  self.osd.screen.blit(box, self.get_position())
  
! if self.label:  self.label.draw()
  if self.border: self.border.draw()
  
--- 203,211 
  self.osd.screen.blit(box, self.get_position())
  
! if self.selected:
! self.selected_label.draw()
! else:
! self.label.draw()
! 
  if self.border: self.border.draw()
  
***
*** 216,221 
--- 233,250 
  self.label.set_text(text)
  
+ if not self.selected_label:
+ self.selected_label = Label(text)
+ self.selected_label.set_parent(self)
+ # XXX Set the background color to none so it is transparent.
+ self.selected_label.set_background_color(None)
+ self.selected_label.set_h_margin(self.h_margin)
+ self.selected_label.set_v_margin(self.v_margin)
+ else:
+ self.selected_label.set_text(text)
+ 
  self.label.set_v_align(Align.MIDDLE)
  self.label.set_h_align(Align.CENTER)
+ self.selected_label.set_v_align(Align.MIDDLE)
+ self.selected_label.set_h_align(Align.CENTER)
  
  
***
*** 227,231 
  
  
! def set_font(self, file, size, color):
  
  Set the font.
--- 256,260 
  
  
! def set_font(self, label, file, size, color):
  
  Set the font.
***
*** 233,240 
  Just hands the info down to the label. Might raise an exception.
  
! if self.label:
! self.label.set_font(file, size, color)
! else:
! raise TypeError, file
  
  
--- 262,266 
  Just hands the info down to the label. Might raise an exception.
  
! label.set_font(file, size, color)
  
  

Index: GUIObject.py
===
RCS file: /cvsroot/freevo/freevo/src/gui/GUIObject.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** GUIObject.py9 Mar 2003 21:37:06 -   1.10
--- GUIObject.py23 Mar 2003 23:19:39 -  1.11
***
*** 8,11 
--- 8,14 
  #---
  # $Log$
+ # Revision 1.11  2003/03/23 23:19:39  rshortt
+ # When selected these objects now use skin properties as well.
+ #
  # Revision 1.10  2003/03/09 21:37:06  rshortt
  # Improved drawing.  draw() should now be called instead of _draw(). draw()
***
*** 149,161 
  self.zir  = ZIndexRenderer.get_singleton()
  
! self.label  = None
! self.icon   = None
! self.bg_surface = None
! self.bg_image   = None
! self.parent = 

[Freevo-cvslog] freevo/src/gui ListBox.py,1.6,1.7 OptionBox.py,1.2,1.3

2003-03-23 Thread rshortt
Update of /cvsroot/freevo/freevo/src/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv14066

Modified Files:
ListBox.py OptionBox.py 
Log Message:
OptionBox now uses skin properties.


Index: ListBox.py
===
RCS file: /cvsroot/freevo/freevo/src/gui/ListBox.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ListBox.py  23 Mar 2003 23:19:39 -  1.6
--- ListBox.py  24 Mar 2003 00:37:06 -  1.7
***
*** 10,13 
--- 10,16 
  # ---
  # $Log$
+ # Revision 1.7  2003/03/24 00:37:06  rshortt
+ # OptionBox now uses skin properties.
+ #
  # Revision 1.6  2003/03/23 23:19:39  rshortt
  # When selected these objects now use skin properties as well.
***
*** 240,243 
--- 243,253 
  
  
+ def sort_items(self):
+ (x, y) = (0, 0)
+ for item in self.items:
+ item.set_position(x,y)
+ y = y + item.height
+ 
+ 
  def add_item(self, item=None, text=None, value=None):
  if not item:
***
*** 294,304 
  raise TypeError, 'Not all needed variables set.'
  
! 
! (x, y) = (0, 0)
  for item in self.items:
- item.set_position(x,y)
- y = y + item.height
  item.draw(self.surface)
! 
  RegionScroller._draw(self)
  
--- 304,311 
  raise TypeError, 'Not all needed variables set.'
  
! self.sort_items()
  for item in self.items:
  item.draw(self.surface)
! 
  RegionScroller._draw(self)
  

Index: OptionBox.py
===
RCS file: /cvsroot/freevo/freevo/src/gui/OptionBox.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** OptionBox.py9 Mar 2003 21:37:06 -   1.2
--- OptionBox.py24 Mar 2003 00:37:06 -  1.3
***
*** 10,13 
--- 10,16 
  # ---
  # $Log$
+ # Revision 1.3  2003/03/24 00:37:06  rshortt
+ # OptionBox now uses skin properties.
+ #
  # Revision 1.2  2003/03/09 21:37:06  rshortt
  # Improved drawing.  draw() should now be called instead of _draw(). draw()
***
*** 75,117 
  
  
! def __init__(self, text= , left=None, top=None, width=None, height=None, 
   bg_color=None, fg_color=None, selected_bg_color=None,
   selected_fg_color=None, border=None, bd_color=None, 
   bd_width=None):
  
! GUIObject.__init__(self)
! 
! self.text   = text
! self.border = border
! self.h_margin   = 6
! self.v_margin   = 2
! self.bd_color   = bd_color
! self.bd_width   = bd_width
! self.width  = width
! self.height = height
! self.left   = left
! self.top= top
! self.bg_color   = bg_color
! self.fg_color   = fg_color
! self.label  = None
! self.selected_bg_color = selected_bg_color
  self.selected_fg_color = selected_fg_color
  
  
! # XXX: Place a call to the skin object here then set the defaults
! #  acodringly. self.skin is set in the superclass.
  
! if not self.width:self.width  = 75
! if not self.height:   self.height = 25
! if not self.left: self.left   = -100
! if not self.top:  self.top= -100
! if not self.bg_color: self.bg_color = Color(self.osd.default_bg_color)
! if not self.fg_color: self.fg_color = Color(self.osd.default_fg_color)
! if not self.selected_fg_color: self.selected_fg_color = self.fg_color
! if not self.selected_bg_color: self.selected_bg_color = Color((0,255,0,128))
! if not self.bd_color: self.bd_color = Color(self.osd.default_fg_color) 
! if not self.bd_width: self.bd_width = 2
! if not self.border:   self.border = Border(self, Border.BORDER_FLAT, 
!self.bd_color, self.bd_width)
  
  
--- 78,147 
  
  
! def __init__(self, text= , left=0, top=0, width=75, height=25, 
   bg_color=None, fg_color=None, selected_bg_color=None,
   selected_fg_color=None, border=None, bd_color=None, 
   bd_width=None):
  
! self.border= border
! self.bd_color  = bd_color
! self.bd_width  = bd_width
! self.bg_color  = bg_color
! self.fg_color  = fg_color
  self.selected_fg_color = selected_fg_color
+ self.selected_bg_color = selected_bg_color
+ self.max_visible   = 5
  
+ self.skin = skin.get_singleton()
  
! 

[Freevo-cvslog] freevo/WIP/RobShortt audioitem.py-testui,1.5,1.6

2003-03-23 Thread rshortt
Update of /cvsroot/freevo/freevo/WIP/RobShortt
In directory sc8-pr-cvs1:/tmp/cvs-serv15148a

Modified Files:
audioitem.py-testui 
Log Message:



Index: audioitem.py-testui
===
RCS file: /cvsroot/freevo/freevo/WIP/RobShortt/audioitem.py-testui,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** audioitem.py-testui 5 Mar 2003 03:43:04 -   1.5
--- audioitem.py-testui 24 Mar 2003 00:40:37 -  1.6
***
*** 10,13 
--- 10,16 
  # ---
  # $Log$
+ # Revision 1.6  2003/03/24 00:40:37  rshortt
+ # *** empty log message ***
+ #
  # Revision 1.5  2003/03/05 03:43:04  rshortt
  # *** empty log message ***
***
*** 390,399 
  
  pb.show()
- # osd.update()
- # time.sleep(5)
- # pb.destroy()
  
  
! def test_func(selfi, word=None):
  if word:
  pb = AlertBox('Your input was: '+word)
--- 393,399 
  
  pb.show()
  
  
! def test_func(self, word=None):
  if word:
  pb = AlertBox('Your input was: '+word)




---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-cvslog] freevo/WIP/RobShortt local_skin.fxd,NONE,1.1

2003-03-23 Thread rshortt
Update of /cvsroot/freevo/freevo/WIP/RobShortt
In directory sc8-pr-cvs1:/tmp/cvs-serv19587

Added Files:
local_skin.fxd 
Log Message:
My local_skin, here mainly to show my popup and font properties.  I would like to make 
these the default properties of the blue skins in the near future.  The defaults now 
don't look so great.


--- NEW FILE: local_skin.fxd ---
?xml version=1.0 ?
freevo
  skin geometry=768x576
main
  item label=tv name=Television icon= 
image=skins/xml/blue_round2/tv_watermark.png/
  item label=video name=Videos icon=
image=skins/xml/blue_round2/movie_watermark.png/
  item label=audio name=Music icon= 
image=skins/xml/blue_round2/music_watermark.png/
  item label=image name=Photos icon= 
image=skins/xml/blue_round2/image_watermark.png/
  item label=games name=Games icon= image=/
  item label=voicemail name=Voicemail icon= image=/
  item label=shutdown name=Shutdown icon= 
image=skins/xml/blue_round2/shutdown_watermark.png /
/main

!--
**
POPUP DEFINITIONS 

A popup definition is only a link to a specific layout, like menu areas

--

font label=widget name=Arial_Bold size=12 color=0xff/
font label=selected widget name=Arial_Bold size=12 color=0x164668/

popup type=default layout=popup/

layout label=popup
  background
rectangle color=0x00 size=1 bgcolor=0x001F4A95/
  /background
  content type=text spacing=10 color=0xff font=default
item type=default font=widget
  rectangle bgcolor=0x00164668 size=0/
/item
item type=selected font=selected widget
  rectangle bgcolor=0x00ff size=0/
/item
  /content
/layout


  /skin
/freevo




---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog