SageTV Community  

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

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 12-08-2010, 10:46 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Showing my penchant for indecision... maybe I won't make any changes after all. How critical is this? I can't seem to resolve all requests for this issue because I've discovered that I've been going in circles.

I found old emails discussing the fact that Left was jumping to the Main Menu rather than returning to the custom STV. I changed it. Then, there were emails saying that Left was using Home to return to the Main Menu, but this caused problems where you couldn't use Left to jump to the Main Menu if it was a parent of the current menu because Home was issued & that returned the user to the custom STV. So, I changed it again such that Left started jumping directly to the Main Menu again instead of using Home. Now, the request is to have Left return to the custom STV instead of the Main Menu.

I suppose I could add yet another custom STV mode global variable so the calling STV could specify what it wants to do... but is it needed?

Currently, Home can be used to return to the custom STV. If you use Back and reach the end of the menu history, you'll return to the custom STV on the next usage of Back. If you manage to reach the Main Menu, then Exit's submenu has an option to return to the custom STV.

If I make the change again, this will break if you have it set to return to the custom STV when Home is used:
Quote:
Originally Posted by GKusnick View Post
My main concern, which I believe we resolved back in September, was that if I jump from a custom STV to the stock Main Menu, and then navigate into a menu from there, then Left should take me back out to the stock Main Menu where I came from rather than jumping all the way back to the custom STV. This does seem to be working now as I expect it to, so no change is needed there.

So.... do I leave it alone or is another variable needed to control how Left returns to the Main Menu on the menus where it does that? I just want to make sure that any changes for this don't get reversed again later.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #42  
Old 12-08-2010, 03:32 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
I guess my thinking is that you should do what makes sense and results in simple, clean code on your end, without worrying too much about trying to please everyone. Your first obligation should be to users of the stock STV and making sure their expectations are met with respect to Left, Back, and Home. Custom STV devs who need a slightly different behavior from the stock UI always have the option of creating an STVI to implement that behavior, and specifying that STVI as a dependency of their custom STV.
__________________
-- Greg
Reply With Quote
  #43  
Old 12-08-2010, 03:33 PM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
I agree.
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
Reply With Quote
  #44  
Old 12-08-2010, 05:07 PM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
IF you were to add another global variable, I'd say one that is a 'Left == BACK' mode - I think that is generally what SageMC and subsequently Phoenix are doing, but I'm totally fine having an STVi for the default UI that is packaged with Phoenix....

btl.
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
Reply With Quote
  #45  
Old 12-09-2010, 05:50 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by GKusnick View Post
I guess my thinking is that you should do what makes sense and results in simple, clean code on your end, without worrying too much about trying to please everyone. Your first obligation should be to users of the stock STV and making sure their expectations are met with respect to Left, Back, and Home. Custom STV devs who need a slightly different behavior from the stock UI always have the option of creating an STVI to implement that behavior, and specifying that STVI as a dependency of their custom STV.
The change regarding how Left was handled only affected how it jumped to the Main Menu & was only modified for this custom STV feature. Its functionality when not using custom STV mode wasn't affected. And, originally, it was needed for custom STVs so they didn't have to modify the default STV - which is now easier via plugins.

Quote:
Originally Posted by bialio View Post
IF you were to add another global variable, I'd say one that is a 'Left == BACK' mode - I think that is generally what SageMC and subsequently Phoenix are doing, but I'm totally fine having an STVi for the default UI that is packaged with Phoenix....
The functionality of Left wasn't in question -- it goes to the parent menu & is not always the same as Back. I currently have no plans to change that. The only difference I was concerned with relates to how it jumps to the Main Menu on the menus where that is what issuing Left accomplishes -- some people using custom STV mode want it to jump directly to the Main Menu, while others want it to use the Home command so it would return to the custom STV & they would thus never see the Main Menu.

Since you are OK with creating a plugin to change it the way you want it, I'll leave it the way it is for now. Let me know if that becomes an issue. It should be a fairly quick change for me to add if you find you really need it -- using a menu jump vs. Home, I mean; not Left == Back.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #46  
Old 12-09-2010, 12:15 PM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
So you are saying that Left triggers a couple of different responses in the default STV:

1) SageCommand("Back")
2) SageCommand("Home")
3) LaunchMenuWidget("Main Menu")

Or is it always 2 or 3, and it just resembles what 'Back' would do occasionally?

And in order to bypass the default Main Menu I'd want to make them all #2?
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient

Last edited by bialio; 12-09-2010 at 12:18 PM.
Reply With Quote
  #47  
Old 12-10-2010, 05:36 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
"Left" means: go to the current menu's parent menu. This is often a hard link to some menu, but is sometimes simply the Back command if there are many menus that could be the parent.

When the parent menu is the Main Menu, it is directly jumping to the Main Menu, but you want it to use the Home command. Search for this line & modify what its children do:
"REM go to Main Menu via Home command, or Direct jump to Main Menu if 'ReverseOutAnim' is true."

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #48  
Old 09-23-2011, 04:25 PM
Gustovier Gustovier is offline
Sage Aficionado
 
Join Date: Nov 2010
Location: Chicago
Posts: 460
If i'm using this technique to jump back to a specific meny in the default STV, how can I also pass in variables that the menu might make use of as well? I thought by simply setting them with the staticContext() would work, but it doesn't seem to be sticking...
Reply With Quote
  #49  
Old 09-23-2011, 04:57 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
You probably need to use global contexts.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #50  
Old 09-23-2011, 05:50 PM
Gustovier Gustovier is offline
Sage Aficionado
 
Join Date: Nov 2010
Location: Chicago
Posts: 460
Quote:
Originally Posted by tmiranda View Post
You probably need to use global contexts.
Thanks tmiranda, u know I figured it out just like a few mins before you replied. Can't believe i made that mistake..lol! (Dont drink and code)
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
How To: Add custom online video feed definitions (default STV; v7.0+) Opus4 SageTV v7 Customizations 14 04-18-2015 07:06 AM
How To: Add custom online video feed definitions (default STV; v6.4+) Opus4 SageTV Customizations 69 08-15-2010 10:13 AM
How To: Add custom online video feed definitions (default STV; v6.3.10) Opus4 SageTV Customizations 34 06-04-2008 08:11 PM
Custom STV: My ShowLogos STV working in Linux laurenglenn SageTV Linux 0 02-19-2006 05:49 PM


All times are GMT -6. The time now is 11:16 AM.


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