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
  #1  
Old 04-22-2008, 11:07 PM
GollyJer's Avatar
GollyJer GollyJer is offline
Sage Aficionado
 
Join Date: Nov 2006
Posts: 318
Can View and List Type be set with Dynamic Menus?

Now that I've figured out how to filter videos with the dynamic menu xml I'm wondering if it's possible to set the Grouping and View settings. Something like the fake xml below.


Code:
<internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Movies">
  <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression>
  <evalExpression>java_util_List_add(PathFilterExprs, "V:\\Movies")</evalExpression>
  <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression>
  <evalExpression>ViewStyle("Category")</evalExpression>
  <evalExpression>DisplayListView("View By Folder")</evalExpression>
</internalScreenMenuItem>

<internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Download TV">
  <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression>
  <evalExpression>java_util_List_add(PathFilterExprs, "V:\\Downloads")</evalExpression>
  <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression>
  <evalExpression>ViewStyle("File-System")</evalExpression>
  <evalExpression>DisplayListView("View By List")</evalExpression>
</internalScreenMenuItem>

Last edited by GollyJer; 04-25-2008 at 12:19 PM. Reason: Updated to reflect the functions I found in Sage Studio.
Reply With Quote
  #2  
Old 04-24-2008, 12:17 AM
GollyJer's Avatar
GollyJer GollyJer is offline
Sage Aficionado
 
Join Date: Nov 2006
Posts: 318
OK, after taking a look inside of Studio for the first time, I think I found the methods that need to be called. The first is ViewStyle and the second is DisplayListView.

It's my understanding that these can be called using Dynamic Menu but I have no idea how to do it.

For the Movies menu item I want to call:
ViewStyle("Category")
DisplayListView("View By Folder")

and for the Downloads menu I want to call:
ViewStyle("File-System")
DisplayListView("View By List")

Any help is greatly appreciated. Thanks.
Reply With Quote
  #3  
Old 04-25-2008, 03:03 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
I cannot help very much as I don't use SageMC, but the functions you mention do not exist. I would imagine that you would either need to set a property value or a add a static context (like a local variable) to set these values.
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #4  
Old 04-25-2008, 07:53 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Try this:

Code:
        <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="My Videos by Category">
            <evalExpression>SetProperty("sagemc/ui/video_lib_view", "CATEGORY")</evalExpression>
        </internalScreenMenuItem>
        <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="My Videos by Folder">
            <evalExpression>SetProperty("sagemc/ui/video_lib_view", "FILE-SYSTEM")</evalExpression>
        </internalScreenMenuItem>
Dirk
Reply With Quote
  #5  
Old 04-26-2008, 09:51 PM
GollyJer's Avatar
GollyJer GollyJer is offline
Sage Aficionado
 
Join Date: Nov 2006
Posts: 318
Awesome. Thanks Dirk. I didn't realize (obviously) that those settings were in the properties file.

This is awesome. My dream menu system is lining up nicely.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
SageTV V6.2.6 Release Candidate is Ready! Narflex SageTV Beta Test Software 3 08-25-2007 11:00 PM


All times are GMT -6. The time now is 01:18 AM.


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