SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations > SageMC Custom Interface
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #101  
Old 03-30-2005, 05:04 PM
flashbacck flashbacck is offline
Sage Aficionado
 
Join Date: May 2004
Posts: 326
Quote:
Originally Posted by kayoti
But if you mean redirecting what images show up where in the stv, then you cannot change these things without Studio.
the lack of availability of studio is... irritating.
__________________
C2D e6320
P4M800Pro, 1gb DDR, 1100GB HDs
Hauppauge HVR-1600, HDHomerun, Geforce 6200
Reply With Quote
  #102  
Old 03-30-2005, 06:12 PM
JUC's Avatar
JUC JUC is offline
Sage Icon
 
Join Date: May 2004
Location: Vermont, USA
Posts: 1,399
Well, i got it working, er, i actually had it working. Nice to see that it works for .bat files too! However, for some reason, when I click on the Other Programs button, it brings up the files I placed in the //temp folder. All is fine. But, if I right arrow on the button, it brings up the the smaller window but it is blank. I can't scroll up or down to see the other programs. Any thoughts?
Thanks
JUC
Reply With Quote
  #103  
Old 03-30-2005, 06:58 PM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
I think I avoided that issue by using a .jpg for each program. I just did a .jpg of a TheaterTek icon and a Zoomplayer icon. That's all I see. I don't see the files (shortcuts) at all.



Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.

Last edited by gplasky; 03-30-2005 at 07:02 PM.
Reply With Quote
  #104  
Old 03-31-2005, 10:50 PM
kayoti kayoti is offline
Sage User
 
Join Date: Nov 2004
Posts: 57
Ok, I am working on a new skin for MC, here are a couple test shots. I am going for a minimalistic feel, but if you guys have any suggestions/desires, let me know

-kayoti



Reply With Quote
  #105  
Old 04-01-2005, 12:06 AM
Bohica's Avatar
Bohica Bohica is offline
Sage Advanced User
 
Join Date: Mar 2005
Posts: 218
Hey those look cool! Good job! What proram do you use to design your graphics?
Reply With Quote
  #106  
Old 04-01-2005, 03:58 AM
ukmgranger's Avatar
ukmgranger ukmgranger is offline
Sage Expert
 
Join Date: Apr 2004
Location: Derby England
Posts: 609
just to have them in colour would be nice!
Reply With Quote
  #107  
Old 04-01-2005, 06:47 AM
mlbdude's Avatar
mlbdude mlbdude is offline
Moderator
 
Join Date: May 2003
Location: Melbourne, Florida
Posts: 4,174
Quote:
Originally Posted by kayoti
Ok, I am working on a new skin for MC, here are a couple test shots. I am going for a minimalistic feel, but if you guys have any suggestions/desires, let me know

-kayoti
Very nice!
Reply With Quote
  #108  
Old 04-01-2005, 06:53 AM
mlbdude's Avatar
mlbdude mlbdude is offline
Moderator
 
Join Date: May 2003
Location: Melbourne, Florida
Posts: 4,174
On the topic of themes, I want to take them one step further. My desire would be to have an XML file in each theme folder that would contain information for font, font size, font color, background colors, and any other item that we can configure. To do this I need a Java class. I don't know Java enough to do this quickly and what I need is realy simple so if someone can create one for me I would apprecieate it.

Here is a sample XML file:

Code:
<theme>
   <global>
      <popup_background_color>#f0f0f0</popup_background_color>
   </global>
   <start_menu>
      <menu_font_name>Arial</menu_font_name>
      <menu_font_color>#fffff</menu_font_color>
   </start_menu>
</theme>
I just really need one static method:
string GetValue([path], [group], [element])

Ex. GetValue("c:\\theme.xml", "global", "popup_background_color")

Last edited by mlbdude; 04-01-2005 at 09:42 AM.
Reply With Quote
  #109  
Old 04-01-2005, 07:16 AM
edbmdave edbmdave is offline
Sage Aficionado
 
Join Date: Apr 2004
Location: Dallas
Posts: 365
Quote:
Originally Posted by kayoti
Ok, I am working on a new skin for MC, here are a couple test shots. I am going for a minimalistic feel, but if you guys have any suggestions/desires, let me know

-kayoti

Humm, Someone has talent. Very nice. Perhaps introduce a little color for the icons. Kind of like the muted colors in an old photo or perhaps think of the coloring in the Sky Captain and the World of Tomorrow, or stick with the greyscale. It is very nice...
Reply With Quote
  #110  
Old 04-01-2005, 07:47 AM
heffe2001's Avatar
heffe2001 heffe2001 is offline
Sage Icon
 
Join Date: Mar 2004
Location: Conover, NC
Posts: 1,269
Hmm, a Sky Captain-esque colored theme would be interesting..

Those icons are very nice, but like the others, a splash of color would definitely help bring them out (and very much improve the WAF of the theme, as it stands right now, she'd say it's to manly ).
__________________
Server: AMD Phenom 2 920 2.8ghz Quad, 16gb Ram, 4tb Storage, 1xHVR-2250, 1 Ceton Cable Card adapter, Windows 7 SP1
Reply With Quote
  #111  
Old 04-01-2005, 09:04 AM
kayoti kayoti is offline
Sage User
 
Join Date: Nov 2004
Posts: 57
Quote:
Originally Posted by Bohica
Hey those look cool! Good job! What proram do you use to design your graphics?
I used Maya to model the icons - nothing better than true 3d. Photoshop was used for everything else.
Reply With Quote
  #112  
Old 04-01-2005, 09:07 AM
kayoti kayoti is offline
Sage User
 
Join Date: Nov 2004
Posts: 57
Thank you all for the feedback. I am agreeing with you all about the Sky Captain idea and am very excited to try it out. Unfortunately I am a busy student so this weekend is devoted to projects... I promise to have a sample for you all first thing next week. Glad you enjoy my work

-kayoti
Reply With Quote
  #113  
Old 04-01-2005, 09:14 AM
kayoti kayoti is offline
Sage User
 
Join Date: Nov 2004
Posts: 57
Quote:
Originally Posted by mlbdude
On the topic of themes, I want to take them one step further. My desire would be to have an XML file in each theme folder that would contain information for font, font size, font color, background colors, and any other item that we can configure. To do this I need a Java class. I don't know Java enough to do this quickly and what I need is realy simple so if someone can create one for me I would apprecieate it.

Here is a sample XML file:
...Would be fantastic. I would be willing to learn some basic Java.
Reply With Quote
  #114  
Old 04-01-2005, 09:43 AM
Watter Watter is offline
Sage Advanced User
 
Join Date: May 2003
Posts: 233
welchkinsage.jar

Here's a jar file for you, mlbdude. Just drop it in the "jars" directory of SageTV and it will be accessible to the STV. Rather than being tied to this specific function, this class is a more generic XMLUtil that can be used for any XML related work you need. Right now it only has a few basic methods, but I can add whatever capability you would like.

It doesn't use static methods as written because the getValue() method you proposed needs a reference to the document that you want to get the value from. In java parlance, this class would be used like so:

Code:
XMLUtil xmlUtil = new XMLUtil();
xmlUtil.parse("/location/of/document/to/parse/document.xml");
String value = xmlUtil.getValue("global", "popup_background_color");
You can also pass the document location to the class constructor if you'd like:

Code:
XMLUtil xmlUtil = new XMLUtil("/location/of/document/to/parse/document.xml");
String value = xmlUtil.getValue("global", "popup_background_color");
You would want to store the created "xmlUtil" for future reference so that you don't have to reparse the xml file every time you want a value.

If you would prefer, I can modify the class to use only static methods. The user code would then be something like:
Code:
Document doc = XMLUtil.parse("/location/of/document/to/parse/document.xml");
String value = XMLUtil.getValue(doc, "global", "popup_background_color");
If we went in this direction, you would want to store the "doc" for future reference so that you don't have to continually reparse the doc every time you want a value. There are other ways to work this with static methods that might be a bit more elegant, so if that's what is needed, just let me know.

Finally, will you be retrieveing the values frequently? I would assume so unless you are retrieveing them once and then storing the values for future use. If you do intend to retrieve them frequently, then I would recommend that we wrap XMLUtil in a class that will cache the returned values. Doing lookups on an XML file, even one stored in memory, isn't terribly slow, but it's certainly not fast. One or two lookups won't cause much of a stir, but dozens or hundreds might cause a noticible hitch in UI rendering. Let me know if you're like this wrapper created. It's a simple process.
Reply With Quote
  #115  
Old 04-01-2005, 09:52 AM
mlbdude's Avatar
mlbdude mlbdude is offline
Moderator
 
Join Date: May 2003
Location: Melbourne, Florida
Posts: 4,174
I believe the lookups would be occurring on every page load. Similar to how the properties are read from the sage.properties file. I am not sure if those values are cached or not. I would suspect they are in memory though since the settings seem to be re-written when Sage is closed.

I can see how using a static method could be slow. I can load the XML class on startup and assign it to a global. At that point I would defer to you as to what would work the most efficient. Thanks!
Reply With Quote
  #116  
Old 04-01-2005, 10:02 AM
Watter Watter is offline
Sage Advanced User
 
Join Date: May 2003
Posts: 233
Properties files are cached naturally.

I'll get back to you in a bit with a new jar. I'll wrap the XMLUtil with something that will cache the values in a map so that lookups don't have a chance to become a problem.
Reply With Quote
  #117  
Old 04-01-2005, 10:46 AM
edbmdave edbmdave is offline
Sage Aficionado
 
Join Date: Apr 2004
Location: Dallas
Posts: 365
One request

MLBDude,

On the Recorded TV screen, you currently have a filter for "View All", "View Movie" etc...

How about added one for "View New" that would show programs that have not been watched, or call it "View Unwatched"..

thanks for all the great work.
Reply With Quote
  #118  
Old 04-01-2005, 10:56 AM
Watter Watter is offline
Sage Advanced User
 
Join Date: May 2003
Posts: 233
welchkinsage.jar

A new jar file is in place. This one contains a new class called "SageMCTheme". It's in the package "mlbdude" so it should be referenced as "mlbdude.SageMCTheme".

Somewhere in the code you need to load the Theme xml document. This only needs to be done once. If you need to load a new document for a different theme, just call this method again:
Code:
mlbdude.SageMCTheme.loadThemeDoc("/location/of/theme/xml/document/theme.xml");
Then, sprinkled throughout your code wherever needed, you can call:
Code:
mlbdude.SageMCTheme.getValue("global", "popup_background_color");
The values will be cached after their first lookup so there's no need to worry about calling this as many times as you'd like.

Let me know if this isn't your prefered usage or naming. I can change it to be whatever is convenient.
Reply With Quote
  #119  
Old 04-01-2005, 11:01 AM
mlbdude's Avatar
mlbdude mlbdude is offline
Moderator
 
Join Date: May 2003
Location: Melbourne, Florida
Posts: 4,174
Quote:
Originally Posted by Watter
welchkinsage.jar

A new jar file is in place. This one contains a new class called "SageMCTheme". It's in the package "mlbdude" so it should be referenced as "mlbdude.SageMCTheme".

Somewhere in the code you need to load the Theme xml document. This only needs to be done once. If you need to load a new document for a different theme, just call this method again:
Code:
mlbdude.SageMCTheme.loadThemeDoc("/location/of/theme/xml/document/theme.xml");
Then, sprinkled throughout your code wherever needed, you can call:
Code:
mlbdude.SageMCTheme.getValue("global", "popup_background_color");
The values will be cached after their first lookup so there's no need to worry about calling this as many times as you'd like.

Let me know if this isn't your prefered usage or naming. I can change it to be whatever is convenient.
All looks great! Thanks for jumping on this for me. I will play with it this weekend.
Reply With Quote
  #120  
Old 04-01-2005, 11:09 AM
skyw33 skyw33 is offline
Sage User
 
Join Date: Oct 2004
Posts: 27
run external program at sage screen saver event

Sorry to jump in here with something that appears to be a little off topic but... I would like to see a feature that would allow you to run an external program when the sage screen saver comes on. From what I understand this would be really easy to implement in an STV. The reason I want this is so that I can turn off my monitor whenever the sage screen saver comes on. I can't set this up in the windows power settings because it's not sensitive to when sage is working/sleeping.
skyw33
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 03:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.