|
From: <che...@us...> - 2007-06-09 17:57:10
|
Revision: 498
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=498&view=rev
Author: chef_koch
Date: 2007-06-09 10:57:08 -0700 (Sat, 09 Jun 2007)
Log Message:
-----------
changed View enumerator, like we have in music/videos
Modified Paths:
--------------
trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs
Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs
===================================================================
--- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs 2007-06-09 17:38:49 UTC (rev 497)
+++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs 2007-06-09 17:57:08 UTC (rev 498)
@@ -221,17 +221,17 @@
{
switch ((View)ViewAs)
{
- case View.VIEW_AS_LIST:
- ViewAs = (int)View.VIEW_AS_ICONS;
+ case View.List:
+ ViewAs = (int)View.Icons;
break;
- case View.VIEW_AS_ICONS:
- ViewAs = (int)View.VIEW_AS_LARGEICONS;
+ case View.Icons:
+ ViewAs = (int)View.LargeIcons;
break;
- case View.VIEW_AS_LARGEICONS:
- ViewAs = (int)View.VIEW_AS_FILMSTRIP;
+ case View.LargeIcons:
+ ViewAs = (int)View.FilmStrip;
break;
- case View.VIEW_AS_FILMSTRIP:
- ViewAs = (int)View.VIEW_AS_LIST;
+ case View.FilmStrip:
+ ViewAs = (int)View.List;
break;
}
}
@@ -241,16 +241,16 @@
string result = "";
switch ((View)ViewAs)
{
- case View.VIEW_AS_LIST:
+ case View.List:
result = GUILocalizeStrings.Get(101);
break;
- case View.VIEW_AS_ICONS:
+ case View.Icons:
result = GUILocalizeStrings.Get(100);
break;
- case View.VIEW_AS_LARGEICONS:
+ case View.LargeIcons:
result = GUILocalizeStrings.Get(417);
break;
- case View.VIEW_AS_FILMSTRIP:
+ case View.FilmStrip:
result = GUILocalizeStrings.Get(733);
break;
}
@@ -265,16 +265,16 @@
{
switch ((View)mapSettings.ViewAs)
{
- case View.VIEW_AS_LIST:
+ case View.List:
xmlwriter.SetValue("myprograms", "viewby", "list");
break;
- case View.VIEW_AS_ICONS:
+ case View.Icons:
xmlwriter.SetValue("myprograms", "viewby", "icons");
break;
- case View.VIEW_AS_LARGEICONS:
+ case View.LargeIcons:
xmlwriter.SetValue("myprograms", "viewby", "largeicons");
break;
- case View.VIEW_AS_FILMSTRIP:
+ case View.FilmStrip:
xmlwriter.SetValue("myprograms", "viewby", "filmstrip");
break;
}
@@ -321,13 +321,13 @@
if (curText != null)
{
if (curText == "list")
- mapSettings.ViewAs = (int)View.VIEW_AS_LIST;
+ mapSettings.ViewAs = (int)View.List;
else if (curText == "icons")
- mapSettings.ViewAs = (int)View.VIEW_AS_ICONS;
+ mapSettings.ViewAs = (int)View.Icons;
else if (curText == "largeicons")
- mapSettings.ViewAs = (int)View.VIEW_AS_LARGEICONS;
+ mapSettings.ViewAs = (int)View.LargeIcons;
else if (curText == "filmstrip")
- mapSettings.ViewAs = (int)View.VIEW_AS_FILMSTRIP;
+ mapSettings.ViewAs = (int)View.FilmStrip;
}
mapSettings.LastAppID = xmlreader.GetValueAsInt("myprograms", "lastAppID", -1);
@@ -397,13 +397,12 @@
enum View
{
- VIEW_AS_LIST = 0,
- VIEW_AS_ICONS = 1,
- VIEW_AS_LARGEICONS = 2,
- VIEW_AS_FILMSTRIP = 3,
+ List = 0,
+ Icons = 1,
+ LargeIcons = 2,
+ FilmStrip = 3,
}
-
// Buttons
[SkinControl(2)]
protected GUIButtonControl btnViewAs = null;
@@ -544,7 +543,6 @@
}
}
-
public int StartWindow
{
get { return startWindow; }
@@ -938,22 +936,22 @@
{
int itemIndex = facadeView.SelectedListItemIndex;
- if (mapSettings.ViewAs == (int)View.VIEW_AS_LIST)
+ if (mapSettings.ViewAs == (int)View.List)
{
facadeView.View = GUIFacadeControl.ViewMode.List;
screenShotImage.Visible = true;
}
- else if (mapSettings.ViewAs == (int)View.VIEW_AS_ICONS)
+ else if (mapSettings.ViewAs == (int)View.Icons)
{
facadeView.View = GUIFacadeControl.ViewMode.SmallIcons;
screenShotImage.Visible = false;
}
- else if (mapSettings.ViewAs == (int)View.VIEW_AS_LARGEICONS)
+ else if (mapSettings.ViewAs == (int)View.LargeIcons)
{
facadeView.View = GUIFacadeControl.ViewMode.LargeIcons;
screenShotImage.Visible = false;
}
- else if (mapSettings.ViewAs == (int)View.VIEW_AS_FILMSTRIP)
+ else if (mapSettings.ViewAs == (int)View.FilmStrip)
{
facadeView.View = GUIFacadeControl.ViewMode.Filmstrip;
screenShotImage.Visible = false;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|