|
From: <fa...@us...> - 2007-04-28 16:56:43
|
Revision: 350
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=350&view=rev
Author: falkyre
Date: 2007-04-28 09:56:41 -0700 (Sat, 28 Apr 2007)
Log Message:
-----------
Skins can now handle translation (Zebons patch)
GUI Plugin can be named
Updated skins for MePo and Blue Two/ShowTimesGUI.xml
Modified Paths:
--------------
trunk/plugins/MyShowTimes/MediaPortal ShowTimes Plugins Suite.doc
trunk/plugins/MyShowTimes/ShowTimesGUI/ShowTimesGUI.cs
trunk/plugins/MyShowTimes/ShowTimesGUI/skin/Blue Two/ShowTimesGUI.xml
trunk/plugins/MyShowTimes/ShowTimesGUI/skin/MePo Wide/ShowTimesGUI.xml
Modified: trunk/plugins/MyShowTimes/MediaPortal ShowTimes Plugins Suite.doc
===================================================================
(Binary files differ)
Modified: trunk/plugins/MyShowTimes/ShowTimesGUI/ShowTimesGUI.cs
===================================================================
--- trunk/plugins/MyShowTimes/ShowTimesGUI/ShowTimesGUI.cs 2007-04-28 10:49:51 UTC (rev 349)
+++ trunk/plugins/MyShowTimes/ShowTimesGUI/ShowTimesGUI.cs 2007-04-28 16:56:41 UTC (rev 350)
@@ -356,7 +356,9 @@
TheaterInfo.GetTheaters();
MovieInfo.GetAllMovies();
-
+ GUIControl.DisableControl(GetID, DirectorCtrl.GetID);
+ GUIControl.DisableControl(GetID, PlotLabel.GetID);
+ GUIControl.DisableControl(GetID, plotarea.GetID);
//HideMovieControls();
//if (theaterDatesShown && getShowTimes && showMoviesForTheater)
@@ -445,16 +447,18 @@
GUIControl.EnableControl(GetID, buttonOne.GetID);
GUIControl.EnableControl(GetID, btnMovieTheaters.GetID);
- GUIControl.SetControlLabel(GetID, btnMovieTheaters.GetID, "Show Theaters");
+ GUIControl.SetControlLabel(GetID, btnMovieTheaters.GetID, GUILocalizeStrings.Get(71119922));
GUIControl.ShowControl(GetID, facadeView.GetID);
+ facadeView.Disabled = false;
+ facadeView.Focusable = true;
ShowListView(MovieInfo.Movies, true);
- GUIControl.SetControlLabel(GetID, buttonOne.GetID, "View:Big Icons");
+ GUIControl.SetControlLabel(GetID, buttonOne.GetID, GUILocalizeStrings.Get(417));
if (!String.IsNullOrEmpty(GUIPropertyManager.GetProperty("#showtimes_nextupdate")))
GUIControl.SetControlLabel(GetID, NextRefreshLabel.GetID, GUIPropertyManager.GetProperty("#showtimes_nextupdate"));
else
- GUIControl.SetControlLabel(GetID, NextRefreshLabel.GetID, "Next ShowTimes Refresh\n" + PluginSettings.NextPoll.ToLongDateString() + "\n@" + PluginSettings.NextPoll.ToShortTimeString());
+ GUIControl.SetControlLabel(GetID, NextRefreshLabel.GetID, GUILocalizeStrings.Get(71119925) + "\n" + PluginSettings.NextPoll.ToLongDateString() + "\n@" + PluginSettings.NextPoll.ToShortTimeString());
facadeView.View = GUIFacadeControl.ViewMode.SmallIcons;
mapSettings.ViewAs = 1;
@@ -645,6 +649,8 @@
{
//Hide facadeView
GUIControl.HideControl(GetID, facadeView.GetID);
+ facadeView.Disabled = true;
+ facadeView.Focusable = false;
//Hide the Movie Theater name
if (!showMoviesForTheater)
@@ -652,7 +658,7 @@
//Disable View button
GUIControl.DisableControl(GetID, buttonOne.GetID);
- GUIControl.SetControlLabel(GetID, btnMovieTheaters.GetID, "Show All Movies");
+ GUIControl.SetControlLabel(GetID, btnMovieTheaters.GetID, GUILocalizeStrings.Get(71119921));
//Get Filename of currently selected item
string posterFileName = MovieInfo.GetPosterImage(selectedMovieName);
@@ -663,10 +669,10 @@
poster.SetFileName(posterFileName);
//Get Rating
- GUIControl.SetControlLabel(GetID,RatingCtrl.GetID,"Rating: " + MovieInfo.GetRating(selectedMovieName));
+ GUIControl.SetControlLabel(GetID, RatingCtrl.GetID, GUILocalizeStrings.Get(205) + " " + MovieInfo.GetRating(selectedMovieName));
//Get Runtime
- GUIControl.SetControlLabel(GetID, RunTimeCtrl.GetID, "Runtime: " + MovieInfo.GetRunTime(selectedMovieName));
+ GUIControl.SetControlLabel(GetID, RunTimeCtrl.GetID, GUILocalizeStrings.Get(299) + " " + MovieInfo.GetRunTime(selectedMovieName));
//Get the Genre
GUIControl.SetControlLabel(GetID, GenreCtrl.GetID, MovieInfo.GetGenre(selectedMovieName));
@@ -679,7 +685,10 @@
if (playtrailer.Equals("No"))
GUIControl.DisableControl(GetID, btnPlayTrailer.GetID);
else
+ {
GUIControl.EnableControl(GetID, btnPlayTrailer.GetID);
+ GUIControl.FocusControl(GetID, btnPlayTrailer.GetID);
+ }
//Get the Actors
GUIControl.SetControlLabel(GetID, StarringCtrl.GetID, MovieInfo.GetActors(selectedMovieName));
@@ -688,7 +697,7 @@
GUIControl.SetControlLabel(GetID, DirectorCtrl.GetID, MovieInfo.GetDirector(selectedMovieName));
//Get the IMDB
- GUIControl.SetControlLabel(GetID, IMDBCtrl.GetID, "IMDB Rating: " + MovieInfo.GetIMDBRating(selectedMovieName));
+ GUIControl.SetControlLabel(GetID, IMDBCtrl.GetID, GUILocalizeStrings.Get(204) + " " + MovieInfo.GetIMDBRating(selectedMovieName));
//Get the Plot
GUIControl.SetControlLabel(GetID, plotarea.GetID, MovieInfo.GetPlot(selectedMovieName));
@@ -742,8 +751,8 @@
Log.Debug("Getting movies for {0} on date {1}", selectedTheaterName, selectedMovieDate);
TheaterInfo.GetMoviesByTheater(selectedTheaterName,selectedMovieDate);
-
- GUIControl.SetControlLabel(GetID, buttonOne.GetID, "View:Big Icons");
+
+ GUIControl.SetControlLabel(GetID, buttonOne.GetID, GUILocalizeStrings.Get(417));
facadeView.View = GUIFacadeControl.ViewMode.SmallIcons;
mapSettings.ViewAs = 1;
@@ -797,7 +806,7 @@
//GUIControl.EnableControl(GetID, buttonOne.GetID);
- GUIControl.SetControlLabel(GetID, btnMovieTheaters.GetID, "Show All Movies");
+ GUIControl.SetControlLabel(GetID, btnMovieTheaters.GetID, GUILocalizeStrings.Get(71119921));
theaterDatesShown = true;
//movOrTheater = true;
@@ -833,6 +842,8 @@
GUIControl.HideControl(GetID, btnNextMovie.GetID);
GUIControl.HideControl(GetID, btnPreviousMovie.GetID);
GUIControl.HideControl(GetID, SelectedTheaterCtrl.GetID);
+ facadeView.Focusable = true;
+ facadeView.Disabled = false;
}
private void ShowMovieControls()
@@ -855,6 +866,9 @@
GUIControl.ShowControl(GetID, btnPlayTrailer.GetID);
GUIControl.ShowControl(GetID, btnNextMovie.GetID);
GUIControl.ShowControl(GetID, btnPreviousMovie.GetID);
+ facadeView.Focusable = false;
+ facadeView.Disabled = true;
+ GUIControl.FocusControl(GetID, btnNextMovie.GetID);
}
@@ -862,19 +876,19 @@
{
if (mapSettings.ViewAs == 1)
{
- GUIControl.SetControlLabel(GetID, buttonOne.GetID, "View:List");
+ GUIControl.SetControlLabel(GetID, buttonOne.GetID, GUILocalizeStrings.Get(101));
facadeView.View = GUIFacadeControl.ViewMode.LargeIcons;
mapSettings.ViewAs = 2;
}
else if (mapSettings.ViewAs == 2)
{
- GUIControl.SetControlLabel(GetID, buttonOne.GetID, "View:Small Icons");
+ GUIControl.SetControlLabel(GetID, buttonOne.GetID, GUILocalizeStrings.Get(100));
facadeView.View = GUIFacadeControl.ViewMode.List;
mapSettings.ViewAs = 0;
}
else
{
- GUIControl.SetControlLabel(GetID, buttonOne.GetID, "View:Big Icons");
+ GUIControl.SetControlLabel(GetID, buttonOne.GetID, GUILocalizeStrings.Get(417));
facadeView.View = GUIFacadeControl.ViewMode.SmallIcons;
mapSettings.ViewAs = 1;
}
@@ -891,7 +905,7 @@
if (movOrTheater)
{
facadeView.View = GUIFacadeControl.ViewMode.List;
- GUIControl.SetControlLabel(GetID, btnMovieTheaters.GetID, "Show All Movies");
+ GUIControl.SetControlLabel(GetID, btnMovieTheaters.GetID, GUILocalizeStrings.Get(71119921));
GUIControl.DisableControl(GetID, btnMovieTheaters.GetID);
GUIControl.DisableControl(GetID, buttonOne.GetID);
GUIControl.DisableControl(GetID, btnShowTimes.GetID);
@@ -912,25 +926,25 @@
GUIControl.EnableControl(GetID, buttonOne.GetID);
GUIControl.EnableControl(GetID, btnShowTimes.GetID);
- GUIControl.SetControlLabel(GetID, btnMovieTheaters.GetID, "Show Theaters");
+ GUIControl.SetControlLabel(GetID, btnMovieTheaters.GetID, GUILocalizeStrings.Get(71119922));
if (mapSettings.ViewAs == 5) mapSettings.ViewAs = 1;
if (mapSettings.ViewAs == 0)
{
- GUIControl.SetControlLabel(GetID, buttonOne.GetID, "View:Small Icons");
+ GUIControl.SetControlLabel(GetID, buttonOne.GetID, GUILocalizeStrings.Get(101));
facadeView.View = GUIFacadeControl.ViewMode.List;
mapSettings.ViewAs = 0;
}
else if (mapSettings.ViewAs == 1)
{
- GUIControl.SetControlLabel(GetID, buttonOne.GetID, "View:Big Icons");
+ GUIControl.SetControlLabel(GetID, buttonOne.GetID, GUILocalizeStrings.Get(417));
facadeView.View = GUIFacadeControl.ViewMode.SmallIcons;
mapSettings.ViewAs = 1;
}
else
{
- GUIControl.SetControlLabel(GetID, buttonOne.GetID, "View:List");
+ GUIControl.SetControlLabel(GetID, buttonOne.GetID, GUILocalizeStrings.Get(101));
facadeView.View = GUIFacadeControl.ViewMode.LargeIcons;
mapSettings.ViewAs = 2;
}
@@ -1184,7 +1198,7 @@
//Store in case exit out to Home
GUIPropertyManager.SetProperty("#st_title", selectedMovieName);
- GUIControl.SetControlLabel(GetID, buttonOne.GetID, "View:Small Icons");
+ GUIControl.SetControlLabel(GetID, buttonOne.GetID, GUILocalizeStrings.Get(100));
facadeView.View = GUIFacadeControl.ViewMode.List;
//mapSettings.ViewAs = 0;
@@ -1196,6 +1210,8 @@
GUIControl.ShowControl(GetID, SelectedTheaterCtrl.GetID);
GUIControl.ShowControl(GetID, facadeView.GetID);
+ facadeView.Disabled = false;
+ facadeView.Focusable = true;
GUIControl.FocusControl(GetID, facadeView.GetID);
showMoviesForTheater = false;
//movOrTheater = true;
Modified: trunk/plugins/MyShowTimes/ShowTimesGUI/skin/Blue Two/ShowTimesGUI.xml
===================================================================
--- trunk/plugins/MyShowTimes/ShowTimesGUI/skin/Blue Two/ShowTimesGUI.xml 2007-04-28 10:49:51 UTC (rev 349)
+++ trunk/plugins/MyShowTimes/ShowTimesGUI/skin/Blue Two/ShowTimesGUI.xml 2007-04-28 16:56:41 UTC (rev 350)
@@ -2,7 +2,7 @@
<id>7111992</id>
<defaultcontrol>2</defaultcontrol>
<allowoverlay>yes</allowoverlay>
- <define>#header.label:7111992</define>
+ <define>#header.label:</define>
<define>#header.image:movie_info.png</define>
<define>#header.hover:hover_my trailers.png</define>
<controls>
@@ -25,10 +25,10 @@
<type>image</type>
<description>movie border</description>
<id>0</id>
- <posX>200</posX>
- <posY>114</posY>
- <width>220</width>
- <height>284</height>
+ <posX>220</posX>
+ <posY>120</posY>
+ <width>200</width>
+ <height>264</height>
<texture>playback_background.png</texture>
<visible>no</visible>
</control>
@@ -36,10 +36,10 @@
<type>image</type>
<description>movie poster</description>
<id>24</id>
- <posX>215</posX>
- <posY>136</posY>
- <width>185</width>
- <height>230</height>
+ <posX>235</posX>
+ <posY>142</posY>
+ <width>165</width>
+ <height>210</height>
<texture>background.png</texture>
<visible>no</visible>
</control>
@@ -49,11 +49,11 @@
<id>2</id>
<posX>26</posX>
<posY>136</posY>
- <label>View:Big Icons</label>
- <width>150</width>
+ <label>417</label>
+ <width>180</width>
<visible>no</visible>
<onup>43</onup>
- <ondown>3</ondown>
+ <ondown>3</ondown>
</control>
<control>
<type>button</type>
@@ -61,11 +61,12 @@
<id>3</id>
<posX>26</posX>
<posY>166</posY>
- <label>Show Theaters</label>
- <width>150</width>
+ <label>71119922</label>
+ <width>180</width>
<visible>no</visible>
<onup>2</onup>
- <ondown>40</ondown>
+ <ondown>40</ondown>
+ <onleft>2</onleft>
</control>
<control>
<type>button</type>
@@ -73,11 +74,12 @@
<id>40</id>
<posX>26</posX>
<posY>196</posY>
- <label>Get ShowTimes</label>
- <width>150</width>
+ <label>71119924</label>
+ <width>180</width>
<visible>no</visible>
<onup>3</onup>
- <ondown>41</ondown>
+ <ondown>41</ondown>
+ <onleft>3</onleft>
</control>
<control>
<type>button</type>
@@ -85,11 +87,12 @@
<id>41</id>
<posX>26</posX>
<posY>226</posY>
- <label>Play Trailer</label>
- <width>150</width>
+ <label>71119923</label>
+ <width>180</width>
<visible>no</visible>
<onup>40</onup>
- <ondown>42</ondown>
+ <ondown>42</ondown>
+ <onleft>40</onleft>
</control>
<control>
<type>button</type>
@@ -97,11 +100,12 @@
<id>42</id>
<posX>26</posX>
<posY>256</posY>
- <label>Next Movie</label>
- <width>150</width>
+ <label>209</label>
+ <width>180</width>
<visible>no</visible>
<onup>41</onup>
- <ondown>43</ondown>
+ <ondown>43</ondown>
+ <onleft>41</onleft>
</control>
<control>
<type>button</type>
@@ -109,11 +113,12 @@
<id>43</id>
<posX>26</posX>
<posY>286</posY>
- <label>Previous Movie</label>
- <width>150</width>
+ <label>210</label>
+ <width>180</width>
<visible>no</visible>
<onup>42</onup>
- <ondown>2</ondown>
+ <ondown>2</ondown>
+ <onleft>42</onleft>
</control>
<control>
<type>label</type>
@@ -152,7 +157,7 @@
<posX>420</posX>
<posY>199</posY>
<visible>no</visible>
- <label>Starring:</label>
+ <label>344</label>
<font>font14</font>
</control>
<control>
@@ -172,7 +177,7 @@
<posX>420</posX>
<posY>174</posY>
<visible>no</visible>
- <label>Genre:</label>
+ <label>174</label>
<font>font14</font>
</control>
<control>
@@ -219,7 +224,7 @@
<posX>420</posX>
<posY>290</posY>
<visible>no</visible>
- <label>Directed By:</label>
+ <label>199</label>
<font>font14</font>
</control>
<control>
Modified: trunk/plugins/MyShowTimes/ShowTimesGUI/skin/MePo Wide/ShowTimesGUI.xml
===================================================================
--- trunk/plugins/MyShowTimes/ShowTimesGUI/skin/MePo Wide/ShowTimesGUI.xml 2007-04-28 10:49:51 UTC (rev 349)
+++ trunk/plugins/MyShowTimes/ShowTimesGUI/skin/MePo Wide/ShowTimesGUI.xml 2007-04-28 16:56:41 UTC (rev 350)
@@ -49,7 +49,7 @@
<id>2</id>
<posX>56</posX>
<posY>136</posY>
- <label>View:Big Icons</label>
+ <label>417</label>
<width>240</width>
<height>42</height>
<onup>43</onup>
@@ -61,7 +61,7 @@
<id>3</id>
<posX>56</posX>
<posY>184</posY>
- <label>Show Theaters</label>
+ <label>71119922</label>
<width>240</width>
<height>42</height>
<onup>2</onup>
@@ -73,7 +73,7 @@
<id>40</id>
<posX>56</posX>
<posY>230</posY>
- <label>Get ShowTimes</label>
+ <label>71119924</label>
<width>240</width>
<height>42</height>
<visible>no</visible>
@@ -86,7 +86,7 @@
<id>41</id>
<posX>56</posX>
<posY>280</posY>
- <label>Play Trailer</label>
+ <label>71119923</label>
<width>240</width>
<height>42</height>
<visible>no</visible>
@@ -99,7 +99,7 @@
<id>42</id>
<posX>56</posX>
<posY>330</posY>
- <label>Next Movie</label>
+ <label>209</label>
<width>240</width>
<height>42</height>
<visible>no</visible>
@@ -112,7 +112,7 @@
<id>43</id>
<posX>56</posX>
<posY>380</posY>
- <label>Previous Movie</label>
+ <label>210</label>
<width>240</width>
<height>42</height>
<visible>no</visible>
@@ -156,7 +156,7 @@
<posX>816</posX>
<posY>256</posY>
<visible>no</visible>
- <label>Starring:</label>
+ <label>344</label>
<font>font16</font>
</control>
<control>
@@ -176,7 +176,7 @@
<posX>816</posX>
<posY>216</posY>
<visible>no</visible>
- <label>Genre:</label>
+ <label>174</label>
<font>font16</font>
</control>
<control>
@@ -225,7 +225,7 @@
<posX>816</posX>
<posY>420</posY>
<visible>no</visible>
- <label>Directed By:</label>
+ <label>199</label>
<font>font16</font>
</control>
<control>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|