You can subscribe to this list here.
| 2007 |
Jan
(36) |
Feb
(79) |
Mar
(123) |
Apr
(95) |
May
(119) |
Jun
(172) |
Jul
(124) |
Aug
(100) |
Sep
(83) |
Oct
(52) |
Nov
(97) |
Dec
(87) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(131) |
Feb
(80) |
Mar
(163) |
Apr
(178) |
May
(73) |
Jun
(54) |
Jul
(106) |
Aug
(118) |
Sep
(50) |
Oct
(125) |
Nov
(100) |
Dec
(99) |
| 2009 |
Jan
(104) |
Feb
(99) |
Mar
(68) |
Apr
(81) |
May
(52) |
Jun
(87) |
Jul
(67) |
Aug
(33) |
Sep
(27) |
Oct
(37) |
Nov
(60) |
Dec
(116) |
| 2010 |
Jan
(82) |
Feb
(79) |
Mar
(38) |
Apr
(50) |
May
(45) |
Jun
(53) |
Jul
(23) |
Aug
(86) |
Sep
(22) |
Oct
(96) |
Nov
(97) |
Dec
(73) |
| 2011 |
Jan
(24) |
Feb
(45) |
Mar
(28) |
Apr
(31) |
May
(42) |
Jun
(25) |
Jul
|
Aug
(12) |
Sep
(28) |
Oct
(13) |
Nov
(43) |
Dec
(13) |
| 2012 |
Jan
(62) |
Feb
(28) |
Mar
(6) |
Apr
(16) |
May
(7) |
Jun
|
Jul
(16) |
Aug
(2) |
Sep
(1) |
Oct
(4) |
Nov
(1) |
Dec
(3) |
| 2013 |
Jan
(5) |
Feb
|
Mar
(34) |
Apr
(9) |
May
(6) |
Jun
(10) |
Jul
(32) |
Aug
(8) |
Sep
(11) |
Oct
(35) |
Nov
(24) |
Dec
(22) |
| 2014 |
Jan
(44) |
Feb
(9) |
Mar
(9) |
Apr
(15) |
May
(25) |
Jun
(34) |
Jul
(16) |
Aug
(11) |
Sep
(7) |
Oct
(6) |
Nov
(1) |
Dec
(12) |
| 2015 |
Jan
(33) |
Feb
(19) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(5) |
|
From: <du...@us...> - 2007-05-11 21:31:18
|
Revision: 397
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=397&view=rev
Author: dukus
Date: 2007-05-11 14:31:08 -0700 (Fri, 11 May 2007)
Log Message:
-----------
Initial import
Added Paths:
-----------
trunk/plugins/mypoker/
trunk/plugins/mypoker/AssemblyInfo.cs
trunk/plugins/mypoker/Properties/
trunk/plugins/mypoker/cards.cs
trunk/plugins/mypoker/mypoker.cs
trunk/plugins/mypoker/mypoker.csproj
trunk/plugins/mypoker/mypoker.csproj.user
trunk/plugins/mypoker/mypoker.sln
trunk/plugins/mypoker/mypoker.suo
trunk/plugins/mypoker/mypoketwin.cs
trunk/plugins/mypoker/skin/
trunk/plugins/mypoker/skin/MCE/
trunk/plugins/mypoker/skin/MCE/media/
trunk/plugins/mypoker/skin/MCE/media/mypoker.xml
trunk/plugins/mypoker/skin/MCE/media/mypokerwin.xml
trunk/plugins/mypoker/skin/MCE/media/poker/
trunk/plugins/mypoker/skin/MCE/media/poker/card1.png
trunk/plugins/mypoker/skin/MCE/media/poker/card10.png
trunk/plugins/mypoker/skin/MCE/media/poker/card11.png
trunk/plugins/mypoker/skin/MCE/media/poker/card12.png
trunk/plugins/mypoker/skin/MCE/media/poker/card13.png
trunk/plugins/mypoker/skin/MCE/media/poker/card14.png
trunk/plugins/mypoker/skin/MCE/media/poker/card15.png
trunk/plugins/mypoker/skin/MCE/media/poker/card16.png
trunk/plugins/mypoker/skin/MCE/media/poker/card17.png
trunk/plugins/mypoker/skin/MCE/media/poker/card18.png
trunk/plugins/mypoker/skin/MCE/media/poker/card19.png
trunk/plugins/mypoker/skin/MCE/media/poker/card2.png
trunk/plugins/mypoker/skin/MCE/media/poker/card20.png
trunk/plugins/mypoker/skin/MCE/media/poker/card21.png
trunk/plugins/mypoker/skin/MCE/media/poker/card22.png
trunk/plugins/mypoker/skin/MCE/media/poker/card23.png
trunk/plugins/mypoker/skin/MCE/media/poker/card24.png
trunk/plugins/mypoker/skin/MCE/media/poker/card25.png
trunk/plugins/mypoker/skin/MCE/media/poker/card26.png
trunk/plugins/mypoker/skin/MCE/media/poker/card27.png
trunk/plugins/mypoker/skin/MCE/media/poker/card28.png
trunk/plugins/mypoker/skin/MCE/media/poker/card29.png
trunk/plugins/mypoker/skin/MCE/media/poker/card3.png
trunk/plugins/mypoker/skin/MCE/media/poker/card30.png
trunk/plugins/mypoker/skin/MCE/media/poker/card31.png
trunk/plugins/mypoker/skin/MCE/media/poker/card32.png
trunk/plugins/mypoker/skin/MCE/media/poker/card33.png
trunk/plugins/mypoker/skin/MCE/media/poker/card34.png
trunk/plugins/mypoker/skin/MCE/media/poker/card35.png
trunk/plugins/mypoker/skin/MCE/media/poker/card36.png
trunk/plugins/mypoker/skin/MCE/media/poker/card37.png
trunk/plugins/mypoker/skin/MCE/media/poker/card38.png
trunk/plugins/mypoker/skin/MCE/media/poker/card39.png
trunk/plugins/mypoker/skin/MCE/media/poker/card4.png
trunk/plugins/mypoker/skin/MCE/media/poker/card40.png
trunk/plugins/mypoker/skin/MCE/media/poker/card41.png
trunk/plugins/mypoker/skin/MCE/media/poker/card42.png
trunk/plugins/mypoker/skin/MCE/media/poker/card43.png
trunk/plugins/mypoker/skin/MCE/media/poker/card44.png
trunk/plugins/mypoker/skin/MCE/media/poker/card45.png
trunk/plugins/mypoker/skin/MCE/media/poker/card46.png
trunk/plugins/mypoker/skin/MCE/media/poker/card47.png
trunk/plugins/mypoker/skin/MCE/media/poker/card48.png
trunk/plugins/mypoker/skin/MCE/media/poker/card49.png
trunk/plugins/mypoker/skin/MCE/media/poker/card5.png
trunk/plugins/mypoker/skin/MCE/media/poker/card50.png
trunk/plugins/mypoker/skin/MCE/media/poker/card51.png
trunk/plugins/mypoker/skin/MCE/media/poker/card52.png
trunk/plugins/mypoker/skin/MCE/media/poker/card6.png
trunk/plugins/mypoker/skin/MCE/media/poker/card7.png
trunk/plugins/mypoker/skin/MCE/media/poker/card8.png
trunk/plugins/mypoker/skin/MCE/media/poker/card9.png
trunk/plugins/mypoker/skin/MCE/media/poker/deck_background.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/
trunk/plugins/mypoker/skin/MCE/media/poker/old/card1.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card10.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card11.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card12.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card13.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card14.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card15.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card16.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card17.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card18.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card19.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card2.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card20.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card21.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card22.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card23.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card24.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card25.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card26.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card27.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card28.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card29.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card3.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card30.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card31.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card32.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card33.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card34.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card35.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card36.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card37.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card38.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card39.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card4.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card40.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card41.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card42.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card43.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card44.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card45.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card46.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card47.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card48.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card49.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card5.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card50.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card51.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card52.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card6.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card7.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card8.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/card9.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/deck_background.png
trunk/plugins/mypoker/skin/MCE/media/poker/old/play.wav
trunk/plugins/mypoker/skin/MCE/media/poker/play.wav
Added: trunk/plugins/mypoker/AssemblyInfo.cs
===================================================================
--- trunk/plugins/mypoker/AssemblyInfo.cs (rev 0)
+++ trunk/plugins/mypoker/AssemblyInfo.cs 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,60 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+//
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+//
+[assembly: AssemblyTitle("")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("")]
+[assembly: AssemblyCopyright("")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+//
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+
+[assembly: AssemblyVersion("1.0.*")]
+
+//
+// In order to sign your assembly you must specify a key to use. Refer to the
+// Microsoft .NET Framework documentation for more information on assembly signing.
+//
+// Use the attributes below to control which key is used for signing.
+//
+// Notes:
+// (*) If no key is specified, the assembly is not signed.
+// (*) KeyName refers to a key that has been installed in the Crypto Service
+// Provider (CSP) on your machine. KeyFile refers to a file which contains
+// a key.
+// (*) If the KeyFile and the KeyName values are both specified, the
+// following processing occurs:
+// (1) If the KeyName can be found in the CSP, that key is used.
+// (2) If the KeyName does not exist and the KeyFile does exist, the key
+// in the KeyFile is installed into the CSP and used.
+// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
+// When specifying the KeyFile, the location of the KeyFile should be
+// relative to the project output directory which is
+// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
+// located in the project directory, you would specify the AssemblyKeyFile
+// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
+// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
+// documentation for more information on this.
+//
+[assembly: AssemblyDelaySign(false)]
+[assembly: AssemblyKeyFile("")]
+[assembly: AssemblyKeyName("")]
+[assembly: ComVisibleAttribute(false)]
Added: trunk/plugins/mypoker/cards.cs
===================================================================
--- trunk/plugins/mypoker/cards.cs (rev 0)
+++ trunk/plugins/mypoker/cards.cs 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,287 @@
+using System;
+using System.IO;
+using System.Collections;
+using MediaPortal.GUI.Library;
+
+namespace GUIPoker
+{
+ public class Tcardsgame
+ {
+ protected int[] _cards = new int[52];
+ protected bool[] _iscardmoved = new bool[52];
+ public Tcardsgame()
+ {
+ }
+
+ public void init()
+ {
+ int i;
+ for (i = 0; i < 52; i++)
+ {
+ _cards[i] = i+1;
+ _iscardmoved[i] = false;
+ }
+
+ }
+ public bool isRed(int card)
+ {
+ int suit = getSuit(card);
+ if (suit == 1 || suit == 2) return true;
+ else return false;
+ }
+
+ public bool isBlack(int card)
+ {
+ int suit = getSuit(card);
+ if (suit == 0 || suit == 3) return true;
+ else return false;
+ }
+ public void suffle()
+ {
+ int i,j;
+ int rand1;
+ int rand2;
+ Random r = new Random();
+ init ();
+ for (i = 1; i < 53*2; i++)
+ {
+ rand1 = r.Next(51);
+ rand2 = r.Next(51);
+ j = _cards[rand1];
+ _cards[rand1] = _cards[rand2];
+ _cards[rand2] = j;
+
+ }
+
+ }
+
+ public int getCard()
+ {
+ int i=0;
+ try
+ {
+ bool canExit=false;
+ Random r = new Random();
+ while (!canExit)
+ {
+ i = r.Next(51) ;
+ if (!_iscardmoved[i]) {
+ canExit = true;
+ _iscardmoved[i] = true;
+ }
+
+ }
+ }
+ catch (System.IndexOutOfRangeException ex)
+ {
+ Log.Write(" Index out :{0}, {1}, i= {2} ", ex.Message, ex.StackTrace, i.ToString());
+ }
+
+ return i+1;
+ }
+
+ public int getSuit(int card)
+ {
+ int suit = (card-1) / 13;
+ return suit;
+ }
+
+ public int getFace(int card)
+ {
+ int face = (card) % 13;
+ if (face == 1) face = 14;
+ if (face == 0) face = 13;
+ return face;
+ }
+ public string getScorToString(int scor)
+ {
+ string strScor = "";
+ if (scor == 10) { strScor = "royal flush"; }
+ if (scor == 9) { strScor = "straight flush"; }
+ if (scor == 7) { strScor = "four of a kind"; }
+ if (scor == 6) { strScor = "full house"; }
+ if (scor == 5) { strScor = "flush"; }
+ if (scor == 4) { strScor = "straight"; }
+ if (scor == 3) { strScor = "three of a kind"; }
+ if (scor == 2) { strScor = "two pair"; }
+ if (scor == 1) { strScor = "jacks or better"; }
+ return strScor;
+ }
+
+ //calcScore() comes from this site:
+ //http://www.codeproject.com/books/1930110197_3.asp#34054
+ //it was modified a little.
+ public int calcScore(int[] index)
+ {
+
+
+ // are cards all of the same suit?
+ int score = 0;
+ bool isFlush = true;
+ int s = getSuit(index[0]);
+ for (int i = 1; i < 5; i++)
+ {
+ if (s != getSuit(index[i]))
+ {
+ isFlush = false;
+ break;
+ }
+ }
+ // sort card values...
+ int[] sortedValues = new int[5];
+
+ for (int i = 0; i < 5; i++)
+ sortedValues[i] = getFace(index[i]);
+ Array.Sort(sortedValues);
+
+ // are cards all of the same suit?
+ // do we have a straight?
+ bool isStraight = true;
+ for (int i = 0; i < 4; i++)
+ {
+ if (sortedValues[i] + 1 != sortedValues[i + 1])
+ {
+ isStraight = false;
+ break;
+ }
+ }
+
+ // is it a straight to the ace?
+ bool isTopStraight = (isStraight && sortedValues[4] == 14);
+ // maybe it is a straight from the ace (i.e. A, 2, 3, 4, 5)
+ if (!isStraight)
+ if (sortedValues[0] == 2 &&
+ sortedValues[1] == 3 &&
+ sortedValues[2] == 4 &&
+ sortedValues[3] == 5 &&
+ sortedValues[4] == 14) // ace on top
+ isStraight = true;
+ // now calculate score...
+ // royal flush...
+ if (isTopStraight && isFlush)
+ {
+ score = 10;
+ return score;
+ }
+ // straight flush...
+ if (isStraight && isFlush)
+ {
+ score = 9;
+ return score;
+ }
+ // four of a kind...
+ if (sortedValues[0] == sortedValues[1] &&
+ sortedValues[1] == sortedValues[2] &&
+ sortedValues[2] == sortedValues[3])
+ {
+ score = 7;
+ return score;
+ }
+ if (sortedValues[1] == sortedValues[2] &&
+ sortedValues[2] == sortedValues[3] &&
+ sortedValues[3] == sortedValues[4])
+ {
+ score = 7;
+ return score;
+ }
+ // full house...
+ if (sortedValues[0] == sortedValues[1] &&
+ sortedValues[1] == sortedValues[2] &&
+ sortedValues[3] == sortedValues[4])
+ {
+ score = 6;
+ return score;
+ }
+ if (sortedValues[0] == sortedValues[1] &&
+ sortedValues[2] == sortedValues[3] &&
+ sortedValues[3] == sortedValues[4])
+ {
+ score = 6;
+ return score;
+ }
+ // flush...
+ if (isFlush)
+ {
+ score = 5;
+ return score;
+ }
+ // straight...
+ if (isStraight)
+ {
+ score = 4;
+ return score;
+ }
+ // three of a kind...
+ if (sortedValues[0] == sortedValues[1] &&
+ sortedValues[1] == sortedValues[2])
+ {
+ score = 3;
+ return score;
+ }
+ if (sortedValues[1] == sortedValues[2] &&
+ sortedValues[2] == sortedValues[3])
+ {
+ score = 3;
+ return score;
+ }
+ if (sortedValues[2] == sortedValues[3] &&
+ sortedValues[3] == sortedValues[4])
+ {
+ score = 3;
+ return score;
+ }
+ // two pair...
+ if (sortedValues[0] == sortedValues[1] &&
+ sortedValues[2] == sortedValues[3])
+ {
+ score = 2;
+ return score;
+ }
+ if (sortedValues[0] == sortedValues[1] &&
+ sortedValues[3] == sortedValues[4])
+ {
+ score = 2;
+ return score;
+ }
+ if (sortedValues[1] == sortedValues[2] &&
+ sortedValues[3] == sortedValues[4])
+ {
+ score = 2;
+ return score;
+ }
+ // jacks or better...
+ if (sortedValues[0] > 9 &&
+ sortedValues[0] == sortedValues[1])
+ {
+ score = 1;
+ return score;
+ }
+ if (sortedValues[1] > 9 &&
+ sortedValues[1] == sortedValues[2])
+ {
+ score = 1;
+ return score;
+ }
+ if (sortedValues[2] > 9 &&
+ sortedValues[2] == sortedValues[3])
+ {
+ score = 1;
+ return score;
+ }
+ if (sortedValues[3] > 9 &&
+ sortedValues[3] == sortedValues[4])
+ {
+ score = 1;
+ return score;
+ }
+
+ score = -1;
+ return score;
+
+
+ }
+
+
+
+ }
+}
Added: trunk/plugins/mypoker/mypoker.cs
===================================================================
--- trunk/plugins/mypoker/mypoker.cs (rev 0)
+++ trunk/plugins/mypoker/mypoker.cs 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,400 @@
+using System;
+using System.Collections;
+using System.Windows.Forms;
+using MediaPortal.GUI.Library;
+using MediaPortal.Util;
+using MediaPortal.Dialogs;
+using SQLite.NET;
+
+
+namespace GUIPoker
+{
+ /// <summary>
+ /// Summary description for MyPoker.
+ /// </summary>
+ public class MyPoker : GUIWindow, ISetupForm
+ {
+
+ float timeCount = 0;
+ int curentCard = 0;
+ int bet = 0;
+ int money = 100;
+ int turn_left = 100;
+ bool canDraw = false;
+ bool _isStarted = false;
+ bool _isfirsttime = true;
+ bool _isdrawfinish = true;
+ bool _iswin = false;
+ bool[] heldCards = new bool[5] { false, false, false, false, false };
+ int[] deckCards = new int[5] { 0, 0, 0, 0, 0 };
+ Tcardsgame pokercards= new Tcardsgame();
+ enum Controls : int
+ {
+ btn_play = 2,
+ btn_deal = 3,
+ btn_bet = 4,
+ card1 = 24,
+ card2 = 25,
+ card3 = 26,
+ card4 = 27,
+ card5 = 28,
+ txtheld1 = 29,
+ txtheld2 = 30,
+ txtheld3 = 31,
+ txtheld4 = 32,
+ txtheld5 = 33,
+ btnheld1 = 34,
+ btnheld2 = 35,
+ btnheld3 = 36,
+ btnheld4 = 37,
+ btnheld5 = 38
+ }
+ enum Option : int
+ {
+ waitTime = 100
+ }
+ public MyPoker()
+ {
+
+ //
+ // TODO: Add constructor logic here
+ //
+ }
+ #region ISetupForm Members
+
+ // Returns the name of the plugin which is shown in the plugin menu
+ public string PluginName()
+ {
+ return "My Poker";
+ }
+
+ // Returns the description of the plugin is shown in the plugin menu
+ public string Description()
+ {
+ return "My Poker";
+ }
+
+ // Returns the author of the plugin which is shown in the plugin menu
+ public string Author()
+ {
+ return "Dukus";
+ }
+
+ // show the setup dialog
+ public void ShowPlugin()
+ {
+ MessageBox.Show("Nothing to configure");
+ }
+
+ // Indicates whether plugin can be enabled/disabled
+ public bool CanEnable()
+ {
+ return true;
+ }
+
+ // get ID of windowplugin belonging to this setup
+ public int GetWindowId()
+ {
+ return 7178;
+ }
+
+ // Indicates if plugin is enabled by default;
+ public bool DefaultEnabled()
+ {
+ return true;
+ }
+ // indicates if a plugin has its own setup screen
+ public bool HasSetup()
+ {
+ return true;
+ }
+
+ /// <summary>
+ /// If the plugin should have its own button on the main menu of Mediaportal then it
+ /// should return true to this method, otherwise if it should not be on home
+ /// it should return false
+ /// </summary>
+ /// <param name="strButtonText">text the button should have</param>
+ /// <param name="strButtonImage">image for the button, or empty for default</param>
+ /// <param name="strButtonImageFocus">image for the button, or empty for default</param>
+ /// <param name="strPictureImage">subpicture for the button or empty for none</param>
+ /// <returns>true : plugin needs its own button on home
+ /// false : plugin does not need its own button on home</returns>
+ public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage)
+ {
+ strButtonText=PluginName();
+ strButtonImage=String.Empty;
+ strButtonImageFocus=String.Empty;
+ strPictureImage=String.Empty;
+ return true;
+ }
+
+
+ public override int GetID
+ {
+ get
+ {
+ return 7178;
+ }
+ set
+ {
+ }
+ }
+
+ public override bool Init()
+ {
+ return Load(GUIGraphicsContext.Skin+@"\mypoker.xml");
+ }
+ #endregion
+
+ protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)
+ {
+ base.OnClicked (controlId, control, actionType);
+ }
+ protected override void OnPageLoad()
+ {
+ }
+
+ private void setCard(int cardNum, int cardType, bool playSound )
+ {
+ GUIImage image = (GUIImage)GetControl((int)Controls.card1-1+cardNum);
+ if (cardType == 0) image.SetFileName(GUIGraphicsContext.Skin + @"\media\poker\deck_background.png");
+ if (cardType > 0)
+ {
+ string strFileNumber=cardType.ToString().Trim();
+ image.SetFileName(GUIGraphicsContext.Skin + string.Format("\\media\\poker\\card{0}.png",strFileNumber ));
+
+ if (playSound)Utils.PlaySound(GUIGraphicsContext.Skin + @"\media\poker\play.wav", false, true);
+ }
+ }
+
+ public override void Render(float timePassed)
+ {
+// System.Windows.Forms.MessageBox.Show(Environment.TickCount.ToString());
+ if (canDraw && !_isdrawfinish) renderCards();
+ base.Render(timePassed);
+ }
+
+ public override void OnAction(Action action)
+ {
+ if(_isdrawfinish&&_isStarted)
+// System.Windows.Forms.MessageBox.Show(action.wID.ToString());
+
+ {
+ if (action.wID == Action.ActionType.REMOTE_0 && _isdrawfinish) drawGame();
+ if (action.wID == Action.ActionType.REMOTE_1) togleHeld(0);
+ if (action.wID == Action.ActionType.REMOTE_2) togleHeld(1);
+ if (action.wID == Action.ActionType.REMOTE_3) togleHeld(2);
+ if (action.wID == Action.ActionType.REMOTE_4) togleHeld(3);
+ if (action.wID == Action.ActionType.REMOTE_5) togleHeld(4);
+ }
+ base.OnAction(action);
+ }
+
+ private void renderCards()
+ {
+ if ((Environment.TickCount - timeCount) > 200)
+ {
+ timeCount = Environment.TickCount;
+ curentCard++;
+ if (curentCard > 0 && curentCard < 6)
+ {
+ setCard(curentCard, deckCards[curentCard - 1], true);
+ }
+ if (curentCard > 5)
+ {
+ _isdrawfinish = true;
+ testDrawState();
+ }
+ }
+
+ }
+ private bool testIFWin()
+ {
+ int score = pokercards.calcScore(deckCards);
+
+ if (score>0)
+ {
+// System.Windows.Forms.MessageBox.Show(pokercards.getScorToString(score));
+
+ //System.Windows.Forms.MessageBox.Show(string.Format("{0},{1},{2},{3},{4}",
+ // pokercards.getFace(deckCards[0]),
+ // pokercards.getFace(deckCards[1]),
+ // pokercards.getFace(deckCards[2]),
+ // pokercards.getFace(deckCards[3]),
+ // pokercards.getFace(deckCards[4])
+ // ));
+ MediaPortal.Profile.XmlSettingsProvider xmlwriter = new MediaPortal.Profile.XmlSettingsProvider("myPoker.xml");
+ xmlwriter.SetValue("myPoker", "score", score.ToString());
+ xmlwriter.SetValue("myPoker", "bet", bet.ToString());
+ xmlwriter.Save();
+ _iswin = true;
+ GUIWindowManager.ActivateWindow(7179);
+ };
+
+ return false;
+ }
+ private void testDrawState()
+ {
+ if (_isfirsttime)
+ {
+ _isfirsttime = false;
+ }
+ else
+ {
+ _isfirsttime = true;
+ int i;
+ for (i = 0; i < 5; i++)
+ {
+ GUIControl.HideControl(GetID, (int)Controls.txtheld1 + i);
+ heldCards[i] = false;
+ }
+ testIFWin();
+ }
+ }
+
+ private void newGame()
+ {
+ int i;
+ for (i = 0; i < 5; i++)
+ {
+ GUIControl.ShowControl(GetID, (int)Controls.btnheld1 + i);
+ setCard(i + 1, 0, false);
+ }
+ GUIControl.ShowControl(GetID, (int)Controls.btn_deal);
+ GUIControl.EnableControl(GetID, (int)Controls.btn_deal);
+ GUIControl.ShowControl(GetID, (int)Controls.btn_bet);
+ GUIPropertyManager.SetProperty("#txtsco", "Score");
+ GUIPropertyManager.SetProperty("#txtbet", "Bet ");
+ GUIPropertyManager.SetProperty("#txtturn", "Turn left ");
+ bet = 1;
+ money = 100;
+ turn_left = 100;
+ showScore();
+ pokercards.suffle();
+ }
+
+ private void testEndGame()
+ {
+ if(money<1||turn_left<1)
+ {
+ GUIControl.DisableControl(GetID, (int)Controls.btn_deal);
+ }
+
+ }
+
+ private void showScore()
+ {
+ GUIPropertyManager.SetProperty("#b", bet.ToString());
+ GUIPropertyManager.SetProperty("#sco", money.ToString());
+ GUIPropertyManager.SetProperty("#turn", turn_left.ToString());
+ }
+ private void drawGame()
+ {
+ int i;
+ if (_isfirsttime)
+ {
+ pokercards.suffle();
+ money -= bet;
+ turn_left--;
+ for (i = 0; i < 5; i++)
+ {
+ deckCards[i] = pokercards.getCard();
+ setCard(i + 1, 0, false);
+ GUIControl.EnableControl(GetID, (int)Controls.btnheld1 + i);
+ }
+ }
+ else
+ {
+ for (i = 0; i < 5; i++)
+ {
+ if (!heldCards[i]) deckCards[i] = pokercards.getCard();
+ GUIControl.DisableControl(GetID, (int)Controls.btnheld1+i);
+ }
+ }
+ testEndGame();
+ canDraw = true;
+ _isdrawfinish = false;
+ curentCard = 0;
+ showScore();
+ }
+
+
+ public override bool OnMessage(GUIMessage message)
+ {
+// System.Windows.Forms.MessageBox.Show(message.Message.ToString());
+ switch (message.Message)
+ {
+ case GUIMessage.MessageType.GUI_MSG_WINDOW_INIT:
+ base.OnMessage(message);
+ return OnInit();
+ case GUIMessage.MessageType.GUI_MSG_CLICKED:
+ int iControl = message.SenderControlId;
+ if (iControl == (int)Controls.btn_play && _isdrawfinish) newGame();
+ if (iControl == (int)Controls.btn_deal && _isdrawfinish) drawGame();
+ if (iControl == (int)Controls.btn_bet && _isdrawfinish) {
+ bet++;
+ if (bet > 9) bet = 1;
+ showScore();
+ }
+ int i;
+ for (i = 0; i < 5; ++i)
+ if (iControl == (int)Controls.btnheld1 + i) togleHeld(i);
+ break;
+
+ }
+ return base.OnMessage(message);
+ }
+ private void togleHeld(int index)
+ {
+ if (!heldCards[index])
+ {
+ GUIControl.ShowControl(GetID, (int)Controls.txtheld1 + index);
+ heldCards[index] = !heldCards[index];
+ }
+ else
+ {
+ GUIControl.HideControl(GetID, (int)Controls.txtheld1 + index);
+ heldCards[index] = !heldCards[index];
+ }
+
+ }
+ private bool OnInit()
+ {
+ if (_iswin)
+ {
+ _iswin = false;
+ using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("myPoker.xml"))
+ {
+ int winscore = int.Parse((string)xmlreader.GetValue("myPoker", "money"));
+ money += winscore;
+ showScore();
+ }
+ }
+ if (!_isStarted)
+ {
+
+ int i;
+ for (i = 0; i < 5; i++)
+ {
+ GUIControl.HideControl(GetID, (int)Controls.txtheld1 + i);
+ GUIControl.HideControl(GetID, (int)Controls.btnheld1 + i);
+ }
+ GUIControl.HideControl(GetID, (int)Controls.btn_deal);
+ GUIControl.HideControl(GetID, (int)Controls.btn_bet);
+ GUIPropertyManager.SetProperty("#txtsco", " ");
+ GUIPropertyManager.SetProperty("#txtbet", " ");
+ GUIPropertyManager.SetProperty("#txtturn", " ");
+ bet = 1 ;
+
+ _isStarted = true ;
+
+ }
+ return true;
+ }
+
+//
+ }
+
+
+}
Added: trunk/plugins/mypoker/mypoker.csproj
===================================================================
--- trunk/plugins/mypoker/mypoker.csproj (rev 0)
+++ trunk/plugins/mypoker/mypoker.csproj 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,122 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <ProjectType>Local</ProjectType>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{5527BB4D-C0E1-4F42-B1F7-9E68E411AD4D}</ProjectGuid>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ApplicationIcon>
+ </ApplicationIcon>
+ <AssemblyKeyContainerName>
+ </AssemblyKeyContainerName>
+ <AssemblyName>MyPoker</AssemblyName>
+ <AssemblyOriginatorKeyFile>
+ </AssemblyOriginatorKeyFile>
+ <DefaultClientScript>JScript</DefaultClientScript>
+ <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
+ <DefaultTargetSchema>IE50</DefaultTargetSchema>
+ <DelaySign>false</DelaySign>
+ <OutputType>Library</OutputType>
+ <RootNamespace>MyPoker</RootNamespace>
+ <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
+ <StartupObject>
+ </StartupObject>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <OutputPath>bin\Debug\</OutputPath>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
+ <BaseAddress>285212672</BaseAddress>
+ <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
+ <ConfigurationOverrideFile>
+ </ConfigurationOverrideFile>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <DocumentationFile>
+ </DocumentationFile>
+ <DebugSymbols>true</DebugSymbols>
+ <FileAlignment>4096</FileAlignment>
+ <NoStdLib>false</NoStdLib>
+ <NoWarn>
+ </NoWarn>
+ <Optimize>false</Optimize>
+ <RegisterForComInterop>false</RegisterForComInterop>
+ <RemoveIntegerChecks>false</RemoveIntegerChecks>
+ <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
+ <WarningLevel>4</WarningLevel>
+ <DebugType>full</DebugType>
+ <ErrorReport>prompt</ErrorReport>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <OutputPath>bin\Release\</OutputPath>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
+ <BaseAddress>285212672</BaseAddress>
+ <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
+ <ConfigurationOverrideFile>
+ </ConfigurationOverrideFile>
+ <DefineConstants>TRACE</DefineConstants>
+ <DocumentationFile>
+ </DocumentationFile>
+ <DebugSymbols>false</DebugSymbols>
+ <FileAlignment>4096</FileAlignment>
+ <NoStdLib>false</NoStdLib>
+ <NoWarn>
+ </NoWarn>
+ <Optimize>true</Optimize>
+ <RegisterForComInterop>false</RegisterForComInterop>
+ <RemoveIntegerChecks>false</RemoveIntegerChecks>
+ <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
+ <WarningLevel>4</WarningLevel>
+ <DebugType>none</DebugType>
+ <ErrorReport>prompt</ErrorReport>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Core, Version=1.0.2201.1843, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>G:\Program Files\Team MediaPortal\MediaPortal\Core.dll</HintPath>
+ </Reference>
+ <Reference Include="Databases, Version=1.0.2201.1848, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>G:\Program Files\Team MediaPortal\MediaPortal\Databases.dll</HintPath>
+ </Reference>
+ <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>G:\Program Files\Team MediaPortal\MediaPortal\plugins\windows\Dialogs.dll</HintPath>
+ </Reference>
+ <Reference Include="System">
+ <Name>System</Name>
+ </Reference>
+ <Reference Include="System.Data">
+ <Name>System.Data</Name>
+ </Reference>
+ <Reference Include="System.Windows.Forms">
+ <Name>System.Windows.Forms</Name>
+ </Reference>
+ <Reference Include="System.XML">
+ <Name>System.XML</Name>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="AssemblyInfo.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="cards.cs" />
+ <Compile Include="mypoker.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="mypoketwin.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Properties\" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
+ <PreBuildEvent>
+ </PreBuildEvent>
+ <PostBuildEvent>
+ </PostBuildEvent>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
Added: trunk/plugins/mypoker/mypoker.csproj.user
===================================================================
--- trunk/plugins/mypoker/mypoker.csproj.user (rev 0)
+++ trunk/plugins/mypoker/mypoker.csproj.user 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,57 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <LastOpenVersion>7.10.3077</LastOpenVersion>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ReferencePath>C:\erwin\mediaportal\xbmc\bin\Release\;C:\erwin\mediaportal\xbmc\bin\Release\plugins\windows\</ReferencePath>
+ <CopyProjectDestinationFolder>
+ </CopyProjectDestinationFolder>
+ <CopyProjectUncPath>
+ </CopyProjectUncPath>
+ <CopyProjectOption>0</CopyProjectOption>
+ <ProjectView>ProjectFiles</ProjectView>
+ <ProjectTrust>0</ProjectTrust>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <EnableASPDebugging>false</EnableASPDebugging>
+ <EnableASPXDebugging>false</EnableASPXDebugging>
+ <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
+ <EnableSQLServerDebugging>false</EnableSQLServerDebugging>
+ <RemoteDebugEnabled>false</RemoteDebugEnabled>
+ <RemoteDebugMachine>
+ </RemoteDebugMachine>
+ <StartAction>Project</StartAction>
+ <StartArguments>
+ </StartArguments>
+ <StartPage>
+ </StartPage>
+ <StartProgram>
+ </StartProgram>
+ <StartURL>
+ </StartURL>
+ <StartWorkingDirectory>
+ </StartWorkingDirectory>
+ <StartWithIE>false</StartWithIE>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <EnableASPDebugging>false</EnableASPDebugging>
+ <EnableASPXDebugging>false</EnableASPXDebugging>
+ <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
+ <EnableSQLServerDebugging>false</EnableSQLServerDebugging>
+ <RemoteDebugEnabled>false</RemoteDebugEnabled>
+ <RemoteDebugMachine>
+ </RemoteDebugMachine>
+ <StartAction>Project</StartAction>
+ <StartArguments>
+ </StartArguments>
+ <StartPage>
+ </StartPage>
+ <StartProgram>
+ </StartProgram>
+ <StartURL>
+ </StartURL>
+ <StartWorkingDirectory>
+ </StartWorkingDirectory>
+ <StartWithIE>true</StartWithIE>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
Added: trunk/plugins/mypoker/mypoker.sln
===================================================================
--- trunk/plugins/mypoker/mypoker.sln (rev 0)
+++ trunk/plugins/mypoker/mypoker.sln 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,19 @@
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual C# Express 2005
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mypoker", "mypoker.csproj", "{5527BB4D-C0E1-4F42-B1F7-9E68E411AD4D}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {5527BB4D-C0E1-4F42-B1F7-9E68E411AD4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5527BB4D-C0E1-4F42-B1F7-9E68E411AD4D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5527BB4D-C0E1-4F42-B1F7-9E68E411AD4D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5527BB4D-C0E1-4F42-B1F7-9E68E411AD4D}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
Added: trunk/plugins/mypoker/mypoker.suo
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/mypoker.suo
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/mypoketwin.cs
===================================================================
--- trunk/plugins/mypoker/mypoketwin.cs (rev 0)
+++ trunk/plugins/mypoker/mypoketwin.cs 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,152 @@
+using System;
+using System.Windows.Forms;
+using MediaPortal.GUI.Library;
+using MediaPortal.Dialogs;
+using MediaPortal.Util;
+
+namespace GUIPoker
+{
+ /// <summary>
+ /// Summary description for Class1.
+ /// </summary>
+ public class Class1 : GUIWindow
+ {
+ int bet=0;
+ int score=0;
+ int winscore = 0;
+ int turn = 0;
+ Tcardsgame pokercards = new Tcardsgame();
+ int[] deckCards = new int[5] { 0, 0, 0, 0, 0 };
+ enum Controls : int
+ {
+ btn_done = 4,
+ btn_black = 5,
+ btn_red = 6,
+ card1 = 24,
+ card2 = 25,
+ card3 = 26,
+ card4 = 27,
+ card5 = 28,
+
+ }
+ public Class1()
+ {
+ //
+ // TODO: Add constructor logic here
+ //
+ }
+
+
+
+ public override int GetID
+ {
+ get
+ {
+ return 7179;
+ }
+ set
+ {
+ }
+ }
+
+ public override bool Init()
+ {
+ return Load(GUIGraphicsContext.Skin + @"\mypokerwin.xml");
+
+ }
+
+ protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)
+ {
+ }
+ public override bool OnMessage(GUIMessage message)
+ {
+ switch (message.Message)
+ {
+ case GUIMessage.MessageType.GUI_MSG_WINDOW_INIT:
+ base.OnMessage(message);
+ onInit();
+ return true;
+
+ case GUIMessage.MessageType.GUI_MSG_CLICKED:
+ int iControl = message.SenderControlId;
+ if (iControl == (int)Controls.btn_done) GUIWindowManager.ShowPreviousWindow();
+ if (turn <= 5)
+ {
+ if (iControl == (int)Controls.btn_black) testCard(1);
+ if (iControl == (int)Controls.btn_red) testCard(2);
+ }
+
+ break;
+ case GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT:
+ //System.Windows.Forms.MessageBox.Show(message.Message.ToString());
+
+ using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("myPoker.xml"))
+ {
+ xmlwriter.SetValue("myPoker", "money", winscore.ToString());
+ }
+ break;
+ }
+ return base.OnMessage(message);
+
+ }
+
+ public bool testCard(int type)
+ {
+ turn++;
+ bool score = false;
+ setCard(turn, deckCards[turn - 1], true);
+ //System.Windows.Forms.MessageBox.Show(pokercards.getSuit(deckCards[turn - 1]).ToString());
+
+ if (type == 1 && pokercards.isBlack(deckCards[turn - 1])) score=true;
+ if (type == 2 && pokercards.isRed(deckCards[turn - 1])) score=true;
+ if (score)
+ {
+ winscore = winscore * 2;
+ }
+ else
+ {
+ GUIControl.HideControl(GetID, (int)Controls.btn_black);
+ GUIControl.HideControl(GetID, (int)Controls.btn_red);
+ winscore = 0;
+ GUIPropertyManager.SetProperty("#wintxt", "You lose");
+ }
+ GUIPropertyManager.SetProperty("#winsum", winscore.ToString());
+ return score;
+ }
+
+ public void onInit()
+ {
+ MediaPortal.Profile.XmlSettingsProvider xmlreader = new MediaPortal.Profile.XmlSettingsProvider("myPoker.xml");
+ bet = int.Parse((string)xmlreader.GetValue("myPoker", "bet"));
+ score = int.Parse((string)xmlreader.GetValue("myPoker", "score"));
+ winscore = bet * score;
+ GUIPropertyManager.SetProperty("#wintxt", pokercards.getScorToString(score));
+ GUIPropertyManager.SetProperty("#winsum", winscore.ToString());
+ GUIControl.ShowControl(GetID, (int)Controls.btn_black);
+ GUIControl.ShowControl(GetID, (int)Controls.btn_red);
+
+ pokercards.suffle();
+ turn = 0;
+ for (int i = 1; i < 6; i++)
+ {
+ setCard(i, 0, false);
+ deckCards[i-1]=pokercards.getCard();
+ }
+ }
+
+ private void setCard(int cardNum, int cardType, bool playSound)
+ {
+ GUIImage image = (GUIImage)GetControl((int)Controls.card1 - 1 + cardNum);
+ if (cardType == 0) image.SetFileName(GUIGraphicsContext.Skin + @"\media\poker\deck_background.png");
+ if (cardType > 0)
+ {
+ string strFileNumber = cardType.ToString().Trim();
+ image.SetFileName(GUIGraphicsContext.Skin + string.Format("\\media\\poker\\card{0}.png", strFileNumber));
+
+ if (playSound) Utils.PlaySound(GUIGraphicsContext.Skin + @"\media\poker\play.wav", false, true);
+ }
+ }
+
+ }
+
+}
Added: trunk/plugins/mypoker/skin/MCE/media/mypoker.xml
===================================================================
--- trunk/plugins/mypoker/skin/MCE/media/mypoker.xml (rev 0)
+++ trunk/plugins/mypoker/skin/MCE/media/mypoker.xml 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,230 @@
+<window>
+ <id>7178</id>
+ <defaultcontrol>0</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <controls>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>0</posX>
+ <posY>0</posY>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>button</type>
+ <id>4</id>
+ <posX>488</posX>
+ <posY>24</posY>
+ <label>Bet</label>
+ </control>
+ <control>
+ <type>button</type>
+ <id>38</id>
+ <posX>608</posX>
+ <posY>136</posY>
+ <label>Hold</label>
+ <width>64</width>
+ <height>32</height>
+ </control>
+ <control>
+ <type>button</type>
+ <id>37</id>
+ <posX>472</posX>
+ <posY>136</posY>
+ <label>Hold</label>
+ <width>64</width>
+ <height>32</height>
+ </control>
+ <control>
+ <type>button</type>
+ <id>36</id>
+ <posX>336</posX>
+ <posY>136</posY>
+ <label>Hold</label>
+ <width>64</width>
+ <height>32</height>
+ </control>
+ <control>
+ <type>button</type>
+ <id>35</id>
+ <posX>208</posX>
+ <posY>136</posY>
+ <label>Hold</label>
+ <width>64</width>
+ <height>32</height>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>33</id>
+ <posX>624</posX>
+ <posY>336</posY>
+ <label>HELD</label>
+ <textcolor>ff90ee90</textcolor>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>32</id>
+ <posX>488</posX>
+ <posY>336</posY>
+ <label>HELD</label>
+ <textcolor>ff90ee90</textcolor>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>31</id>
+ <posX>352</posX>
+ <posY>336</posY>
+ <label>HELD</label>
+ <textcolor>ff90ee90</textcolor>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>30</id>
+ <posX>216</posX>
+ <posY>336</posY>
+ <label>HELD</label>
+ <textcolor>ff90ee90</textcolor>
+ <disabledcolor>ff556b2f</disabledcolor>
+ </control>
+ <control>
+ <type>image</type>
+ <id>28</id>
+ <posX>592</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>27</id>
+ <posX>456</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>26</id>
+ <posX>320</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>25</id>
+ <posX>184</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>24</id>
+ <posX>48</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ <filtered>no</filtered>
+ </control>
+ <control>
+ <type>button</type>
+ <id>2</id>
+ <posX>48</posX>
+ <posY>24</posY>
+ <label>19002</label>
+ <width>184</width>
+ <height>32</height>
+ </control>
+ <control>
+ <type>button</type>
+ <id>3</id>
+ <posX>264</posX>
+ <posY>24</posY>
+ <label>Deal</label>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>29</id>
+ <posX>72</posX>
+ <posY>336</posY>
+ <label>HELD</label>
+ <textcolor>ff90ee90</textcolor>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>button</type>
+ <id>34</id>
+ <posX>64</posX>
+ <posY>136</posY>
+ <label>Hold</label>
+ <width>64</width>
+ <height>32</height>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>40</id>
+ <posX>696</posX>
+ <posY>368</posY>
+ <label>#b</label>
+ <font>font32</font>
+ <align>right</align>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>41</id>
+ <posX>472</posX>
+ <posY>384</posY>
+ <label>#txtbet</label>
+ <font>font18</font>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>42</id>
+ <posX>472</posX>
+ <posY>435</posY>
+ <label>#txtsco</label>
+ <font>font18</font>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>43</id>
+ <posX>696</posX>
+ <posY>425</posY>
+ <label>#sco</label>
+ <font>font32</font>
+ <align>right</align>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>39</id>
+ <posX>472</posX>
+ <posY>496</posY>
+ <label>#txtturn</label>
+ <font>font18</font>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>44</id>
+ <posX>696</posX>
+ <posY>480</posY>
+ <label>#turn</label>
+ <font>font32</font>
+ <align>right</align>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ </controls>
+</window>
\ No newline at end of file
Added: trunk/plugins/mypoker/skin/MCE/media/mypokerwin.xml
===================================================================
--- trunk/plugins/mypoker/skin/MCE/media/mypokerwin.xml (rev 0)
+++ trunk/plugins/mypoker/skin/MCE/media/mypokerwin.xml 2007-05-11 21:31:08 UTC (rev 397)
@@ -0,0 +1,99 @@
+<window>
+ <id>7179</id>
+ <defaultcontrol>0</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <controls>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>0</posX>
+ <posY>0</posY>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>button</type>
+ <id>4</id>
+ <posX>520</posX>
+ <posY>16</posY>
+ <label>Done</label>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>60</id>
+ <posX>48</posX>
+ <posY>72</posY>
+ <label>#wintxt</label>
+ <font>font18</font>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>image</type>
+ <id>28</id>
+ <posX>592</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>27</id>
+ <posX>456</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>26</id>
+ <posX>320</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>25</id>
+ <posX>184</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>24</id>
+ <posX>48</posX>
+ <posY>176</posY>
+ <width>100</width>
+ <height>150</height>
+ <texture>background.png</texture>
+ <filtered>no</filtered>
+ </control>
+ <control>
+ <type>fadelabel</type>
+ <id>56</id>
+ <posX>48</posX>
+ <posY>100</posY>
+ <label>#winsum</label>
+ <font>font18</font>
+ <disabledcolor>ff808080</disabledcolor>
+ </control>
+ <control>
+ <type>button</type>
+ <id>5</id>
+ <posX>507</posX>
+ <posY>397</posY>
+ <label>Black</label>
+ </control>
+ <control>
+ <type>button</type>
+ <id>6</id>
+ <posX>507</posX>
+ <posY>451</posY>
+ <label>Red</label>
+ </control>
+ </controls>
+</window>
\ No newline at end of file
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card1.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card10.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card10.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card11.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card11.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card12.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card12.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card13.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card13.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card14.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card14.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card15.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card15.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card16.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card16.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card17.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card17.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card18.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card18.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card19.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card19.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card2.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/mypoker/skin/MCE/media/poker/card20.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/mypoker/skin/MCE/media/poker/card20.png
____________________________...
[truncated message content] |
|
From: <ze...@us...> - 2007-05-11 21:08:49
|
Revision: 396
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=396&view=rev
Author: zebons
Date: 2007-05-11 14:08:46 -0700 (Fri, 11 May 2007)
Log Message:
-----------
enhance 'selection by' invoiding some movies to be displayed on many views
correct ESC key press after selection. Now returns on Selection Menu
Modified Paths:
--------------
trunk/plugins/MyFilms/MesFilms.cs
trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs
Modified: trunk/plugins/MyFilms/MesFilms.cs
===================================================================
--- trunk/plugins/MyFilms/MesFilms.cs 2007-05-11 04:37:46 UTC (rev 395)
+++ trunk/plugins/MyFilms/MesFilms.cs 2007-05-11 21:08:46 UTC (rev 396)
@@ -270,6 +270,12 @@
Change_LayOut(Layout);
if (GetPrevFilmList()) return;
}
+ if ((actionType.wID == Action.ActionType.ACTION_PREVIOUS_MENU) && (boolreturn))
+ {
+ boolreturn = false;
+ Change_view(WStrSort);
+ return;
+ }
base.OnAction(actionType);
}
//---------------------------------------------------------------------------------------
@@ -552,6 +558,7 @@
{
wselectedlabel = facadeView.SelectedListItem.Label;
Change_LayOut(Layout);
+ boolreturn = true;
do
{
if (StrTitleSelect != "") StrTitleSelect += TitleDelim;
@@ -689,6 +696,17 @@
// Load the DataSet.
foreach (DataRow r in LectureDonn\xE9es(StrFilmSelect, StrSort, StrSortSens))
{
+ if (boolreturn)//in case of selection by view verify if value correspond excatly to the searched string
+ {
+ string[] split = r[WStrSort].ToString().Split(new Char[] { ',' });
+ foreach (string s in split)
+ {
+ if (s.Trim().ToLower() == wselectedlabel.Trim().ToLower())
+ goto suite;
+ }
+ goto fin;
+ }
+ suite:
sFullTitle = sTitle = r[StrTitle1].ToString();
DelimCnt2 = NewString.PosCount(TitleDelim, sTitle, false);
if (DelimCnt <= DelimCnt2)
@@ -757,6 +775,7 @@
if ((int)(r["Number"]) == iSelItem) l_index = facadeView.Count - 1; //test if this item is one to select
}
sPrevTitle = sTitle;
+ fin: ;
}
if ((l_index > facadeView.Count - 1) || (l_index < 0))
l_index = 0;
@@ -1063,7 +1082,7 @@
Wstar = NewWstar;
BtnSrtBy.Label = GUILocalizeStrings.Get(103);
boolselect = true;
- boolreturn = true;
+// boolreturn = true;
if (ClearIndex) l_index = 0;
facadeView.Clear();
@@ -1157,6 +1176,7 @@
xmlwriter.SetValue(CurrentConfig, "Selection", StrTxtSelect);
xmlwriter.SetValue(CurrentConfig, "IndexItem", (facadeView.SelectedListItemIndex > -1) ? ((boolselect) ? facadeView.SelectedListItemIndex.ToString() : facadeView.SelectedListItem.ItemId.ToString()) : "-1"); //may need to check if there is no item selected and so save -1
xmlwriter.SetValueAsBool(CurrentConfig, "boolselect", boolselect);
+ xmlwriter.SetValueAsBool(CurrentConfig, "boolreturn", boolreturn);
xmlwriter.SetValue(CurrentConfig, "WStrSort", WStrSort);
xmlwriter.SetValue(CurrentConfig, "Wstar", Wstar);
xmlwriter.SetValue(CurrentConfig, "WLayOut", Layout);
@@ -1233,6 +1253,7 @@
StrTxtSelect = xmlreader.GetValueAsString(CurrentConfig, "Selection", "");
l_index = xmlreader.GetValueAsInt(CurrentConfig, "IndexItem", -1);
boolselect = xmlreader.GetValueAsBool(CurrentConfig, "boolselect", false);
+ boolreturn = xmlreader.GetValueAsBool(CurrentConfig, "boolreturn", false);
WStrSort = xmlreader.GetValueAsString(CurrentConfig, "WStrSort", "");
Wstar = xmlreader.GetValueAsString(CurrentConfig, "Wstar", "");
LastID = xmlreader.GetValueAsInt(CurrentConfig, "LastID", -1);
@@ -1446,26 +1467,26 @@
private void Change_view(string choice_view)
{
boolstorage = false;
- if (choice_view == "All")
+ if (choice_view.ToLower() == "all")
{
// Change View All Films
StrSelect = StrTitleSelect = StrTxtSelect = ""; //clear all selects
boolselect = false;
+ boolreturn = false;
GetFilmList();
return;
}
- if (choice_view == "Year")
+ if (choice_view.ToLower() == "year")
{
// Change View by Year
Change_LayOut(0);
WStrSort = "YEAR";
WStrSortSens = " DESC";
BtnSrtBy.IsAscending = false;
- boolreturn = true;
getSelectFromDivx(StrTitle1.ToString() + " not like ''", WStrSort, WStrSortSens, "*", true, "");
return;
}
- if (choice_view == "Category")
+ if (choice_view.ToLower() == "category")
{
// Change View by "Category":
Change_LayOut(0);
@@ -1475,7 +1496,7 @@
getSelectFromDivx(StrTitle1.ToString() + " not like ''", WStrSort, WStrSortSens, "*", true, "");
return;
}
- if (choice_view == "Country")
+ if (choice_view.ToLower() == "country")
{
// Change View by "Country":
Change_LayOut(0);
@@ -1485,7 +1506,7 @@
getSelectFromDivx(StrTitle1.ToString() + " not like ''", WStrSort, WStrSortSens, "*", true, "");
return;
}
- if (choice_view == "Storage")
+ if (choice_view.ToLower() == "storage")
{
// Change View by "Storage":
StrSelect = "((" + StrTitle1.ToString() + " not like '') and (" + StrStorage.ToString() + " not like ''))";
@@ -1501,7 +1522,7 @@
GetFilmList();
return;
}
- if (choice_view == "View1")
+ if (choice_view.ToLower() == "view1")
{
// Change View by "View1":
Change_LayOut(0);
@@ -1514,7 +1535,7 @@
getSelectFromDivx(StrTitle1.ToString() + " not like ''", WStrSort, WStrSortSens, "*", true, "");
return;
}
- if (choice_view == "View2")
+ if (choice_view.ToLower() == "view2")
{
// Change View by "View2":
Change_LayOut(0);
@@ -1527,7 +1548,7 @@
getSelectFromDivx(StrTitle1.ToString() + " not like ''", WStrSort, WStrSortSens, "*", true, "");
return;
}
- if (choice_view == "Config")
+ if (choice_view.ToLower() == "config")
{
string newConfig = Choice_Config();
newConfig = Control_Access_Config(newConfig);
Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs
===================================================================
--- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-05-11 04:37:46 UTC (rev 395)
+++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-05-11 21:08:46 UTC (rev 396)
@@ -709,7 +709,7 @@
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(69, 13);
this.label10.TabIndex = 34;
- this.label10.Text = "Version 4.2.3";
+ this.label10.Text = "Version 4.2.4";
//
// textBox1
//
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <an...@us...> - 2007-05-11 04:37:47
|
Revision: 395
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=395&view=rev
Author: and-81
Date: 2007-05-10 21:37:46 -0700 (Thu, 10 May 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/IgorPlugUSB/IgorPlugUSB.cs
trunk/plugins/IgorPlugUSB/IgorPlugUSB.csproj
Modified: trunk/plugins/IgorPlugUSB/IgorPlugUSB.cs
===================================================================
--- trunk/plugins/IgorPlugUSB/IgorPlugUSB.cs 2007-05-10 05:51:39 UTC (rev 394)
+++ trunk/plugins/IgorPlugUSB/IgorPlugUSB.cs 2007-05-11 04:37:46 UTC (rev 395)
@@ -22,8 +22,8 @@
#region Constants
- internal const string RemoteFile = "IgorPlugUSBMap.xml";
- internal const string InputHandler = "IgorPlugUSB";
+ internal const string RemoteFile = "IgorPlugUSBMap.xml";
+ internal const string InputHandler = "IgorPlugUSB";
#endregion Constants
Modified: trunk/plugins/IgorPlugUSB/IgorPlugUSB.csproj
===================================================================
--- trunk/plugins/IgorPlugUSB/IgorPlugUSB.csproj 2007-05-10 05:51:39 UTC (rev 394)
+++ trunk/plugins/IgorPlugUSB/IgorPlugUSB.csproj 2007-05-11 04:37:46 UTC (rev 395)
@@ -56,14 +56,14 @@
<Compile Include="MappedKeyCode.cs" />
</ItemGroup>
<ItemGroup>
- <Reference Include="Core, Version=1.0.2581.1884, Culture=neutral, processorArchitecture=MSIL">
+ <Reference Include="Core, Version=1.0.2546.32606, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\MediaPortal\Core\bin\Release\Core.dll</HintPath>
+ <HintPath>..\..\MediaPortal 0.2.2.0\Core.DLL</HintPath>
<Private>False</Private>
</Reference>
- <Reference Include="RemotePlugins, Version=1.0.2581.1913, Culture=neutral, processorArchitecture=MSIL">
+ <Reference Include="RemotePlugins, Version=1.0.2546.32615, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\MediaPortal\RemotePlugins\bin\Release\RemotePlugins.dll</HintPath>
+ <HintPath>..\..\MediaPortal 0.2.2.0\RemotePlugins.DLL</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
@@ -71,11 +71,6 @@
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
- <Reference Include="Utils, Version=1.0.2581.1867, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\MediaPortal\Utils\bin\Release\Utils.dll</HintPath>
- <Private>False</Private>
- </Reference>
</ItemGroup>
<PropertyGroup>
<PostBuildEvent>copy "*.*" "\MediaPortal Development\Plugin Releases\IgorPlugUSB\"</PostBuildEvent>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ze...@us...> - 2007-05-10 05:51:42
|
Revision: 394
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=394&view=rev
Author: zebons
Date: 2007-05-09 22:51:39 -0700 (Wed, 09 May 2007)
Log Message:
-----------
Add InfoTips on setup fields or groupBox
Modified Paths:
--------------
trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs
trunk/plugins/MyFilms/MesFilmsSetup.cs
Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs
===================================================================
--- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-05-09 17:30:36 UTC (rev 393)
+++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-05-10 05:51:39 UTC (rev 394)
@@ -535,9 +535,9 @@
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(7, 103);
this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(124, 13);
+ this.label5.Size = new System.Drawing.Size(145, 13);
this.label5.TabIndex = 24;
- this.label5.Text = "Search Path for File read";
+ this.label5.Text = "Paths for Movies File Search ";
//
// AntIdentLabel
//
@@ -709,7 +709,7 @@
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(69, 13);
this.label10.TabIndex = 34;
- this.label10.Text = "Version 4.2.2";
+ this.label10.Text = "Version 4.2.3";
//
// textBox1
//
Modified: trunk/plugins/MyFilms/MesFilmsSetup.cs
===================================================================
--- trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-05-09 17:30:36 UTC (rev 393)
+++ trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-05-10 05:51:39 UTC (rev 394)
@@ -34,6 +34,31 @@
private void MesFilmsSetup_Load(object sender, EventArgs e)
{
Refresh_Items(true);
+ ToolTip ToolTip1 = new ToolTip();
+ ToolTip1.AutoPopDelay = 15000;
+ ToolTip1.SetToolTip(this.Config_Name, "Enter here a config Name." + "\n" + "You can define many configuration on many (or on the same) database with differents selections." + "\n" + "Some configurations can be protected by a password usefull for children protection " + "\n" + "if you don't want they watch some movies...");
+ ToolTip1.SetToolTip(this.Config_Dflt, "If you select this, that configuration will be loaded each time you enter in the plugin." + "\n" + "If no default config defined and many configs, the configuration to load will be asked the first time." + "\n" + "After, the plugin load the last configuration used if no default defined");
+ ToolTip1.SetToolTip(this.Dwp, "Enter a password here if you want to protect that configuration." + "\n" + "Usefull for children protection if you don't want they watch some movies." + "\n" + "You have to repeat your password");
+ ToolTip1.SetToolTip(this.textBox1, "Name of the plugin displayed in MP." + "\n" + "By default Films, but you can choose a better name");
+ ToolTip1.SetToolTip(this.MesFilmsCat, "Enter here the complete Filename + Path to your AMC XML Database." + "\n" + "You can use the search button to help you");
+ ToolTip1.SetToolTip(this.MesFilmsImg, "Path to find pictures of your Movies" + "\n" + "(by default same path than your XML file)");
+ ToolTip1.SetToolTip(this.CatalogType, "Type of your Catalog : ANT Movie Catalog or DVDProfiler." + "\n" + "In case of DVDProfiler a new Catalog file will be created" + "\n" + "Name CatalogFile_tmp.xml. That new file is fully compatible with AMC...");
+ ToolTip1.SetToolTip(this.AntStorage, "Give here the fied of your AMC Database where you store" + "\n" + "the Movie Filename. Information used for launching Movie." + "\n" + "In that field, you can put either a filename, either many filenames" + "\n" + "separated by a ';' if your movie as many files" + "\n" + "either a playlist file (.m3u) text file with a list of filenames");
+ ToolTip1.SetToolTip(this.PathStorage, "Paths used for searching the file movie for launching. First search is made" + "\n" + "with information stored in 'Ant Item for Storage File Info' field of your DB," + "\n" + "if not found, search is made with those paths and after with amovibles drives" + "\n" + "of your computer. You can defined many paths separated by a ';'");
+ ToolTip1.SetToolTip(this.AntIdentItem, "When launching movies, if the filename is not found," + "\n" + "a popup windows ask you to mount the right media." + "\n" + "You can define here which item of your AMC database" + "\n" + "is usefull for identifying the right media. A label associated" + "\n" + "with that information can be defined below");
+ ToolTip1.SetToolTip(this.AntIdentLabel, "Text associated with the mounting information helping you" + "\n" + "to find the right media for launching movie");
+ ToolTip1.SetToolTip(this.LayOut, "Default View (List, Icons, Larges Icons) used when launching" + "\n" + "for the fist time that configuration ." + "\n" + "After, the last view defined is re-used." + "\n" + "You can change it with the Layout Button when running the plugin");
+ ToolTip1.SetToolTip(this.groupBox5, "Fields of your DB used as Master Title" + "\n" + "(often OriginalTitle or TranslatedTitle) and secondary Title");
+ ToolTip1.SetToolTip(this.TitleDelim, "Classification delimiter Title." + "\n" + "With that you can classify your movie collection" + "\n" + "essentially for series movies. Take a look on the MP forum" + "\n" + "for that use");
+ ToolTip1.SetToolTip(this.groupBox3, "Some views (Genre, Year, Country..) are predefined." + "\n" + "You can define here two extra views for your needings." + "\n" + "You have to enter an item field and a label associated with." + "\n" + "That Text will be displayed in choice View Menu");
+ ToolTip1.SetToolTip(this.groupBox8, "Default View used when you enter in that" + "\n" + "Configuration for the first time. Last view defined in the plugin will be used then." + "\n" + "You have to define an item and eventually a value associated with" + "\n" + "Ex: you define 'Category' as default view Item;" + "\n" + "if you put 'Comedy' as value, all comedies movies'll be displayed;" + "\n" + "if you leave it blank a Category Choice Menu will be proposed");
+ ToolTip1.SetToolTip(this.groupBox2, "You can filter here records you want to see" + "\n" + "with that configuration. You have to define" + "\n" + "items and values associated with for selections." + "\n" + "Ex: exclude Hard movies for a children default configuration" + "\n" + "Hard movies'll be include in another config protected wit a password");
+ ToolTip1.SetToolTip(this.groupBox1, "You can add extra informations on the detailed View." + "\n" + "Two with a label assopciated with and one without." + "\n" + "Try it to see where those extra infos are displayed" + "\n" + "and choose the right place for your needings");
+ ToolTip1.SetToolTip(this.groupBox4, "Some fields are already updatable in the plugin." + "\n" + "You can define here two supplementary fields" + "\n" + "that can be updated. Define Fields and label associated with");
+ ToolTip1.SetToolTip(this.groupBox6, "Some sorts are already defined in the plugin" + "\n" + "(Year, Date, Rating, Name..); You can define add another" + "\n" + "sort for your need. Define Field and label associated with");
+ ToolTip1.SetToolTip(this.ButSave, "Save the Configuration. Controls are made at this time." + "\n" + "For DVDP database type, the temporary is built here" + "\n" + "and after each time the DVDP XML update date will be newer than the generated file one");
+ ToolTip1.SetToolTip(this.ButDelet, "Delete all informations for that configuration." + "\n" + "If that config was the default one, No default config'll be define.");
+ ToolTip1.SetToolTip(this.ButQuit, "No comments...");
textBox1.Text = MyFilms_xmlreader.GetValueAsString("MyFilms", "PluginName", "Films");
MesFilms_nb_config = MyFilms_xmlreader.GetValueAsInt("MyFilms", "NbConfig", -1);
for (int i = 0; i < (int)MesFilms_nb_config; i++)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <du...@us...> - 2007-05-09 17:30:40
|
Revision: 393
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=393&view=rev
Author: dukus
Date: 2007-05-09 10:30:36 -0700 (Wed, 09 May 2007)
Log Message:
-----------
Minor bug fix
Modified Paths:
--------------
trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs
trunk/plugins/mpinstaler/MPInstaler/Form1.cs
trunk/plugins/mpinstaler/MPInstaler/GroupForm.Designer.cs
trunk/plugins/mpinstaler/MPInstaler/GroupForm.cs
trunk/plugins/mpinstaler/MPInstaler/MPinstalerStruct.cs
Modified: trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs 2007-05-08 19:20:17 UTC (rev 392)
+++ trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs 2007-05-09 17:30:36 UTC (rev 393)
@@ -61,6 +61,7 @@
this.otherToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.customizationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.postSetupToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.setupGroupsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.bossview = new System.Windows.Forms.ListView();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
@@ -81,6 +82,7 @@
this.textt_comboBox1 = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.tabPage_Advanced = new System.Windows.Forms.TabPage();
+ this.propertyGrid2 = new System.Windows.Forms.PropertyGrid();
this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
this.button_browse = new System.Windows.Forms.Button();
this.label11 = new System.Windows.Forms.Label();
@@ -109,8 +111,6 @@
this.openToolStripButton = new System.Windows.Forms.ToolStripButton();
this.saveToolStripButton = new System.Windows.Forms.ToolStripButton();
this.toolStripContainer1 = new System.Windows.Forms.ToolStripContainer();
- this.setupGroupsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.propertyGrid2 = new System.Windows.Forms.PropertyGrid();
this.menuStrip1.SuspendLayout();
this.contextMenuStrip1.SuspendLayout();
this.tabPage_Skin.SuspendLayout();
@@ -368,10 +368,17 @@
// postSetupToolStripMenuItem
//
this.postSetupToolStripMenuItem.Name = "postSetupToolStripMenuItem";
- this.postSetupToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.postSetupToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
this.postSetupToolStripMenuItem.Text = "Post Setup";
this.postSetupToolStripMenuItem.Click += new System.EventHandler(this.postSetupToolStripMenuItem_Click);
//
+ // setupGroupsToolStripMenuItem
+ //
+ this.setupGroupsToolStripMenuItem.Name = "setupGroupsToolStripMenuItem";
+ this.setupGroupsToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
+ this.setupGroupsToolStripMenuItem.Text = "Setup Groups";
+ this.setupGroupsToolStripMenuItem.Click += new System.EventHandler(this.setupGroupsToolStripMenuItem_Click);
+ //
// bossview
//
this.bossview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@@ -514,7 +521,7 @@
this.tabPage_Text.Controls.Add(this.label1);
this.tabPage_Text.Location = new System.Drawing.Point(4, 22);
this.tabPage_Text.Name = "tabPage_Text";
- this.tabPage_Text.Size = new System.Drawing.Size(643, 120);
+ this.tabPage_Text.Size = new System.Drawing.Size(643, 153);
this.tabPage_Text.TabIndex = 2;
this.tabPage_Text.Text = "Text Properties";
this.tabPage_Text.UseVisualStyleBackColor = true;
@@ -556,6 +563,17 @@
this.tabPage_Advanced.Text = "Advanced Properties";
this.tabPage_Advanced.UseVisualStyleBackColor = true;
//
+ // propertyGrid2
+ //
+ this.propertyGrid2.CommandsVisibleIfAvailable = false;
+ this.propertyGrid2.Location = new System.Drawing.Point(189, 3);
+ this.propertyGrid2.Name = "propertyGrid2";
+ this.propertyGrid2.PropertySort = System.Windows.Forms.PropertySort.NoSort;
+ this.propertyGrid2.Size = new System.Drawing.Size(231, 147);
+ this.propertyGrid2.TabIndex = 6;
+ this.propertyGrid2.ToolbarVisible = false;
+ this.propertyGrid2.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.propertyGrid2_PropertyValueChanged);
+ //
// propertyGrid1
//
this.propertyGrid1.CommandsVisibleIfAvailable = false;
@@ -627,6 +645,7 @@
"Input",
"Others",
"PIM",
+ "Skins",
"Utilities",
"Video/Movies",
"Web",
@@ -861,24 +880,6 @@
this.toolStripContainer1.TabIndex = 5;
this.toolStripContainer1.Text = "toolStripContainer1";
//
- // setupGroupsToolStripMenuItem
- //
- this.setupGroupsToolStripMenuItem.Name = "setupGroupsToolStripMenuItem";
- this.setupGroupsToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
- this.setupGroupsToolStripMenuItem.Text = "Setup Groups";
- this.setupGroupsToolStripMenuItem.Click += new System.EventHandler(this.setupGroupsToolStripMenuItem_Click);
- //
- // propertyGrid2
- //
- this.propertyGrid2.CommandsVisibleIfAvailable = false;
- this.propertyGrid2.Location = new System.Drawing.Point(189, 3);
- this.propertyGrid2.Name = "propertyGrid2";
- this.propertyGrid2.PropertySort = System.Windows.Forms.PropertySort.NoSort;
- this.propertyGrid2.Size = new System.Drawing.Size(231, 147);
- this.propertyGrid2.TabIndex = 6;
- this.propertyGrid2.ToolbarVisible = false;
- this.propertyGrid2.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.propertyGrid2_PropertyValueChanged);
- //
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
Modified: trunk/plugins/mpinstaler/MPInstaler/Form1.cs
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/Form1.cs 2007-05-08 19:20:17 UTC (rev 392)
+++ trunk/plugins/mpinstaler/MPInstaler/Form1.cs 2007-05-09 17:30:36 UTC (rev 393)
@@ -579,6 +579,7 @@
private void setupGroupsToolStripMenuItem_Click(object sender, EventArgs e)
{
+ _struct.AddFileList(bossview);
GroupForm dlg = new GroupForm();
dlg._struct = this._struct;
dlg.ShowDialog();
Modified: trunk/plugins/mpinstaler/MPInstaler/GroupForm.Designer.cs
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/GroupForm.Designer.cs 2007-05-08 19:20:17 UTC (rev 392)
+++ trunk/plugins/mpinstaler/MPInstaler/GroupForm.Designer.cs 2007-05-09 17:30:36 UTC (rev 393)
@@ -30,24 +30,24 @@
{
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
- this.tabPage2 = new System.Windows.Forms.TabPage();
- this.button1 = new System.Windows.Forms.Button();
+ this.button5 = new System.Windows.Forms.Button();
+ this.button4 = new System.Windows.Forms.Button();
+ this.textBox2 = new System.Windows.Forms.TextBox();
+ this.textBox1 = new System.Windows.Forms.TextBox();
this.listView1 = new System.Windows.Forms.ListView();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
- this.textBox1 = new System.Windows.Forms.TextBox();
- this.textBox2 = new System.Windows.Forms.TextBox();
- this.comboBox1 = new System.Windows.Forms.ComboBox();
+ this.tabPage2 = new System.Windows.Forms.TabPage();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.button3 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.listView3 = new System.Windows.Forms.ListView();
+ this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
this.listView2 = new System.Windows.Forms.ListView();
- this.listView3 = new System.Windows.Forms.ListView();
this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
- this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
- this.button2 = new System.Windows.Forms.Button();
- this.button3 = new System.Windows.Forms.Button();
- this.button4 = new System.Windows.Forms.Button();
- this.button5 = new System.Windows.Forms.Button();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
+ this.comboBox1 = new System.Windows.Forms.ComboBox();
+ this.button1 = new System.Windows.Forms.Button();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage2.SuspendLayout();
@@ -78,34 +78,39 @@
this.tabPage1.Text = "Groups";
this.tabPage1.UseVisualStyleBackColor = true;
//
- // tabPage2
+ // button5
//
- this.tabPage2.Controls.Add(this.label2);
- this.tabPage2.Controls.Add(this.label1);
- this.tabPage2.Controls.Add(this.button3);
- this.tabPage2.Controls.Add(this.button2);
- this.tabPage2.Controls.Add(this.listView3);
- this.tabPage2.Controls.Add(this.listView2);
- this.tabPage2.Controls.Add(this.comboBox1);
- this.tabPage2.Location = new System.Drawing.Point(4, 22);
- this.tabPage2.Name = "tabPage2";
- this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
- this.tabPage2.Size = new System.Drawing.Size(477, 209);
- this.tabPage2.TabIndex = 1;
- this.tabPage2.Text = "Groups mapping";
- this.tabPage2.UseVisualStyleBackColor = true;
- this.tabPage2.Enter += new System.EventHandler(this.tabPage2_Enter);
+ this.button5.Location = new System.Drawing.Point(396, 173);
+ this.button5.Name = "button5";
+ this.button5.Size = new System.Drawing.Size(75, 23);
+ this.button5.TabIndex = 4;
+ this.button5.Text = "Remove";
+ this.button5.UseVisualStyleBackColor = true;
//
- // button1
+ // button4
//
- this.button1.Location = new System.Drawing.Point(406, 257);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(75, 23);
- this.button1.TabIndex = 1;
- this.button1.Text = "Close";
- this.button1.UseVisualStyleBackColor = true;
- this.button1.Click += new System.EventHandler(this.button1_Click);
+ this.button4.Location = new System.Drawing.Point(315, 173);
+ this.button4.Name = "button4";
+ this.button4.Size = new System.Drawing.Size(75, 23);
+ this.button4.TabIndex = 3;
+ this.button4.Text = "Add";
+ this.button4.UseVisualStyleBackColor = true;
+ this.button4.Click += new System.EventHandler(this.button4_Click);
//
+ // textBox2
+ //
+ this.textBox2.Location = new System.Drawing.Point(65, 147);
+ this.textBox2.Name = "textBox2";
+ this.textBox2.Size = new System.Drawing.Size(406, 20);
+ this.textBox2.TabIndex = 2;
+ //
+ // textBox1
+ //
+ this.textBox1.Location = new System.Drawing.Point(6, 147);
+ this.textBox1.Name = "textBox1";
+ this.textBox1.Size = new System.Drawing.Size(53, 20);
+ this.textBox1.TabIndex = 1;
+ //
// listView1
//
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
@@ -130,45 +135,67 @@
this.columnHeader2.Text = "Name";
this.columnHeader2.Width = 372;
//
- // textBox1
+ // tabPage2
//
- this.textBox1.Location = new System.Drawing.Point(6, 147);
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new System.Drawing.Size(53, 20);
- this.textBox1.TabIndex = 1;
+ this.tabPage2.Controls.Add(this.label2);
+ this.tabPage2.Controls.Add(this.label1);
+ this.tabPage2.Controls.Add(this.button3);
+ this.tabPage2.Controls.Add(this.button2);
+ this.tabPage2.Controls.Add(this.listView3);
+ this.tabPage2.Controls.Add(this.listView2);
+ this.tabPage2.Controls.Add(this.comboBox1);
+ this.tabPage2.Location = new System.Drawing.Point(4, 22);
+ this.tabPage2.Name = "tabPage2";
+ this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
+ this.tabPage2.Size = new System.Drawing.Size(477, 209);
+ this.tabPage2.TabIndex = 1;
+ this.tabPage2.Text = "Groups mapping";
+ this.tabPage2.UseVisualStyleBackColor = true;
+ this.tabPage2.Enter += new System.EventHandler(this.tabPage2_Enter);
//
- // textBox2
+ // label2
//
- this.textBox2.Location = new System.Drawing.Point(65, 147);
- this.textBox2.Name = "textBox2";
- this.textBox2.Size = new System.Drawing.Size(406, 20);
- this.textBox2.TabIndex = 2;
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(6, 30);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(69, 13);
+ this.label2.TabIndex = 6;
+ this.label2.Text = "Avaiable files";
//
- // comboBox1
+ // label1
//
- this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.comboBox1.FormattingEnabled = true;
- this.comboBox1.Location = new System.Drawing.Point(6, 6);
- this.comboBox1.Name = "comboBox1";
- this.comboBox1.Size = new System.Drawing.Size(465, 21);
- this.comboBox1.TabIndex = 0;
- this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(267, 30);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(69, 13);
+ this.label1.TabIndex = 5;
+ this.label1.Text = "Files in group";
//
- // listView2
+ // button3
//
- this.listView2.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
- this.columnHeader3});
- this.listView2.Location = new System.Drawing.Point(6, 49);
- this.listView2.Name = "listView2";
- this.listView2.Size = new System.Drawing.Size(170, 154);
- this.listView2.TabIndex = 1;
- this.listView2.UseCompatibleStateImageBehavior = false;
- this.listView2.View = System.Windows.Forms.View.Details;
+ this.button3.Location = new System.Drawing.Point(196, 124);
+ this.button3.Name = "button3";
+ this.button3.Size = new System.Drawing.Size(49, 22);
+ this.button3.TabIndex = 4;
+ this.button3.Text = "<-";
+ this.button3.UseVisualStyleBackColor = true;
+ this.button3.Click += new System.EventHandler(this.button3_Click);
//
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(196, 85);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(49, 21);
+ this.button2.TabIndex = 3;
+ this.button2.Text = "->";
+ this.button2.UseVisualStyleBackColor = true;
+ this.button2.Click += new System.EventHandler(this.button2_Click);
+ //
// listView3
//
this.listView3.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader4});
+ this.listView3.FullRowSelect = true;
this.listView3.Location = new System.Drawing.Point(270, 49);
this.listView3.Name = "listView3";
this.listView3.Size = new System.Drawing.Size(200, 153);
@@ -176,73 +203,48 @@
this.listView3.UseCompatibleStateImageBehavior = false;
this.listView3.View = System.Windows.Forms.View.Details;
//
- // columnHeader3
- //
- this.columnHeader3.Text = "File name";
- this.columnHeader3.Width = 162;
- //
// columnHeader4
//
this.columnHeader4.Text = "Filename";
- this.columnHeader4.Width = 191;
+ this.columnHeader4.Width = 128;
//
- // button2
+ // listView2
//
- this.button2.Location = new System.Drawing.Point(196, 85);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(49, 21);
- this.button2.TabIndex = 3;
- this.button2.Text = "->";
- this.button2.UseVisualStyleBackColor = true;
- this.button2.Click += new System.EventHandler(this.button2_Click);
+ this.listView2.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
+ this.columnHeader3});
+ this.listView2.FullRowSelect = true;
+ this.listView2.Location = new System.Drawing.Point(6, 49);
+ this.listView2.Name = "listView2";
+ this.listView2.Size = new System.Drawing.Size(170, 154);
+ this.listView2.TabIndex = 1;
+ this.listView2.UseCompatibleStateImageBehavior = false;
+ this.listView2.View = System.Windows.Forms.View.Details;
//
- // button3
+ // columnHeader3
//
- this.button3.Location = new System.Drawing.Point(196, 124);
- this.button3.Name = "button3";
- this.button3.Size = new System.Drawing.Size(49, 22);
- this.button3.TabIndex = 4;
- this.button3.Text = "<-";
- this.button3.UseVisualStyleBackColor = true;
- this.button3.Click += new System.EventHandler(this.button3_Click);
+ this.columnHeader3.Text = "File name";
+ this.columnHeader3.Width = 107;
//
- // button4
+ // comboBox1
//
- this.button4.Location = new System.Drawing.Point(315, 173);
- this.button4.Name = "button4";
- this.button4.Size = new System.Drawing.Size(75, 23);
- this.button4.TabIndex = 3;
- this.button4.Text = "Add";
- this.button4.UseVisualStyleBackColor = true;
- this.button4.Click += new System.EventHandler(this.button4_Click);
+ this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.comboBox1.FormattingEnabled = true;
+ this.comboBox1.Location = new System.Drawing.Point(6, 6);
+ this.comboBox1.Name = "comboBox1";
+ this.comboBox1.Size = new System.Drawing.Size(465, 21);
+ this.comboBox1.TabIndex = 0;
+ this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
//
- // button5
+ // button1
//
- this.button5.Location = new System.Drawing.Point(396, 173);
- this.button5.Name = "button5";
- this.button5.Size = new System.Drawing.Size(75, 23);
- this.button5.TabIndex = 4;
- this.button5.Text = "Remove";
- this.button5.UseVisualStyleBackColor = true;
+ this.button1.Location = new System.Drawing.Point(406, 257);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(75, 23);
+ this.button1.TabIndex = 1;
+ this.button1.Text = "Close";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
//
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(267, 30);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(69, 13);
- this.label1.TabIndex = 5;
- this.label1.Text = "Files in group";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(6, 30);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(69, 13);
- this.label2.TabIndex = 6;
- this.label2.Text = "Avaiable files";
- //
// GroupForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
Modified: trunk/plugins/mpinstaler/MPInstaler/GroupForm.cs
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/GroupForm.cs 2007-05-08 19:20:17 UTC (rev 392)
+++ trunk/plugins/mpinstaler/MPInstaler/GroupForm.cs 2007-05-09 17:30:36 UTC (rev 393)
@@ -91,10 +91,18 @@
listView3.Items.Clear();
foreach (MPIFileList fl in _struct.FileList)
{
- if (_struct.FindFileInGroup(comboBox1.Text, fl.FileNameShort))
- listView3.Items.Add(fl.FileNameShort);
+ if (_struct.FindFileInGroup(comboBox1.Text, fl.FileName))
+ {
+ ListViewItem item1 = new ListViewItem(fl.FileName, 0);
+ //item1.SubItems.Add(fl.FileName);
+ listView3.Items.AddRange(new ListViewItem[] { item1 });
+ }
else
- listView2.Items.Add(fl.FileNameShort);
+ {
+ ListViewItem item1 = new ListViewItem(fl.FileName, 0);
+ //item1.SubItems.Add(fl.FileName);
+ listView2.Items.AddRange(new ListViewItem[] { item1 });
+ }
}
}
Modified: trunk/plugins/mpinstaler/MPInstaler/MPinstalerStruct.cs
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/MPinstalerStruct.cs 2007-05-08 19:20:17 UTC (rev 392)
+++ trunk/plugins/mpinstaler/MPInstaler/MPinstalerStruct.cs 2007-05-09 17:30:36 UTC (rev 393)
@@ -193,7 +193,7 @@
return true;
for(int i=0;i<SetupGroups.Count;i++)
{
- if (FindFileInGroup(SetupGroups[i].Id, fl.FileNameShort) && SetupGroups[i].Checked)
+ if (FindFileInGroup(SetupGroups[i].Id, fl.FileName) && SetupGroups[i].Checked)
return true;
}
return false;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2007-05-08 19:20:58
|
Revision: 392
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=392&view=rev
Author: chreekar
Date: 2007-05-08 12:20:17 -0700 (Tue, 08 May 2007)
Log Message:
-----------
Have I solved the Alt+F4 issue?
Modified Paths:
--------------
trunk/plugins/MyEmulators/myEmulators/Class1.cs
trunk/plugins/MyEmulators/output.rar
Modified: trunk/plugins/MyEmulators/myEmulators/Class1.cs
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-08 18:40:02 UTC (rev 391)
+++ trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-08 19:20:17 UTC (rev 392)
@@ -320,8 +320,8 @@
System.Diagnostics.Process spelproc = new System.Diagnostics.Process();
spelproc.StartInfo = new System.Diagnostics.ProcessStartInfo(path, args);
spelproc.Start();
- spelproc.WaitForExit();
- OnPageDestroy(GetWindowId());
+ //spelproc.WaitForExit();
+ //OnPageDestroy(GetWindowId());
}
else
{
Modified: trunk/plugins/MyEmulators/output.rar
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2007-05-08 18:40:07
|
Revision: 391
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=391&view=rev
Author: chreekar
Date: 2007-05-08 11:40:02 -0700 (Tue, 08 May 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/MyEmulators/myEmulators/Class1.cs
trunk/plugins/MyEmulators/output.rar
Modified: trunk/plugins/MyEmulators/myEmulators/Class1.cs
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-08 18:17:18 UTC (rev 390)
+++ trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-08 18:40:02 UTC (rev 391)
@@ -136,7 +136,7 @@
if (Options.getStringOption("language") != "English")
{
StreamReader translationFile = new StreamReader("language\\" + Options.getStringOption("language") + "\\myEmulators.txt");
- for (int i = 0; i < 6; i++)
+ for (int i = 0; i < translation.Length; i++)
{
String line = translationFile.ReadLine();
if (line == null) { break; }
Modified: trunk/plugins/MyEmulators/output.rar
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2007-05-08 18:17:20
|
Revision: 390
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=390&view=rev
Author: chreekar
Date: 2007-05-08 11:17:18 -0700 (Tue, 08 May 2007)
Log Message:
-----------
The file output.rar will always contain the latest build
Modified Paths:
--------------
trunk/plugins/MyEmulators/myEmulators/Properties/AssemblyInfo.cs
Added Paths:
-----------
trunk/plugins/MyEmulators/output.rar
Modified: trunk/plugins/MyEmulators/myEmulators/Properties/AssemblyInfo.cs
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/Properties/AssemblyInfo.cs 2007-05-08 18:12:12 UTC (rev 389)
+++ trunk/plugins/MyEmulators/myEmulators/Properties/AssemblyInfo.cs 2007-05-08 18:17:18 UTC (rev 390)
@@ -31,5 +31,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("0.1.5.0")]
-[assembly: AssemblyFileVersion("0.1.5.0")]
+[assembly: AssemblyVersion("0.1.6.0")]
+[assembly: AssemblyFileVersion("0.1.6.0")]
Added: trunk/plugins/MyEmulators/output.rar
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/MyEmulators/output.rar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2007-05-08 18:12:14
|
Revision: 389
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=389&view=rev
Author: chreekar
Date: 2007-05-08 11:12:12 -0700 (Tue, 08 May 2007)
Log Message:
-----------
Uploaded skin files
Modified Paths:
--------------
trunk/plugins/MyEmulators/myEmulators/Class1.cs
Added Paths:
-----------
trunk/plugins/MyEmulators/skin/
trunk/plugins/MyEmulators/skin/BlueTwo/
trunk/plugins/MyEmulators/skin/BlueTwo/myEmulators.xml
trunk/plugins/MyEmulators/skin/BlueTwo wide/
trunk/plugins/MyEmulators/skin/BlueTwo wide/myEmulators.xml
Modified: trunk/plugins/MyEmulators/myEmulators/Class1.cs
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-08 14:45:27 UTC (rev 388)
+++ trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-08 18:12:12 UTC (rev 389)
@@ -201,7 +201,7 @@
public override void OnAction(Action action)
{
base.OnAction(action);
- if (lstEmulators != null)
+ if (lstEmulators != null && lstEmulators.Count > 0)
{
if ((isInFolder || lstEmulators[0].Label == "..") && (lstEmulators.SelectedListItemIndex != previouslySelectedIndex))
{
Added: trunk/plugins/MyEmulators/skin/BlueTwo/myEmulators.xml
===================================================================
--- trunk/plugins/MyEmulators/skin/BlueTwo/myEmulators.xml (rev 0)
+++ trunk/plugins/MyEmulators/skin/BlueTwo/myEmulators.xml 2007-05-08 18:12:12 UTC (rev 389)
@@ -0,0 +1,241 @@
+<!-- BlueTwo skin for My Emulators -->
+
+<window>
+ <id>5001</id>
+ <defaultcontrol>50</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <define>#header.label:My Emulators</define>
+ <define>#header.hover:hover_myEmulators.png</define>
+ <define>#header.image:myEmulators_logo.png</define>
+ <controls>
+ <import>common.window.xml</import>
+
+ <!-- SIDE BUTTONS -->
+ <control>
+ <type>group</type>
+ <animation effect="fade" time="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <animation effect="slide" time="250" start="-300,0">WindowOpen</animation>
+ <animation effect="slide" time="500" end="0,-300" >WindowClose</animation>
+ <description>group element</description>
+ <posX>60</posX>
+ <posY>97</posY>
+ <layout>StackLayout</layout>
+ <control>
+ <description>View-As button</description>
+ <type>button</type>
+ <id>10</id>
+ <label>100</label>
+ <onleft>10</onleft>
+ <onright>50</onright>
+ <onup>10</onup>
+ <ondown>11</ondown>
+ </control>
+ <control>
+ <type>image</type>
+ <description>Divider image</description>
+ <id>999</id>
+ <texture>hbar1.png</texture>
+ <keepaspectratio>yes</keepaspectratio>
+ </control>
+ <control>
+ <type>button</type>
+ <id>11</id>
+ <label>Most played</label>
+ <onleft>11</onleft>
+ <onright>50</onright>
+ <onup>10</onup>
+ <ondown>12</ondown>
+ </control>
+ <control>
+ <type>button</type>
+ <id>12</id>
+ <label>Recently played</label>
+ <onleft>12</onleft>
+ <onright>50</onright>
+ <onup>11</onup>
+ <ondown>13</ondown>
+ </control>
+ <control>
+ <type>button</type>
+ <id>13</id>
+ <label>Top graded</label>
+ <onleft>13</onleft>
+ <onright>50</onright>
+ <onup>12</onup>
+ <ondown>13</ondown>
+ </control>
+ </control>
+
+ <!-- LIST OF EMULATOR AND ROMS -->
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <animation effect="slide" time="400" start="0,-300">WindowOpen</animation>
+ <animation effect="slide" time="400" end="800,0" >WindowClose</animation>
+ <animation effect="fade" time="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <control>
+ <description>composite control consisting of a list control and a thumbnail panel</description>
+ <type>facadeview</type>
+ <id>50</id>
+ <control>
+ <description>listcontrol</description>
+ <type>listcontrol</type>
+ <id>50</id>
+ <scrollOffset>2</scrollOffset>
+ </control>
+ <control>
+ <description>Thumbnail Panel</description>
+ <type>thumbnailpanel</type>
+ <id>50</id>
+ <scrollOffset>1</scrollOffset>
+ <onleft>10</onleft>
+ <onright>2</onright>
+ </control>
+ <control>
+ <description>Filmstrip view</description>
+ <type>filmstrip</type>
+ <id>50</id>
+ <onleft>10</onleft>
+ <onright>2</onright>
+ <onup>2</onup>
+ <ondown>2</ondown>
+ </control>
+ <control>
+ <description>playlist listcontrol</description>
+ <type>playlistcontrol</type>
+ <id>50</id>
+ <scrollOffset>1</scrollOffset>
+ </control>
+ </control>
+ </control>
+
+ <!-- DESCRIPTION OF GAME -->
+ <control>
+ <animation effect="slide" time="400" end="-300,0" >WindowClose</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <type>textboxscrollup</type>
+ <description>desscription</description>
+ <id>40</id>
+ <posX>75</posX>
+ <posY>260</posY>
+ <width>170</width>
+ <height>145</height>
+ <font>font11</font>
+ </control>
+
+ <!-- ALL THE STARS -->
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 1</description>
+ <id>101</id>
+ <posX>511</posX>
+ <posY>43</posY>
+ <width>14</width>
+ <height>14</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 2</description>
+ <id>102</id>
+ <posX>526</posX>
+ <posY>43</posY>
+ <width>14</width>
+ <height>14</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 3</description>
+ <id>103</id>
+ <posX>541</posX>
+ <posY>43</posY>
+ <width>14</width>
+ <height>14</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 4</description>
+ <id>104</id>
+ <posX>556</posX>
+ <posY>43</posY>
+ <width>14</width>
+ <height>14</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 5</description>
+ <id>105</id>
+ <posX>571</posX>
+ <posY>43</posY>
+ <width>14</width>
+ <height>14</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 6</description>
+ <id>106</id>
+ <posX>586</posX>
+ <posY>43</posY>
+ <width>14</width>
+ <height>14</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 7</description>
+ <id>107</id>
+ <posX>601</posX>
+ <posY>43</posY>
+ <width>14</width>
+ <height>14</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 8</description>
+ <id>108</id>
+ <posX>616</posX>
+ <posY>43</posY>
+ <width>14</width>
+ <height>14</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 9</description>
+ <id>109</id>
+ <posX>631</posX>
+ <posY>43</posY>
+ <width>14</width>
+ <height>14</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 10</description>
+ <id>110</id>
+ <posX>646</posX>
+ <posY>43</posY>
+ <width>14</width>
+ <height>14</height>
+ <texture></texture>
+ </control>
+
+ </controls>
+</window>
\ No newline at end of file
Added: trunk/plugins/MyEmulators/skin/BlueTwo wide/myEmulators.xml
===================================================================
--- trunk/plugins/MyEmulators/skin/BlueTwo wide/myEmulators.xml (rev 0)
+++ trunk/plugins/MyEmulators/skin/BlueTwo wide/myEmulators.xml 2007-05-08 18:12:12 UTC (rev 389)
@@ -0,0 +1,241 @@
+<!-- BlueTwo wide skin for My Emulators -->
+
+<window>
+ <id>5001</id>
+ <defaultcontrol>50</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <define>#header.label:My Emulators</define>
+ <define>#header.hover:hover_myEmulators.png</define>
+ <define>#header.image:myEmulators_logo.png</define>
+ <controls>
+ <import>common.window.xml</import>
+
+ <!-- SIDE BUTTONS -->
+ <control>
+ <type>group</type>
+ <animation effect="fade" time="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <animation effect="slide" time="250" start="-300,0">WindowOpen</animation>
+ <animation effect="slide" time="500" end="0,-300" >WindowClose</animation>
+ <description>group element</description>
+ <posX>120</posX>
+ <posY>130</posY>
+ <layout>StackLayout</layout>
+ <control>
+ <description>View-As button</description>
+ <type>button</type>
+ <id>10</id>
+ <label>100</label>
+ <onleft>10</onleft>
+ <onright>50</onright>
+ <onup>10</onup>
+ <ondown>11</ondown>
+ </control>
+ <control>
+ <type>image</type>
+ <description>Divider image</description>
+ <id>999</id>
+ <texture>hbar1.png</texture>
+ <keepaspectratio>yes</keepaspectratio>
+ </control>
+ <control>
+ <type>button</type>
+ <id>11</id>
+ <label>Most played</label>
+ <onleft>11</onleft>
+ <onright>50</onright>
+ <onup>10</onup>
+ <ondown>12</ondown>
+ </control>
+ <control>
+ <type>button</type>
+ <id>12</id>
+ <label>Recently played</label>
+ <onleft>12</onleft>
+ <onright>50</onright>
+ <onup>11</onup>
+ <ondown>13</ondown>
+ </control>
+ <control>
+ <type>button</type>
+ <id>13</id>
+ <label>Top graded</label>
+ <onleft>13</onleft>
+ <onright>50</onright>
+ <onup>12</onup>
+ <ondown>13</ondown>
+ </control>
+ </control>
+
+ <!-- LIST OF EMULATOR AND ROMS -->
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <animation effect="slide" time="400" start="0,-300">WindowOpen</animation>
+ <animation effect="slide" time="400" end="800,0" >WindowClose</animation>
+ <animation effect="fade" time="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <control>
+ <description>composite control consisting of a list control and a thumbnail panel</description>
+ <type>facadeview</type>
+ <id>50</id>
+ <control>
+ <description>listcontrol</description>
+ <type>listcontrol</type>
+ <id>50</id>
+ <scrollOffset>2</scrollOffset>
+ </control>
+ <control>
+ <description>Thumbnail Panel</description>
+ <type>thumbnailpanel</type>
+ <id>50</id>
+ <scrollOffset>1</scrollOffset>
+ <onleft>10</onleft>
+ <onright>2</onright>
+ </control>
+ <control>
+ <description>Filmstrip view</description>
+ <type>filmstrip</type>
+ <id>50</id>
+ <onleft>10</onleft>
+ <onright>2</onright>
+ <onup>2</onup>
+ <ondown>2</ondown>
+ </control>
+ <control>
+ <description>playlist listcontrol</description>
+ <type>playlistcontrol</type>
+ <id>50</id>
+ <scrollOffset>1</scrollOffset>
+ </control>
+ </control>
+ </control>
+
+ <!-- DESCRIPTION OF GAME -->
+ <control>
+ <animation effect="slide" time="400" end="-300,0" >WindowClose</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <type>textboxscrollup</type>
+ <description>desscription</description>
+ <id>40</id>
+ <posX>140</posX>
+ <posY>343</posY>
+ <width>265</width>
+ <height>170</height>
+ <font>font12</font>
+ </control>
+
+ <!-- ALL THE STARS -->
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 1</description>
+ <id>101</id>
+ <posX>1051</posX>
+ <posY>55</posY>
+ <width>20</width>
+ <height>20</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 2</description>
+ <id>102</id>
+ <posX>1072</posX>
+ <posY>55</posY>
+ <width>20</width>
+ <height>20</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 3</description>
+ <id>103</id>
+ <posX>1093</posX>
+ <posY>55</posY>
+ <width>20</width>
+ <height>20</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 4</description>
+ <id>104</id>
+ <posX>1114</posX>
+ <posY>55</posY>
+ <width>20</width>
+ <height>20</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 5</description>
+ <id>105</id>
+ <posX>1135</posX>
+ <posY>55</posY>
+ <width>20</width>
+ <height>20</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 6</description>
+ <id>106</id>
+ <posX>1156</posX>
+ <posY>55</posY>
+ <width>20</width>
+ <height>20</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 7</description>
+ <id>107</id>
+ <posX>1177</posX>
+ <posY>55</posY>
+ <width>20</width>
+ <height>20</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 8</description>
+ <id>108</id>
+ <posX>1198</posX>
+ <posY>55</posY>
+ <width>20</width>
+ <height>20</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 9</description>
+ <id>109</id>
+ <posX>1219</posX>
+ <posY>55</posY>
+ <width>20</width>
+ <height>20</height>
+ <texture></texture>
+ </control>
+ <control>
+ <animation effect="fade" time="400">WindowClose</animation>
+ <type>image</type>
+ <description>star image 10</description>
+ <id>110</id>
+ <posX>1240</posX>
+ <posY>55</posY>
+ <width>20</width>
+ <height>20</height>
+ <texture></texture>
+ </control>
+
+ </controls>
+</window>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <che...@us...> - 2007-05-08 14:45:32
|
Revision: 388
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=388&view=rev
Author: chef_koch
Date: 2007-05-08 07:45:27 -0700 (Tue, 08 May 2007)
Log Message:
-----------
MyStatus: moved skin files from official svn to plugins-svn
Added Paths:
-----------
trunk/plugins/My Status/skin/
trunk/plugins/My Status/skin/BlueTwo/
trunk/plugins/My Status/skin/BlueTwo/mystatus.xml
trunk/plugins/My Status/skin/BlueTwo/mystatusdetails.xml
trunk/plugins/My Status/skin/BlueTwo/mystatusprefs.xml
trunk/plugins/My Status/skin/BlueTwo wide/
trunk/plugins/My Status/skin/BlueTwo wide/mystatus.xml
trunk/plugins/My Status/skin/BlueTwo wide/mystatusdetails.xml
trunk/plugins/My Status/skin/BlueTwo wide/mystatusprefs.xml
Added: trunk/plugins/My Status/skin/BlueTwo/mystatus.xml
===================================================================
--- trunk/plugins/My Status/skin/BlueTwo/mystatus.xml (rev 0)
+++ trunk/plugins/My Status/skin/BlueTwo/mystatus.xml 2007-05-08 14:45:27 UTC (rev 388)
@@ -0,0 +1,255 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<window>
+ <id>755</id>
+ <defaultcontrol>2</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <controls>
+ <control>
+ <description>BG</description>
+ <type>image</type>
+ <id>1</id>
+ <width>720</width>
+ <height>576</height>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>60</posX>
+ <posY>20</posY>
+ <texture>status_logo.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>75</posX>
+ <posY>370</posY>
+ <texture>hover_my status.png</texture>
+ </control>
+ <control>
+ <description>My status text label</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>250</posX>
+ <posY>70</posY>
+ <label>1950</label>
+ <font>font16</font>
+ <align>right</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Status Detail Panel</description>
+ <type>textbox</type>
+ <id>9</id>
+ <label>-</label>
+ <posY>97</posY>
+ <posX>260</posX>
+ <height>400</height>
+ <onleft>2</onleft>
+ <onright>3</onright>
+ <onup>3</onup>
+ <ondown>3</ondown>
+ <font>font13</font>
+ <textcolor>FFFFFFFF</textcolor>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <control>
+ <description>preferences</description>
+ <type>button</type>
+ <id>2</id>
+ <posX>60</posX>
+ <posY>97</posY>
+ <label>1957</label>
+ <onleft>2</onleft>
+ <onright>10</onright>
+ <onup>17</onup>
+ <ondown>3</ondown>
+ </control>
+ <control>
+ <description>status details</description>
+ <type>button</type>
+ <id>3</id>
+ <posX>60</posX>
+ <posY>131</posY>
+ <label>1972</label>
+ <onleft>2</onleft>
+ <onright>10</onright>
+ <onup>2</onup>
+ <ondown>4</ondown>
+ </control>
+ <control>
+ <description>next page</description>
+ <type>button</type>
+ <id>4</id>
+ <posX>60</posX>
+ <posY>165</posY>
+ <label>1975</label>
+ <onleft>2</onleft>
+ <onright>10</onright>
+ <onup>3</onup>
+ <ondown>2</ondown>
+ </control>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <control>
+ <description>Sensor 1</description>
+ <type>button</type>
+ <id>10</id>
+ <posX>320</posX>
+ <posY>97</posY>
+ <width>300</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>9</onright>
+ <onup>21</onup>
+ <ondown>11</ondown>
+ </control>
+ <control>
+ <description>Sensor 2</description>
+ <type>button</type>
+ <id>11</id>
+ <posX>320</posX>
+ <posY>131</posY>
+ <width>300</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>10</onup>
+ <ondown>12</ondown>
+ </control>
+ <control>
+ <description>Sensor 3</description>
+ <type>button</type>
+ <id>12</id>
+ <posX>320</posX>
+ <posY>165</posY>
+ <width>300</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>11</onup>
+ <ondown>13</ondown>
+ </control>
+ <control>
+ <description>Sensor 4</description>
+ <type>button</type>
+ <id>13</id>
+ <posX>320</posX>
+ <posY>199</posY>
+ <width>300</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>12</onup>
+ <ondown>14</ondown>
+ </control>
+ <control>
+ <description>Sensor 5</description>
+ <type>button</type>
+ <id>14</id>
+ <posX>320</posX>
+ <posY>233</posY>
+ <width>300</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>13</onup>
+ <ondown>15</ondown>
+ </control>
+ <control>
+ <description>Sensor 6</description>
+ <type>button</type>
+ <id>15</id>
+ <posX>320</posX>
+ <posY>267</posY>
+ <width>300</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>14</onup>
+ <ondown>16</ondown>
+ </control>
+ <control>
+ <description>Sensor 7</description>
+ <type>button</type>
+ <id>16</id>
+ <posX>320</posX>
+ <posY>301</posY>
+ <width>300</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>15</onup>
+ <ondown>17</ondown>
+ </control>
+ <control>
+ <description>Sensor 8</description>
+ <type>button</type>
+ <id>17</id>
+ <posX>320</posX>
+ <posY>335</posY>
+ <width>300</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>16</onup>
+ <ondown>18</ondown>
+ </control>
+ <control>
+ <description>Sensor 9</description>
+ <type>button</type>
+ <id>18</id>
+ <posX>320</posX>
+ <posY>369</posY>
+ <width>300</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>17</onup>
+ <ondown>19</ondown>
+ </control>
+ <control>
+ <description>Sensor 10</description>
+ <type>button</type>
+ <id>19</id>
+ <posX>320</posX>
+ <posY>403</posY>
+ <width>300</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>18</onup>
+ <ondown>20</ondown>
+ </control>
+ <control>
+ <description>Sensor 11</description>
+ <type>button</type>
+ <id>20</id>
+ <posX>320</posX>
+ <posY>437</posY>
+ <width>300</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>19</onup>
+ <ondown>21</ondown>
+ </control>
+ <control>
+ <description>Sensor 12</description>
+ <type>button</type>
+ <id>21</id>
+ <posX>320</posX>
+ <posY>471</posY>
+ <width>300</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>20</onup>
+ <ondown>10</ondown>
+ </control>
+ </control>
+ </controls>
+</window>
\ No newline at end of file
Added: trunk/plugins/My Status/skin/BlueTwo/mystatusdetails.xml
===================================================================
--- trunk/plugins/My Status/skin/BlueTwo/mystatusdetails.xml (rev 0)
+++ trunk/plugins/My Status/skin/BlueTwo/mystatusdetails.xml 2007-05-08 14:45:27 UTC (rev 388)
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<window>
+ <id>756</id>
+ <defaultcontrol>2</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <controls>
+ <control>
+ <description>background image</description>
+ <type>image</type>
+ <id>1</id>
+ <width>720</width>
+ <height>576</height>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>60</posX>
+ <posY>20</posY>
+ <texture>status_logo.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>75</posX>
+ <posY>370</posY>
+ <texture>hover_my status.png</texture>
+ </control>
+ <control>
+ <description>mystatus text label</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>250</posX>
+ <posY>70</posY>
+ <label>1963</label>
+ <font>font16</font>
+ <align>right</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Status Alarm On/Off button</description>
+ <type>togglebutton</type>
+ <id>3</id>
+ <posX>350</posX>
+ <posY>125</posY>
+ <width>230</width>
+ <font>font13</font>
+ <textcolor>ffffffff</textcolor>
+ <colordiffuse>ffffffff</colordiffuse>
+ <label>1964</label>
+ <onright>2</onright>
+ <onleft>2</onleft>
+ <onup>2</onup>
+ <ondown>3</ondown>
+ </control>
+ <control>
+ <description>actual sensor</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>350</posX>
+ <posY>97</posY>
+ <label>#sensor</label>
+ <font>font16</font>
+ <align>left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>highest</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>350</posX>
+ <posY>165</posY>
+ <label>#high</label>
+ <font>font16</font>
+ <align>left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>lowest</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>350</posX>
+ <posY>199</posY>
+ <label>#low</label>
+ <font>font16</font>
+ <align>left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>alarm high</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>350</posX>
+ <posY>233</posY>
+ <label>#alhigh</label>
+ <font>font16</font>
+ <align>left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>alarm low</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>350</posX>
+ <posY>267</posY>
+ <label>#allow</label>
+ <font>font16</font>
+ <align>left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <control>
+ <description>back button</description>
+ <type>button</type>
+ <id>2</id>
+ <posX>60</posX>
+ <posY>97</posY>
+ <label>712</label>
+ <onleft>3</onleft>
+ <onright>9</onright>
+ <onup>17</onup>
+ <ondown>3</ondown>
+ </control>
+ </control>
+ </controls>
+</window>
\ No newline at end of file
Added: trunk/plugins/My Status/skin/BlueTwo/mystatusprefs.xml
===================================================================
--- trunk/plugins/My Status/skin/BlueTwo/mystatusprefs.xml (rev 0)
+++ trunk/plugins/My Status/skin/BlueTwo/mystatusprefs.xml 2007-05-08 14:45:27 UTC (rev 388)
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<window>
+ <id>757</id>
+ <defaultcontrol>2</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <controls>
+ <control>
+ <description>background image</description>
+ <type>image</type>
+ <id>1</id>
+ <width>720</width>
+ <height>576</height>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>60</posX>
+ <posY>20</posY>
+ <texture>status_logo.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>75</posX>
+ <posY>370</posY>
+ <texture>hover_my status.png</texture>
+ </control>
+ <control>
+ <description>mystatus text label</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>250</posX>
+ <posY>70</posY>
+ <label>1962</label>
+ <font>font16</font>
+ <align>right</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Interval</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>270</posX>
+ <posY>97</posY>
+ <label>1970</label>
+ <font>font13</font>
+ <align>left</align>
+ <textcolor>FFFFFFFF</textcolor>
+ </control>
+ <control>
+ <description>alarm interval</description>
+ <type>spincontrol</type>
+ <spintype>int</spintype>
+ <orientation>vertical</orientation>
+ <digits>2</digits>
+ <id>4</id>
+ <posX>520</posX>
+ <posY>102</posY>
+ <showrange>no</showrange>
+ <onup>5</onup>
+ <ondown>5</ondown>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <textcolor>FFFFFFFF</textcolor>
+ <textureUp>arrow_round_up_nofocus.png</textureUp>
+ <textureDown>arrow_round_down_nofocus.png</textureDown>
+ <textureUpFocus>arrow_round_up_focus.png</textureUpFocus>
+ <textureDownFocus>arrow_round_down_focus.png</textureDownFocus>
+ </control>
+ <control>
+ <description>shutdown</description>
+ <type>togglebutton</type>
+ <id>5</id>
+ <posX>270</posX>
+ <posY>127</posY>
+ <font>font13</font>
+ <textcolor>ffffffff</textcolor>
+ <colordiffuse>ffffffff</colordiffuse>
+ <label>1971</label>
+ <onright>2</onright>
+ <onleft>2</onleft>
+ <onup>4</onup>
+ <ondown>10</ondown>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <control>
+ <description>back button</description>
+ <type>button</type>
+ <id>2</id>
+ <posX>60</posX>
+ <posY>97</posY>
+ <label>712</label>
+ <onleft>2</onleft>
+ <onright>4</onright>
+ <onup>17</onup>
+ <ondown>3</ondown>
+ </control>
+ <control>
+ <description>test button</description>
+ <type>button</type>
+ <id>3</id>
+ <posX>60</posX>
+ <posY>131</posY>
+ <label>1969</label>
+ <onleft>2</onleft>
+ <onright>4</onright>
+ <onup>2</onup>
+ <ondown>2</ondown>
+ </control>
+ </control>
+ <control>
+ <description>alarm sounds listcontrol</description>
+ <type>listcontrol</type>
+ <id>10</id>
+ <posX>270</posX>
+ <posY>190</posY>
+ <height>370</height>
+ <onright>2</onright>
+ <onleft>2</onleft>
+ <onup>4</onup>
+ <ondown>2</ondown>
+ </control>
+ </controls>
+</window>
\ No newline at end of file
Added: trunk/plugins/My Status/skin/BlueTwo wide/mystatus.xml
===================================================================
--- trunk/plugins/My Status/skin/BlueTwo wide/mystatus.xml (rev 0)
+++ trunk/plugins/My Status/skin/BlueTwo wide/mystatus.xml 2007-05-08 14:45:27 UTC (rev 388)
@@ -0,0 +1,255 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<window>
+ <id>755</id>
+ <defaultcontrol>2</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <controls>
+ <control>
+ <description>BG</description>
+ <type>image</type>
+ <id>1</id>
+ <width>1366</width>
+ <height>768</height>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>113</posX>
+ <posY>26</posY>
+ <texture>status_logo.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>142</posX>
+ <posY>493</posY>
+ <texture>hover_my status.png</texture>
+ </control>
+ <control>
+ <description>My status text label</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>474</posX>
+ <posY>93</posY>
+ <label>1950</label>
+ <font>font16</font>
+ <align>right</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Status Detail Panel</description>
+ <type>textbox</type>
+ <id>9</id>
+ <label>-</label>
+ <posY>129</posY>
+ <posX>493</posX>
+ <height>533</height>
+ <onleft>2</onleft>
+ <onright>3</onright>
+ <onup>3</onup>
+ <ondown>3</ondown>
+ <font>font13</font>
+ <textcolor>FFFFFFFF</textcolor>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <control>
+ <description>preferences</description>
+ <type>button</type>
+ <id>2</id>
+ <posX>113</posX>
+ <posY>129</posY>
+ <label>1957</label>
+ <onleft>2</onleft>
+ <onright>10</onright>
+ <onup>17</onup>
+ <ondown>3</ondown>
+ </control>
+ <control>
+ <description>status details</description>
+ <type>button</type>
+ <id>3</id>
+ <posX>113</posX>
+ <posY>174</posY>
+ <label>1972</label>
+ <onleft>2</onleft>
+ <onright>10</onright>
+ <onup>2</onup>
+ <ondown>4</ondown>
+ </control>
+ <control>
+ <description>next page</description>
+ <type>button</type>
+ <id>4</id>
+ <posX>113</posX>
+ <posY>220</posY>
+ <label>1975</label>
+ <onleft>2</onleft>
+ <onright>10</onright>
+ <onup>3</onup>
+ <ondown>2</ondown>
+ </control>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <control>
+ <description>Sensor 1</description>
+ <type>button</type>
+ <id>10</id>
+ <posX>607</posX>
+ <posY>129</posY>
+ <width>400</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>9</onright>
+ <onup>21</onup>
+ <ondown>11</ondown>
+ </control>
+ <control>
+ <description>Sensor 2</description>
+ <type>button</type>
+ <id>11</id>
+ <posX>607</posX>
+ <posY>174</posY>
+ <width>400</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>10</onup>
+ <ondown>12</ondown>
+ </control>
+ <control>
+ <description>Sensor 3</description>
+ <type>button</type>
+ <id>12</id>
+ <posX>607</posX>
+ <posY>220</posY>
+ <width>400</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>11</onup>
+ <ondown>13</ondown>
+ </control>
+ <control>
+ <description>Sensor 4</description>
+ <type>button</type>
+ <id>13</id>
+ <posX>607</posX>
+ <posY>265</posY>
+ <width>400</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>12</onup>
+ <ondown>14</ondown>
+ </control>
+ <control>
+ <description>Sensor 5</description>
+ <type>button</type>
+ <id>14</id>
+ <posX>607</posX>
+ <posY>310</posY>
+ <width>400</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>13</onup>
+ <ondown>15</ondown>
+ </control>
+ <control>
+ <description>Sensor 6</description>
+ <type>button</type>
+ <id>15</id>
+ <posX>607</posX>
+ <posY>356</posY>
+ <width>400</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>14</onup>
+ <ondown>16</ondown>
+ </control>
+ <control>
+ <description>Sensor 7</description>
+ <type>button</type>
+ <id>16</id>
+ <posX>607</posX>
+ <posY>401</posY>
+ <width>400</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>15</onup>
+ <ondown>17</ondown>
+ </control>
+ <control>
+ <description>Sensor 8</description>
+ <type>button</type>
+ <id>17</id>
+ <posX>607</posX>
+ <posY>446</posY>
+ <width>400</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>16</onup>
+ <ondown>18</ondown>
+ </control>
+ <control>
+ <description>Sensor 9</description>
+ <type>button</type>
+ <id>18</id>
+ <posX>607</posX>
+ <posY>492</posY>
+ <width>400</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>17</onup>
+ <ondown>19</ondown>
+ </control>
+ <control>
+ <description>Sensor 10</description>
+ <type>button</type>
+ <id>19</id>
+ <posX>607</posX>
+ <posY>537</posY>
+ <width>400</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>18</onup>
+ <ondown>20</ondown>
+ </control>
+ <control>
+ <description>Sensor 11</description>
+ <type>button</type>
+ <id>20</id>
+ <posX>607</posX>
+ <posY>582</posY>
+ <width>400</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>19</onup>
+ <ondown>21</ondown>
+ </control>
+ <control>
+ <description>Sensor 12</description>
+ <type>button</type>
+ <id>21</id>
+ <posX>607</posX>
+ <posY>628</posY>
+ <width>400</width>
+ <label>1951</label>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <onup>20</onup>
+ <ondown>10</ondown>
+ </control>
+ </control>
+ </controls>
+</window>
\ No newline at end of file
Added: trunk/plugins/My Status/skin/BlueTwo wide/mystatusdetails.xml
===================================================================
--- trunk/plugins/My Status/skin/BlueTwo wide/mystatusdetails.xml (rev 0)
+++ trunk/plugins/My Status/skin/BlueTwo wide/mystatusdetails.xml 2007-05-08 14:45:27 UTC (rev 388)
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<window>
+ <id>756</id>
+ <defaultcontrol>2</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <controls>
+ <control>
+ <description>background image</description>
+ <type>image</type>
+ <id>1</id>
+ <width>1366</width>
+ <height>768</height>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>113</posX>
+ <posY>26</posY>
+ <texture>status_logo.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>142</posX>
+ <posY>493</posY>
+ <texture>hover_my status.png</texture>
+ </control>
+ <control>
+ <description>mystatus text label</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>474</posX>
+ <posY>93</posY>
+ <label>1963</label>
+ <font>font16</font>
+ <align>right</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Status Alarm On/Off button</description>
+ <type>togglebutton</type>
+ <id>3</id>
+ <posX>664</posX>
+ <posY>166</posY>
+ <width>306</width>
+ <font>font13</font>
+ <textcolor>ffffffff</textcolor>
+ <colordiffuse>ffffffff</colordiffuse>
+ <label>1964</label>
+ <onright>2</onright>
+ <onleft>2</onleft>
+ <onup>2</onup>
+ <ondown>3</ondown>
+ </control>
+ <control>
+ <description>actual sensor</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>664</posX>
+ <posY>129</posY>
+ <label>#sensor</label>
+ <font>font16</font>
+ <align>left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>highest</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>664</posX>
+ <posY>220</posY>
+ <label>#high</label>
+ <font>font16</font>
+ <align>left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>lowest</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>664</posX>
+ <posY>265</posY>
+ <label>#low</label>
+ <font>font16</font>
+ <align>left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>alarm high</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>664</posX>
+ <posY>310</posY>
+ <label>#alhigh</label>
+ <font>font16</font>
+ <align>left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>alarm low</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>664</posX>
+ <posY>356</posY>
+ <label>#allow</label>
+ <font>font16</font>
+ <align>left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <control>
+ <description>back button</description>
+ <type>button</type>
+ <id>2</id>
+ <posX>113</posX>
+ <posY>129</posY>
+ <label>712</label>
+ <onleft>3</onleft>
+ <onright>9</onright>
+ <onup>17</onup>
+ <ondown>3</ondown>
+ </control>
+ </control>
+ </controls>
+</window>
\ No newline at end of file
Added: trunk/plugins/My Status/skin/BlueTwo wide/mystatusprefs.xml
===================================================================
--- trunk/plugins/My Status/skin/BlueTwo wide/mystatusprefs.xml (rev 0)
+++ trunk/plugins/My Status/skin/BlueTwo wide/mystatusprefs.xml 2007-05-08 14:45:27 UTC (rev 388)
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<window>
+ <id>757</id>
+ <defaultcontrol>2</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <controls>
+ <control>
+ <description>background image</description>
+ <type>image</type>
+ <id>1</id>
+ <width>1366</width>
+ <height>768</height>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>113</posX>
+ <posY>26</posY>
+ <texture>status_logo.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>142</posX>
+ <posY>493</posY>
+ <texture>hover_my status.png</texture>
+ </control>
+ <control>
+ <description>mystatus text label</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>474</posX>
+ <posY>93</posY>
+ <label>1962</label>
+ <font>font16</font>
+ <align>right</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Interval</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>512</posX>
+ <posY>129</posY>
+ <label>1970</label>
+ <font>font13</font>
+ <align>left</align>
+ <textcolor>FFFFFFFF</textcolor>
+ </control>
+ <control>
+ <description>alarm interval</description>
+ <type>spincontrol</type>
+ <spintype>int</spintype>
+ <orientation>vertical</orientation>
+ <digits>2</digits>
+ <id>4</id>
+ <posX>986</posX>
+ <posY>136</posY>
+ <showrange>no</showrange>
+ <onup>5</onup>
+ <ondown>5</ondown>
+ <onleft>2</onleft>
+ <onright>2</onright>
+ <textcolor>FFFFFFFF</textcolor>
+ <textureUp>arrow_round_up_nofocus.png</textureUp>
+ <textureDown>arrow_round_down_nofocus.png</textureDown>
+ <textureUpFocus>arrow_round_up_focus.png</textureUpFocus>
+ <textureDownFocus>arrow_round_down_focus.png</textureDownFocus>
+ </control>
+ <control>
+ <description>shutdown</description>
+ <type>togglebutton</type>
+ <id>5</id>
+ <posX>512</posX>
+ <posY>169</posY>
+ <width>253</width>
+ <font>font13</font>
+ <textcolor>ffffffff</textcolor>
+ <colordiffuse>ffffffff</colordiffuse>
+ <label>1971</label>
+ <onright>2</onright>
+ <onleft>2</onleft>
+ <onup>4</onup>
+ <ondown>10</ondown>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <control>
+ <description>back button</description>
+ <type>button</type>
+ <id>2</id>
+ <posX>113</posX>
+ <posY>129</posY>
+ <label>712</label>
+ <onleft>2</onleft>
+ <onright>4</onright>
+ <onup>17</onup>
+ <ondown>3</ondown>
+ </control>
+ <control>
+ <description>test button</description>
+ <type>button</type>
+ <id>3</id>
+ <posX>113</posX>
+ <posY>174</posY>
+ <label>1969</label>
+ <onleft>2</onleft>
+ <onright>4</onright>
+ <onup>2</onup>
+ <ondown>2</ondown>
+ </control>
+ </control>
+ <control>
+ <description>alarm sounds listcontrol</description>
+ <type>listcontrol</type>
+ <id>10</id>
+ <posX>512</posX>
+ <posY>253</posY>
+ <height>493</height>
+ <onright>2</onright>
+ <onleft>2</onleft>
+ <onup>4</onup>
+ <ondown>2</ondown>
+ </control>
+ </controls>
+</window>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <che...@us...> - 2007-05-08 14:44:10
|
Revision: 387
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=387&view=rev
Author: chef_koch
Date: 2007-05-08 07:44:08 -0700 (Tue, 08 May 2007)
Log Message:
-----------
MyExplorer: moved skin files from official svn to plugins-svn
Added Paths:
-----------
trunk/plugins/My Explorer/skin/
trunk/plugins/My Explorer/skin/BlueTwo/
trunk/plugins/My Explorer/skin/BlueTwo/myexplorer.xml
trunk/plugins/My Explorer/skin/BlueTwo wide/
trunk/plugins/My Explorer/skin/BlueTwo wide/myexplorer.xml
Added: trunk/plugins/My Explorer/skin/BlueTwo/myexplorer.xml
===================================================================
--- trunk/plugins/My Explorer/skin/BlueTwo/myexplorer.xml (rev 0)
+++ trunk/plugins/My Explorer/skin/BlueTwo/myexplorer.xml 2007-05-08 14:44:08 UTC (rev 387)
@@ -0,0 +1,131 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<window>
+ <id>770</id>
+ <defaultcontrol>2</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <define>#header.label:#explorer_title</define>
+ <define>#header.image:explorer_logo.png</define>
+ <define>#header.hover:hover_my explorer.png</define>
+ <controls>
+ <import>common.window.xml</import>
+ <control>
+ <description>My explorer File Size label</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>40</posX>
+ <posY>530</posY>
+ <label>#explorer_size</label>
+ <font>font16</font>
+ <align>left</align>
+ <textcolor>White</textcolor>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <posX>60</posX>
+ <posY>97</posY>
+ <layout>StackLayout</layout>
+ <control>
+ <description>select source</description>
+ <type>button</type>
+ <id>2</id>
+ <label>2201</label>
+ <onleft>2</onleft>
+ <onright>20</onright>
+ <onup>17</onup>
+ <ondown>3</ondown>
+ </control>
+ <control>
+ <description>select destination</description>
+ <type>button</type>
+ <id>3</id>
+ <label>2202</label>
+ <onleft>3</onleft>
+ <onright>20</onright>
+ <onup>2</onup>
+ <ondown>4</ondown>
+ </control>
+ <control>
+ <description>copy files</description>
+ <type>button</type>
+ <id>4</id>
+ <label>2203</label>
+ <onleft>2</onleft>
+ <onright>20</onright>
+ <onup>3</onup>
+ <ondown>5</ondown>
+ </control>
+ <control>
+ <description>move files</description>
+ <type>button</type>
+ <id>5</id>
+ <label>2213</label>
+ <onleft>5</onleft>
+ <onright>20</onright>
+ <onup>4</onup>
+ <ondown>6</ondown>
+ </control>
+ <control>
+ <description>delete files</description>
+ <type>button</type>
+ <id>6</id>
+ <label>2212</label>
+ <onleft>6</onleft>
+ <onright>20</onright>
+ <onup>5</onup>
+ <ondown>7</ondown>
+ </control>
+ <control>
+ <description>make dir</description>
+ <type>button</type>
+ <id>7</id>
+ <label>2204</label>
+ <onleft>5</onleft>
+ <onright>20</onright>
+ <onup>6</onup>
+ <ondown>8</ondown>
+ </control>
+ <control>
+ <description>reset selection</description>
+ <type>button</type>
+ <id>8</id>
+ <label>2205</label>
+ <onleft>8</onleft>
+ <onright>20</onright>
+ <onup>7</onup>
+ <ondown>9</ondown>
+ </control>
+ <control>
+ <description>mark all</description>
+ <type>button</type>
+ <id>9</id>
+ <label>2206</label>
+ <onleft>9</onleft>
+ <onright>20</onright>
+ <onup>8</onup>
+ <ondown>10</ondown>
+ </control>
+ <control>
+ <description>trashcan</description>
+ <type>button</type>
+ <id>10</id>
+ <label>2223</label>
+ <onleft>10</onleft>
+ <onright>20</onright>
+ <onup>9</onup>
+ <ondown>2</ondown>
+ </control>
+ </control>
+ <control>
+ <description>file listcontrol</description>
+ <type>listcontrol</type>
+ <id>20</id>
+ <posX>270</posX>
+ <height>450</height>
+ <onright>2</onright>
+ <onleft>2</onleft>
+ <onup>4</onup>
+ <ondown>2</ondown>
+ </control>
+ </controls>
+</window>
\ No newline at end of file
Added: trunk/plugins/My Explorer/skin/BlueTwo wide/myexplorer.xml
===================================================================
--- trunk/plugins/My Explorer/skin/BlueTwo wide/myexplorer.xml (rev 0)
+++ trunk/plugins/My Explorer/skin/BlueTwo wide/myexplorer.xml 2007-05-08 14:44:08 UTC (rev 387)
@@ -0,0 +1,131 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<window>
+ <id>770</id>
+ <defaultcontrol>2</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <define>#header.label:#explorer_title</define>
+ <define>#header.image:explorer_logo.png</define>
+ <define>#header.hover:hover_my explorer.png</define>
+ <controls>
+ <import>common.window.xml</import>
+ <control>
+ <description>My explorer File Size label</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>75</posX>
+ <posY>706</posY>
+ <label>#explorer_size</label>
+ <font>font16</font>
+ <align>left</align>
+ <textcolor>White</textcolor>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <posX>113</posX>
+ <posY>129</posY>
+ <layout>StackLayout</layout>
+ <control>
+ <description>select source</description>
+ <type>button</type>
+ <id>2</id>
+ <label>2201</label>
+ <onleft>2</onleft>
+ <onright>20</onright>
+ <onup>17</onup>
+ <ondown>3</ondown>
+ </control>
+ <control>
+ <description>select destination</description>
+ <type>button</type>
+ <id>3</id>
+ <label>2202</label>
+ <onleft>3</onleft>
+ <onright>20</onright>
+ <onup>2</onup>
+ <ondown>4</ondown>
+ </control>
+ <control>
+ <description>copy files</description>
+ <type>button</type>
+ <id>4</id>
+ <label>2203</label>
+ <onleft>2</onleft>
+ <onright>20</onright>
+ <onup>3</onup>
+ <ondown>5</ondown>
+ </control>
+ <control>
+ <description>move files</description>
+ <type>button</type>
+ <id>5</id>
+ <label>2213</label>
+ <onleft>5</onleft>
+ <onright>20</onright>
+ <onup>4</onup>
+ <ondown>6</ondown>
+ </control>
+ <control>
+ <description>delete files</description>
+ <type>button</type>
+ <id>6</id>
+ <label>2212</label>
+ <onleft>6</onleft>
+ <onright>20</onright>
+ <onup>5</onup>
+ <ondown>7</ondown>
+ </control>
+ <control>
+ <description>make dir</description>
+ <type>button</type>
+ <id>7</id>
+ <label>2204</label>
+ <onleft>5</onleft>
+ <onright>20</onright>
+ <onup>6</onup>
+ <ondown>8</ondown>
+ </control>
+ <control>
+ <description>reset selection</description>
+ <type>button</type>
+ <id>8</id>
+ <label>2205</label>
+ <onleft>8</onleft>
+ <onright>20</onright>
+ <onup>7</onup>
+ <ondown>9</ondown>
+ </control>
+ <control>
+ <description>mark all</description>
+ <type>button</type>
+ <id>9</id>
+ <label>2206</label>
+ <onleft>9</onleft>
+ <onright>20</onright>
+ <onup>8</onup>
+ <ondown>10</ondown>
+ </control>
+ <control>
+ <description>trashcan</description>
+ <type>button</type>
+ <id>10</id>
+ <label>2223</label>
+ <onleft>10</onleft>
+ <onright>20</onright>
+ <onup>9</onup>
+ <ondown>2</ondown>
+ </control>
+ </control>
+ <control>
+ <description>file listcontrol</description>
+ <type>listcontrol</type>
+ <id>20</id>
+ <posX>512</posX>
+ <height>600</height>
+ <onright>2</onright>
+ <onleft>2</onleft>
+ <onup>4</onup>
+ <ondown>2</ondown>
+ </control>
+ </controls>
+</window>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <che...@us...> - 2007-05-08 14:32:38
|
Revision: 386
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=386&view=rev
Author: chef_koch
Date: 2007-05-08 07:32:37 -0700 (Tue, 08 May 2007)
Log Message:
-----------
MyRecipes: moved skin files from official svn to plugins-svn
Added Paths:
-----------
trunk/plugins/My Recipes/skin/
trunk/plugins/My Recipes/skin/BlueTwo/
trunk/plugins/My Recipes/skin/BlueTwo/myrecipes.xml
trunk/plugins/My Recipes/skin/BlueTwo wide/
trunk/plugins/My Recipes/skin/BlueTwo wide/myrecipes.xml
Added: trunk/plugins/My Recipes/skin/BlueTwo/myrecipes.xml
===================================================================
--- trunk/plugins/My Recipes/skin/BlueTwo/myrecipes.xml (rev 0)
+++ trunk/plugins/My Recipes/skin/BlueTwo/myrecipes.xml 2007-05-08 14:32:37 UTC (rev 386)
@@ -0,0 +1,184 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<window>
+ <id>750</id>
+ <defaultcontrol>3</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <controls>
+ <control>
+ <description>BG</description>
+ <type>image</type>
+ <id>1</id>
+ <width>720</width>
+ <height>576</height>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>75</posX>
+ <posY>370</posY>
+ <texture>hover_my recipies.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>60</posX>
+ <posY>20</posY>
+ <texture>recipies_logo.png</texture>
+ </control>
+ <control>
+ <description>My recepies text label</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>250</posX>
+ <posY>70</posY>
+ <label>10</label>
+ <font>font16</font>
+ <align>left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Number of Files Label</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>260</posX>
+ <posY>530</posY>
+ <label>#itemcount</label>
+ <align>left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Selected item Label</description>
+ <type>fadelabel</type>
+ <id>1</id>
+ <posX>660</posX>
+ <posY>70</posY>
+ <width>400</width>
+ <label>#selecteditem</label>
+ <font>font13</font>
+ <align>right</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>yield interval spin control</description>
+ <type>spincontrol</type>
+ <id>9</id>
+ <posX>250</posX>
+ <posY>100</posY>
+ <showrange>no</showrange>
+ <orientation>horizontal</orientation>
+ <align>center</align>
+ <textureUp>arrow_round_up_nofocus.png</textureUp>
+ <textureDown>arrow_round_down_nofocus.png</textureDown>
+ <textureUpFocus>arrow_round_up_focus.png</textureUpFocus>
+ <textureDownFocus>arrow_round_down_focus.png</textureDownFocus>
+ <onleft>2</onleft>
+ <onright>9</onright>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <control>
+ <description>back button</description>
+ <type>button</type>
+ <id>2</id>
+ <posX>60</posX>
+ <posY>97</posY>
+ <label>712</label>
+ <onleft>2</onleft>
+ <onright>9</onright>
+ <onup>17</onup>
+ <ondown>3</ondown>
+ </control>
+ <control>
+ <description>search button type</description>
+ <type>button</type>
+ <id>3</id>
+ <posX>60</posX>
+ <posY>131</posY>
+ <label>2051</label>
+ <onleft>3</onleft>
+ <onright>10</onright>
+ <onup>2</onup>
+ <ondown>5</ondown>
+ </control>
+ <control>
+ <description>search button</description>
+ <type>button</type>
+ <id>5</id>
+ <posX>60</posX>
+ <posY>165</posY>
+ <label>137</label>
+ <onleft>5</onleft>
+ <onright>10</onright>
+ <onup>3</onup>
+ <ondown>6</ondown>
+ </control>
+ <control>
+ <description>favor button</description>
+ <type>button</type>
+ <id>6</id>
+ <posX>60</posX>
+ <posY>199</posY>
+ <label>2013</label>
+ <onleft>6</onleft>
+ <onright>10</onright>
+ <onup>5</onup>
+ <ondown>7</ondown>
+ </control>
+ <control>
+ <description>delete button</description>
+ <type>button</type>
+ <id>7</id>
+ <posX>60</posX>
+ <posY>233</posY>
+ <label>2005</label>
+ <onleft>7</onleft>
+ <onright>10</onright>
+ <onup>6</onup>
+ <ondown>8</ondown>
+ </control>
+ <control>
+ <description>print button</description>
+ <type>button</type>
+ <id>8</id>
+ <posX>60</posX>
+ <posY>267</posY>
+ <label>2011</label>
+ <onleft>8</onleft>
+ <onright>10</onright>
+ <onup>7</onup>
+ <ondown>2</ondown>
+ </control>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <control>
+ <description>listcontrol</description>
+ <type>listcontrol</type>
+ <id>10</id>
+ <onleft>3</onleft>
+ <onright>11</onright>
+ <onup>3</onup>
+ <ondown>3</ondown>
+ <textcolor>FFFFFFFF</textcolor>
+ </control>
+ </control>
+ <control>
+ <description>Recipie Detail Panel</description>
+ <type>textbox</type>
+ <id>11</id>
+ <label>-</label>
+ <posY>120</posY>
+ <posX>260</posX>
+ <height>400</height>
+ <width>330</width>
+ <onleft>3</onleft>
+ <onright>3</onright>
+ <onup>3</onup>
+ <ondown>3</ondown>
+ <font>font13</font>
+ <textcolor>FFFFFFFF</textcolor>
+ </control>
+ </controls>
+</window>
\ No newline at end of file
Added: trunk/plugins/My Recipes/skin/BlueTwo wide/myrecipes.xml
===================================================================
--- trunk/plugins/My Recipes/skin/BlueTwo wide/myrecipes.xml (rev 0)
+++ trunk/plugins/My Recipes/skin/BlueTwo wide/myrecipes.xml 2007-05-08 14:32:37 UTC (rev 386)
@@ -0,0 +1,185 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<window>
+ <id>750</id>
+ <defaultcontrol>3</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <controls>
+ <control>
+ <description>BG</description>
+ <type>image</type>
+ <id>1</id>
+ <width>1366</width>
+ <height>768</height>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>142</posX>
+ <posY>493</posY>
+ <texture>hover_my recipies.png</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>1</id>
+ <posX>113</posX>
+ <posY>26</posY>
+ <texture>recipies_logo.png</texture>
+ </control>
+ <control>
+ <description>My recepies text label</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>474</posX>
+ <posY>93</posY>
+ <label>10</label>
+ <font>font16</font>
+ <align>left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Number of Files Label</description>
+ <type>label</type>
+ <id>1</id>
+ <posX>493</posX>
+ <posY>706</posY>
+ <label>#itemcount</label>
+ <align>left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Selected item Label</description>
+ <type>fadelabel</type>
+ <id>1</id>
+ <posX>1252</posX>
+ <posY>93</posY>
+ <width>533</width>
+ <label>#selecteditem</label>
+ <font>font13</font>
+ <align>right</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>yield interval spin control</description>
+ <type>spincontrol</type>
+ <id>9</id>
+ <posX>474</posX>
+ <posY>133</posY>
+ <showrange>no</showrange>
+ <orientation>horizontal</orientation>
+ <align>center</align>
+ <textureUp>arrow_round_up_nofocus.png</textureUp>
+ <textureDown>arrow_round_down_nofocus.png</textureDown>
+ <textureUpFocus>arrow_round_up_focus.png</textureUpFocus>
+ <textureDownFocus>arrow_round_down_focus.png</textureDownFocus>
+ <onleft>2</onleft>
+ <onright>9</onright>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <control>
+ <description>back button</description>
+ <type>button</type>
+ <id>2</id>
+ <posX>113</posX>
+ <posY>129</posY>
+ <label>712</label>
+ <onleft>2</onleft>
+ <onright>9</onright>
+ <onup>17</onup>
+ <ondown>3</ondown>
+ </control>
+ <control>
+ <description>search button type</description>
+ <type>button</type>
+ <id>3</id>
+ <posX>113</posX>
+ <posY>174</posY>
+ <label>2051</label>
+ <onleft>3</onleft>
+ <onright>10</onright>
+ <onup>2</onup>
+ <ondown>5</ondown>
+ </control>
+ <control>
+ <description>search button</description>
+ <type>button</type>
+ <id>5</id>
+ <posX>113</posX>
+ <posY>220</posY>
+ <label>137</label>
+ <onleft>5</onleft>
+ <onright>10</onright>
+ <onup>3</onup>
+ <ondown>6</ondown>
+ </control>
+ <control>
+ <description>favor button</description>
+ <type>button</type>
+ <id>6</id>
+ <posX>113</posX>
+ <posY>265</posY>
+ <label>2013</label>
+ <onleft>6</onleft>
+ <onright>10</onright>
+ <onup>5</onup>
+ <ondown>7</ondown>
+ </control>
+ <control>
+ <description>delete button</description>
+ <type>button</type>
+ <id>7</id>
+ <posX>113</posX>
+ <posY>310</posY>
+ <label>2005</label>
+ <onleft>7</onleft>
+ <onright>10</onright>
+ <onup>6</onup>
+ <ondown>8</ondown>
+ </control>
+ <control>
+ <description>print button</description>
+ <type>button</type>
+ <id>8</id>
+ <posX>113</posX>
+ <posY>356</posY>
+ <label>2011</label>
+ <onleft>8</onleft>
+ <onright>10</onright>
+ <onup>7</onup>
+ <ondown>2</ondown>
+ </control>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <animation>FlyInFromTop</animation>
+ <control>
+ <description>listcontrol</description>
+ <type>listcontrol</type>
+ <id>10</id>
+ <onleft>3</onleft>
+ <onright>11</onright>
+ <onup>3</onup>
+ <ondown>3</ondown>
+ <textcolor>FFFFFFFF</textcolor>
+ </control>
+ </control>
+ <control>
+ <description>Recipie Detail Panel</description>
+ <type>textbox</type>
+ <id>11</id>
+ <label>-</label>
+ <posY>160</posY>
+ <posX>493</posX>
+ <height>533</height>
+ <width>440</width>
+ <onleft>3</onleft>
+ <onright>3</onright>
+ <onup>3</onup>
+ <ondown>3</ondown>
+ <font>font13</font>
+ <textcolor>FFFFFFFF</textcolor>
+ </control>
+ </controls>
+</window>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <che...@us...> - 2007-05-08 14:28:26
|
Revision: 385
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=385&view=rev
Author: chef_koch
Date: 2007-05-08 07:28:24 -0700 (Tue, 08 May 2007)
Log Message:
-----------
removed MySudoku because it is in official svn since a few months
Removed Paths:
-------------
trunk/plugins/MySudoku/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gre...@us...> - 2007-05-07 22:22:31
|
Revision: 384
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=384&view=rev
Author: gregmac45
Date: 2007-05-07 15:21:32 -0700 (Mon, 07 May 2007)
Log Message:
-----------
Added support for MyVideo.de and rocketboom.com
Modified Paths:
--------------
trunk/plugins/OnlineVideos/Source/OnlineVideos/SiteUtilFactory.cs
Added Paths:
-----------
trunk/plugins/OnlineVideos/Source/OnlineVideos/MyVideodeUtil.cs
trunk/plugins/OnlineVideos/Source/OnlineVideos/RocketboomUtil.cs
Added: trunk/plugins/OnlineVideos/Source/OnlineVideos/MyVideodeUtil.cs
===================================================================
--- trunk/plugins/OnlineVideos/Source/OnlineVideos/MyVideodeUtil.cs (rev 0)
+++ trunk/plugins/OnlineVideos/Source/OnlineVideos/MyVideodeUtil.cs 2007-05-07 22:21:32 UTC (rev 384)
@@ -0,0 +1,128 @@
+using System;
+using MediaPortal.GUI.Library;
+using System.Text.RegularExpressions;
+using System.Net;
+using System.Text;
+using MediaPortal.Player;
+using System.Collections.Generic;
+//using MediaPortal.Utils.Services;
+using MediaPortal.GUI.View ;
+using MediaPortal.Dialogs;
+using System.Xml;
+using System.Xml.XPath;
+using System.ComponentModel;
+using System.Threading;
+
+
+
+namespace OnlineVideos
+{
+ public class MyVideodeUtil : SiteUtilBase
+ {
+
+ public override String getUrl(String fsId)
+ {
+ String lsUrl = "";
+ HttpWebRequest webrequest =
+ (HttpWebRequest)WebRequest.Create("http://www.myvideo.de/movie/15714");
+ webrequest.KeepAlive = false;
+ webrequest.Method = "GET";
+ webrequest.ContentType = "text/html";
+ webrequest.AllowAutoRedirect = false;
+ HttpWebResponse webresponse;
+ webresponse = (HttpWebResponse)webrequest.GetResponse();
+ WebHeaderCollection headers = webresponse.Headers;
+ if ((webresponse.StatusCode == HttpStatusCode.Found) ||
+ (webresponse.StatusCode == HttpStatusCode.Redirect) ||
+ (webresponse.StatusCode == HttpStatusCode.Moved) ||
+ (webresponse.StatusCode == HttpStatusCode.MovedPermanently))
+ {
+ // Get redirected uri
+ string lsUri = headers["Location"];
+ lsUrl = Regex.Match(lsUri, "V=([^&]*)").Groups[1].Value;
+ }
+
+ return lsUrl;
+ }
+ public override List<GUIOnlineVideos.VideoInfo> getVideoList(string fsUrl)
+ {
+ List<RssItem> loRssItemList = getRssDataItems(fsUrl);
+ List<GUIOnlineVideos.VideoInfo> loVideoList = new List<GUIOnlineVideos.VideoInfo>();
+ GUIOnlineVideos.VideoInfo video;
+ foreach(RssItem rssItem in loRssItemList){
+ video = new GUIOnlineVideos.VideoInfo();
+ video.Description = rssItem.description;
+ video.ImageUrl = rssItem.mediaThumbnail;
+ video.Title = rssItem.title;
+ video.VideoUrl = Regex.Match(rssItem.link, "watch/([\\d]*)").Groups[1].Value;
+ loVideoList.Add(video);
+
+ }
+ return loVideoList;
+ }
+ /*
+ public List<GUIOnlineVideos.VideoInfo> getRssData(String fsUrl)
+ {
+
+ XmlDocument doc = new XmlDocument();
+ //XPathDocument doc = new XPathDocument(fsUrl);
+
+ doc.Load(XmlReader.Create(fsUrl));
+ XmlNamespaceManager expr = new XmlNamespaceManager(doc.NameTable);
+ expr.AddNamespace("media", "http://search.yahoo.com/mrss");
+
+ //Create the root XmlNode and generate an XmlNodeList from it.
+ XmlNode root = doc.SelectSingleNode("//rss/channel/item", expr);
+ XmlNodeList nodeList;
+ nodeList = root.SelectNodes("//rss/channel/item");
+ //RssItem loRssItem = new RssItem();
+ //loRssItem.
+ //This loops through each node found in the nodeList and adds the
+ //Node data to the DataTable.
+ XmlAttributeCollection ac;
+ //List<RssItem> loRssItems = new List<RssItem>();
+ List<GUIOnlineVideos.VideoInfo> loRssItems = new List<GUIOnlineVideos.VideoInfo>();
+ GUIOnlineVideos.VideoInfo loRssItem;
+ //GUIListItem loListItem;
+ foreach (XmlNode chileNode in nodeList)
+ {
+ loRssItem = new GUIOnlineVideos.VideoInfo();
+
+ XmlNode node = chileNode.SelectSingleNode("title");
+ loRssItem.Title = node.InnerText;
+
+ //node = chileNode.SelectSingleNode("link");
+ //loRssItem.link = node.InnerText;
+
+ node = chileNode.SelectSingleNode("description");
+ loRssItem.Description = node.InnerText;
+
+ node = chileNode.SelectSingleNode("media:thumbnail[@width=\"260\"]", expr);
+ if (node != null)
+ {
+ ac = node.Attributes;
+ loRssItem.ImageUrl = ac["url"].InnerText;
+ }
+
+
+ node = chileNode.SelectSingleNode("guid");
+ if (node != null)
+ {
+ //ac = node.Attributes;
+ loRssItem.VideoUrl = node.InnerText;
+ }
+
+ //Log.Write(loRssItem.ToString());
+ //loListItem = new GUIListItem(loRssItem.title);
+ //loListItem.Path = loRssItem.videoUrl;
+ loRssItems.Add(loRssItem);
+
+
+ }
+ return loRssItems;
+ }
+
+ */
+
+ }
+}
Added: trunk/plugins/OnlineVideos/Source/OnlineVideos/RocketboomUtil.cs
===================================================================
--- trunk/plugins/OnlineVideos/Source/OnlineVideos/RocketboomUtil.cs (rev 0)
+++ trunk/plugins/OnlineVideos/Source/OnlineVideos/RocketboomUtil.cs 2007-05-07 22:21:32 UTC (rev 384)
@@ -0,0 +1,107 @@
+using System;
+using MediaPortal.GUI.Library;
+using System.Text.RegularExpressions;
+using System.Net;
+using System.Text;
+using MediaPortal.Player;
+using System.Collections.Generic;
+//using MediaPortal.Utils.Services;
+using MediaPortal.GUI.View ;
+using MediaPortal.Dialogs;
+using System.Xml;
+using System.Xml.XPath;
+using System.ComponentModel;
+using System.Threading;
+
+
+
+namespace OnlineVideos
+{
+ public class RocketboomUtil : SiteUtilBase
+ {
+
+ public override String getUrl(String fsId)
+ {
+ return fsId;
+ }
+ public override List<GUIOnlineVideos.VideoInfo> getVideoList(string fsUrl)
+ {
+ List<RssItem> loRssItemList = getRssDataItems(fsUrl);
+ List<GUIOnlineVideos.VideoInfo> loVideoList = new List<GUIOnlineVideos.VideoInfo>();
+ GUIOnlineVideos.VideoInfo video;
+ foreach(RssItem rssItem in loRssItemList){
+ video = new GUIOnlineVideos.VideoInfo();
+ video.Description = rssItem.description;
+ video.Title = rssItem.title;
+ video.VideoUrl = rssItem.enclosure;
+ loVideoList.Add(video);
+
+ }
+ return loVideoList;
+ }
+ /*
+ public List<GUIOnlineVideos.VideoInfo> getRssData(String fsUrl)
+ {
+
+ XmlDocument doc = new XmlDocument();
+ //XPathDocument doc = new XPathDocument(fsUrl);
+
+ doc.Load(XmlReader.Create(fsUrl));
+ XmlNamespaceManager expr = new XmlNamespaceManager(doc.NameTable);
+ expr.AddNamespace("media", "http://search.yahoo.com/mrss");
+
+ //Create the root XmlNode and generate an XmlNodeList from it.
+ XmlNode root = doc.SelectSingleNode("//rss/channel/item", expr);
+ XmlNodeList nodeList;
+ nodeList = root.SelectNodes("//rss/channel/item");
+ //RssItem loRssItem = new RssItem();
+ //loRssItem.
+ //This loops through each node found in the nodeList and adds the
+ //Node data to the DataTable.
+ XmlAttributeCollection ac;
+ //List<RssItem> loRssItems = new List<RssItem>();
+ List<GUIOnlineVideos.VideoInfo> loRssItems = new List<GUIOnlineVideos.VideoInfo>();
+ GUIOnlineVideos.VideoInfo loRssItem;
+ //GUIListItem loListItem;
+ foreach (XmlNode chileNode in nodeList)
+ {
+ loRssItem = new GUIOnlineVideos.VideoInfo();
+
+ XmlNode node = chileNode.SelectSingleNode("title");
+ loRssItem.Title = node.InnerText;
+
+ //node = chileNode.SelectSingleNode("link");
+ //loRssItem.link = node.InnerText;
+
+ node = chileNode.SelectSingleNode("description");
+ loRssItem.Description = node.InnerText;
+
+ node = chileNode.SelectSingleNode("media:thumbnail[@width=\"260\"]", expr);
+ if (node != null)
+ {
+ ac = node.Attributes;
+ loRssItem.ImageUrl = ac["url"].InnerText;
+ }
+
+
+ node = chileNode.SelectSingleNode("guid");
+ if (node != null)
+ {
+ //ac = node.Attributes;
+ loRssItem.VideoUrl = node.InnerText;
+ }
+
+ //Log.Write(loRssItem.ToString());
+ //loListItem = new GUIListItem(loRssItem.title);
+ //loListItem.Path = loRssItem.videoUrl;
+ loRssItems.Add(loRssItem);
+
+
+ }
+ return loRssItems;
+ }
+
+ */
+
+ }
+}
Modified: trunk/plugins/OnlineVideos/Source/OnlineVideos/SiteUtilFactory.cs
===================================================================
--- trunk/plugins/OnlineVideos/Source/OnlineVideos/SiteUtilFactory.cs 2007-05-07 02:00:09 UTC (rev 383)
+++ trunk/plugins/OnlineVideos/Source/OnlineVideos/SiteUtilFactory.cs 2007-05-07 22:21:32 UTC (rev 384)
@@ -100,6 +100,16 @@
lbFound = true;
moSiteTable.Add("15", new ItunesTrailerUtil());
}
+ else if (fsSiteId == "16")
+ {
+ lbFound = true;
+ moSiteTable.Add("16", new MyVideodeUtil());
+ }
+ else if (fsSiteId == "17")
+ {
+ lbFound = true;
+ moSiteTable.Add("17", new RocketboomUtil());
+ }
if(lbFound){
return moSiteTable[fsSiteId];
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gre...@us...> - 2007-05-07 02:00:12
|
Revision: 383
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=383&view=rev
Author: gregmac45
Date: 2007-05-06 19:00:09 -0700 (Sun, 06 May 2007)
Log Message:
-----------
Fixed GUI,
AddFixed GUI,
Added Settings,
Added Flickr photo sets,
Fixed various Bugs
Modified Paths:
--------------
trunk/plugins/OnlinePhotos/Flickr.cs
trunk/plugins/OnlinePhotos/MyClass.cs
trunk/plugins/OnlinePhotos/myonlinephotos.xml
Modified: trunk/plugins/OnlinePhotos/Flickr.cs
===================================================================
--- trunk/plugins/OnlinePhotos/Flickr.cs 2007-05-06 18:24:35 UTC (rev 382)
+++ trunk/plugins/OnlinePhotos/Flickr.cs 2007-05-07 02:00:09 UTC (rev 383)
@@ -145,6 +145,9 @@
private static List<MyPhoto> loadMyPhotoList(Photo[] photoArray)
{
Photos photos = new Photos();
+ if (photoArray == null)
+ return new List<MyPhoto>();
+
foreach(Photo photo in photoArray)
{
photos.PhotoCollection.Add(photo);
Modified: trunk/plugins/OnlinePhotos/MyClass.cs
===================================================================
--- trunk/plugins/OnlinePhotos/MyClass.cs 2007-05-06 18:24:35 UTC (rev 382)
+++ trunk/plugins/OnlinePhotos/MyClass.cs 2007-05-07 02:00:09 UTC (rev 383)
@@ -13,6 +13,7 @@
using MediaPortal.GUI.Library;
using MediaPortal.Dialogs;
using MediaPortal.GUI.Pictures;
+using MediaPortal.Configuration;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Xml;
@@ -25,73 +26,80 @@
namespace OnlinePhotos
{
- public class MyPhoto
- {
- private String title;
- public String Title
- {
- get
- {
- return title;
- }
- set
- {
- title = value;
-
- }
- }
-
- public String id;
- public String thumbnailUrl;
- public String largeUrl;
- public String mediumUrl;
- public String smallUrl;
- private String thumbName;
- public String ThumbName{
- get{
- if(String.IsNullOrEmpty(thumbName)){
- thumbName = Utils.GetFilename(Utils.GetThumb(title))+id;
- }
- return thumbName;
- }
- }
- }
- public class MyAlbum
- {
- public string id;
- private string title;
- public string coverThumbnailUrl;
- private String thumbName;
- public List<MyPhoto> photoCollection = new List<MyPhoto>();
- public String Title
- {
- get
- {
- return title;
- }
- set
- {
- title = value;
- //ThumbName = "alb"+Utils.GetFilename(Utils.GetThumb(value));
- }
- }
- public String ThumbName{
- get{
- if(String.IsNullOrEmpty(thumbName)){
- thumbName = Utils.GetFilename(Utils.GetThumb(title))+id;
- }
- return thumbName;
- }
- }
- }
+ public class MyPhoto
+ {
+ private String title;
+ public String Title
+ {
+ get
+ {
+ return title;
+ }
+ set
+ {
+ title = value;
- /// <summary>
- /// Description of MyClass.
- /// </summary>
- public class MyOnlinePhotos : GUIWindow, ISetupForm
- {
- [SkinControlAttribute(2)]
- protected GUIButtonControl btnViewAs = null;
+ }
+ }
+
+ public String id;
+ public String thumbnailUrl;
+ public String largeUrl;
+ public String mediumUrl;
+ public String smallUrl;
+ private String thumbName;
+ public String ThumbName
+ {
+ get
+ {
+ if (String.IsNullOrEmpty(thumbName))
+ {
+ thumbName = Utils.GetFilename(Utils.GetThumb(title)) + id;
+ }
+ return thumbName;
+ }
+ }
+ }
+ public class MyAlbum
+ {
+ public string id;
+ private string title;
+ public string coverThumbnailUrl;
+ private String thumbName;
+ public List<MyPhoto> photoCollection = new List<MyPhoto>();
+ public String Title
+ {
+ get
+ {
+ return title;
+ }
+ set
+ {
+ title = value;
+ //ThumbName = "alb"+Utils.GetFilename(Utils.GetThumb(value));
+ }
+ }
+ public String ThumbName
+ {
+ get
+ {
+ if (String.IsNullOrEmpty(thumbName))
+ {
+ thumbName = Utils.GetFilename(Utils.GetThumb(title)) + id;
+ }
+ return thumbName;
+ }
+ }
+ }
+
+ /// <summary>
+ /// Description of MyClass.
+ /// </summary>
+ public class MyOnlinePhotos : GUIWindow, ISetupForm
+ {
+
+ [SkinControlAttribute(2)]
+ protected GUIButtonControl btnViewAs = null;
[SkinControlAttribute(3)]
protected GUIButtonControl btnFlickr = null;
[SkinControlAttribute(31)]
@@ -112,698 +120,750 @@
protected GUIButtonControl btnSearchGrp = null;
[SkinControlAttribute(4)]
protected GUIButtonControl btnPicasa = null;
- [SkinControlAttribute(41)]
- protected GUIButtonControl btnPicasaPhotos = null;
- [SkinControlAttribute(5)]
- protected GUIButtonControl btnSlide = null;
+ //[SkinControlAttribute(41)]
+ //protected GUIButtonControl btnPicasaPhotos = null;
+ [SkinControlAttribute(5)]
+ protected GUIButtonControl btnSlide = null;
[SkinControlAttribute(6)]
- protected GUIButtonControl btnClearCache = null;
+ protected GUIButtonControl btnClearCache = null;
[SkinControlAttribute(7)]
protected GUIButtonControl btnSettings = null;
- [SkinControlAttribute(50)]
- protected GUIFacadeControl facadeView = null;
- GUISlideShow _SlideShow;
- private State _CurrentState = State.home;
- protected View currentView = View.List;
- protected List<MyPhoto> CurrentPhotoList;
- protected List<MyAlbum> CurrentAlbumList;
- protected MyAlbum CurrentAlbum;
- protected bool _imagesDone = true;
- protected bool _stopImgDownload = false;
- protected bool _onSlideShow = false;
- protected string _imageDirectory = @"C:\Temp\";
- protected NameValueCollection _photosToDownload;
- protected NameValueCollection _AlbumCoversToDownload;
- public enum State
- {
- home = 0,
- albums = 1,
- photos = 2,
- album_photos = 3,
- //showpicture=4,
- //slideshow=5
- }
- public enum View
- {
- List = 0,
- Icons = 1,
- LargeIcons = 2,
- FilmStrip = 3
- }
- public string PluginName()
- {
+ [SkinControlAttribute(8)]
+ protected GUIButtonControl btnBack = null;
+ [SkinControlAttribute(50)]
+ protected GUIFacadeControl facadeView = null;
- return "Online Photos";
+ #region Member variables
+ GUISlideShow _SlideShow;
+ private State _CurrentState = State.HOME;
+ protected View currentView = View.LIST;
+ protected View photoView = View.LARGE_ICONS;
+ protected List<MyPhoto> CurrentPhotoList;
+ protected List<MyAlbum> CurrentAlbumList;
+ protected MyAlbum CurrentAlbum;
+ protected string _CurrentFlickrUser = "";
+ protected string _CurrentPicasaUser = "";
+ protected bool _imagesDone = true;
+ protected bool _stopImgDownload = false;
+ protected bool _onSlideShow = false;
+ protected int _SelectedAlbumIdx = -1;
+ protected int _SelectedPhotoIdx = -1;
+ //protected string _imageDirectory = Config.GetSubFolder(Config.Dir.Thumbs, @"OnlinePhotos");
+ protected string _imageDirectory = String.Empty;
+ protected NameValueCollection _photosToDownload;
+ protected NameValueCollection _AlbumCoversToDownload;
+ #endregion
+ #region Enums
+ public enum State
+ {
+ HOME,
+ FLICKR_HOME,
+ FLICKR_SETS,
+ FLICKR_SET_PHOTOS,
+ FLICKR_PHOTOS,
+ //PICASA_HOME,
+ PICASA_ALBUMS,
+ PICASA_PHOTOS
+ }
+ public enum View
+ {
+ LIST =1,
+ ICONS=2,
+ LARGE_ICONS=3,
+ FILM_STRIP=4
+ }
+ #endregion
+ public string PluginName()
+ {
- }
- public string Description()
- {
+ return "Online Photos";
- return "Flickr and Google Photo Plugin";
+ }
+ public string Description()
+ {
- }
- public string Author()
- {
+ return "Flickr and Google Photo Plugin";
- return "GregMac45";
+ }
+ public string Author()
+ {
- }
- public void ShowPlugin()
- {
+ return "GregMac45";
- //MessageBox.Show("Nothing to configure, this is just an example");
+ }
+ public void ShowPlugin()
+ {
- }
- public bool CanEnable()
- {
+ //MessageBox.Show("Nothing to configure, this is just an example");
- return true;
- }
- public int GetWindowId()
- {
+ }
+ public bool CanEnable()
+ {
- return GetID;
+ return true;
+ }
+ public int GetWindowId()
+ {
- }
- public bool DefaultEnabled()
- {
- return true;
- }
- public bool HasSetup()
- {
- return false;
- }
- public override int GetID
- {
- get
- {
- return 5757;
- }
- set
- {
- }
- }
- public override bool Init()
- {
- LoadSettings();
- return Load(GUIGraphicsContext.Skin + @"\myonlinephotos.xml");
+ return GetID;
- }
- public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage)
- {
- strButtonText = PluginName();
+ }
+ public bool DefaultEnabled()
+ {
+ return true;
+ }
+ public bool HasSetup()
+ {
+ return false;
+ }
+ public override int GetID
+ {
+ get
+ {
+ return 5757;
+ }
+ set
+ {
+ }
+ }
+ public override bool Init()
+ {
+ _imageDirectory = Config.GetSubFolder(Config.Dir.Thumbs, @"OnlinePhotos");
+ if (Directory.Exists(_imageDirectory) == false)
+ {
+ try
+ {
+ Directory.CreateDirectory(_imageDirectory);
+ }
+ catch (Exception)
+ {
+ //Log.Error("Unable to create thumb directory {0}", _imageDirectory);
+ _imageDirectory = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache);
+ }
+ }
+ _imageDirectory += "/";
+ Log.Info("OnlinePhotos thumb Dir: {0}", _imageDirectory);
+ LoadSettings();
+ return Load(GUIGraphicsContext.Skin + @"\myonlinephotos.xml");
- strButtonImage = String.Empty;
+ }
+ public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage)
+ {
+ strButtonText = PluginName();
- strButtonImageFocus = String.Empty;
+ strButtonImage = String.Empty;
- strPictureImage = String.Empty;
+ strButtonImageFocus = String.Empty;
- return true;
- }
- public bool ShowDefaultHome()
- {
- return true;
- }
- protected override void OnPageLoad()
- {
- Log.Info("in OnPageLoad");
- if (_CurrentState == State.home)
- {
- //_log.Info("onPageLoad state home");
- GUIPropertyManager.SetProperty("#header.label", "Online Photos");
- DisplayHome();
- //DisplaySites();
- }
- else if (_CurrentState == State.photos || _CurrentState == State.album_photos)
- {
- Log.Info("OnPageLoad with state ={0} calling DisplayCurrentPhotos with false",_CurrentState);
- DisplayCurrentPhotos(false);
- }
-
- currentView = View.Icons;
- ChangeFacadeView();
- _onSlideShow = false;
- if (_imagesDone == false)
+ strPictureImage = String.Empty;
+
+ return true;
+ }
+ public bool ShowDefaultHome()
+ {
+ return true;
+ }
+ protected override void OnPageLoad()
+ {
+ Log.Info("in OnPageLoad");
+ base.OnPageLoad();
+ switch (_CurrentState)
{
- Log.Info("OnPageLoad with state ={0} and imageDone = false calling GetImages(_photosToDownload)",_CurrentState);
- if (_CurrentState == State.album_photos || _CurrentState == State.photos)
- {
- getImages(_photosToDownload);
- }
+ case State.HOME:
+ GUIPropertyManager.SetProperty("#header.label", "Online Photos");
+ SetStateHome();
+ break;
+ case State.FLICKR_PHOTOS:
+ GUIPropertyManager.SetProperty("#header.label", "FLICKR");
+ SetStateFlickrPhotos();
+ DisplayCurrentPhotos(!_imagesDone);
+ if (_SelectedPhotoIdx > -1)
+ {
+ GUIControl.FocusControl(GetID, facadeView.GetID);
+ GUIControl.SelectItemControl(GetID, facadeView.GetID, _SelectedPhotoIdx);
+ }
+ break;
+ case State.FLICKR_SET_PHOTOS:
+ GUIPropertyManager.SetProperty("#header.label", "FLICKR");
+ SetStateFlickrSetPhotos();
+ DisplayCurrentPhotos(!_imagesDone);
+ if (_SelectedPhotoIdx > -1)
+ {
+ GUIControl.FocusControl(GetID, facadeView.GetID);
+ GUIControl.SelectItemControl(GetID, facadeView.GetID, _SelectedPhotoIdx);
+ }
+ break;
+ case State.PICASA_PHOTOS:
+ GUIPropertyManager.SetProperty("#header.label", "PICASA");
+ SetStatePicasaPhotos();
+ DisplayCurrentPhotos(!_imagesDone);
+ if (_SelectedPhotoIdx > -1)
+ {
+ GUIControl.FocusControl(GetID, facadeView.GetID);
+ GUIControl.SelectItemControl(GetID, facadeView.GetID, _SelectedPhotoIdx);
+ }
+ break;
}
-
- base.OnPageLoad();
- }
- public override bool OnMessage(GUIMessage message)
- {
- return base.OnMessage(message);
- }
- public override void OnAction(Action action)
- {
-
- if (action.wID == Action.ActionType.ACTION_PREVIOUS_MENU)
- {
- Log.Info("in Action previous menu");
- if (_CurrentState == State.album_photos)
- {
- _CurrentState = State.albums;
- Log.Info(" AP - Sending request to stop img download");
+
+ _onSlideShow = false;
+
+
+ }
+ public override bool OnMessage(GUIMessage message)
+ {
+ return base.OnMessage(message);
+ }
+ public override void OnAction(Action action)
+ {
+
+ if (action.wID == Action.ActionType.ACTION_PREVIOUS_MENU)
+ {
+ OnPreviousWindow();
+ return;
+ }
+ base.OnAction(action);
+ }
+ protected override void OnPreviousWindow()
+ {
+ Log.Info("Current state = {0}", _CurrentState);
+ switch (_CurrentState)
+ {
+ case State.FLICKR_PHOTOS:
_stopImgDownload = true;
System.Threading.Thread.Sleep(25);
- DisplayCurrentAlbums();
-
-
- return;
- }
- else if (_CurrentState == State.albums || _CurrentState == State.photos)
- {
- _CurrentState = State.home;
- Log.Info(" P - Sending request to stop img download");
+ GUIControl.ClearControl(GetID, facadeView.GetID);
+ SetStateFlickrHome();
+ //DisplayCurrentAlbums();
+ return;
+ case State.FLICKR_SETS:
_stopImgDownload = true;
System.Threading.Thread.Sleep(25);
- DisplayHome();
-
- return;
- }
-
-
-
- }
- base.OnAction(action);
- }
- protected override void OnPageDestroy(int new_windowId)
- {
+ GUIControl.ClearControl(GetID, facadeView.GetID);;
+ SetStateFlickrHome();
+ return;
+ case State.FLICKR_SET_PHOTOS:
+ _stopImgDownload = true;
+ System.Threading.Thread.Sleep(25);
+ SetStateFlickrSets();
+ DisplayCurrentAlbums();
+ if (_SelectedAlbumIdx > -1)
+ {
+ GUIControl.FocusControl(GetID, facadeView.GetID);
+ GUIControl.SelectItemControl(GetID, facadeView.GetID, _SelectedAlbumIdx);
+ }
+ return;
+ case State.PICASA_ALBUMS:
+ _stopImgDownload = true;
+ System.Threading.Thread.Sleep(25);
+ GUIControl.ClearControl(GetID, facadeView.GetID);;
+ SetStateHome();
+ return;
+ case State.FLICKR_HOME:
+ //case State.PICASA_HOME:
+ SetStateHome();
+ return;
- base.OnPageDestroy(new_windowId);
- }
- protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
- {
- if (control == btnViewAs)
- {
- ChangeFacadeView();
- }
- else if (control == btnSlide)
- {
- OnSlideShow();
- }else if(control == btnClearCache){
- ClearCache();
+ case State.PICASA_PHOTOS:
+ _stopImgDownload = true;
+ System.Threading.Thread.Sleep(25);
+ SetStatePicasaAlbums();
+ DisplayCurrentAlbums();
+ if (_SelectedAlbumIdx > -1)
+ {
+ GUIControl.FocusControl(GetID, facadeView.GetID);
+ GUIControl.SelectItemControl(GetID, facadeView.GetID, _SelectedAlbumIdx);
+ }
+ return;
+ default:
+ base.OnPreviousWindow();
+ break;
}
- else if (control == facadeView && _CurrentState == State.home)
- {
- String SelectedSiteId = facadeView.SelectedListItem.Path;
- String userInput = "" ;
- switch (SelectedSiteId)
- {
- case "1":
- DisplayInterestingFlickrPhotos();
- _CurrentState = State.photos;
- break;
- case "2":
- DisplayRecentFlickrPhotos();
- _CurrentState = State.photos;
- break;
- case "3":
-
- if (GetUserInputString(ref userInput))
- {
- DisplayFlickrPhotosWithTags(userInput);
- _CurrentState = State.photos;
-
- }
- break;
- case "4":
- if (GetUserInputString(ref userInput))
- {
- DisplayFlickrPhotosWithText(userInput);
- _CurrentState = State.photos;
+
+ }
+ protected override void OnPageDestroy(int new_windowId)
+ {
+ SaveSettings();
+ base.OnPageDestroy(new_windowId);
+ }
+ protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
+ {
+ String userInput = "";
+ if (control == btnClearCache) ClearCache();
+ else if (control == btnViewAs) ChangeFacadeView();
+ else if (control == btnClearCache) ClearCache();
+ else if (control == btnSettings) OnSettings();
+ else if (control == btnSlide) OnSlideShow();
+ else if (control == facadeView) OnClick();
+ else if (control == btnBack) OnPreviousWindow();
+ else if (control == btnFlickr)
+ {
+ SetStateFlickrHome();
+ }
+ else if (control == btnInterest)
+ {
+ DisplayInterestingFlickrPhotos();
+ SetStateFlickrPhotos();
+ }
+ else if (control == btnRecent)
+ {
+ SetStateFlickrPhotos();
+ DisplayRecentFlickrPhotos();
+
+ }
- }
- break;
- case "5":
- DisplayFlickrUserPhotos("gregmac45");
- _CurrentState = State.photos;
+ else if (control == btnSearchTag)
+ {
+ if (GetUserInputString(ref userInput))
+ {
-
- break;
- case "6":
- if (GetUserInputString(ref userInput))
- {
- DisplayFlickrGroupsWithText(userInput);
- _CurrentState = State.photos;
- }
- break;
- case "7":
- DisplayFlickrUserFavoritePhotos("gregmac45");
- _CurrentState = State.photos;
- break;
- case "8":
- DisplayPicasaAlbums("gregmac45");
- _CurrentState = State.albums;
- break;
- }
- }
- else if (control == facadeView && _CurrentState == State.albums)
- {
- _stopImgDownload = true;
- CurrentAlbum = CurrentAlbumList[facadeView.SelectedListItemIndex];
- DisplayAlbumPhotos();
-
- _CurrentState = State.album_photos;
- }
- else if (control == facadeView && (_CurrentState == State.photos || _CurrentState== State.album_photos))
- {
- OnShowPicture(facadeView.SelectedListItem.Path);
- }
- }
- public void DisplayInterestingFlickrPhotos()
- {
- CurrentPhotoList =
- MyFlickr.getInterestingPhotos();
- DisplayCurrentPhotos();
- }
- public void DisplayRecentFlickrPhotos()
- {
- CurrentPhotoList = MyFlickr.getRecentPhotos();
- DisplayCurrentPhotos();
- }
- public void DisplayFlickrPhotosWithTags(String tags)
- {
- CurrentPhotoList = MyFlickr.getPhotosByTag(tags);
- DisplayCurrentPhotos();
- }
- public void DisplayFlickrPhotosWithText(String text)
- {
- CurrentPhotoList = MyFlickr.getPhotosByText(text);
- DisplayCurrentPhotos();
- }
- public void DisplayFlickrGroupsWithText(String text)
- {
- CurrentAlbumList = MyFlickr.getGroupsByText(text);
- DisplayCurrentAlbums();
- }
- public void DisplayFlickrUserPhotos(String user)
- {
- CurrentPhotoList = MyFlickr.getUserPhotos(user);
- DisplayCurrentPhotos();
- }
- public void DisplayFlickrUserFavoritePhotos(String user)
- {
- CurrentPhotoList = MyFlickr.getUserFavoritePhotos(user);
- DisplayCurrentPhotos();
- }
- public void DisplayPicasaAlbums(String user)
- {
- CurrentAlbumList = MyPicasa.getUserAlbums(user);
- DisplayCurrentAlbums();
- }
- private bool GetUserInputString(ref string sString)
- {
- VirtualKeyboard keyBoard = (VirtualKeyboard)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_VIRTUAL_KEYBOARD);
- keyBoard.Reset();
- keyBoard.IsSearchKeyboard = true;
- keyBoard.Text = sString;
- keyBoard.DoModal(GetID); // show it...
- if (keyBoard.IsConfirmed) sString = keyBoard.Text;
- return keyBoard.IsConfirmed;
- }
- public void DisplayCurrentPhotos(){
- DisplayCurrentPhotos(true);
- }
- public void DisplayCurrentPhotos(bool refresh)
- {
- facadeView.Clear();
- GUIListItem item;
- int i = 0;
- _photosToDownload = new NameValueCollection();
- foreach (MyPhoto photo in CurrentPhotoList)
- {
- item = new GUIListItem(photo.Title);
- item.Path = photo.mediumUrl;
- item.ItemId = i;
- item.OnItemSelected += new MediaPortal.GUI.Library.GUIListItem.ItemSelectedHandler(item_OnItemSelected);
- if(refresh){
- item.RetrieveArt = false;
- item.OnRetrieveArt += new MediaPortal.GUI.Library.GUIListItem.RetrieveCoverArtHandler(OnRetrieveCoverArt);
-
-
- _photosToDownload.Add(photo.ThumbName,photo.mediumUrl);
- //Log.Info("setting photo to url " + photo.mediumUrl);
- }else{
- item.RetrieveArt = true;
- item.OnRetrieveArt += new MediaPortal.GUI.Library.GUIListItem.RetrieveCoverArtHandler(OnRetrieveCoverArt);
- }
- facadeView.Add(item);
- //GUIWindowManager.Process();
- i++;
+ SetStateFlickrPhotos();
+ DisplayFlickrPhotosWithTags(userInput);
+
- }
- if(refresh){
- getImages(_photosToDownload);
- }
+ }
+ }
+ else if (control == btnSearchTxt)
+ {
+ if (GetUserInputString(ref userInput))
+ {
+ SetStateFlickrPhotos();
+ DisplayFlickrPhotosWithText(userInput);
+
- }
- public void DisplayCurrentAlbums()
- {
- facadeView.Clear();
- GUIListItem item;
- int i = 0;
- _AlbumCoversToDownload = new NameValueCollection();
- foreach (MyAlbum album in CurrentAlbumList)
- {
- item = new GUIListItem(album.Title);
- item.Path = album.id;
- item.ItemId = i;
- //item.IsFolder = true;
- item.RetrieveArt = false;
- item.OnRetrieveArt += new MediaPortal.GUI.Library.GUIListItem.RetrieveCoverArtHandler(OnRetrieveCoverArt);
- item.OnItemSelected += new MediaPortal.GUI.Library.GUIListItem.ItemSelectedHandler(item_OnItemSelected);
- _AlbumCoversToDownload.Add(album.ThumbName,album.coverThumbnailUrl);
- Log.Info("album thumbnail for {0} is {1}",album.Title,album.coverThumbnailUrl);
- facadeView.Add(item);
- GUIWindowManager.Process();
- i++;
+ }
+ }
+ else if (control == btnFlickrSets)
+ {
+ SetStateFlickrSets();
+ DisplayFlickrUserSets(_CurrentFlickrUser);
+
+ }
+ else if (control == btnFlickrPhotos)
+ {
+ SetStateFlickrPhotos();
+ DisplayFlickrUserPhotos(_CurrentFlickrUser);
+
+ }
- }
- getImages(_AlbumCoversToDownload);
- }
- private void DisplayAlbumPhotos(){
- CurrentPhotoList = MyPicasa.getAlbumPhotos(CurrentAlbum.id);
- DisplayCurrentPhotos();
- }
- /*
- private String GetThumbnail(String lsUrl)
- {
- string lsThumb = MediaPortal.Util.Utils.GetThumb(lsUrl);
- lsThumb = System.IO.Path.GetFileName(lsThumb);
- string lsThumbsDir = "C:\\Temp\\";
- if (System.IO.Directory.Exists(lsThumbsDir) == false)
- {
- System.IO.Directory.CreateDirectory(lsThumbsDir);
- }
- lsThumb = lsThumbsDir + lsThumb;
- //Log.Info(lsThumb);
- if (System.IO.File.Exists(lsThumb) == false)
- {
- String lsFilename = System.IO.Path.GetFileName(lsThumb);
- //moLog.Info("Filename will be {0}", lsFilename);
- MediaPortal.Util.Utils.DownLoadImage(lsUrl, lsThumb);
- }
- if (System.IO.File.Exists(lsThumb))
- {
- //facadeView[liIdx].IconImageBig = lsThumb;
- return lsThumb;
- }
- else
- {
- return "";
- //facadeView[liIdx].IconImageBig = "";
- }
- }
- */
- protected void getImages(NameValueCollection imageList){
+
+ else if (control == btnSearchGrp)
+ {
+ if (GetUserInputString(ref userInput))
+ {
+ SetStateFlickrPhotos();
+ DisplayFlickrGroupsWithText(userInput);
+
+ }
+ }
+ else if (control == btnFlickrFav)
+ {
+ SetStateFlickrPhotos();
+ DisplayFlickrUserFavoritePhotos(_CurrentFlickrUser);
+
+ }
+ else if (control == btnPicasa)
+ {
+ SetStatePicasaAlbums();
+ DisplayPicasaAlbums(_CurrentPicasaUser);
+ }
+ }
+ #region Flickr Api calls
+ public void DisplayInterestingFlickrPhotos()
+ {
+ CurrentPhotoList =
+ MyFlickr.getInterestingPhotos();
+ DisplayCurrentPhotos();
+ }
+ public void DisplayRecentFlickrPhotos()
+ {
+ CurrentPhotoList = MyFlickr.getRecentPhotos();
+ DisplayCurrentPhotos();
+ }
+ public void DisplayFlickrPhotosWithTags(String tags)
+ {
+ CurrentPhotoList = MyFlickr.getPhotosByTag(tags);
+ DisplayCurrentPhotos();
+ }
+ public void DisplayFlickrPhotosWithText(String text)
+ {
+ CurrentPhotoList = MyFlickr.getPhotosByText(text);
+ DisplayCurrentPhotos();
+ }
+ public void DisplayFlickrGroupsWithText(String text)
+ {
+ CurrentAlbumList = MyFlickr.getGroupsByText(text);
+ DisplayCurrentAlbums();
+ }
+ public void DisplayFlickrUserPhotos(String user)
+ {
+ CurrentPhotoList = MyFlickr.getUserPhotos(user);
+ DisplayCurrentPhotos();
+ }
+ public void DisplayFlickrUserSets(String user)
+ {
+ CurrentAlbumList = MyFlickr.getUserPhotoSets(user);
+ DisplayCurrentAlbums();
+ }
+
+ public void DisplayFlickrUserFavoritePhotos(String user)
+ {
+ CurrentPhotoList = MyFlickr.getUserFavoritePhotos(user);
+ DisplayCurrentPhotos();
+ }
+ #endregion
+ public void DisplayPicasaAlbums(String user)
+ {
+ CurrentAlbumList = MyPicasa.getUserAlbums(user);
+ DisplayCurrentAlbums();
+ }
+ private bool GetUserInputString(ref string sString)
+ {
+ VirtualKeyboard keyBoard = (VirtualKeyboard)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_VIRTUAL_KEYBOARD);
+ keyBoard.Reset();
+ keyBoard.IsSearchKeyboard = true;
+ keyBoard.Text = sString;
+ keyBoard.DoModal(GetID); // show it...
+ if (keyBoard.IsConfirmed) sString = keyBoard.Text;
+ return keyBoard.IsConfirmed;
+ }
+ #region general Display album/photos
+ public void DisplayCurrentPhotos()
+ {
+ DisplayCurrentPhotos(true);
+ }
+ public void DisplayCurrentPhotos(bool refresh)
+ {
+ GUIControl.ClearControl(GetID, facadeView.GetID);;
+ GUIListItem item;
+ int i = 0;
+ _photosToDownload = new NameValueCollection();
+ foreach (MyPhoto photo in CurrentPhotoList)
+ {
+ item = new GUIListItem(photo.Title);
+
+ item.ItemId = i;
+ item.OnItemSelected += new MediaPortal.GUI.Library.GUIListItem.ItemSelectedHandler(item_OnItemSelected);
+ if (refresh)
+ {
+ item.Path = photo.mediumUrl;
+ item.RetrieveArt = false;
+ item.OnRetrieveArt += new MediaPortal.GUI.Library.GUIListItem.RetrieveCoverArtHandler(OnRetrieveCoverArt);
+
+
+ _photosToDownload.Add(photo.ThumbName, photo.mediumUrl);
+ //Log.Info("setting photo to url " + photo.mediumUrl);
+ }
+ else
+ {
+ item.Path = _imageDirectory + photo.ThumbName + "L.jpg";
+ item.RetrieveArt = true;
+ item.OnRetrieveArt += new MediaPortal.GUI.Library.GUIListItem.RetrieveCoverArtHandler(OnRetrieveCoverArt);
+ }
+ facadeView.Add(item);
+ //GUIWindowManager.Process();
+ i++;
+
+ }
+ if (refresh)
+ {
+ getImages(_photosToDownload);
+ }
+
+ }
+ public void DisplayCurrentAlbums()
+ {
+ GUIControl.ClearControl(GetID, facadeView.GetID);;
+ GUIListItem item;
+ int i = 0;
+ _AlbumCoversToDownload = new NameValueCollection();
+ foreach (MyAlbum album in CurrentAlbumList)
+ {
+ item = new GUIListItem(album.Title);
+ item.Path = album.id;
+ item.ItemId = i;
+ //item.IsFolder = true;
+ item.RetrieveArt = false;
+ item.OnRetrieveArt += new MediaPortal.GUI.Library.GUIListItem.RetrieveCoverArtHandler(OnRetrieveCoverArt);
+ item.OnItemSelected += new MediaPortal.GUI.Library.GUIListItem.ItemSelectedHandler(item_OnItemSelected);
+ _AlbumCoversToDownload.Add(album.ThumbName, album.coverThumbnailUrl);
+ Log.Info("album thumbnail for {0} is {1}", album.Title, album.coverThumbnailUrl);
+ facadeView.Add(item);
+ GUIWindowManager.Process();
+ i++;
+
+ }
+ getImages(_AlbumCoversToDownload);
+ }
+ private void DisplayAlbumPhotos()
+ {
+ CurrentPhotoList = MyPicasa.getAlbumPhotos(CurrentAlbum.id);
+ DisplayCurrentPhotos();
+ }
+ protected void DisplayFlickrSetPhotos()
+ {
+ CurrentPhotoList = MyFlickr.getPhotoSetPhotos(CurrentAlbum.id);
+ DisplayCurrentPhotos();
+ }
+ #endregion
+ #region image donwload
+ protected void getImages(NameValueCollection imageList)
+ {
Log.Info("Getting images");
BackgroundWorker worker = new BackgroundWorker();
- worker.DoWork += new DoWorkEventHandler(downloadImages);
- worker.RunWorkerAsync(imageList);
+ worker.DoWork += new DoWorkEventHandler(downloadImages);
+ worker.RunWorkerAsync(imageList);
- using (WaitCursor cursor = new WaitCursor())
- {
- while (_imagesDone == false)
- {
- GUIWindowManager.Process();
- }
- }
- }
- public void downloadImages(object sender, DoWorkEventArgs e)
- {
+ using (WaitCursor cursor = new WaitCursor())
+ {
+ while (_imagesDone == false)
+ {
+ GUIWindowManager.Process();
+ }
+ }
+ }
+ public void downloadImages(object sender, DoWorkEventArgs e)
+ {
+ //Log.Info("Using thumb directory:{0}", _imageDirectory);
Log.Info("Downloading images");
- _imagesDone = false;
- _stopImgDownload = false;
- //List<String> imageList = (List<String>)e.Argument;
- NameValueCollection imgNameUrlList= (NameValueCollection) e.Argument;
- WebClient client = new WebClient();
-
- string imageLocation;
- string thumbnailLocation;
- string url;
- string name;
- for(int i=0;i<imgNameUrlList.Count;i++)
- {
- url = imgNameUrlList.Get(i);
- name = imgNameUrlList.GetKey(i);
-
- if(_stopImgDownload){
- Log.Info("Received Request to stop Download");
- break;
- }
- Log.Info("downloading image :"+url);
- /*
- if(inPhotoState() ){
- imageLocation = "C:\\Temp\\" + CurrentPhotoList[i].ThumbName + ".jpg";
- }else{
- imageLocation = "C:\\Temp\\" + CurrentAlbumList[i].ThumbName + ".jpg";
- }
- */
- imageLocation = "C:\\Temp\\" + name+ "L.jpg";
- thumbnailLocation = "C:\\Temp\\" + name+ ".jpg";
- if(System.IO.File.Exists(imageLocation) == false){
- client.DownloadFile(url, imageLocation);
- if(System.IO.File.Exists(thumbnailLocation) == false){
- //int iRotate = dbs.GetRotation(imageLocation);
- MediaPortal.Util.Picture.CreateThumbnail(imageLocation, thumbnailLocation, (int)Thumbs.ThumbResolution, (int)Thumbs.ThumbResolution, 0);
- System.Threading.Thread.Sleep(25);
- }
- if(_onSlideShow){
- _SlideShow.Add(imageLocation);
- }
- }
- facadeView[i].Path = imageLocation;
- facadeView[i].RetrieveArt = true;
- facadeView[i].RefreshCoverArt();
- //i++;
-
-
- }
- Log.Info("Setting imagesDone to true");
- _imagesDone = true;
- }
- public bool inPhotoState(){
- return _CurrentState == State.album_photos || _CurrentState == State.photos;
- }
- void OnRetrieveCoverArt(GUIListItem item)
- {
- if(inPhotoState() ){
- item.ThumbnailImage = "C:\\Temp\\" + CurrentPhotoList[item.ItemId].ThumbName + ".jpg";
- }else{
- item.ThumbnailImage = "C:\\Temp\\" + CurrentAlbumList[item.ItemId].ThumbName + ".jpg";
- }
- }
- private void item_OnItemSelected(GUIListItem item, GUIControl parent)
- {
- GUIFilmstripControl filmstrip = parent as GUIFilmstripControl;
- if (filmstrip == null)
- return;
- filmstrip.InfoImageFileName = item.Path;
- }
- private void ChangeFacadeView()
- {
-
-
- switch (currentView)
- {
- case View.List:
- currentView = View.Icons;
- facadeView.View = GUIFacadeControl.ViewMode.SmallIcons;
- break;
- case View.Icons:
- currentView = View.LargeIcons;
- facadeView.View = GUIFacadeControl.ViewMode.LargeIcons;
- break;
- case View.LargeIcons:
- currentView = View.FilmStrip;
- facadeView.View = GUIFacadeControl.ViewMode.Filmstrip;
- break;
- case View.FilmStrip:
- currentView = View.List;
- facadeView.View = GUIFacadeControl.ViewMode.List;
- break;
- }
- GUIControl.FocusControl(GetID, facadeView.GetID);
+ _imagesDone = false;
+ _stopImgDownload = false;
+ //List<String> imageList = (List<String>)e.Argument;
+ NameValueCollection imgNameUrlList = (NameValueCollection)e.Argument;
+ WebClient client = new WebClient();
- string strLine = String.Empty;
- View view = currentView;
- switch (view)
- {
- case View.List:
- strLine = GUILocalizeStrings.Get(101);
- break;
- case View.Icons:
- strLine = GUILocalizeStrings.Get(100);
- break;
- case View.LargeIcons:
- strLine = GUILocalizeStrings.Get(417);
- break;
- case View.FilmStrip:
- strLine = GUILocalizeStrings.Get(733);
- break;
- }
- GUIControl.SetControlLabel(GetID, btnViewAs.GetID, strLine);
+ string imageLocation;
+ string thumbnailLocation;
+ string url;
+ string name;
+ for (int i = 0; i < imgNameUrlList.Count; i++)
+ {
+ url = imgNameUrlList.Get(i);
+ name = imgNameUrlList.GetKey(i);
- }
- private void LoadSettings()
- {
- XmlDocument doc = new XmlDocument();
- try
- {
- doc.Load("OnlinePhotoSettings.xml");
- /*
- XmlNode filter = doc.SelectSingleNode("//settings/filter");
- String lsFilter = filter.InnerText;
- msFilterArray = lsFilter.Split(new char[] { ',' });
- if (msFilterArray.Length == 1 && msFilterArray[0] == "")
+ if (_stopImgDownload)
{
- msFilterArray = null;
+ Log.Info("Received Request to stop Download");
+ break;
}
- XmlNode thumbNode = doc.SelectSingleNode("//settings/thumbLocation");
- msThumbLocation = thumbNode.InnerText;
+ Log.Info("downloading image :" + url);
+
+ imageLocation = _imageDirectory + name + "L.jpg";
+ thumbnailLocation = _imageDirectory + name + ".jpg";
+ if (System.IO.File.Exists(imageLocation) == false)
+ {
+ client.DownloadFile(url, imageLocation);
+ if (System.IO.File.Exists(thumbnailLocation) == false)
+ {
+ //int iRotate = dbs.GetRotation(imageLocation);
+ MediaPortal.Util.Picture.CreateThumbnail(imageLocation, thumbnailLocation, (int)Thumbs.ThumbResolution, (int)Thumbs.ThumbResolution, 0);
+ System.Threading.Thread.Sleep(25);
+ }
+ if (_onSlideShow)
+ {
+ _SlideShow.Add(imageLocation);
+ }
+ }
+ facadeView[i].Path = imageLocation;
+ facadeView[i].RetrieveArt = true;
+ facadeView[i].RefreshCoverArt();
+ //i++;
- //lsFilterArray
- //Log.Write("filter value {0}",filter.InnerText);
- XmlNode root = doc.SelectSingleNode("//settings/sites/site");
- XmlNodeList nodeList;
- nodeList = root.SelectNodes("//settings/sites/site");
- List<Site> loSiteList = new List<Site>();
- Site loSite;
- XmlNodeList RssNodeList;
- RssLink loRssData;
- bool lbDonwloadDirSet = false;
- foreach (XmlNode chileNode in nodeList)
+ }
+ Log.Info("Setting imagesDone to true");
+ _imagesDone = true;
+ }
+ #endregion
+ protected void OnClick()
+ {
+ Log.Info("processing OnClick() with state={0} and selected index = {1}", _CurrentState, facadeView.SelectedListItemIndex);
+
+ if (_CurrentState == State.PICASA_ALBUMS || _CurrentState == State.FLICKR_SETS)
+ {
+
+ _stopImgDownload = true;
+ CurrentAlbum = CurrentAlbumList[facadeView.SelectedListItemIndex];
+ _SelectedAlbumIdx = facadeView.SelectedListItemIndex;
+ if (_CurrentState == State.FLICKR_SETS)
{
- loSite = new Site();
+ SetStateFlickrSetPhotos();
+ DisplayFlickrSetPhotos();
- XmlNode node = chileNode.SelectSingleNode("name");
- loSite.name = node.InnerText;
+ }
+ else
+ {
+ SetStatePicasaPhotos();
+ DisplayAlbumPhotos();
- node = chileNode.SelectSingleNode("id");
- loSite.id = node.InnerText;
+ }
+ }
+ else if (inPhotoState())
+ {
+ _SelectedPhotoIdx = facadeView.SelectedListItemIndex;
+ OnShowPicture(facadeView.SelectedListItem.Path);
+ }
+ }
+ protected void OnSettings()
+ {
+ GUIDialogMenu dlgSel = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU);
+ dlgSel.Reset();
+ if (dlgSel != null)
+ {
+ dlgSel.Add("Cancel");
+ String username = _CurrentFlickrUser;
+ if (String.IsNullOrEmpty(username))
+ {
+ username = "Not Set!";
+ }
- node = chileNode.SelectSingleNode("user");
- if (node != null)
- loSite.username = node.InnerText;
+ dlgSel.Add("Change Flickr username:" + username);
+ username = _CurrentPicasaUser;
+ if (String.IsNullOrEmpty(username))
+ {
+ username = "Not Set!";
+ }
- node = chileNode.SelectSingleNode("password");
- if (node != null)
- loSite.password = node.InnerText;
+ dlgSel.Add("Change Picasa username:" + username);
- node = chileNode.SelectSingleNode("confirmAge");
- if (node != null)
- loSite.confirmAge = node.InnerText == "yes";
- //Console.WriteLine("site Node:{0}", loSite.ToString());
- RssNodeList = chileNode.SelectNodes("rss");
- foreach (XmlNode RssNode in RssNodeList)
+ dlgSel.SetHeading("OnlinePhotos Settings");
+ dlgSel.DoModal(GetID);
+ int liSelectedIdx = dlgSel.SelectedId;
+ if (liSelectedIdx == 2)
+ {
+ GetUserInputString(ref _CurrentFlickrUser);
+ }
+ if (liSelectedIdx == 3)
+ {
+ GetUserInputString(ref _CurrentPicasaUser);
+ if (String.IsNullOrEmpty(_CurrentPicasaUser))
{
- loRssData = new RssLink();
- //node = chileNode.SelectSingleNode("d");
-
- loRssData.name = RssNode.Attributes["name"].InnerText;
- try
- {
- loRssData.isDynamic = RssNode.Attributes["dynamic"].InnerText.Equals("yes");
- Log.Info("Found a dynamic category for site {0}", loSite.name);
- }
- catch (Exception) { }
- loRssData.url = RssNode.InnerText;
- if (lbDonwloadDirSet == false && loSite.id == "99")
- {
- msDownloadDir = loRssData.url;
- lbDonwloadDirSet = true;
- }
- //Console.WriteLine("rss Node:{0}", loRssData.ToString());
- loSite.RssList.Add(loRssData.name, loRssData);
+ btnPicasa.Disabled = true;
}
- moSiteList.Add(loSite.id, loSite);
+ else
+ {
+ btnPicasa.Disabled = false;
+ }
}
- * */
- }
+ }
+ }
+ public bool inPhotoState()
+ {
+ return _CurrentState == State.FLICKR_PHOTOS || _CurrentState == State.PICASA_PHOTOS || _CurrentState == State.FLICKR_SET_PHOTOS;
+ }
+ void OnRetrieveCoverArt(GUIListItem item)
+ {
+ if (inPhotoState())
+ {
+ item.ThumbnailImage = _imageDirectory + CurrentPhotoList[item.ItemId].ThumbName + ".jpg";
+ }
+ else
+ {
+ item.ThumbnailImage = _imageDirectory + CurrentAlbumList[item.ItemId].ThumbName + ".jpg";
+ }
+ }
+ private void item_OnItemSelected(GUIListItem item, GUIControl parent)
+ {
+ GUIFilmstripControl filmstrip = parent as GUIFilmstripControl;
+ if (filmstrip == null)
+ return;
+ filmstrip.InfoImageFileName = item.Path;
+ }
+ private void ChangeFacadeView()
+ {
- catch (Exception e)
- {
- //moLog.Error(e);
- Log.Error(e);
- }
- }
- private void DisplayHome()
- {
- //facadeView.Clear();
- GUIControl.ClearControl(GetID, facadeView.GetID);
+
+ switch (currentView)
+ {
+ case View.LIST:
+ currentView = View.ICONS;
+ facadeView.View = GUIFacadeControl.ViewMode.SmallIcons;
+ break;
+ case View.ICONS:
+ currentView = View.LARGE_ICONS;
+ facadeView.View = GUIFacadeControl.ViewMode.LargeIcons;
+ break;
+ case View.LARGE_ICONS:
+ currentView = View.FILM_STRIP;
+ facadeView.View = GUIFacadeControl.ViewMode.Filmstrip;
+ break;
+ case View.FILM_STRIP:
+ currentView = View.LIST;
+ facadeView.View = GUIFacadeControl.ViewMode.List;
+ break;
+ }
+ GUIControl.FocusControl(GetID, facadeView.GetID);
+
+ string strLine = String.Empty;
+ View view = currentView;
+ switch (view)
+ {
+ case View.LIST:
+ strLine = GUILocalizeStrings.Get(101);
+ break;
+ case View.ICONS:
+ strLine = GUILocalizeStrings.Get(100);
+ break;
+ case View.LARGE_ICONS:
+ strLine = GUILocalizeStrings.Get(417);
+ break;
+ case View.FILM_STRIP:
+ strLine = GUILocalizeStrings.Get(733);
+ break;
+ }
+ GUIControl.SetControlLabel(GetID, btnViewAs.GetID, strLine);
+ if (_CurrentState != State.HOME && _CurrentState != State.FLICKR_HOME)
+ {
+ photoView = currentView;
+ }
+
+
+ }
+ private void LoadSettings()
+ {
+ using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml")))
+ {
+ _CurrentFlickrUser = xmlreader.GetValueAsString("pictures", "flickr_user", "");
+ _CurrentPicasaUser = xmlreader.GetValueAsString("pictures", "picasa_user", "");
+ photoView = (View)xmlreader.GetValueAsInt("pictures", "onlinephotos_view", (int)View.LIST);
+ }
+ }
+ protected void SaveSettings()
+ {
+ using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml")))
+ {
+ xmlwriter.SetValue("pictures", "onlinephotos_view", (int)photoView);
+ xmlwriter.SetValue("pictures", "picasa_user", _CurrentPicasaUser);
+ xmlwriter.SetValue("pictures", "flickr_user", _CurrentFlickrUser);
+ }
+ }
+ #region state management
+ private void SetStateHome()
+ {
+ _CurrentState = State.HOME;
+ GUIControl.ClearControl(GetID, facadeView.GetID);;
+ currentView = View.FILM_STRIP;
+ ChangeFacadeView();
hideAllButtons();
btnClearCache.Visible = true;
btnFlickr.Visible = true;
btnPicasa.Visible = true;
+ if (String.IsNullOrEmpty(_CurrentPicasaUser))
+ {
+ btnPicasa.Disabled = true;
+ }
+ else
+ {
+ btnPicasa.Disabled = false;
+ }
btnSettings.Visible = true;
- /*
- GUIListItem loListItem;
- //foreach (Site loSite in moSiteList.Values)
- //{
- loListItem = new GUIListItem("Flickr - Interesting Photos");
- loListItem.Path = "1";
- loListItem.IsFolder = true;
- MediaPortal.Util.Utils.SetDefaultIcons(loListItem);
- facadeView.Add(loListItem);
-
- loListItem = new GUIListItem("Flickr - Recent Photos");
- loListItem.Path = "2";
- loListItem.IsFolder = true;
- MediaPortal.Util.Utils.SetDefaultIcons(loListItem);
- facadeView.Add(loListItem);
-
-
- loListItem = new GUIListItem("Flickr - Search by tag");
- loListItem.Path = "3";
- loListItem.IsFolder = true;
- MediaPortal.Util.Utils.SetDefaultIcons(loListItem);
- facadeView.Add(loListItem);
-
- loListItem = new GUIListItem("Flickr - Search by text");
- loListItem.Path = "4";
- loListItem.IsFolder = true;
- MediaPortal.Util.Utils.SetDefaultIcons(loListItem);
- facadeView.Add(loListItem);
-
- loListItem = new GUIListItem("Flickr - My Photos");
- loListItem.Path = "5";
- loListItem.IsFolder = true;
- MediaPortal.Util.Utils.SetDefaultIcons(loListItem);
- facadeView.Add(loListItem);
-
- loListItem = new GUIListItem("Flickr - My Favorites");
- loListItem.Path = "7";
- loListItem.IsFolder = true;
- MediaPortal.Util.Utils.SetDefaultIcons(loListItem);
- facadeView.Add(loListItem);
-
- loListItem = new GUIListItem("Flickr - Search Groups");
- loListItem.Path = "6";
- loListItem.IsFolder = true;
- MediaPortal.Util.Utils.SetDefaultIcons(loListItem);
- facadeView.Add(loListItem);
-
- loListItem = new GUIListItem("Picasa - My Photos");
- loListItem.Path = "8";
- loListItem.IsFolder = true;
- MediaPortal.Util.Utils.SetDefaultIcons(loListItem);
- facadeView.Add(loListItem);
- */
-
- //}
- //GUIPropertyManager.SetProperty("#itemcount", facadeView.Count-1 + "");
- }
- protected void hideAllButtons() {
+ GUIControl.FocusControl(GetID, btnFlickr.GetID);
+
+ }
+ protected void hideAllButtons()
+ {
btnClearCache.Visible = false;
btnFlickr.Visible = false;
btnFlickrFav.Visible = false;
@@ -811,7 +871,7 @@
btnFlickrSets.Visible = false;
btnInterest.Visible = false;
btnPicasa.Visible = false;
- btnPicasaPhotos.Visible = false;
+ //btnPicasaPhotos.Visible = false;
btnRecent.Visible = false;
btnSearchGrp.Visible = false;
btnSearchTag.Visible = false;
@@ -819,138 +879,209 @@
btnSettings.Visible = false;
btnSlide.Visible = false;
btnViewAs.Visible = false;
+ btnBack.Visible = false;
+ }
+ protected void SetStateFlickrHome()
+ {
+ _CurrentState = State.FLICKR_HOME;
+ hideAllButtons();
+ GUIControl.ClearControl(GetID, facadeView.GetID);;
+ currentView = View.FILM_STRIP;
+ ChangeFacadeView();
+ btnFlickrFav.Visible = true;
+ btnFlickrPhotos.Visible = true;
+ btnFlickrSets.Visible = true;
+ if (String.IsNullOrEmpty(_CurrentFlickrUser))
+ {
+ btnFlickrFav.Disabled = true;
+ btnFlickrPhotos.Disabled = true;
+ btnFlickrSets.Disabled = true;
+ }
+ else
+ {
+ btnFlickrFav.Disabled = false;
+ btnFlickrPhotos.Disabled = false;
+ btnFlickrSets.Disabled = false;
+ }
+ btnInterest.Visible = true;
+ btnRecent.Visible = true;
+ btnSearchGrp.Visible = true;
+ btnSearchTag.Visible = true;
+ btnSearchTxt.Visible = true;
+ btnBack.Visible = true;
+ GUIControl.FocusControl(GetID, btnFlickrPhotos.GetID);
+
}
+ protected void SetStateFlickrSets()
+ {
+ _CurrentState = State.FLICKR_SETS;
+ if (photoView == View.LIST)
+ {
+ currentView = View.FILM_STRIP;
+ }else{
+ currentView = (View)(int)photoView - 1;
+ }
+ ChangeFacadeView();
+ hideAllButtons();
+ btnViewAs.Visible = true;
+ btnSlide.Visible = true;
+ btnBack.Visible = true;
+ this.LooseFocus();
+ GUIControl.FocusControl(GetID, btnBack.GetID);
+ }
+ protected void SetStateFlickrSetPhotos()
+ {
+ _CurrentState = State.FLICKR_SET_PHOTOS;
+ if (photoView == View.LIST)
+ {
+ currentView = View.FILM_STRIP;
+ }else{
+ currentView = (View)(int)photoView - 1;
+ }
+ ChangeFacadeView();
+ hideAllButtons();
+ btnViewAs.Visible = true;
+ btnSlide.Visible = true;
+ btnBack.Visible = true;
+ this.LooseFocus();
+ GUIControl.FocusControl(GetID, btnBack.GetID);
+ }
+ protected void SetStateFlickrPhotos()
+ {
+ _CurrentState = State.FLICKR_PHOTOS;
+ if (photoView == View.LIST)
+ {
+ currentView = View.FILM_STRIP;
+ }else{
+ currentView = (View)(int)photoView - 1;
+ }
+ ChangeFacadeView();
+ hideAllButtons();
+ btnViewAs.Visible = true;
+ btnSlide.Visible = true;
+ btnBack.Visible = true;
+ GUIControl.FocusControl(GetID, btnBack.GetID);
+ }
/*
- private void LoadFlickrCategories()
- {
- GUIControl.ClearControl(GetID, facadeView.GetID);
+ protected void SetStatePicasaHome()
+ {
+ hideAllButtons();
+ btnPicasaPhotos.Visible = true;
+ _CurrentState = State.PICASA_HOME;
+ }
+ * */
+ protected void SetStatePicasaAlbums()
+ {
+ _CurrentState = State.PICASA_ALBUMS;
+ if (photoView == View.LIST)
+ {
+ currentView = View.FILM_STRIP;
+ }else{
+ currentView = (View)(int)photoView - 1;
+ }
+ ChangeFacadeView();
+ hideAllButtons();
+ btnViewAs.Visible = true;
+ btnSlide.Visible = true;
+ btnBack.Visible = true;
+ GUIControl.FocusControl(GetID, btnBack.GetID);
+ }
+ protected void SetStatePicasaPhotos()
+ {
+ _CurrentState = State.PICASA_PHOTOS;
+ if (photoView == View.LIST)
+ {
+ currentView = View.FILM_STRIP;
+ }else{
+ currentView = (View)(int)photoView - 1;
+ }
+ ChangeFacadeView();
+ hideAllButtons();
+ btnViewAs.Visible = true;
+ btnSlide.Visible = true;
+ btnBack.Visible = true;
+ GUIControl.FocusControl(GetID, btnBack.GetID);
+ }
+ #endregion
+ #region slideshow methods
+ void OnSlideShow()
+ {
+ OnSlideShow(0);
+ }
+ void OnSlideShow(int iStartItem)
+ {
+ bool doSlide = true;
+ if (_imagesDone == false)
+ {
+ GUIDialogYesNo notify = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO);
+ notify.SetLine(1, "Photos are still downloading.");
+ notify.SetLine(2, "Select Yes to slide the downloaded photos.");
+ notify.DoModal(GetID);
+ doSlide = notify.IsConfirmed;
+ }
+ if (doSlide == false)
+ {
+ return;
+ }
+ _SlideShow = (GUISlideShow)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_SLIDESHOW);
+ if (_SlideShow == null)
+ return;
- GUIListItem loListItem;
- loListItem = new GUIListItem("..");
- loListItem.IsFolder = true;
- MediaPortal.Util.Utils.SetDefaultIcons(loListItem);
- facadeView.Add(loListItem);
+ _SlideShow.Reset();
- loListItem = new GUIListItem("Interesting Photos");
- loListItem.Path = "1";
- loListItem.IsFolder = true;
- MediaPortal.Util.Utils.SetDefaultIcons(loListItem);
- facadeView.Add(loListItem);
+ if ((iStartItem < 0) || (iStartItem > CurrentPhotoList.Count))
+ iStartItem = 0;
+ int i = iStartItem;
+ do
+ {
+ GUIListItem item = facadeView[i];
+ if (!item.IsFolder && !item.IsRemote && item.RetrieveArt)
+ {
+ _SlideShow.Add(facadeView[i].Path);
+ }
- loListItem = new GUIListItem("Recent Photos");
- loListItem.Path = "2";
- loListItem.IsFolder = true;
- MediaPortal.Util.Utils.SetDefaultIcons(loListItem);
- facadeView.Add(loListItem);
+ i++;
+ if (i >= CurrentPhotoList.Count)
+ {
+ i = 0;
+ }
+ }
+ while (i != iStartItem);
- loListItem = new GUIListItem("My Photos");
- loListItem.Path = "3";
- loListItem.IsFolder = true;
- MediaPortal.Util.Utils.SetDefaultIcons(loListItem);
- facadeView.Add(loListItem);
+ if (_SlideShow.Count > 0)
+ {
+ //GUIWindowManager.Callbacks+= new GUIWindowManager.OnCallBackHandler(OnCallBack);
+ _SlideShow.StartSlideShow();
+ _onSlideShow = true;
+ //GUIWindowManager.Receivers+= new GUIWindowManager.SendMessageHandler(OnSendMessage );
+ //Action.ActionType.
+ GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_SLIDESHOW);
+ }
+ }
+ void OnShowPicture(string strFile)
+ {
+ _SlideShow = (GUISlideShow)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_SLIDESHOW);
+ if (_SlideShow == null)
+ return;
- }
- * */
- void OnSlideShow()
- {
- OnSlideShow(0);
- ...
[truncated message content] |
|
From: <chr...@us...> - 2007-05-06 18:24:40
|
Revision: 382
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=382&view=rev
Author: chreekar
Date: 2007-05-06 11:24:35 -0700 (Sun, 06 May 2007)
Log Message:
-----------
Support for translation strings
Modified Paths:
--------------
trunk/plugins/MyEmulators/myEmulators/Class1.cs
trunk/plugins/MyEmulators/myEmulators/DB.cs
trunk/plugins/MyEmulators/myEmulators/setupForm.Designer.cs
trunk/plugins/MyEmulators/myEmulators/setupForm.cs
Added Paths:
-----------
trunk/plugins/MyEmulators/Readme.txt
Added: trunk/plugins/MyEmulators/Readme.txt
===================================================================
--- trunk/plugins/MyEmulators/Readme.txt (rev 0)
+++ trunk/plugins/MyEmulators/Readme.txt 2007-05-06 18:24:35 UTC (rev 382)
@@ -0,0 +1,127 @@
+My Emulators plugin for Media Portal
+
+
+Readme
+===========================================
+
+CHANGELOG
+-------------------------------------------
+v1.6
+-Added support for translations, see below
+
+v1.5.1
+-Fixed compability issues with MP
+
+v1.5
+-A ROM Database accessed from the
+ configuration that lets the user:
+ -Change the name of each game
+ -Write a description
+ -Set a grade that is displayed in the
+ plugin (can also be set from the
+ context menu inside MP)
+ -Change and view a play count and the
+ latest date the game has been launched.
+-Buttons to sort the ROMs according to grade,
+ number of times played or the latest date
+ launched.
+-Thumbnail support! After the first run,
+ directories will be created in the thumbs-
+ directory. Name the image exactly the same
+ as the emulator or game to make it visible.
+-An option to change the label of the plugin
+-Switched to rar file format for the
+ distribution file, and included source code.
+ Most of the comments are in Swedish though.
+-Loads of GUI improvements to the setup...
+-...and a much better looking skin...
+-...with animations and different views.
+
+v1.0.2
+-Option to not use quotes on ROM paths,
+ which should solve some compability
+ issues
+-All settings are now stored in a
+ database (which means the plugin
+ must be reconfigured)
+-Tabbed configuration layout
+-New header logo
+
+v1.0.1
+-Added an option to not close MediaPortal
+ after launching a game
+
+PURPOSE
+-------------------------------------------
+This plugin lets the user in a quick and
+easy way list and launch the ROMs on the
+harddrive in an installed emulator.
+
+It also features a database function that
+can hold information about how many times
+a game has been played, a grade and more.
+
+REQUIREMENTS
+-------------------------------------------
+The plugin has been build from and tested
+to work with MediaPortal version 0.2.2.0,
+but it may work just fine for older
+versions too (if the animations in the skin
+file is commented). No guarantee though.
+
+INSTALLATION
+-------------------------------------------
+Extract all the files in the archive to
+the folder where Mediaportal.exe is located.
+Remember to keep the directory structure.
+
+(Alternatively, you can extract only the
+neccesary files:
+-myEmulators.dll to plugins\windows folder,
+-myEmulators.xml to current skin folder.
+-myEmulators_logo.png to the Media folder
+in current skin folder
+-hover_myEmulators.png to the same folder).
+
+USAGE
+--------------------------------------------
+Before first use, enter Mediaportal configur-
+ation and activate and setup the plugin. In
+the setup, you should enter a path to the
+emulator that is to load the ROMs, a folder
+where all the ROMs are stored, and a name
+and filter for which files will be shown.
+When you run the plugin in Media Portal you
+will be presented with a list of the ROMs.
+By pressing a ROM, that one is loaded in
+the correct emulator.
+
+Whenever something is changed in the setup,
+a star in the title bar appears. After pres-
+sing Apply, the ROM database will be updated.
+This tab makes it easy to edit the name of
+the games shown in MP all well as other
+fields, such as a grade and description.
+
+TRANSLATION
+--------------------------------------------
+To translate myEmulators into another lang-
+uage, create a file named myEmulators.txt
+in the appropriate dir in Mediaportal\
+language. The file MUST contain the fol-
+lowing lines:
+
+Line 1 - View: List
+Line 2 - View: Large Icons
+Line 3 - View: Icons
+Line 4 - Most played
+Line 5 - Recently played
+Line 6 - Top graded
+
+Note that the setup is not translated, only
+the buttons in the main program.
+
+============================================
+
+Christer Carlsund
+www.carlsund.se, chr...@ho...
\ No newline at end of file
Modified: trunk/plugins/MyEmulators/myEmulators/Class1.cs
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-06 15:08:52 UTC (rev 381)
+++ trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-06 18:24:35 UTC (rev 382)
@@ -18,6 +18,8 @@
private int indexOfEmulator;
//To compare with the current marked
private int previouslySelectedIndex;
+ //Translation strings
+ private String[] translation = { "View: List", "View: Large Icons", "View: Icons", "Most played", "Recently played", "Top graded" };
//The emulator/rom list control
[SkinControlAttribute(50)] protected GUIFacadeControl lstEmulators = null;
//The buttons in the menu to the left
@@ -128,6 +130,22 @@
}
_autoHideTopbar = true;
_autoHideTopbarType = AutoHideTopBar.Yes;
+ //Loads the translation strings
+ try
+ {
+ if (Options.getStringOption("language") != "English")
+ {
+ StreamReader translationFile = new StreamReader("language\\" + Options.getStringOption("language") + "\\myEmulators.txt");
+ for (int i = 0; i < 6; i++)
+ {
+ String line = translationFile.ReadLine();
+ if (line == null) { break; }
+ translation[i] = line;
+ }
+ translationFile.Close();
+ }
+ }
+ catch (Exception) { }
//Loads the skin
return Load(GUIGraphicsContext.Skin+@"\myEmulators.xml");
}
@@ -141,12 +159,15 @@
displayStars(0);
text_description.Label = String.Empty;
+ button_mostPlayed.Label = translation[3];
+ button_recentlyPlayed.Label = translation[4];
+ button_topGraded.Label = translation[5];
switch (Options.getIntOption("default_view"))
{
- case (0): { lstEmulators.View = GUIFacadeControl.ViewMode.LargeIcons; button_viewAs.Label = "View: Large Icons"; break; }
- case (1): { lstEmulators.View = GUIFacadeControl.ViewMode.SmallIcons; button_viewAs.Label = "View: Icons"; break; }
- case (2): { lstEmulators.View = GUIFacadeControl.ViewMode.List; button_viewAs.Label = "View: List"; break; }
+ case (0): { lstEmulators.View = GUIFacadeControl.ViewMode.LargeIcons; button_viewAs.Label = translation[1]; break; }
+ case (1): { lstEmulators.View = GUIFacadeControl.ViewMode.SmallIcons; button_viewAs.Label = translation[2]; break; }
+ case (2): { lstEmulators.View = GUIFacadeControl.ViewMode.List; button_viewAs.Label = translation[0]; break; }
}
if (lstEmulators == null)
{
@@ -324,9 +345,9 @@
indexOfEmulator = ((GUIFacadeControl)control).SelectedListItemIndex;
switch (emulators[indexOfEmulator].View)
{
- case (0): { lstEmulators.View = GUIFacadeControl.ViewMode.LargeIcons; button_viewAs.Label = "View: Large Icons"; break; }
- case (1): { lstEmulators.View = GUIFacadeControl.ViewMode.SmallIcons; button_viewAs.Label = "View: Icons"; break; }
- case (2): { lstEmulators.View = GUIFacadeControl.ViewMode.List; button_viewAs.Label = "View: List"; break; }
+ case (0): { lstEmulators.View = GUIFacadeControl.ViewMode.LargeIcons; button_viewAs.Label = translation[1]; break; }
+ case (1): { lstEmulators.View = GUIFacadeControl.ViewMode.SmallIcons; button_viewAs.Label = translation[2]; break; }
+ case (2): { lstEmulators.View = GUIFacadeControl.ViewMode.List; button_viewAs.Label = translation[0]; break; }
}
isInFolder = true;
//Fills the list with files from the directory
@@ -340,7 +361,7 @@
{
case (GUIFacadeControl.ViewMode.LargeIcons):
{
- button_viewAs.Label = "View: Icons";
+ button_viewAs.Label = translation[2];
lstEmulators.View = GUIFacadeControl.ViewMode.SmallIcons;
if (!isInFolder)
{
@@ -357,7 +378,7 @@
}
case (GUIFacadeControl.ViewMode.SmallIcons):
{
- button_viewAs.Label = "View: List";
+ button_viewAs.Label = translation[0];
lstEmulators.View = GUIFacadeControl.ViewMode.List;
if (!isInFolder)
{
@@ -374,7 +395,7 @@
}
case (GUIFacadeControl.ViewMode.List):
{
- button_viewAs.Label = "View: Large Icons";
+ button_viewAs.Label = translation[1];
lstEmulators.View = GUIFacadeControl.ViewMode.LargeIcons;
if (!isInFolder)
{
@@ -421,7 +442,7 @@
emulators[i].readROMs();
}
}
- button_viewAs.Label = "View: List";
+ button_viewAs.Label = translation[0];
lstEmulators.View = GUIFacadeControl.ViewMode.List;
}
else
Modified: trunk/plugins/MyEmulators/myEmulators/DB.cs
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/DB.cs 2007-05-06 15:08:52 UTC (rev 381)
+++ trunk/plugins/MyEmulators/myEmulators/DB.cs 2007-05-06 18:24:35 UTC (rev 382)
@@ -34,7 +34,7 @@
}
//TODO: REMEMBER to put the correct version number!
- private static int current_version = 151;
+ private static int current_version = 160;
public static void launch()
{
@@ -66,6 +66,7 @@
Options.addBoolOption("setup_maximized", "False");
Options.addBoolOption("display_stars", "True");
Options.addBoolOption("display_desc", "True");
+ Options.addStringOption("language", "English");
//Updates to correct version of DB
if (Options.getIntOption("version") <= 102)
Modified: trunk/plugins/MyEmulators/myEmulators/setupForm.Designer.cs
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/setupForm.Designer.cs 2007-05-06 15:08:52 UTC (rev 381)
+++ trunk/plugins/MyEmulators/myEmulators/setupForm.Designer.cs 2007-05-06 18:24:35 UTC (rev 382)
@@ -48,13 +48,15 @@
this.Dateplayed = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ROM_DB_List_Description = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tabPage3 = new System.Windows.Forms.TabPage();
+ this.display_desc = new System.Windows.Forms.CheckBox();
+ this.display_stars = new System.Windows.Forms.CheckBox();
this.shown_name = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.shutdownonload = new System.Windows.Forms.CheckBox();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.apply = new System.Windows.Forms.Button();
- this.display_stars = new System.Windows.Forms.CheckBox();
- this.display_desc = new System.Windows.Forms.CheckBox();
+ this.label3 = new System.Windows.Forms.Label();
+ this.comboBox1 = new System.Windows.Forms.ComboBox();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage2.SuspendLayout();
@@ -242,6 +244,8 @@
//
// tabPage3
//
+ this.tabPage3.Controls.Add(this.comboBox1);
+ this.tabPage3.Controls.Add(this.label3);
this.tabPage3.Controls.Add(this.display_desc);
this.tabPage3.Controls.Add(this.display_stars);
this.tabPage3.Controls.Add(this.shown_name);
@@ -255,6 +259,26 @@
this.tabPage3.Text = "Options";
this.tabPage3.UseVisualStyleBackColor = true;
//
+ // display_desc
+ //
+ this.display_desc.AutoSize = true;
+ this.display_desc.Location = new System.Drawing.Point(8, 89);
+ this.display_desc.Name = "display_desc";
+ this.display_desc.Size = new System.Drawing.Size(212, 17);
+ this.display_desc.TabIndex = 7;
+ this.display_desc.Text = "Display ROM description in MediaPortal";
+ this.display_desc.UseVisualStyleBackColor = true;
+ //
+ // display_stars
+ //
+ this.display_stars.AutoSize = true;
+ this.display_stars.Location = new System.Drawing.Point(8, 62);
+ this.display_stars.Name = "display_stars";
+ this.display_stars.Size = new System.Drawing.Size(188, 17);
+ this.display_stars.TabIndex = 6;
+ this.display_stars.Text = "Display ROM grade in MediaPortal";
+ this.display_stars.UseVisualStyleBackColor = true;
+ //
// shown_name
//
this.shown_name.Location = new System.Drawing.Point(156, 32);
@@ -304,25 +328,24 @@
this.apply.UseVisualStyleBackColor = true;
this.apply.Click += new System.EventHandler(this.apply_Click);
//
- // display_stars
+ // label3
//
- this.display_stars.AutoSize = true;
- this.display_stars.Location = new System.Drawing.Point(8, 62);
- this.display_stars.Name = "display_stars";
- this.display_stars.Size = new System.Drawing.Size(188, 17);
- this.display_stars.TabIndex = 6;
- this.display_stars.Text = "Display ROM grade in MediaPortal";
- this.display_stars.UseVisualStyleBackColor = true;
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(8, 116);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(58, 13);
+ this.label3.TabIndex = 8;
+ this.label3.Text = "Language:";
//
- // display_desc
+ // comboBox1
//
- this.display_desc.AutoSize = true;
- this.display_desc.Location = new System.Drawing.Point(8, 89);
- this.display_desc.Name = "display_desc";
- this.display_desc.Size = new System.Drawing.Size(212, 17);
- this.display_desc.TabIndex = 7;
- this.display_desc.Text = "Display ROM description in MediaPortal";
- this.display_desc.UseVisualStyleBackColor = true;
+ this.comboBox1.FormattingEnabled = true;
+ this.comboBox1.Items.AddRange(new object[] {
+ "English (default)"});
+ this.comboBox1.Location = new System.Drawing.Point(72, 112);
+ this.comboBox1.Name = "comboBox1";
+ this.comboBox1.Size = new System.Drawing.Size(121, 21);
+ this.comboBox1.TabIndex = 9;
//
// setupForm
//
@@ -380,5 +403,7 @@
private System.Windows.Forms.CheckBox display_desc;
private System.Windows.Forms.CheckBox display_stars;
private static System.Windows.Forms.ListBox listBox1;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.ComboBox comboBox1;
}
}
\ No newline at end of file
Modified: trunk/plugins/MyEmulators/myEmulators/setupForm.cs
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/setupForm.cs 2007-05-06 15:08:52 UTC (rev 381)
+++ trunk/plugins/MyEmulators/myEmulators/setupForm.cs 2007-05-06 18:24:35 UTC (rev 382)
@@ -5,6 +5,7 @@
using System.Drawing;
using System.Text;
using System.Windows.Forms;
+using System.IO;
namespace myEmulators
{
@@ -41,6 +42,15 @@
Options.updateStringOption("shown_name", shown_name.Text);
Options.updateBoolOption("display_stars", display_stars.Checked);
Options.updateBoolOption("display_desc", display_desc.Checked);
+ //Save language
+ if (comboBox1.SelectedIndex != 0)
+ {
+ Options.updateStringOption("language", comboBox1.SelectedItem.ToString());
+ }
+ else
+ {
+ Options.updateStringOption("language", "English");
+ }
DB.saveOptions();
//Save emulators
@@ -147,6 +157,35 @@
shown_name.Text = Options.getStringOption("shown_name");
display_stars.Checked = Options.getBoolOption("display_stars");
display_desc.Checked = Options.getBoolOption("display_desc");
+ //Load language
+ try
+ {
+ String[] langDirs = Directory.GetDirectories("language");
+ for (int i = 0; i < langDirs.Length; i++)
+ {
+ String[] files = Directory.GetFiles(langDirs[i]);
+ for (int a = 0; a < files.Length; a++)
+ {
+ if (files[a].Substring(files[a].LastIndexOf("\\")+1) == "myEmulators.txt")
+ {
+ comboBox1.Items.Add(langDirs[i].Substring(langDirs[i].LastIndexOf("\\")+1));
+ }
+ }
+ }
+ }
+ catch (Exception) { }
+ comboBox1.SelectedIndex = 0; //Default-English
+ if (comboBox1.Items.Count > 1 && Options.getStringOption("language") != "English")
+ {
+ for (int i = 1; i < comboBox1.Items.Count; i++) //Skip first, since it is English
+ {
+ if (comboBox1.Items[i].ToString() == Options.getStringOption("language"))
+ {
+ comboBox1.SelectedIndex = i;
+ break;
+ }
+ }
+ }
//Load remembered window setting
if (Options.getBoolOption("setup_maximized") == true)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ze...@us...> - 2007-05-06 15:09:48
|
Revision: 381
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=381&view=rev
Author: zebons
Date: 2007-05-06 08:08:52 -0700 (Sun, 06 May 2007)
Log Message:
-----------
Possible to add a password for protecting configuration
Modified Paths:
--------------
trunk/plugins/MyFilms/CatalogConverter.cs
trunk/plugins/MyFilms/MesFilms.cs
trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs
trunk/plugins/MyFilms/MesFilmsSetup.cs
Added Paths:
-----------
trunk/plugins/MyFilms/CryptageTexte.cs
Modified: trunk/plugins/MyFilms/CatalogConverter.cs
===================================================================
--- trunk/plugins/MyFilms/CatalogConverter.cs 2007-05-06 12:25:27 UTC (rev 380)
+++ trunk/plugins/MyFilms/CatalogConverter.cs 2007-05-06 15:08:52 UTC (rev 381)
@@ -65,7 +65,14 @@
destXml.WriteStartElement("Movie");
XmlNode nodeID = nodeDVD.SelectSingleNode("ID");
XmlNode nodeMediaType = nodeDVD.SelectSingleNode("MediaTypes/DVD");
- XmlNode nodeNumber = nodeDVD.SelectSingleNode("CollectionNumber");
+ XmlNode nodeNumber = null;
+ try
+ {
+ nodeNumber = nodeDVD.SelectSingleNode("CollectionNumber");
+ }
+ catch
+ {
+ }
XmlNode nodeTitle = nodeDVD.SelectSingleNode("Title");
XmlNode nodeOTitle = nodeDVD.SelectSingleNode("OriginalTitle");
XmlNode nodeNotes = nodeDVD.SelectSingleNode("Notes");
@@ -184,10 +191,10 @@
else
Rating = "0.0";
}
- if (nodeNumber != null && nodeNumber.InnerText != null)
+ if (nodeNumber != null && nodeNumber.InnerText != null && nodeNumber.InnerText.Length > 1)
WriteAntAtribute(destXml,"CollectionNumber",nodeNumber.InnerText);
else
- WriteAntAtribute(destXml, "CollectionNumber", nodeNumber.InnerText);
+ WriteAntAtribute(destXml, "CollectionNumber", "9999");
if (nodeOTitle != null && nodeOTitle.InnerText.Length > 0)
WriteAntAtribute(destXml, "Title", nodeOTitle.InnerText);
else
Added: trunk/plugins/MyFilms/CryptageTexte.cs
===================================================================
--- trunk/plugins/MyFilms/CryptageTexte.cs (rev 0)
+++ trunk/plugins/MyFilms/CryptageTexte.cs 2007-05-06 15:08:52 UTC (rev 381)
@@ -0,0 +1,99 @@
+using System;
+using System.Data;
+using System.IO;
+using System.Text;
+using System.Security.Cryptography;
+
+
+namespace MesFilms
+{
+ public class Crypto
+ {
+ byte[] Clef = {0xAD, 0x24, 0xFE, 0x58, 0xC5, 0x81, 0x37, 0xB4, 0xF9, 0x97, 0x23, 0xD2, 0x13, 0x86, 0xBB, 0xA7};
+ byte[] Vect = {0x81, 0xFD, 0xC3, 0xBB, 0x0A, 0xE6, 0xFE, 0xB8, 0xD9, 0xC0, 0x0C, 0x92, 0x73, 0xD4, 0x1A, 0xF2};
+
+ RijndaelManaged rj = new RijndaelManaged();
+
+ public Crypto()
+ {
+ // Constructeur : Code ex\xE9cut\xE9 \xE0 chaque cr\xE9ation d'un objet CryptageTexte.Crypto() : aucun !
+ // Ce constructeur est n\xE9cessaire, m\xEAme "vide".
+ }
+
+
+ // ************************ CRYPTER(Textebrut)*******************************
+ /// <summary>
+ /// Fonction de cryptage : elle necessite en argument une cha\xEEne de caract\xE8res,
+ /// et renvoie une cha\xEEne de caract\xE8res crypt\xE9e (cipher-text).
+ /// </summary>
+ /// <param name="string TexteBrut"></param>
+ /// <returns name="string CypherTexte"></returns>
+ // ***************************************************************************
+
+ public string Crypter(string TexteBrut)
+ {
+ if (TexteBrut.Length == 0)
+ return "";
+ MemoryStream CypherTexteMem = new MemoryStream();
+
+ CryptoStream CStream = new CryptoStream(CypherTexteMem,
+ rj.CreateEncryptor(Clef, Vect), CryptoStreamMode.Write);
+
+ byte[] TextebrutByte = new UnicodeEncoding().GetBytes(TexteBrut);
+
+ CStream.Write(TextebrutByte, 0, TextebrutByte.Length);
+ CStream.Close();
+
+ byte[] CypherTexteByte = CypherTexteMem.ToArray();
+
+ CypherTexteMem.Close();
+ string CypherTexte = new UnicodeEncoding().GetString(CypherTexteByte);
+
+ return CypherTexte;
+ }
+
+
+ // ************************ DECRYPTER(Textebrut)*****************************
+ /// <summary>
+ /// Fonction de d\xE9cryptage : elle necessite en argument une cha\xEEne de
+ /// caract\xE8res crypt\xE9s (cipher-text) et renvoie une cha\xEEne de caract\xE8res.
+ /// </summary>
+ /// <param name="string CypherTexte"></param>
+ /// <returns name="string Textebrut"></returns>
+ // ***************************************************************************
+
+ public string Decrypter(string CypherTexte)
+ {
+ if (CypherTexte.Length == 0)
+ return "";
+ MemoryStream CypherTexteMem = new MemoryStream(new UnicodeEncoding().GetBytes(CypherTexte));
+
+ CryptoStream CStream = new CryptoStream(CypherTexteMem, rj.CreateDecryptor(Clef, Vect),CryptoStreamMode.Read);
+
+ MemoryStream TextebrutMem = new MemoryStream();
+
+ do
+ {
+ byte[] buf = new byte[100];
+
+ int BytesLus = CStream.Read(buf,0,100);
+
+ if (0 == BytesLus)
+ break;
+
+ TextebrutMem.Write(buf,0,BytesLus);
+
+ }while(true);
+
+ CStream.Close();
+ CypherTexteMem.Close();
+
+ byte[] TextebrutByte = TextebrutMem.ToArray();
+
+ TextebrutMem.Close();
+
+ string Textebrut = new UnicodeEncoding().GetString(TextebrutByte);
+ return Textebrut;
+ }
+ }
+}
Modified: trunk/plugins/MyFilms/MesFilms.cs
===================================================================
--- trunk/plugins/MyFilms/MesFilms.cs 2007-05-06 12:25:27 UTC (rev 380)
+++ trunk/plugins/MyFilms/MesFilms.cs 2007-05-06 15:08:52 UTC (rev 381)
@@ -279,7 +279,6 @@
{
int dControl = messageType.TargetControlId;
int iControl = messageType.SenderControlId;
-
switch (messageType.Message)
{
case GUIMessage.MessageType.GUI_MSG_WINDOW_INIT:
@@ -304,32 +303,37 @@
}
else
{
- CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Default_Config", "");
NbConfig = xmlreader.GetValueAsInt("MyFilms", "NbConfig", 0);
- if ((CurrentConfig == "") && (NbConfig == 0))
+ if (NbConfig == 0)
{
- StrFileXml = "";
- Fin_Charge_Init(false);
+ GUIDialogOK dlgOk = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK);
+ dlgOk.SetHeading(3);//my videos
+ dlgOk.SetLine(1, "No Configuration defined");
+ dlgOk.SetLine(2, "Please enter setup first");
+ dlgOk.DoModal(GetID);
+ GUIWindowManager.ShowPreviousWindow();
}
+ bool boolchoice = true;
+ CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Default_Config", "");
+ if (CurrentConfig == "")
+ CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Current_Config", "");
+ if (CurrentConfig == "")
+ {
+ boolchoice = false;
+ CurrentConfig = Choice_Config(); // "" => user esc's dialog on plugin startup so exit plugin unchanged
+ }
+ CurrentConfig = Control_Access_Config(CurrentConfig);
+ if ((CurrentConfig == "") && (NbConfig > 1) && (boolchoice)) //error password ? so if many config => choice config menu
+ CurrentConfig = Choice_Config();
+ if (CurrentConfig == "") //continuing here with CurrentConfig = "" will cause exception in GuiWindowManager.cs so exit plugin
+ GUIWindowManager.ShowPreviousWindow();
else
{
- if (CurrentConfig == "")
- CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Current_Config", "");
- if (CurrentConfig == "")
- {
- CurrentConfig = Choice_Config(); // "" => user esc's dialog on plugin startup so exit plugin unchanged
- }
-
- if (CurrentConfig == "") //continuing here with CurrentConfig = "" will cause exception in GuiWindowManager.cs so exit plugin
- {
+ if (CurrentConfig.Length == 0)
GUIWindowManager.ShowPreviousWindow();
- }
- else
- {
- Load_Config(CurrentConfig, true);
- Fin_Charge_Init(false);
- }
- }
+ Load_Config(CurrentConfig, true);
+ Fin_Charge_Init(false);
+ }
}
}
return true;
@@ -338,6 +342,8 @@
if (CurrentConfig != "") save_config_values();
mydivx.Clear();
mydivx.Dispose();
+ facadeView.Clear();
+ facadeView.FreeResources();
return true; // fall through to call base class?
case GUIMessage.MessageType.GUI_MSG_ITEM_FOCUS_CHANGED:
@@ -983,53 +989,54 @@
//--------------------------------------------------------------------------------------------
private void Selection_type_Video()
{
+
ArrayList choice_view = new ArrayList();
- GUIDialogMenu dlg = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU);
- if (dlg == null) return;
- dlg.Reset();
- dlg.SetHeading(924); // menu
- dlg.Add(GUILocalizeStrings.Get(342));//videos
- dlg.Add(GUILocalizeStrings.Get(345));//year
- dlg.Add(GUILocalizeStrings.Get(135));//genre
- dlg.Add(GUILocalizeStrings.Get(200026));//pays
+ GUIDialogMenu dlg1 = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU);
+ if (dlg1 == null) return;
+ dlg1.Reset();
+ dlg1.SetHeading(924); // menu
+ dlg1.Add(GUILocalizeStrings.Get(342));//videos
+ dlg1.Add(GUILocalizeStrings.Get(345));//year
+ dlg1.Add(GUILocalizeStrings.Get(135));//genre
+ dlg1.Add(GUILocalizeStrings.Get(200026));//pays
choice_view.Add("All");
choice_view.Add("Year");
choice_view.Add("Category");
choice_view.Add("Country");
if (!(StrStorage.Length == 0) && !(StrStorage == "(none)"))
{
- dlg.Add(GUILocalizeStrings.Get(154) + " " + GUILocalizeStrings.Get(1951));//storage
+ dlg1.Add(GUILocalizeStrings.Get(154) + " " + GUILocalizeStrings.Get(1951));//storage
choice_view.Add("Storage");
}
if (!(StrViewItem1 == null) && !(StrViewItem1 == "(none)"))
{
choice_view.Add("View1");
if ((StrViewText1 == null) || (StrViewText1.Length == 0))
- dlg.Add(StrViewItem1); // specific user View1
+ dlg1.Add(StrViewItem1); // specific user View1
else
- dlg.Add(StrViewText1); // specific Text for View1
+ dlg1.Add(StrViewText1); // specific Text for View1
}
if (!(StrViewItem2 == null) && !(StrViewItem2 == "(none)"))
{
choice_view.Add("View2");
if ((StrViewText2 == null) || (StrViewText2.Length == 0))
- dlg.Add(StrViewItem2); // specific user View2
+ dlg1.Add(StrViewItem2); // specific user View2
else
- dlg.Add(StrViewText2); // specific Text for View2
+ dlg1.Add(StrViewText2); // specific Text for View2
}
if (NbConfig > 1)
{
- dlg.Add(GUILocalizeStrings.Get(6029) + " " + GUILocalizeStrings.Get(6022)); // Change Config
+ dlg1.Add(GUILocalizeStrings.Get(6029) + " " + GUILocalizeStrings.Get(6022)); // Change Config
choice_view.Add("Config");
}
+ dlg1.DoModal(GetID);
- dlg.DoModal(GetID);
- if (dlg.SelectedLabel == -1)
+ if (dlg1.SelectedLabel == -1)
{
return;
}
- Change_view(choice_view[dlg.SelectedLabel].ToString());
+ Change_view(choice_view[dlg1.SelectedLabel].ToString());
return;
}
@@ -1239,8 +1246,6 @@
//--------------------------------------------------------------------------------------------
private string Choice_Config()
{
- string newConfig = "";
-
GUIDialogMenu dlg = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU);
if (dlg == null)
{
@@ -1263,11 +1268,38 @@
StrFileXml = "";
return "";
}
+ if (dlg.SelectedLabelText.Length > 0)
+ return dlg.SelectedLabelText;
+ return "";
+ }
+ //--------------------------------------------------------------------------------------------
+ // Control Acces to asked configuration
+ //--------------------------------------------------------------------------------------------
+ private string Control_Access_Config(string configname)
+ {
+ if (configname.Length == 0)
+ return "";
+ string Dwp;
using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyFilms.xml"))
{
- newConfig = xmlreader.GetValueAsString("MyFilms", "ConfigName" + dlg.SelectedLabel, "");
+ Dwp = xmlreader.GetValueAsString(configname, "Dwp", "");
}
- return newConfig;
+
+ if (Dwp.Length == 0)
+ return configname;
+ VirtualKeyboard keyboard = (VirtualKeyboard)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_VIRTUAL_KEYBOARD);
+ if (null == keyboard) return "";
+ keyboard.Reset();
+ keyboard.Text = "";
+ keyboard.Password = true;
+ keyboard.DoModal(GetID);
+ if ((keyboard.IsConfirmed) && (keyboard.Text.Length > 0))
+ {
+ Crypto crypto = new Crypto();
+ if (crypto.Decrypter(Dwp) == keyboard.Text)
+ return configname;
+ }
+ return "";
}
//--------------------------------------------------------------------------------------------
// Initial Windows load. If LoadDfltSlct = true => load default select if any
@@ -1279,6 +1311,16 @@
boolselect = false;
if (!ControlFichierDonn\xE9es())
{
+ using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyFilms.xml"))
+ {
+ if (CurrentConfig == xmlreader.GetValueAsString("MyFilms", "Current_Config", ""))
+ {
+ using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MyFilms.xml"))
+ {
+ xmlwriter.SetValue("MyFilms", "Current_Config", "");
+ }
+ }
+ }
base.OnPreviousWindow();
return; // need to return here as xml file doesn't exist so no point trying to load it
}
@@ -1335,7 +1377,6 @@
}
else
{
- MessageBox.Show(StrViewDfltItem);
if (StrViewDfltText.Length == 0)
{
if (StrViewDfltItem == StrViewItem1)
@@ -1489,6 +1530,8 @@
if (choice_view == "Config")
{
string newConfig = Choice_Config();
+ newConfig = Control_Access_Config(newConfig);
+
if (newConfig != "" && newConfig != CurrentConfig) // if user escapes dialog or bad value leave system unchanged
{
//Change "Config":
Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs
===================================================================
--- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-05-06 12:25:27 UTC (rev 380)
+++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-05-06 15:08:52 UTC (rev 381)
@@ -165,6 +165,10 @@
this.View_Dflt_Text = new System.Windows.Forms.TextBox();
this.ButDelet = new System.Windows.Forms.Button();
this.Config_Dflt = new System.Windows.Forms.CheckBox();
+ this.Dwp = new System.Windows.Forms.TextBox();
+ this.Rpt_Dwp = new System.Windows.Forms.TextBox();
+ this.label15 = new System.Windows.Forms.Label();
+ this.label16 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
@@ -705,19 +709,19 @@
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(69, 13);
this.label10.TabIndex = 34;
- this.label10.Text = "Version 4.2.0";
+ this.label10.Text = "Version 4.2.2";
//
// textBox1
//
- this.textBox1.Location = new System.Drawing.Point(707, 12);
+ this.textBox1.Location = new System.Drawing.Point(715, 12);
this.textBox1.Name = "textBox1";
- this.textBox1.Size = new System.Drawing.Size(108, 20);
- this.textBox1.TabIndex = 3;
+ this.textBox1.Size = new System.Drawing.Size(98, 20);
+ this.textBox1.TabIndex = 5;
//
// label11
//
this.label11.AutoSize = true;
- this.label11.Location = new System.Drawing.Point(578, 15);
+ this.label11.Location = new System.Drawing.Point(586, 15);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(123, 13);
this.label11.TabIndex = 36;
@@ -726,9 +730,9 @@
// Config_Name
//
this.Config_Name.FormattingEnabled = true;
- this.Config_Name.Location = new System.Drawing.Point(138, 15);
+ this.Config_Name.Location = new System.Drawing.Point(126, 15);
this.Config_Name.Name = "Config_Name";
- this.Config_Name.Size = new System.Drawing.Size(180, 21);
+ this.Config_Name.Size = new System.Drawing.Size(163, 21);
this.Config_Name.Sorted = true;
this.Config_Name.TabIndex = 1;
this.Config_Name.Leave += new System.EventHandler(this.Config_Name_SelectedIndexChanged);
@@ -737,7 +741,7 @@
// label12
//
this.label12.AutoSize = true;
- this.label12.Location = new System.Drawing.Point(32, 19);
+ this.label12.Location = new System.Drawing.Point(20, 19);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(100, 13);
this.label12.TabIndex = 38;
@@ -875,7 +879,7 @@
// Config_Dflt
//
this.Config_Dflt.AutoSize = true;
- this.Config_Dflt.Location = new System.Drawing.Point(333, 18);
+ this.Config_Dflt.Location = new System.Drawing.Point(126, 39);
this.Config_Dflt.Name = "Config_Dflt";
this.Config_Dflt.Size = new System.Drawing.Size(125, 17);
this.Config_Dflt.TabIndex = 2;
@@ -883,11 +887,50 @@
this.Config_Dflt.UseVisualStyleBackColor = true;
this.Config_Dflt.Enter += new System.EventHandler(this.Config_Name_Control);
//
+ // Dwp
+ //
+ this.Dwp.Location = new System.Drawing.Point(372, 15);
+ this.Dwp.Name = "Dwp";
+ this.Dwp.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
+ this.Dwp.Size = new System.Drawing.Size(107, 20);
+ this.Dwp.TabIndex = 3;
+ this.Dwp.UseSystemPasswordChar = true;
+ //
+ // Rpt_Dwp
+ //
+ this.Rpt_Dwp.Location = new System.Drawing.Point(372, 37);
+ this.Rpt_Dwp.Name = "Rpt_Dwp";
+ this.Rpt_Dwp.Size = new System.Drawing.Size(107, 20);
+ this.Rpt_Dwp.TabIndex = 4;
+ this.Rpt_Dwp.UseSystemPasswordChar = true;
+ //
+ // label15
+ //
+ this.label15.AutoSize = true;
+ this.label15.Location = new System.Drawing.Point(313, 19);
+ this.label15.Name = "label15";
+ this.label15.Size = new System.Drawing.Size(53, 13);
+ this.label15.TabIndex = 44;
+ this.label15.Text = "Password";
+ //
+ // label16
+ //
+ this.label16.AutoSize = true;
+ this.label16.Location = new System.Drawing.Point(275, 40);
+ this.label16.Name = "label16";
+ this.label16.Size = new System.Drawing.Size(91, 13);
+ this.label16.TabIndex = 45;
+ this.label16.Text = "Repeat Password";
+ //
// MesFilmsSetup
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(839, 541);
+ this.Controls.Add(this.label16);
+ this.Controls.Add(this.label15);
+ this.Controls.Add(this.Rpt_Dwp);
+ this.Controls.Add(this.Dwp);
this.Controls.Add(this.Config_Dflt);
this.Controls.Add(this.groupBox7);
this.Controls.Add(this.label12);
@@ -990,6 +1033,10 @@
private ComboBox CatalogType;
private Label label14;
private ComboBox LayOut;
+ private TextBox Dwp;
+ private TextBox Rpt_Dwp;
+ private Label label15;
+ private Label label16;
}
}
\ No newline at end of file
Modified: trunk/plugins/MyFilms/MesFilmsSetup.cs
===================================================================
--- trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-05-06 12:25:27 UTC (rev 380)
+++ trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-05-06 15:08:52 UTC (rev 381)
@@ -9,6 +9,7 @@
using MediaPortal.GUI.Library;
+
namespace MesFilms
{
public partial class MesFilmsSetup : Form
@@ -22,6 +23,7 @@
private int MesFilms_nb_config = 0;
private string StrDfltSelect = "";
private AntMovieCatalog mydivx = new AntMovieCatalog();
+ private Crypto crypto = new Crypto();
public MesFilmsSetup()
{
@@ -240,6 +242,15 @@
AntUpdText2.Focus();
return;
}
+ if (Dwp.Text.Length > 0)
+ if (Dwp.Text != Rpt_Dwp.Text)
+ {
+ System.Windows.Forms.MessageBox.Show("The two Passwords must be identical !", "Configuration", MessageBoxButtons.OK, MessageBoxIcon.Stop);
+ Dwp.Clear();
+ Rpt_Dwp.Focus();
+ Dwp.Focus();
+ return;
+ }
StrDfltSelect = "";
string wAntFilterSign;
if (AntFilterSign1.Text == "#")
@@ -332,7 +343,7 @@
MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "TitleDelim", TitleDelim.Text);
MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "LayOut", WLayOut);
MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "StrDfltSelect", StrDfltSelect);
-
+ MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "Dwp", crypto.Crypter(Dwp.Text));
string w_Config_Name = Config_Name.Text;
Config_Name.Items.Remove(Config_Name.Text);
Config_Name.Items.Add(w_Config_Name);
@@ -404,6 +415,8 @@
AntItem2.Text = MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "AntItem2", "");
AntItem3.Text = MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "AntItem3", "");
TitleDelim.Text = MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "TitleDelim", "\\");
+ Dwp.Text = crypto.Decrypter(MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "Dwp", ""));
+ Rpt_Dwp.Text = Dwp.Text;
View_Dflt_Item.Items.Remove(View_Dflt_Item.Text);
View_Dflt_Item.Items.Add(View_Dflt_Item.Text);
View_Dflt_Item.Text = MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "ViewDfltItem", "");
@@ -474,6 +487,8 @@
LayOut.ResetText();
View_Dflt_Item.ResetText();
View_Dflt_Text.ResetText();
+ Dwp.ResetText();
+ Rpt_Dwp.ResetText();
}
private void AntViewItem1_SelectedIndexChanged(object sender, EventArgs e)
@@ -540,8 +555,11 @@
MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "IndexItem");
MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "TitleDelim");
MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "LayOut");
+ MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "Dwp");
if ((Config_Name.Text) == MyFilms_xmlreader.GetValueAsString("MyFilms", "Default_Config", ""))
MyFilms_xmlwriter.RemoveEntry("MyFilms", "Default_Config");
+ if ((Config_Name.Text) == MyFilms_xmlreader.GetValueAsString("MyFilms", "Current_Config", ""))
+ MyFilms_xmlwriter.RemoveEntry("MyFilms", "Current_Config");
Config_Name.Items.Remove(Config_Name.Text);
Refresh_Items(true);
Config_Name.ResetText();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <sa...@us...> - 2007-05-06 12:25:29
|
Revision: 380
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=380&view=rev
Author: saamand
Date: 2007-05-06 05:25:27 -0700 (Sun, 06 May 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/MyLyrics/My Lyrics/MyLyrics.cs
trunk/plugins/MyLyrics/MyLyrics.suo
Modified: trunk/plugins/MyLyrics/My Lyrics/MyLyrics.cs
===================================================================
--- trunk/plugins/MyLyrics/My Lyrics/MyLyrics.cs 2007-05-06 11:37:38 UTC (rev 379)
+++ trunk/plugins/MyLyrics/My Lyrics/MyLyrics.cs 2007-05-06 12:25:27 UTC (rev 380)
@@ -41,6 +41,8 @@
private Nullable<bool> basicScreenSelected = null;
string lyricsScreenXML = "MyLyrics.xml";
+ string skin = "";
+
bool exitingMyLyrics = false;
bool newTrack = false;
bool alreadyValidLRC = false;
@@ -90,7 +92,15 @@
{
CONTROL_BACKGROUND = 1,
CONTROL_TITLE = 2,
- CONTROL_LBStatus = 11
+ CONTROL_LBStatus = 11,
+ CONTROL_UPNEXT = 22,
+ CONTROL_ALBUM = 26,
+ CONTROL_YEAR = 27,
+ CONTROL_TRACKTITLE = 30,
+ CONTROL_TRACKARTIST = 32,
+ CONTROL_NUMBERDURATION = 33,
+ CONTROL_NEXTTRACK = 121,
+ CONTROL_NEXTARTIST = 123,
}
enum GUI_Lyrics_Controls
@@ -309,6 +319,8 @@
useLyricsOnDemand = ((string)xmlreader.GetValueAsString("myLyrics", "useLyricsOnDemand", "True")).ToString().Equals("True") ? true : false;
useSeekLyrics = ((string)xmlreader.GetValueAsString("myLyrics", "useSeekLyrics", "True")).ToString().Equals("True") ? true : false;
useHotLyrics = ((string)xmlreader.GetValueAsString("myLyrics", "useHotLyrics", "True")).ToString().Equals("True") ? true : false;
+
+ skin = ((string)xmlreader.GetValueAsString("skin", "name", "BlueTwo"));
}
ArrayList sitesToSearch = new ArrayList();
@@ -931,6 +943,29 @@
private void resetGUI(int screenID)
{
+ if (skin.Equals("ReVision") && (screenID == (int)MyLyricsSettings.Screen.LYRICS_WIDE || screenID == (int)MyLyricsSettings.Screen.LRC_WIDE || screenID == (int)MyLyricsSettings.Screen.LRC_EDITOR))
+ {
+ GUIControl.HideControl(GetID, (int)GUI_General_Controls.CONTROL_UPNEXT);
+ GUIControl.HideControl(GetID, (int)GUI_General_Controls.CONTROL_ALBUM);
+ GUIControl.HideControl(GetID, (int)GUI_General_Controls.CONTROL_YEAR);
+ GUIControl.HideControl(GetID, (int)GUI_General_Controls.CONTROL_TRACKTITLE);
+ GUIControl.HideControl(GetID, (int)GUI_General_Controls.CONTROL_TRACKARTIST);
+ GUIControl.HideControl(GetID, (int)GUI_General_Controls.CONTROL_NUMBERDURATION);
+ GUIControl.HideControl(GetID, (int)GUI_General_Controls.CONTROL_NEXTTRACK);
+ GUIControl.HideControl(GetID, (int)GUI_General_Controls.CONTROL_NEXTARTIST);
+ }
+ else
+ {
+ GUIControl.ShowControl(GetID, (int)GUI_General_Controls.CONTROL_UPNEXT);
+ GUIControl.ShowControl(GetID, (int)GUI_General_Controls.CONTROL_ALBUM);
+ GUIControl.ShowControl(GetID, (int)GUI_General_Controls.CONTROL_YEAR);
+ GUIControl.ShowControl(GetID, (int)GUI_General_Controls.CONTROL_TRACKTITLE);
+ GUIControl.ShowControl(GetID, (int)GUI_General_Controls.CONTROL_TRACKARTIST);
+ GUIControl.ShowControl(GetID, (int)GUI_General_Controls.CONTROL_NUMBERDURATION);
+ GUIControl.ShowControl(GetID, (int)GUI_General_Controls.CONTROL_NEXTTRACK);
+ GUIControl.ShowControl(GetID, (int)GUI_General_Controls.CONTROL_NEXTARTIST);
+ }
+
int prevSelectedScreen = selectedScreen;
selectedScreen = screenID;
Modified: trunk/plugins/MyLyrics/MyLyrics.suo
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kro...@us...> - 2007-05-06 11:37:43
|
Revision: 379
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=379&view=rev
Author: kroko_koenig
Date: 2007-05-06 04:37:38 -0700 (Sun, 06 May 2007)
Log Message:
-----------
Update "Connect 4" to Version 0.2
Modified Paths:
--------------
trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs
trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.csproj
trunk/plugins/My Connect4/readme.txt
Added Paths:
-----------
trunk/plugins/My Connect4/Skin/Skin Blue Two/
trunk/plugins/My Connect4/Skin/Skin Blue Two/MyConnect4.xml
trunk/plugins/My Connect4/Skin/Skin SimpleMP/
trunk/plugins/My Connect4/Skin/Skin SimpleMP/MyConnect4.xml
trunk/plugins/My Connect4/Skin/Skin default/
trunk/plugins/My Connect4/Skin/Skin default/Media/
trunk/plugins/My Connect4/Skin/Skin default/Media/MyConn4Cur.png
trunk/plugins/My Connect4/Skin/Skin default/Media/MyConn4Gr.png
trunk/plugins/My Connect4/Skin/Skin default/Media/MyConn4Rd.png
trunk/plugins/My Connect4/Skin/Skin default/Media/MyConn4Wh.png
trunk/plugins/My Connect4/Skin/Skin default/Media/MyConn4Ye.png
trunk/plugins/My Connect4/Skin/Skin default/Media/MyConnBack.png
trunk/plugins/My Connect4/Skin/Skin default/Media/hover_my connect4.png
trunk/plugins/My Connect4/Skin/Skin default/Sounds/
trunk/plugins/My Connect4/Skin/Skin default/Sounds/MyConnect4_klick.wav
trunk/plugins/My Connect4/Source/MyConnect4/connect4.png
trunk/plugins/My Connect4/Source/MyConnect4/connect4Disabled.png
Removed Paths:
-------------
trunk/plugins/My Connect4/Skin/Media/
trunk/plugins/My Connect4/Skin/MyConnect4.xml
trunk/plugins/My Connect4/Skin/Sounds/
Deleted: trunk/plugins/My Connect4/Skin/MyConnect4.xml
===================================================================
--- trunk/plugins/My Connect4/Skin/MyConnect4.xml 2007-05-05 16:20:35 UTC (rev 378)
+++ trunk/plugins/My Connect4/Skin/MyConnect4.xml 2007-05-06 11:37:38 UTC (rev 379)
@@ -1,604 +0,0 @@
-<window>
- <id>22031969</id>
- <defaultcontrol>2</defaultcontrol>
- <allowoverlay>yes</allowoverlay>
- <autohidetopbar>yes</autohidetopbar>
- <controls>
- <import>common.time.xml</import>
- <control>
- <description>BackGround</description>
- <type>image</type>
- <id>10</id>
- <posX>0</posX>
- <posY>0</posY>
- <width>720</width>
- <height>576</height>
- <texture>background.png</texture>
- </control>
- <control>
- <description>text label</description>
- <type>label</type>
- <id>11</id>
- <posX>60</posX>
- <posY>70</posY>
- <label>Connect 4</label>
- <font>font16</font>
- <align>Left</align>
- <textcolor>ffffffff</textcolor>
- <animation effect="fade" time="150">WindowOpen</animation>
- <animation effect="fade" time="150">WindowClose</animation>
- </control>
- <control>
- <type>group</type>
- <description>group element</description>
- <animation effect="fade" time="150">WindowOpen</animation>
- <animation effect="fade" time="150">WindowClose</animation>
- <control>
- <description>Start</description>
- <type>button</type>
- <id>2</id>
- <posX>60</posX>
- <posY>97</posY>
- <label>Start</label>
- <onleft>2</onleft>
- <onright>301</onright>
- <onup>7</onup>
- <ondown>3</ondown>
- </control>
- <control>
- <description>Mode</description>
- <type>button</type>
- <id>3</id>
- <posX>60</posX>
- <posY>131</posY>
- <label>Mode: Play vs Player</label>
- <onleft>3</onleft>
- <onright>3</onright>
- <onup>2</onup>
- <ondown>4</ondown>
- </control>
- <control>
- <description>Level</description>
- <type>button</type>
- <id>4</id>
- <posX>60</posX>
- <posY>165</posY>
- <label>Level: Amateur</label>
- <onleft>4</onleft>
- <onright>4</onright>
- <onup>3</onup>
- <ondown>7</ondown>
- </control>
- <control>
- <description>text label</description>
- <type>label</type>
- <id>5</id>
- <posX>70</posX>
- <posY>205</posY>
- <label>#Round</label>
- <font>font12</font>
- <align>Left</align>
- <textcolor>ffffffff</textcolor>
- </control>
- <control>
- <description>text label</description>
- <type>label</type>
- <id>6</id>
- <posX>70</posX>
- <posY>240</posY>
- <label>#Player</label>
- <font>font12</font>
- <align>Left</align>
- <textcolor>ffffffff</textcolor>
- </control>
- <control>
- <description>Whatsthis</description>
- <type>button</type>
- <id>7</id>
- <posX>60</posX>
- <posY>270</posY>
- <label>What's this?</label>
- <onleft>7</onleft>
- <onright>301</onright>
- <onup>4</onup>
- <ondown>2</ondown>
- </control>
- </control>
- <control>
- <description>BackGround Game</description>
- <type>image</type>
- <id>15</id>
- <posX>260</posX>
- <posY>120</posY>
- <width>440</width>
- <height>380</height>
- <texture>MyConnBack.png</texture>
- <animation effect="fade" time="150">WindowOpen</animation>
- <animation effect="fade" time="150">WindowClose</animation>
- </control>
- <control>
- <type>group</type>
- <description>group element</description>
- <animation effect="fade" time="150">WindowOpen</animation>
- <animation effect="fade" time="150">WindowClose</animation>
- <control>
- <type>image</type>
- <id>101</id>
- <posX>280</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>102</id>
- <posX>340</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>103</id>
- <posX>400</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>104</id>
- <posX>460</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>105</id>
- <posX>520</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>106</id>
- <posX>580</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>107</id>
- <posX>640</posX>
- <posY>140</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_1_7</texture>
- </control>
-
- <control>
- <type>image</type>
- <id>111</id>
- <posX>280</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>112</id>
- <posX>340</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>113</id>
- <posX>400</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>114</id>
- <posX>460</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>115</id>
- <posX>520</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>116</id>
- <posX>580</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>117</id>
- <posX>640</posX>
- <posY>200</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_2_7</texture>
- </control>
-
- <control>
- <type>image</type>
- <id>121</id>
- <posX>280</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>122</id>
- <posX>340</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>123</id>
- <posX>400</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>124</id>
- <posX>460</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>125</id>
- <posX>520</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>126</id>
- <posX>580</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>127</id>
- <posX>640</posX>
- <posY>260</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_3_7</texture>
- </control>
-
- <control>
- <type>image</type>
- <id>131</id>
- <posX>280</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>132</id>
- <posX>340</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>133</id>
- <posX>400</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>134</id>
- <posX>460</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>135</id>
- <posX>520</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>136</id>
- <posX>580</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>137</id>
- <posX>640</posX>
- <posY>320</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_4_7</texture>
- </control>
-
- <control>
- <type>image</type>
- <id>141</id>
- <posX>280</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>142</id>
- <posX>340</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>143</id>
- <posX>400</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>144</id>
- <posX>460</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>145</id>
- <posX>520</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>146</id>
- <posX>580</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>147</id>
- <posX>640</posX>
- <posY>380</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_5_7</texture>
- </control>
-
- <control>
- <type>image</type>
- <id>151</id>
- <posX>280</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_1</texture>
- </control>
- <control>
- <type>image</type>
- <id>152</id>
- <posX>340</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_2</texture>
- </control>
- <control>
- <type>image</type>
- <id>153</id>
- <posX>400</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_3</texture>
- </control>
- <control>
- <type>image</type>
- <id>154</id>
- <posX>460</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_4</texture>
- </control>
- <control>
- <type>image</type>
- <id>155</id>
- <posX>520</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_5</texture>
- </control>
- <control>
- <type>image</type>
- <id>156</id>
- <posX>580</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_6</texture>
- </control>
- <control>
- <type>image</type>
- <id>157</id>
- <posX>640</posX>
- <posY>440</posY>
- <width>40</width>
- <height>40</height>
- <texture>#Con_6_7</texture>
- </control>
- <control>
- <description>text label</description>
- <type>label</type>
- <id>18</id>
- <posX>260</posX>
- <posY>510</posY>
- <label>#Status</label>
- <font>font16</font>
- <align>Left</align>
- <textcolor>ffffffff</textcolor>
- </control>
- <control>
- <description>Pointer 01</description>
- <type>button</type>
- <id>301</id>
- <posX>280</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>2</onleft>
- <onright>302</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 02</description>
- <type>button</type>
- <id>302</id>
- <posX>340</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>301</onleft>
- <onright>303</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 03</description>
- <type>button</type>
- <id>303</id>
- <posX>400</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>302</onleft>
- <onright>304</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 04</description>
- <type>button</type>
- <id>304</id>
- <posX>460</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>303</onleft>
- <onright>305</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 05</description>
- <type>button</type>
- <id>305</id>
- <posX>520</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>304</onleft>
- <onright>306</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 06</description>
- <type>button</type>
- <id>306</id>
- <posX>580</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>305</onleft>
- <onright>307</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- <control>
- <description>Pointer 07</description>
- <type>button</type>
- <id>307</id>
- <posX>640</posX>
- <posY>70</posY>
- <width>40</width>
- <height>40</height>
- <onleft>306</onleft>
- <onright>307</onright>
- <textureFocus>MyConn4Cur.png</textureFocus>
- </control>
- </control>
- </controls>
-</window>
Added: trunk/plugins/My Connect4/Skin/Skin Blue Two/MyConnect4.xml
===================================================================
--- trunk/plugins/My Connect4/Skin/Skin Blue Two/MyConnect4.xml (rev 0)
+++ trunk/plugins/My Connect4/Skin/Skin Blue Two/MyConnect4.xml 2007-05-06 11:37:38 UTC (rev 379)
@@ -0,0 +1,604 @@
+<window>
+ <id>22031969</id>
+ <defaultcontrol>2</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <autohidetopbar>yes</autohidetopbar>
+ <controls>
+ <import>common.time.xml</import>
+ <control>
+ <description>BackGround</description>
+ <type>image</type>
+ <id>10</id>
+ <posX>0</posX>
+ <posY>0</posY>
+ <width>720</width>
+ <height>576</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <description>text label</description>
+ <type>label</type>
+ <id>11</id>
+ <posX>60</posX>
+ <posY>70</posY>
+ <label>Connect 4</label>
+ <font>font16</font>
+ <align>Left</align>
+ <textcolor>ffffffff</textcolor>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ <control>
+ <description>Start</description>
+ <type>button</type>
+ <id>2</id>
+ <posX>60</posX>
+ <posY>97</posY>
+ <label>Start</label>
+ <onleft>2</onleft>
+ <onright>301</onright>
+ <onup>7</onup>
+ <ondown>3</ondown>
+ </control>
+ <control>
+ <description>Mode</description>
+ <type>button</type>
+ <id>3</id>
+ <posX>60</posX>
+ <posY>131</posY>
+ <label>Mode: Play vs Player</label>
+ <onleft>3</onleft>
+ <onright>3</onright>
+ <onup>2</onup>
+ <ondown>4</ondown>
+ </control>
+ <control>
+ <description>Level</description>
+ <type>button</type>
+ <id>4</id>
+ <posX>60</posX>
+ <posY>165</posY>
+ <label>Level: Amateur</label>
+ <onleft>4</onleft>
+ <onright>4</onright>
+ <onup>3</onup>
+ <ondown>7</ondown>
+ </control>
+ <control>
+ <description>text label</description>
+ <type>label</type>
+ <id>5</id>
+ <posX>70</posX>
+ <posY>205</posY>
+ <label>#Round</label>
+ <font>font12</font>
+ <align>Left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>text label</description>
+ <type>label</type>
+ <id>6</id>
+ <posX>70</posX>
+ <posY>240</posY>
+ <label>#Player</label>
+ <font>font12</font>
+ <align>Left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Whatsthis</description>
+ <type>button</type>
+ <id>7</id>
+ <posX>60</posX>
+ <posY>270</posY>
+ <label>What's this?</label>
+ <onleft>7</onleft>
+ <onright>301</onright>
+ <onup>4</onup>
+ <ondown>2</ondown>
+ </control>
+ </control>
+ <control>
+ <description>BackGround Game</description>
+ <type>image</type>
+ <id>15</id>
+ <posX>260</posX>
+ <posY>120</posY>
+ <width>440</width>
+ <height>380</height>
+ <texture>MyConnBack.png</texture>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ <control>
+ <type>image</type>
+ <id>101</id>
+ <posX>280</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>102</id>
+ <posX>340</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>103</id>
+ <posX>400</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>104</id>
+ <posX>460</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>105</id>
+ <posX>520</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>106</id>
+ <posX>580</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>107</id>
+ <posX>640</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_7</texture>
+ </control>
+
+ <control>
+ <type>image</type>
+ <id>111</id>
+ <posX>280</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>112</id>
+ <posX>340</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>113</id>
+ <posX>400</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>114</id>
+ <posX>460</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>115</id>
+ <posX>520</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>116</id>
+ <posX>580</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>117</id>
+ <posX>640</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_7</texture>
+ </control>
+
+ <control>
+ <type>image</type>
+ <id>121</id>
+ <posX>280</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>122</id>
+ <posX>340</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>123</id>
+ <posX>400</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>124</id>
+ <posX>460</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>125</id>
+ <posX>520</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>126</id>
+ <posX>580</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>127</id>
+ <posX>640</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_7</texture>
+ </control>
+
+ <control>
+ <type>image</type>
+ <id>131</id>
+ <posX>280</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>132</id>
+ <posX>340</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>133</id>
+ <posX>400</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>134</id>
+ <posX>460</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>135</id>
+ <posX>520</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>136</id>
+ <posX>580</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>137</id>
+ <posX>640</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_7</texture>
+ </control>
+
+ <control>
+ <type>image</type>
+ <id>141</id>
+ <posX>280</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>142</id>
+ <posX>340</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>143</id>
+ <posX>400</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>144</id>
+ <posX>460</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>145</id>
+ <posX>520</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>146</id>
+ <posX>580</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>147</id>
+ <posX>640</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_7</texture>
+ </control>
+
+ <control>
+ <type>image</type>
+ <id>151</id>
+ <posX>280</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>152</id>
+ <posX>340</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>153</id>
+ <posX>400</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>154</id>
+ <posX>460</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>155</id>
+ <posX>520</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>156</id>
+ <posX>580</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>157</id>
+ <posX>640</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_7</texture>
+ </control>
+ <control>
+ <description>text label</description>
+ <type>label</type>
+ <id>18</id>
+ <posX>260</posX>
+ <posY>510</posY>
+ <label>#Status</label>
+ <font>font16</font>
+ <align>Left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Pointer 01</description>
+ <type>button</type>
+ <id>301</id>
+ <posX>280</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>2</onleft>
+ <onright>302</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 02</description>
+ <type>button</type>
+ <id>302</id>
+ <posX>340</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>301</onleft>
+ <onright>303</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 03</description>
+ <type>button</type>
+ <id>303</id>
+ <posX>400</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>302</onleft>
+ <onright>304</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 04</description>
+ <type>button</type>
+ <id>304</id>
+ <posX>460</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>303</onleft>
+ <onright>305</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 05</description>
+ <type>button</type>
+ <id>305</id>
+ <posX>520</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>304</onleft>
+ <onright>306</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 06</description>
+ <type>button</type>
+ <id>306</id>
+ <posX>580</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>305</onleft>
+ <onright>307</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 07</description>
+ <type>button</type>
+ <id>307</id>
+ <posX>640</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>306</onleft>
+ <onright>307</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ </control>
+ </controls>
+</window>
Added: trunk/plugins/My Connect4/Skin/Skin SimpleMP/MyConnect4.xml
===================================================================
--- trunk/plugins/My Connect4/Skin/Skin SimpleMP/MyConnect4.xml (rev 0)
+++ trunk/plugins/My Connect4/Skin/Skin SimpleMP/MyConnect4.xml 2007-05-06 11:37:38 UTC (rev 379)
@@ -0,0 +1,618 @@
+<window>
+ <id>22031969</id>
+ <defaultcontrol>2</defaultcontrol>
+ <allowoverlay>yes</allowoverlay>
+ <autohidetopbar>yes</autohidetopbar>
+ <controls>
+ <import>common.time.xml</import>
+ <control>
+ <description>Connect4 label</description>
+ <type>label</type>
+ <posX>55</posX>
+ <posY>20</posY>
+ <align>left</align>
+ <font>font48</font>
+ <label>Connect 4</label>
+ <textcolor>20ffffff</textcolor>
+ <id>1</id>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ </control>
+
+ <control>
+ <description>BackGround</description>
+ <type>image</type>
+ <id>10</id>
+ <posX>0</posX>
+ <posY>0</posY>
+ <width>720</width>
+ <height>576</height>
+ <texture>background.png</texture>
+ </control>
+ <control>
+ <description>text label</description>
+ <type>label</type>
+ <id>11</id>
+ <posX>60</posX>
+ <posY>70</posY>
+ <label>Connect 4</label>
+ <font>font16</font>
+ <align>Left</align>
+ <textcolor>ffffffff</textcolor>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ <control>
+ <description>Start</description>
+ <type>button</type>
+ <id>2</id>
+ <posX>60</posX>
+ <posY>97</posY>
+ <label>Start</label>
+ <onleft>2</onleft>
+ <onright>301</onright>
+ <onup>7</onup>
+ <ondown>3</ondown>
+ </control>
+ <control>
+ <description>Mode</description>
+ <type>button</type>
+ <id>3</id>
+ <posX>60</posX>
+ <posY>131</posY>
+ <label>Mode: Play vs Player</label>
+ <onleft>3</onleft>
+ <onright>3</onright>
+ <onup>2</onup>
+ <ondown>4</ondown>
+ </control>
+ <control>
+ <description>Level</description>
+ <type>button</type>
+ <id>4</id>
+ <posX>60</posX>
+ <posY>165</posY>
+ <label>Level: Amateur</label>
+ <onleft>4</onleft>
+ <onright>4</onright>
+ <onup>3</onup>
+ <ondown>7</ondown>
+ </control>
+ <control>
+ <description>text label</description>
+ <type>label</type>
+ <id>5</id>
+ <posX>70</posX>
+ <posY>205</posY>
+ <label>#Round</label>
+ <font>font12</font>
+ <align>Left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>text label</description>
+ <type>label</type>
+ <id>6</id>
+ <posX>70</posX>
+ <posY>240</posY>
+ <label>#Player</label>
+ <font>font12</font>
+ <align>Left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Whatsthis</description>
+ <type>button</type>
+ <id>7</id>
+ <posX>60</posX>
+ <posY>270</posY>
+ <label>What's this?</label>
+ <onleft>7</onleft>
+ <onright>301</onright>
+ <onup>4</onup>
+ <ondown>2</ondown>
+ </control>
+ </control>
+ <control>
+ <description>BackGround Game</description>
+ <type>image</type>
+ <id>15</id>
+ <posX>260</posX>
+ <posY>120</posY>
+ <width>440</width>
+ <height>380</height>
+ <texture>MyConnBack.png</texture>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ </control>
+ <control>
+ <type>group</type>
+ <description>group element</description>
+ <animation effect="fade" time="150">WindowOpen</animation>
+ <animation effect="fade" time="150">WindowClose</animation>
+ <control>
+ <type>image</type>
+ <id>101</id>
+ <posX>280</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>102</id>
+ <posX>340</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>103</id>
+ <posX>400</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>104</id>
+ <posX>460</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>105</id>
+ <posX>520</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>106</id>
+ <posX>580</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>107</id>
+ <posX>640</posX>
+ <posY>140</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_1_7</texture>
+ </control>
+
+ <control>
+ <type>image</type>
+ <id>111</id>
+ <posX>280</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>112</id>
+ <posX>340</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>113</id>
+ <posX>400</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>114</id>
+ <posX>460</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>115</id>
+ <posX>520</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>116</id>
+ <posX>580</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>117</id>
+ <posX>640</posX>
+ <posY>200</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_2_7</texture>
+ </control>
+
+ <control>
+ <type>image</type>
+ <id>121</id>
+ <posX>280</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>122</id>
+ <posX>340</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>123</id>
+ <posX>400</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>124</id>
+ <posX>460</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>125</id>
+ <posX>520</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>126</id>
+ <posX>580</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>127</id>
+ <posX>640</posX>
+ <posY>260</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_3_7</texture>
+ </control>
+
+ <control>
+ <type>image</type>
+ <id>131</id>
+ <posX>280</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>132</id>
+ <posX>340</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>133</id>
+ <posX>400</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>134</id>
+ <posX>460</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>135</id>
+ <posX>520</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>136</id>
+ <posX>580</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>137</id>
+ <posX>640</posX>
+ <posY>320</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_4_7</texture>
+ </control>
+
+ <control>
+ <type>image</type>
+ <id>141</id>
+ <posX>280</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>142</id>
+ <posX>340</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>143</id>
+ <posX>400</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>144</id>
+ <posX>460</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>145</id>
+ <posX>520</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>146</id>
+ <posX>580</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>147</id>
+ <posX>640</posX>
+ <posY>380</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_5_7</texture>
+ </control>
+
+ <control>
+ <type>image</type>
+ <id>151</id>
+ <posX>280</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_1</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>152</id>
+ <posX>340</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_2</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>153</id>
+ <posX>400</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_3</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>154</id>
+ <posX>460</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_4</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>155</id>
+ <posX>520</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_5</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>156</id>
+ <posX>580</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_6</texture>
+ </control>
+ <control>
+ <type>image</type>
+ <id>157</id>
+ <posX>640</posX>
+ <posY>440</posY>
+ <width>40</width>
+ <height>40</height>
+ <texture>#Con_6_7</texture>
+ </control>
+ <control>
+ <description>text label</description>
+ <type>label</type>
+ <id>18</id>
+ <posX>260</posX>
+ <posY>510</posY>
+ <label>#Status</label>
+ <font>font16</font>
+ <align>Left</align>
+ <textcolor>ffffffff</textcolor>
+ </control>
+ <control>
+ <description>Pointer 01</description>
+ <type>button</type>
+ <id>301</id>
+ <posX>280</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>2</onleft>
+ <onright>302</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 02</description>
+ <type>button</type>
+ <id>302</id>
+ <posX>340</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>301</onleft>
+ <onright>303</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 03</description>
+ <type>button</type>
+ <id>303</id>
+ <posX>400</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>302</onleft>
+ <onright>304</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 04</description>
+ <type>button</type>
+ <id>304</id>
+ <posX>460</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>303</onleft>
+ <onright>305</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 05</description>
+ <type>button</type>
+ <id>305</id>
+ <posX>520</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>304</onleft>
+ <onright>306</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 06</description>
+ <type>button</type>
+ <id>306</id>
+ <posX>580</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>305</onleft>
+ <onright>307</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ <control>
+ <description>Pointer 07</description>
+ <type>button</type>
+ <id>307</id>
+ <posX>640</posX>
+ <posY>70</posY>
+ <width>40</width>
+ <height>40</height>
+ <onleft>306</onleft>
+ <onright>307</onright>
+ <textureFocus>MyConn4Cur.png</textureFocus>
+ </control>
+ </control>
+ </controls>
+</window>
Added: trunk/plugins/My Connect4/Skin/Skin default/Media/MyConn4Cur.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Connect4/Skin/Skin default/Media/MyConn4Cur.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Connect4/Skin/Skin default/Media/MyConn4Gr.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Connect4/Skin/Skin default/Media/MyConn4Gr.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Connect4/Skin/Skin default/Media/MyConn4Rd.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Connect4/Skin/Skin default/Media/MyConn4Rd.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Connect4/Skin/Skin default/Media/MyConn4Wh.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Connect4/Skin/Skin default/Media/MyConn4Wh.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Connect4/Skin/Skin default/Media/MyConn4Ye.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Connect4/Skin/Skin default/Media/MyConn4Ye.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Connect4/Skin/Skin default/Media/MyConnBack.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Connect4/Skin/Skin default/Media/MyConnBack.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Connect4/Skin/Skin default/Media/hover_my connect4.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Connect4/Skin/Skin default/Media/hover_my connect4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Connect4/Skin/Skin default/Sounds/MyConnect4_klick.wav
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Connect4/Skin/Skin default/Sounds/MyConnect4_klick.wav
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs
===================================================================
--- trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs 2007-05-05 16:20:35 UTC (rev 378)
+++ trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.cs 2007-05-06 11:37:38 UTC (rev 379)
@@ -32,10 +32,12 @@
using MediaPortal.Dialogs;
using MediaPortal.Util;
using MediaPortal.Utils;
+using MediaPortal.Configuration;
namespace MediaPortal.GUI.MyConnect
{
- public class MyConnect4GUI : GUIWindow , ISetupForm
+ [PluginIcons("MyConnect4.connect4.png", "MyConnect4.connect4Disabled.png")]
+ public class MyConnect4GUI : GUIWindow, ISetupForm
{
#region SkinControl
[SkinControlAttribute(2)] protected GUIButtonControl BtnStart = null;
@@ -47,10 +49,10 @@
#region Private variables
- string Level="Am"; //Choosen level
- int AI = 3;
+ string Level="Nor"; //Choosen level
+ int AI = 5;
- string Mode = "2p"; //2player
+ string Mode = "1p"; //2player
int Player = 0;
int round = 0;
@@ -128,7 +130,7 @@
/// false : plugin does not need its own button on home</returns>
public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage)
- {
+ {
strButtonText = PluginName();
strButtonImage = String.Empty;
strButtonImageFocus = String.Empty;
@@ -208,12 +210,13 @@
_Game.Start();
Player = 0;
- Level = "Am";
- Mode = "2p";
- AI = 3;
+ Level = "Nor";
+ Mode = "1p";
+ AI = 5;
GUIPropertyManager.SetProperty("#Status", " ");
- GUIControl.SetControlLabel(GetID, BtnLevel.GetID, "Level: Amateur");
+ GUIControl.SetControlLabel(GetID, BtnLevel.GetID, "Level: Normal");
+ GUIControl.SetControlLabel(GetID, BtnMode.GetID, "Mode: Play vs Comp");
// Disable level selection
GUIControl.DisableControl(GetID, 4);
@@ -299,7 +302,7 @@
{
GUIControl.SetControlLabel(GetID, BtnLevel.GetID, "Level: Professional");
Level = "Pro";
- AI = 7;
+ AI = 8;
}
else if (Level == "Pro")
{
@@ -322,7 +325,7 @@
{
if (Mode == "2p")
{
- GUIControl.SetControlLabel(GetID, BtnMode.GetID, "Mode: Play vs Computer");
+ GUIControl.SetControlLabel(GetID, BtnMode.GetID, "Mode: Play vs Comp");
Mode = "1p";
// Enable level selection
GUIControl.EnableControl(GetID, 4);
@@ -345,7 +348,7 @@
"This could be vertically, horizontal or diagonally.\n\n" +
"Gameboard design by Mikael S\xF6derstr\xF6m.\n\n" +
"AI code has been taken from http://www.Planet-Source-Code.com\n\n" +
- "Good luck\nkroko");
+ "Good luck\nMark Koenig (kroko)");
dlg.DoModal(GetID);
}
@@ -425,7 +428,7 @@
// Enable What this
GUIControl.EnableControl(GetID, 7);
- GUIControl.FocusControl(GetID, 2);
+ //GUIControl.FocusControl(GetID, 2);
}
void _Game_Tick(object sender, EventArgs e)
Modified: trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.csproj
===================================================================
--- trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.csproj 2007-05-05 16:20:35 UTC (rev 378)
+++ trunk/plugins/My Connect4/Source/MyConnect4/MyConnect4.csproj 2007-05-06 11:37:38 UTC (rev 379)
@@ -28,14 +28,26 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
- <Reference Include="Core, Version=1.0.2593.1921, Culture=neutral, processorArchitecture=MSIL" />
- <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL" />
+ <Reference Include="Core, Version=1.0.2546.32606, Culture=neutral, processorArchitecture=x86">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\..\Programme\Team MediaPortal\MediaPortal\Core.DLL</HintPath>
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=x86">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\..\Programme\Team MediaPortal\MediaPortal\Plugins\Windows\Dialogs.DLL</HintPath>
+ <Private>False</Private>
+ </Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
- <Reference Include="Utils, Version=1.0.2593.1896, Culture=neutral, processorArchitecture=MSIL" />
+ <Reference Include="Utils, Version=1.0.2546.32604, Culture=neutral, processorArchitecture=x86">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\..\Programme\Team MediaPortal\MediaPortal\Utils.DLL</HintPath>
+ <Private>False</Private>
+ </Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Engine.cs" />
@@ -43,6 +55,10 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="State.cs" />
</ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="connect4.png" />
+ <EmbeddedResource Include="connect4Disabled.png" />
+ </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Added: trunk/plugins/My Connect4/Source/MyConnect4/connect4.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Connect4/Source/MyConnect4/connect4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/plugins/My Connect4/Source/MyConnect4/connect4Disabled.png
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/My Connect4/Source/MyConnect4/connect4Disabled.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/plugins/My Connect4/readme.txt
===================================================================
--- trunk/plugins/My Connect4/readme.txt 2007-05-05 16:20:35 UTC (rev 378)
+++ trunk/plugins/My Connect4/readme.txt 2007-05-06 11:37:38 UTC (rev 379)
@@ -3,19 +3,38 @@
Connect 4 (Vier gewinnt)
------------------------
--Initial release
--1 and 2 player support
--Gameboard design by Mikael S\xF6derstr\xF6m.
-This nice game from MB as a MP version. You can play with
-- the mouse
-- remote left/right and OK
+v0.2
-Copy the plugin and skin files into your favorite skin folder.
-I had to adjust my remote a little in the setup. It was to sensitve.
+-nice icons for the config
+-short the text to "play vs comp"
+-standard AI is now play vs comp and level normal
+-focus if game ends do not jumo from form
+-add the Simple MP skin file to the release
+Design of the board by
+Mikael S\xF6derstr\xF6m
+Install:
+Copy the skin default files for gfx and sound
+Copy the skin blue two or Simple MP
+Copy the dll into the plugin window
+
+Play:
+- with mouse
+- remote left/right and OK
+
Have fun.
Greetz
-kroko
\ No newline at end of file
+kroko
+
+------------------------------------------
+
+v0.1
+
+-Initial release
+-1 and 2 player support
+
+Copy the plugin and skin files into your favorite skin folder.
+I had to adjust my remote a little in the setup. It was to sensitve.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <an...@us...> - 2007-05-05 16:20:41
|
Revision: 378
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=378&view=rev
Author: and-81
Date: 2007-05-05 09:20:35 -0700 (Sat, 05 May 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/TV3UuirtBlaster/TV3UuirtBlaster.cs
Modified: trunk/plugins/TV3UuirtBlaster/TV3UuirtBlaster.cs
===================================================================
--- trunk/plugins/TV3UuirtBlaster/TV3UuirtBlaster.cs 2007-05-05 00:39:12 UTC (rev 377)
+++ trunk/plugins/TV3UuirtBlaster/TV3UuirtBlaster.cs 2007-05-05 16:20:35 UTC (rev 378)
@@ -198,7 +198,7 @@
static ExternalChannelConfig[] _externalChannelConfigs;
static bool _inConfiguration;
- static int _blastRepeats = 1;
+ static int _blastRepeats = 4;
static int _abortLearn = AllowLearn;
static bool _isUsbUirtLoaded = false;
static IntPtr _usbUirtHandle = IntPtr.Zero;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gre...@us...> - 2007-05-05 00:39:14
|
Revision: 377
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=377&view=rev
Author: gregmac45
Date: 2007-05-04 17:39:12 -0700 (Fri, 04 May 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/OnlinePhotos/MyClass.cs
trunk/plugins/OnlinePhotos/OnlinePhotos.csproj
trunk/plugins/OnlinePhotos/OnlinePhotos.suo
trunk/plugins/OnlinePhotos/myonlinephotos.xml
Modified: trunk/plugins/OnlinePhotos/MyClass.cs
===================================================================
--- trunk/plugins/OnlinePhotos/MyClass.cs 2007-05-04 17:23:57 UTC (rev 376)
+++ trunk/plugins/OnlinePhotos/MyClass.cs 2007-05-05 00:39:12 UTC (rev 377)
@@ -9,14 +9,18 @@
using System;
using MediaPortal;
using MediaPortal.Util;
+using MediaPortal.Utils;
using MediaPortal.GUI.Library;
using MediaPortal.Dialogs;
using MediaPortal.GUI.Pictures;
using System.Collections.Generic;
+using System.Collections.Specialized;
using System.Xml;
using System.Net;
using System.Web;
using System.IO;
+using System.Drawing;
+using System.Drawing.Imaging;
using System.ComponentModel;
namespace OnlinePhotos
@@ -36,6 +40,7 @@
}
}
+
public String id;
public String thumbnailUrl;
public String largeUrl;
@@ -87,10 +92,37 @@
{
[SkinControlAttribute(2)]
protected GUIButtonControl btnViewAs = null;
- [SkinControlAttribute(3)]
+ [SkinControlAttribute(3)]
+ protected GUIButtonControl btnFlickr = null;
+ [SkinControlAttribute(31)]
+ protected GUIButtonControl btnFlickrPhotos = null;
+ [SkinControlAttribute(32)]
+ protected GUIButtonControl btnFlickrSets = null;
+ [SkinControlAttribute(33)]
+ protected GUIButtonControl btnFlickrFav = null;
+ [SkinControlAttribute(34)]
+ protected GUIButtonControl btnInterest = null;
+ [SkinControlAttribute(35)]
+ protected GUIButtonControl btnRecent = null;
+ [SkinControlAttribute(36)]
+ protected GUIButtonControl btnSearchTag = null;
+ [SkinControlAttribute(37)]
+ protected GUIButtonControl btnSearchTxt = null;
+ [SkinControlAttribute(38)]
+ protected GUIButtonControl btnSearchGrp = null;
+ [SkinControlAttribute(4)]
+ protected GUIButtonControl btnPicasa = null;
+ [SkinControlAttribute(41)]
+ protected GUIButtonControl btnPicasaPhotos = null;
+ [SkinControlAttribute(5)]
protected GUIButtonControl btnSlide = null;
+ [SkinControlAttribute(6)]
+ protected GUIButtonControl btnClearCache = null;
+ [SkinControlAttribute(7)]
+ protected GUIButtonControl btnSettings = null;
[SkinControlAttribute(50)]
protected GUIFacadeControl facadeView = null;
+ GUISlideShow _SlideShow;
private State _CurrentState = State.home;
protected View currentView = View.List;
protected List<MyPhoto> CurrentPhotoList;
@@ -98,12 +130,18 @@
protected MyAlbum CurrentAlbum;
protected bool _imagesDone = true;
protected bool _stopImgDownload = false;
+ protected bool _onSlideShow = false;
+ protected string _imageDirectory = @"C:\Temp\";
+ protected NameValueCollection _photosToDownload;
+ protected NameValueCollection _AlbumCoversToDownload;
public enum State
{
home = 0,
albums = 1,
photos = 2,
- album_photos = 3
+ album_photos = 3,
+ //showpicture=4,
+ //slideshow=5
}
public enum View
{
@@ -112,75 +150,48 @@
LargeIcons = 2,
FilmStrip = 3
}
-
public string PluginName()
{
return "Online Photos";
- }
-
- // Returns the description of the plugin is shown in the plugin menu
-
+ }
public string Description()
{
return "Flickr and Google Photo Plugin";
}
-
- // Returns the author of the plugin which is shown in the plugin menu
-
public string Author()
{
return "GregMac45";
- }
-
- // show the setup dialog
-
+ }
public void ShowPlugin()
{
//MessageBox.Show("Nothing to configure, this is just an example");
}
-
- // Indicates whether plugin can be enabled/disabled
-
public bool CanEnable()
{
return true;
-
}
-
- // get ID of windowplugin belonging to this setup
-
public int GetWindowId()
{
return GetID;
}
-
- // Indicates if plugin is enabled by default;
-
public bool DefaultEnabled()
{
-
return true;
-
}
-
- // indicates if a plugin has its own setup screen
-
public bool HasSetup()
{
-
return false;
-
}
public override int GetID
{
@@ -192,7 +203,6 @@
{
}
}
-
public override bool Init()
{
LoadSettings();
@@ -217,6 +227,7 @@
}
protected override void OnPageLoad()
{
+ Log.Info("in OnPageLoad");
if (_CurrentState == State.home)
{
//_log.Info("onPageLoad state home");
@@ -224,43 +235,68 @@
DisplayHome();
//DisplaySites();
}
- else if (_CurrentState == State.photos)
+ else if (_CurrentState == State.photos || _CurrentState == State.album_photos)
{
+ Log.Info("OnPageLoad with state ={0} calling DisplayCurrentPhotos with false",_CurrentState);
DisplayCurrentPhotos(false);
}
+
currentView = View.Icons;
ChangeFacadeView();
+ _onSlideShow = false;
+ if (_imagesDone == false)
+ {
+ Log.Info("OnPageLoad with state ={0} and imageDone = false calling GetImages(_photosToDownload)",_CurrentState);
+ if (_CurrentState == State.album_photos || _CurrentState == State.photos)
+ {
+ getImages(_photosToDownload);
+ }
+ }
-
base.OnPageLoad();
}
+ public override bool OnMessage(GUIMessage message)
+ {
+ return base.OnMessage(message);
+ }
public override void OnAction(Action action)
{
+
if (action.wID == Action.ActionType.ACTION_PREVIOUS_MENU)
{
+ Log.Info("in Action previous menu");
if (_CurrentState == State.album_photos)
{
+ _CurrentState = State.albums;
+ Log.Info(" AP - Sending request to stop img download");
+ _stopImgDownload = true;
+ System.Threading.Thread.Sleep(25);
DisplayCurrentAlbums();
- _CurrentState = State.albums;
+
+
return;
}
else if (_CurrentState == State.albums || _CurrentState == State.photos)
{
+ _CurrentState = State.home;
+ Log.Info(" P - Sending request to stop img download");
+ _stopImgDownload = true;
+ System.Threading.Thread.Sleep(25);
DisplayHome();
- _CurrentState = State.home;
+
return;
}
- _stopImgDownload = true;
+
+
}
base.OnAction(action);
- }
+ }
protected override void OnPageDestroy(int new_windowId)
{
base.OnPageDestroy(new_windowId);
- }
-
+ }
protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
{
if (control == btnViewAs)
@@ -270,10 +306,13 @@
else if (control == btnSlide)
{
OnSlideShow();
- }
+ }else if(control == btnClearCache){
+ ClearCache();
+ }
else if (control == facadeView && _CurrentState == State.home)
{
String SelectedSiteId = facadeView.SelectedListItem.Path;
+ String userInput = "" ;
switch (SelectedSiteId)
{
case "1":
@@ -285,21 +324,19 @@
_CurrentState = State.photos;
break;
case "3":
- string q = "";
- if (GetUserInputString(ref q))
+
+ if (GetUserInputString(ref userInput))
{
- DisplayFlickrPhotosWithTags(q);
+ DisplayFlickrPhotosWithTags(userInput);
_CurrentState = State.photos;
}
break;
- case "4":
- string text = "";
- if (GetUserInputString(ref text))
+ case "4":
+ if (GetUserInputString(ref userInput))
{
-
- DisplayFlickrPhotosWithText(text);
+ DisplayFlickrPhotosWithText(userInput);
_CurrentState = State.photos;
}
@@ -310,11 +347,10 @@
break;
- case "6":
- string gtext = "";
- if (GetUserInputString(ref gtext))
+ case "6":
+ if (GetUserInputString(ref userInput))
{
- DisplayFlickrGroupsWithText(gtext);
+ DisplayFlickrGroupsWithText(userInput);
_CurrentState = State.photos;
}
break;
@@ -338,7 +374,7 @@
}
else if (control == facadeView && (_CurrentState == State.photos || _CurrentState== State.album_photos))
{
- OnShowPicture(facadeView.SelectedListItem.ThumbnailImage);
+ OnShowPicture(facadeView.SelectedListItem.Path);
}
}
public void DisplayInterestingFlickrPhotos()
@@ -400,7 +436,7 @@
facadeView.Clear();
GUIListItem item;
int i = 0;
- List<String> ImageList = new List<string>();
+ _photosToDownload = new NameValueCollection();
foreach (MyPhoto photo in CurrentPhotoList)
{
item = new GUIListItem(photo.Title);
@@ -412,8 +448,8 @@
item.OnRetrieveArt += new MediaPortal.GUI.Library.GUIListItem.RetrieveCoverArtHandler(OnRetrieveCoverArt);
- ImageList.Add(photo.mediumUrl);
- Log.Info("setting photo to url " + photo.mediumUrl);
+ _photosToDownload.Add(photo.ThumbName,photo.mediumUrl);
+ //Log.Info("setting photo to url " + photo.mediumUrl);
}else{
item.RetrieveArt = true;
item.OnRetrieveArt += new MediaPortal.GUI.Library.GUIListItem.RetrieveCoverArtHandler(OnRetrieveCoverArt);
@@ -424,18 +460,7 @@
}
if(refresh){
- BackgroundWorker worker = new BackgroundWorker();
-
- worker.DoWork += new DoWorkEventHandler(downloadImages);
- worker.RunWorkerAsync(ImageList);
-
- using (WaitCursor cursor = new WaitCursor())
- {
- while (_imagesDone == false)
- {
- GUIWindowManager.Process();
- }
- }
+ getImages(_photosToDownload);
}
}
@@ -444,7 +469,7 @@
facadeView.Clear();
GUIListItem item;
int i = 0;
- List<String> ImageList = new List<string>();
+ _AlbumCoversToDownload = new NameValueCollection();
foreach (MyAlbum album in CurrentAlbumList)
{
item = new GUIListItem(album.Title);
@@ -454,30 +479,20 @@
item.RetrieveArt = false;
item.OnRetrieveArt += new MediaPortal.GUI.Library.GUIListItem.RetrieveCoverArtHandler(OnRetrieveCoverArt);
item.OnItemSelected += new MediaPortal.GUI.Library.GUIListItem.ItemSelectedHandler(item_OnItemSelected);
- ImageList.Add(album.coverThumbnailUrl);
+ _AlbumCoversToDownload.Add(album.ThumbName,album.coverThumbnailUrl);
Log.Info("album thumbnail for {0} is {1}",album.Title,album.coverThumbnailUrl);
facadeView.Add(item);
GUIWindowManager.Process();
i++;
}
- BackgroundWorker worker = new BackgroundWorker();
-
- worker.DoWork += new DoWorkEventHandler(downloadImages);
- worker.RunWorkerAsync(ImageList);
-
- using (WaitCursor cursor = new WaitCursor())
- {
- while (_imagesDone == false)
- {
- GUIWindowManager.Process();
- }
- }
+ getImages(_AlbumCoversToDownload);
}
private void DisplayAlbumPhotos(){
CurrentPhotoList = MyPicasa.getAlbumPhotos(CurrentAlbum.id);
DisplayCurrentPhotos();
}
+ /*
private String GetThumbnail(String lsUrl)
{
string lsThumb = MediaPortal.Util.Utils.GetThumb(lsUrl);
@@ -506,33 +521,73 @@
//facadeView[liIdx].IconImageBig = "";
}
}
+ */
+ protected void getImages(NameValueCollection imageList){
+ Log.Info("Getting images");
+ BackgroundWorker worker = new BackgroundWorker();
+
+ worker.DoWork += new DoWorkEventHandler(downloadImages);
+ worker.RunWorkerAsync(imageList);
+
+ using (WaitCursor cursor = new WaitCursor())
+ {
+ while (_imagesDone == false)
+ {
+ GUIWindowManager.Process();
+ }
+ }
+ }
public void downloadImages(object sender, DoWorkEventArgs e)
{
+ Log.Info("Downloading images");
_imagesDone = false;
_stopImgDownload = false;
- List<String> imageList = (List<String>)e.Argument;
+ //List<String> imageList = (List<String>)e.Argument;
+ NameValueCollection imgNameUrlList= (NameValueCollection) e.Argument;
WebClient client = new WebClient();
- int i=0;
- String imageLocation;
- foreach (String url in imageList)
+
+ string imageLocation;
+ string thumbnailLocation;
+ string url;
+ string name;
+ for(int i=0;i<imgNameUrlList.Count;i++)
{
+ url = imgNameUrlList.Get(i);
+ name = imgNameUrlList.GetKey(i);
+
if(_stopImgDownload){
+ Log.Info("Received Request to stop Download");
break;
}
+ Log.Info("downloading image :"+url);
+ /*
if(inPhotoState() ){
imageLocation = "C:\\Temp\\" + CurrentPhotoList[i].ThumbName + ".jpg";
}else{
imageLocation = "C:\\Temp\\" + CurrentAlbumList[i].ThumbName + ".jpg";
}
+ */
+ imageLocation = "C:\\Temp\\" + name+ "L.jpg";
+ thumbnailLocation = "C:\\Temp\\" + name+ ".jpg";
if(System.IO.File.Exists(imageLocation) == false){
client.DownloadFile(url, imageLocation);
+ if(System.IO.File.Exists(thumbnailLocation) == false){
+ //int iRotate = dbs.GetRotation(imageLocation);
+ MediaPortal.Util.Picture.CreateThumbnail(imageLocation, thumbnailLocation, (int)Thumbs.ThumbResolution, (int)Thumbs.ThumbResolution, 0);
+ System.Threading.Thread.Sleep(25);
+ }
+ if(_onSlideShow){
+ _SlideShow.Add(imageLocation);
+ }
}
+ facadeView[i].Path = imageLocation;
facadeView[i].RetrieveArt = true;
facadeView[i].RefreshCoverArt();
- i++;
+ //i++;
}
+ Log.Info("Setting imagesDone to true");
_imagesDone = true;
}
public bool inPhotoState(){
@@ -541,20 +596,18 @@
void OnRetrieveCoverArt(GUIListItem item)
{
if(inPhotoState() ){
- item.ThumbnailImage = "C:\\Temp\\" + CurrentPhotoList[item.ItemId].ThumbName + ".jpg";
+ item.ThumbnailImage = "C:\\Temp\\" + CurrentPhotoList[item.ItemId].ThumbName + ".jpg";
}else{
- item.ThumbnailImage = "C:\\Temp\\" + CurrentAlbumList[item.ItemId].ThumbName + ".jpg";
+ item.ThumbnailImage = "C:\\Temp\\" + CurrentAlbumList[item.ItemId].ThumbName + ".jpg";
}
}
-
private void item_OnItemSelected(GUIListItem item, GUIControl parent)
{
GUIFilmstripControl filmstrip = parent as GUIFilmstripControl;
if (filmstrip == null)
return;
- filmstrip.InfoImageFileName = item.ThumbnailImage;
+ filmstrip.InfoImageFileName = item.Path;
}
-
private void ChangeFacadeView()
{
@@ -688,7 +741,12 @@
{
//facadeView.Clear();
GUIControl.ClearControl(GetID, facadeView.GetID);
-
+ hideAllButtons();
+ btnClearCache.Visible = true;
+ btnFlickr.Visible = true;
+ btnPicasa.Visible = true;
+ btnSettings.Visible = true;
+ /*
GUIListItem loListItem;
//foreach (Site loSite in moSiteList.Values)
//{
@@ -740,10 +798,30 @@
loListItem.IsFolder = true;
MediaPortal.Util.Utils.SetDefaultIcons(loListItem);
facadeView.Add(loListItem);
-
+ */
+
//}
//GUIPropertyManager.SetProperty("#itemcount", facadeView.Count-1 + "");
}
+ protected void hideAllButtons() {
+ btnClearCache.Visible = false;
+ btnFlickr.Visible = false;
+ btnFlickrFav.Visible = false;
+ btnFlickrPhotos.Visible = false;
+ btnFlickrSets.Visible = false;
+ btnInterest.Visible = false;
+ btnPicasa.Visible = false;
+ btnPicasaPhotos.Visible = false;
+ btnRecent.Visible = false;
+ btnSearchGrp.Visible = false;
+ btnSearchTag.Visible = false;
+ btnSearchTxt.Visible = false;
+ btnSettings.Visible = false;
+ btnSlide.Visible = false;
+ btnViewAs.Visible = false;
+
+ }
+ /*
private void LoadFlickrCategories()
{
GUIControl.ClearControl(GetID, facadeView.GetID);
@@ -774,19 +852,29 @@
}
+ * */
void OnSlideShow()
{
OnSlideShow(0);
- }
-
+ }
void OnSlideShow(int iStartItem)
{
-
- GUISlideShow SlideShow = (GUISlideShow)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_SLIDESHOW);
- if (SlideShow == null)
+ bool doSlide = true;
+ if(_imagesDone==false){
+ GUIDialogYesNo notify = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO);
+ notify.SetLine(1,"Photos are still downloading.");
+ notify.SetLine(2,"Select Yes to slide the downloaded photos.");
+ notify.DoModal(GetID);
+ doSlide = notify.IsConfirmed;
+ }
+ if(doSlide == false){
return;
+ }
+ _SlideShow = (GUISlideShow)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_SLIDESHOW);
+ if (_SlideShow == null)
+ return;
- SlideShow.Reset();
+ _SlideShow.Reset();
if ((iStartItem < 0) || (iStartItem > CurrentPhotoList.Count))
iStartItem = 0;
@@ -794,9 +882,9 @@
do
{
GUIListItem item = facadeView[i];
- if (!item.IsFolder && !item.IsRemote)
+ if (!item.IsFolder && !item.IsRemote && item.RetrieveArt)
{
- SlideShow.Add(facadeView[i].ThumbnailImage);
+ _SlideShow.Add(facadeView[i].Path);
}
i++;
@@ -807,26 +895,45 @@
}
while (i != iStartItem);
- if (SlideShow.Count > 0)
+ if (_SlideShow.Count > 0)
{
- SlideShow.StartSlideShow();
+ GUIWindowManager.Callbacks+= new GUIWindowManager.OnCallBackHandler(OnCallBack);
+ _SlideShow.StartSlideShow();
+ _onSlideShow = true;
+ //GUIWindowManager.Receivers+= new GUIWindowManager.SendMessageHandler(OnSendMessage );
+ //Action.ActionType.
GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_SLIDESHOW);
}
}
+ public void OnCallBack(){
+ /*
+ Log.Info("received call back with onSlideshow set to {0}",_onSlideShow);
+ if(_imagesDone==false){
+ getImages(_photosToDownload);
+ }
+ * */
+ }
void OnShowPicture(string strFile)
{
- GUISlideShow SlideShow = (GUISlideShow)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_SLIDESHOW);
- if (SlideShow == null)
+ _SlideShow = (GUISlideShow)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_SLIDESHOW);
+ if (_SlideShow == null)
return;
- SlideShow.Reset();
- SlideShow.Add(strFile);
+ _SlideShow.Reset();
+ _SlideShow.Add(strFile);
GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_SLIDESHOW);
// SlideShow.Select(strFile);
}
+ protected void ClearCache(){
+ String [] strFiles = System.IO.Directory.GetFiles(_imageDirectory,"Thumbs*.jpg");
+ foreach(String path in strFiles){
+ System.IO.File.Delete(path);
+ }
+
+ }
public void TestSlideShow(String user){
List<MyPhoto> photoList = MyFlickr.getInterestingPhotos();
GUISlideShow SlideShow = (GUISlideShow)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_SLIDESHOW);
Modified: trunk/plugins/OnlinePhotos/OnlinePhotos.csproj
===================================================================
--- trunk/plugins/OnlinePhotos/OnlinePhotos.csproj 2007-05-04 17:23:57 UTC (rev 376)
+++ trunk/plugins/OnlinePhotos/OnlinePhotos.csproj 2007-05-05 00:39:12 UTC (rev 377)
@@ -33,6 +33,9 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<FileAlignment>4096</FileAlignment>
</PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <OutputPath>..\..\..\..\Program Files\Team MediaPortal\MediaPortal\Plugins\Windows\</OutputPath>
+ </PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
<ItemGroup>
<Reference Include="Core">
@@ -55,6 +58,8 @@
<SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="System" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Drawing.Design" />
<Reference Include="System.Xml" />
<Reference Include="Utils">
<HintPath>..\..\MediaPortal\Utils\bin\Release\Utils.DLL</HintPath>
Modified: trunk/plugins/OnlinePhotos/OnlinePhotos.suo
===================================================================
(Binary files differ)
Modified: trunk/plugins/OnlinePhotos/myonlinephotos.xml
===================================================================
--- trunk/plugins/OnlinePhotos/myonlinephotos.xml 2007-05-04 17:23:57 UTC (rev 376)
+++ trunk/plugins/OnlinePhotos/myonlinephotos.xml 2007-05-05 00:39:12 UTC (rev 377)
@@ -25,11 +25,124 @@
</control>
<control>
<type>button</type>
- <description>slideshow button</description>
+ <description>Flickr</description>
<id>3</id>
<onright>50</onright>
+ <label>Flickr</label>
+ </control>
+ <control>
+ <type>button</type>
+ <description>Picasa</description>
+ <id>4</id>
+ <onright>50</onright>
+ <label>Picasa</label>
+ </control>
+ <control>
+ <type>button</type>
+ <description>slideshow button</description>
+ <id>5</id>
+ <onright>50</onright>
<label>Slideshow</label>
</control>
+ <control>
+ <type>button</type>
+ <description>cache button</description>
+ <id>6</id>
+ <onright>50</onright>
+ <label>Clear Cache</label>
+ </control>
+ <control>
+ <type>button</type>
+ <description>cache button</description>
+ <id>7</id>
+ <onright>50</onright>
+ <label>Settings</label>
+ </control>
+ </control>
+ <control>
+ <description>group element</description>
+ <type>group</type>
+ <animation effect="fade" time="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <animation effect="slide" time="250" start="-300,0">WindowOpen</animation>
+ <animation effect="slide" time="500" end="0,-300">WindowClose</animation>
+ <posX>60</posX>
+ <posY>97</posY>
+ <layout>StackLayout</layout>
+ <control>
+ <type>button</type>
+ <description>Flickr</description>
+ <id>31</id>
+ <onright>50</onright>
+ <label>My Photos</label>
+ </control>
+ <control>
+ <type>button</type>
+ <description>Flickr</description>
+ <id>32</id>
+ <onright>50</onright>
+ <label>My Photo Sets</label>
+ </control>
+ <control>
+ <type>button</type>
+ <description>Flickr</description>
+ <id>33</id>
+ <onright>50</onright>
+ <label>My Favorites</label>
+ </control>
+ <control>
+ <type>button</type>
+ <description>Flickr</description>
+ <id>34</id>
+ <onright>50</onright>
+ <label>Interesting Photos</label>
+ </control>
+ <control>
+ <type>button</type>
+ <description>Flickr</description>
+ <id>35</id>
+ <onright>50</onright>
+ <label>Recent Photos</label>
+ </control>
+ <control>
+ <type>button</type>
+ <description>Flickr</description>
+ <id>36</id>
+ <onright>50</onright>
+ <label>Search By Tag</label>
+ </control>
+ <control>
+ <type>button</type>
+ <description>Flickr</description>
+ <id>37</id>
+ <onright>50</onright>
+ <label>Search by Text</label>
+ </control>
+ <control>
+ <type>button</type>
+ <description>Flickr</description>
+ <id>38</id>
+ <onright>50</onright>
+ <label>Search Groups</label>
</control>
- </controls>
+ </control>
+ <control>
+ <description>group element</description>
+ <type>group</type>
+ <animation effect="fade" time="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <animation effect="slide" time="250" start="-300,0">WindowOpen</animation>
+ <animation effect="slide" time="500" end="0,-300">WindowClose</animation>
+ <posX>60</posX>
+ <posY>97</posY>
+ <layout>StackLayout</layout>
+ <control>
+ <type>button</type>
+ <description>Flickr</description>
+ <id>41</id>
+ <onright>50</onright>
+ <label>My Photos</label>
+ </control>
+ </control>
+ </controls>
</window>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <sa...@us...> - 2007-05-04 17:23:59
|
Revision: 376
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=376&view=rev
Author: saamand
Date: 2007-05-04 10:23:57 -0700 (Fri, 04 May 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/MyLyrics/LyricsEngine/LyricSearch.cs
trunk/plugins/MyLyrics/LyricsEngine/LyricsSites/EvilLabs.cs
trunk/plugins/MyLyrics/LyricsEngine/LyricsSites/HotLyrics.cs
trunk/plugins/MyLyrics/MyLyrics.suo
Modified: trunk/plugins/MyLyrics/LyricsEngine/LyricSearch.cs
===================================================================
(Binary files differ)
Modified: trunk/plugins/MyLyrics/LyricsEngine/LyricsSites/EvilLabs.cs
===================================================================
--- trunk/plugins/MyLyrics/LyricsEngine/LyricsSites/EvilLabs.cs 2007-05-04 17:08:44 UTC (rev 375)
+++ trunk/plugins/MyLyrics/LyricsEngine/LyricsSites/EvilLabs.cs 2007-05-04 17:23:57 UTC (rev 376)
@@ -5,6 +5,7 @@
using System.Diagnostics;
using System.Net;
using System.Threading;
+using System.Timers;
namespace LyricsEngine.LyricSites
{
@@ -12,14 +13,19 @@
{
string lyric = "";
bool complete;
+ System.Timers.Timer timer;
+ int timeLimit;
public string Lyric
{
get { return lyric; }
}
- public EvilLabs(string artist, string title, ManualResetEvent m_EventStop_SiteSearches)
+ public EvilLabs(string artist, string title, ManualResetEvent m_EventStop_SiteSearches, int timeLimit)
{
+ this.timeLimit = timeLimit;
+ timer = new System.Timers.Timer();
+
if (LyricDiagnostics.TraceSource != null) LyricDiagnostics.TraceSource.TraceEvent(TraceEventType.Information, 0, LyricDiagnostics.ElapsedTimeString() + "EvilLabs(" + artist + ", " + title + ")");
artist = LyricUtil.RemoveFeatComment(artist);
@@ -32,6 +38,11 @@
WebClient client = new WebClient();
+ timer.Enabled = true;
+ timer.Interval = timeLimit;
+ timer.Elapsed += new ElapsedEventHandler(timer_Elapsed);
+ timer.Start();
+
Uri uri = new Uri(urlString);
client.OpenReadCompleted += new System.Net.OpenReadCompletedEventHandler(callbackMethod);
client.OpenReadAsync(uri);
@@ -109,5 +120,12 @@
complete = true;
}
}
+
+ void timer_Elapsed(object sender, ElapsedEventArgs e)
+ {
+ lyric = "Not found";
+ complete = true;
+ Thread.CurrentThread.Abort();
+ }
}
}
Modified: trunk/plugins/MyLyrics/LyricsEngine/LyricsSites/HotLyrics.cs
===================================================================
--- trunk/plugins/MyLyrics/LyricsEngine/LyricsSites/HotLyrics.cs 2007-05-04 17:08:44 UTC (rev 375)
+++ trunk/plugins/MyLyrics/LyricsEngine/LyricsSites/HotLyrics.cs 2007-05-04 17:23:57 UTC (rev 376)
@@ -5,6 +5,7 @@
using System.Diagnostics;
using System.Net;
using System.Threading;
+using System.Timers;
namespace LyricsEngine.LyricSites
{
@@ -12,14 +13,19 @@
{
string lyric = "";
private bool complete;
+ System.Timers.Timer timer;
+ int timeLimit;
public string Lyric
{
get { return lyric; }
}
- public HotLyrics(string artist, string title, ManualResetEvent m_EventStop_SiteSearches)
+ public HotLyrics(string artist, string title, ManualResetEvent m_EventStop_SiteSearches, int timeLimit)
{
+ this.timeLimit = timeLimit;
+ timer = new System.Timers.Timer();
+
if (LyricDiagnostics.TraceSource != null) LyricDiagnostics.TraceSource.TraceEvent(TraceEventType.Information, 0, LyricDiagnostics.ElapsedTimeString() + "SeekLyrics(" + artist + ", " + title + ")");
artist = LyricUtil.RemoveFeatComment(artist);
@@ -96,6 +102,11 @@
WebClient client = new WebClient();
+ timer.Enabled = true;
+ timer.Interval = timeLimit;
+ timer.Elapsed += new ElapsedEventHandler(timer_Elapsed);
+ timer.Start();
+
Uri uri = new Uri(urlString);
client.OpenReadCompleted += new System.Net.OpenReadCompletedEventHandler(callbackMethod);
client.OpenReadAsync(uri);
@@ -197,8 +208,21 @@
{
reply.Close();
}
+
+ if (timer != null)
+ {
+ timer.Stop();
+ timer.Close();
+ }
complete = true;
}
}
+
+ void timer_Elapsed(object sender, ElapsedEventArgs e)
+ {
+ lyric = "Not found";
+ complete = true;
+ Thread.CurrentThread.Abort();
+ }
}
}
Modified: trunk/plugins/MyLyrics/MyLyrics.suo
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <an...@us...> - 2007-05-04 17:08:46
|
Revision: 375
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=375&view=rev
Author: and-81
Date: 2007-05-04 10:08:44 -0700 (Fri, 04 May 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/TV3ExtChannelChanger/Win32.cs
trunk/plugins/TV3MceBlaster/TV3MceBlaster.cs
trunk/plugins/TV3MceBlaster/Win32.cs
Added Paths:
-----------
trunk/plugins/TV3UuirtBlaster/
trunk/plugins/TV3UuirtBlaster/AssemblyInfo.cs
trunk/plugins/TV3UuirtBlaster/ExternalChannelConfig.cs
trunk/plugins/TV3UuirtBlaster/Forms/
trunk/plugins/TV3UuirtBlaster/Forms/BlastCommand.cs
trunk/plugins/TV3UuirtBlaster/Forms/BlastCommand.designer.cs
trunk/plugins/TV3UuirtBlaster/Forms/BlastCommand.resx
trunk/plugins/TV3UuirtBlaster/Forms/ExternalChannels.cs
trunk/plugins/TV3UuirtBlaster/Forms/ExternalChannels.designer.cs
trunk/plugins/TV3UuirtBlaster/Forms/ExternalChannels.resx
trunk/plugins/TV3UuirtBlaster/Forms/ExternalProgram.Designer.cs
trunk/plugins/TV3UuirtBlaster/Forms/ExternalProgram.cs
trunk/plugins/TV3UuirtBlaster/Forms/ExternalProgram.resx
trunk/plugins/TV3UuirtBlaster/Forms/KeysCommand.Designer.cs
trunk/plugins/TV3UuirtBlaster/Forms/KeysCommand.cs
trunk/plugins/TV3UuirtBlaster/Forms/KeysCommand.resx
trunk/plugins/TV3UuirtBlaster/Forms/LearnIR.Designer.cs
trunk/plugins/TV3UuirtBlaster/Forms/LearnIR.cs
trunk/plugins/TV3UuirtBlaster/Forms/LearnIR.resx
trunk/plugins/TV3UuirtBlaster/Forms/MacroEditor.Designer.cs
trunk/plugins/TV3UuirtBlaster/Forms/MacroEditor.cs
trunk/plugins/TV3UuirtBlaster/Forms/MacroEditor.resx
trunk/plugins/TV3UuirtBlaster/Forms/MessageCommand.Designer.cs
trunk/plugins/TV3UuirtBlaster/Forms/MessageCommand.cs
trunk/plugins/TV3UuirtBlaster/Forms/MessageCommand.resx
trunk/plugins/TV3UuirtBlaster/Forms/PauseTime.Designer.cs
trunk/plugins/TV3UuirtBlaster/Forms/PauseTime.cs
trunk/plugins/TV3UuirtBlaster/Forms/PauseTime.resx
trunk/plugins/TV3UuirtBlaster/Forms/PluginSetup.Designer.cs
trunk/plugins/TV3UuirtBlaster/Forms/PluginSetup.cs
trunk/plugins/TV3UuirtBlaster/Forms/PluginSetup.resx
trunk/plugins/TV3UuirtBlaster/Forms/SelectBlasterPort.Designer.cs
trunk/plugins/TV3UuirtBlaster/Forms/SelectBlasterPort.cs
trunk/plugins/TV3UuirtBlaster/Forms/SelectBlasterPort.resx
trunk/plugins/TV3UuirtBlaster/Forms/SerialCommand.Designer.cs
trunk/plugins/TV3UuirtBlaster/Forms/SerialCommand.cs
trunk/plugins/TV3UuirtBlaster/Forms/SerialCommand.resx
trunk/plugins/TV3UuirtBlaster/Forms/StbSetup.Designer.cs
trunk/plugins/TV3UuirtBlaster/Forms/StbSetup.cs
trunk/plugins/TV3UuirtBlaster/Forms/StbSetup.resx
trunk/plugins/TV3UuirtBlaster/TV3UuirtBlaster.cs
trunk/plugins/TV3UuirtBlaster/TV3UuirtBlaster.csproj
trunk/plugins/TV3UuirtBlaster/Util.cs
trunk/plugins/TV3UuirtBlaster/Win32.cs
Modified: trunk/plugins/TV3ExtChannelChanger/Win32.cs
===================================================================
--- trunk/plugins/TV3ExtChannelChanger/Win32.cs 2007-05-04 13:55:10 UTC (rev 374)
+++ trunk/plugins/TV3ExtChannelChanger/Win32.cs 2007-05-04 17:08:44 UTC (rev 375)
@@ -35,11 +35,14 @@
#region Interop
[DllImport("user32")]
- public static extern IntPtr GetForegroundWindow();
+ internal static extern IntPtr GetForegroundWindow();
[DllImport("user32", SetLastError = false)]
- public static extern IntPtr SendMessage(IntPtr windowHandle, int msg, IntPtr wordParam, IntPtr longParam);
+ internal static extern IntPtr SendMessage(IntPtr windowHandle, int msg, IntPtr wordParam, IntPtr longParam);
+ [DllImport("user32", SetLastError = true)]
+ internal static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
+
#endregion Interop
}
Modified: trunk/plugins/TV3MceBlaster/TV3MceBlaster.cs
===================================================================
--- trunk/plugins/TV3MceBlaster/TV3MceBlaster.cs 2007-05-04 13:55:10 UTC (rev 374)
+++ trunk/plugins/TV3MceBlaster/TV3MceBlaster.cs 2007-05-04 17:08:44 UTC (rev 375)
@@ -25,7 +25,7 @@
#region Constants
- public const string PluginVersion = "TV3 MCE Blaster Plugin 1.0.2.0";
+ public const string PluginVersion = "TV3 MCE Blaster Plugin 1.0.3.0";
public const int LearnIRTimeout = 4000; // Milliseconds
@@ -67,32 +67,20 @@
/// <summary>
/// returns the name of the plugin
/// </summary>
- public string Name
- {
- get { return "TV3MceBlaster"; }
- }
+ public string Name { get { return "TV3MceBlaster"; } }
/// <summary>
/// returns the version of the plugin
/// </summary>
- public string Version
- {
- get { return "1.0.2.0"; }
- }
+ public string Version { get { return "1.0.3.0"; } }
/// <summary>
/// returns the author of the plugin
/// </summary>
- public string Author
- {
- get { return "and-81"; }
- }
+ public string Author { get { return "and-81"; } }
/// <summary>
/// returns if the plugin should only run on the master server
/// or also on slave servers
/// </summary>
- public bool MasterOnly
- {
- get { return false; }
- }
+ public bool MasterOnly { get { return false; } }
public static MceIrApi.BlasterType BlastType
{
@@ -379,7 +367,9 @@
/// Process the supplied Macro file.
/// </summary>
/// <param name="fileName">Macro file to process.</param>
- /// <returns>Sucess.</returns>
+ /// <param name="port">Initial blaster port.</param>
+ /// <param name="speed">Initial blaster speed.</param>
+ /// <returns></returns>
public static bool ProcessMacro(string fileName, MceIrApi.BlasterPort port, MceIrApi.BlasterSpeed speed)
{
FileStream file = null;
Modified: trunk/plugins/TV3MceBlaster/Win32.cs
===================================================================
--- trunk/plugins/TV3MceBlaster/Win32.cs 2007-05-04 13:55:10 UTC (rev 374)
+++ trunk/plugins/TV3MceBlaster/Win32.cs 2007-05-04 17:08:44 UTC (rev 375)
@@ -35,11 +35,14 @@
#region Interop
[DllImport("user32")]
- public static extern IntPtr GetForegroundWindow();
+ internal static extern IntPtr GetForegroundWindow();
[DllImport("user32", SetLastError = false)]
- public static extern IntPtr SendMessage(IntPtr windowHandle, int msg, IntPtr wordParam, IntPtr longParam);
+ internal static extern IntPtr SendMessage(IntPtr windowHandle, int msg, IntPtr wordParam, IntPtr longParam);
+ [DllImport("user32", SetLastError = true)]
+ internal static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
+
#endregion Interop
}
Added: trunk/plugins/TV3UuirtBlaster/AssemblyInfo.cs
===================================================================
--- trunk/plugins/TV3UuirtBlaster/AssemblyInfo.cs (rev 0)
+++ trunk/plugins/TV3UuirtBlaster/AssemblyInfo.cs 2007-05-04 17:08:44 UTC (rev 375)
@@ -0,0 +1,71 @@
+using System;
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Security.Permissions;
+
+//
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+//
+[assembly: AssemblyTitle("TV3 USB-UIRT Blaster Plugin")]
+[assembly: AssemblyDescription("USB-UIRT Blaster for TV Engine 3")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("and-81")]
+[assembly: AssemblyProduct("MediaPortal")]
+[assembly: AssemblyCopyright("Aaron Dinnage")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+//
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+
+[assembly: AssemblyVersion("1.0.3.0")]
+[assembly: AssemblyFileVersionAttribute("1.0.3.0")]
+
+//
+// In order to sign your assembly you must specify a key to use. Refer to the
+// Microsoft .NET Framework documentation for more information on assembly signing.
+//
+// Use the attributes below to control which key is used for signing.
+//
+// Notes:
+// (*) If no key is specified, the assembly is not signed.
+// (*) KeyName refers to a key that has been installed in the Crypto Service
+// Provider (CSP) on your machine. KeyFile refers to a file which contains
+// a key.
+// (*) If the KeyFile and the KeyName values are both specified, the
+// following processing occurs:
+// (1) If the KeyName can be found in the CSP, that key is used.
+// (2) If the KeyName does not exist and the KeyFile does exist, the key
+// in the KeyFile is installed into the CSP and used.
+// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
+// When specifying the KeyFile, the location of the KeyFile should be
+// relative to the project output directory which is
+// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
+// located in the project directory, you would specify the AssemblyKeyFile
+// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
+// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
+// documentation for more information on this.
+//
+[assembly: AssemblyDelaySign(false)]
+[assembly: AssemblyKeyFile("")]
+[assembly: AssemblyKeyName("")]
+
+[assembly: CLSCompliant(true)]
+
+[assembly: SecurityPermission(SecurityAction.RequestMinimum, UnmanagedCode = true)]
Added: trunk/plugins/TV3UuirtBlaster/ExternalChannelConfig.cs
===================================================================
--- trunk/plugins/TV3UuirtBlaster/ExternalChannelConfig.cs (rev 0)
+++ trunk/plugins/TV3UuirtBlaster/ExternalChannelConfig.cs 2007-05-04 17:08:44 UTC (rev 375)
@@ -0,0 +1,198 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text;
+using System.Xml;
+
+using TvLibrary.Log;
+
+namespace TvEngine
+{
+
+ public class ExternalChannelConfig
+ {
+
+ #region Variables
+
+ string _fileName;
+
+ int _cardID = -1;
+
+ int _pauseTime = 250;
+ bool _sendSelect = false;
+ bool _doubleChannelSelect = false;
+ int _repeatChannelCommands = 0;
+ int _channelDigits = 0;
+ int _repeatPauseTime = 1000;
+ bool _usePreChangeCommand = false;
+
+ string _selectCommand = "";
+ string _preChangeCommand = "";
+ string[] _digits = new string[10];
+
+ #endregion Variables
+
+ #region Properties
+
+ public string FileName
+ {
+ get { return _fileName; }
+ }
+
+ public int CardId
+ {
+ get { return _cardID; }
+ set { _cardID = value; }
+ }
+
+ public int PauseTime
+ {
+ get { return _pauseTime; }
+ set { _pauseTime = value; }
+ }
+ public bool SendSelect
+ {
+ get { return _sendSelect; }
+ set { _sendSelect = value; }
+ }
+ public bool DoubleChannelSelect
+ {
+ get { return _doubleChannelSelect; }
+ set { _doubleChannelSelect = value; }
+ }
+ public int RepeatChannelCommands
+ {
+ get { return _repeatChannelCommands; }
+ set { _repeatChannelCommands = value; }
+ }
+ public int ChannelDigits
+ {
+ get { return _channelDigits; }
+ set { _channelDigits = value; }
+ }
+ public int RepeatPauseTime
+ {
+ get { return _repeatPauseTime; }
+ set { _repeatPauseTime = value; }
+ }
+ public bool UsePreChangeCommand
+ {
+ get { return _usePreChangeCommand; }
+ set { _usePreChangeCommand = value; }
+ }
+
+ public string[] Digits
+ {
+ get { return _digits; }
+ set { _digits = value; }
+ }
+ public string SelectCommand
+ {
+ get { return _selectCommand; }
+ set { _selectCommand = value; }
+ }
+ public string PreChangeCommand
+ {
+ get { return _preChangeCommand; }
+ set { _preChangeCommand = value; }
+ }
+
+ #endregion Properties
+
+ #region Constructor
+
+ public ExternalChannelConfig(int cardId, string fileName)
+ {
+ _fileName = fileName;
+
+ _cardID = cardId;
+
+ if (!File.Exists(_fileName))
+ {
+ for (int i = 0; i < 10; i++)
+ Digits[i] = "";
+
+ return;
+ }
+
+ FileStream file = null;
+
+ try
+ {
+ file = new FileStream(_fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
+
+ XmlDocument doc = new XmlDocument();
+ doc.Load(file);
+
+ XmlNodeList nodeList = doc.DocumentElement.ChildNodes;
+
+ PauseTime = Util.GetXmlInt(nodeList, "PauseTime", PauseTime);
+ UsePreChangeCommand = Util.GetXmlBool(nodeList, "UsePreChangeCommand", UsePreChangeCommand);
+ SendSelect = Util.GetXmlBool(nodeList, "SendSelect", SendSelect);
+ DoubleChannelSelect = Util.GetXmlBool(nodeList, "DoubleChannelSelect", DoubleChannelSelect);
+ RepeatChannelCommands = Util.GetXmlInt(nodeList, "RepeatChannelCommands", RepeatChannelCommands);
+ ChannelDigits = Util.GetXmlInt(nodeList, "ChannelDigits", ChannelDigits);
+ RepeatPauseTime = Util.GetXmlInt(nodeList, "RepeatDelay", RepeatPauseTime);
+
+ SelectCommand = Util.GetXmlString(nodeList, "SelectCommand", SelectCommand);
+ PreChangeCommand = Util.GetXmlString(nodeList, "PreChangeCommand", PreChangeCommand);
+
+ for (int i = 0; i < 10; i++)
+ Digits[i] = Util.GetXmlString(nodeList, "Digit" + i.ToString(), "");
+ }
+ catch (Exception ex)
+ {
+ Log.Error("TV3UuirtBlaster: ExternalChannelConfig() {0}", ex.Message);
+ }
+
+ if (file != null)
+ file.Close();
+ }
+
+ #endregion Constructor
+
+ public void SaveExternalChannelConfig()
+ {
+ FileStream file = null;
+
+ try
+ {
+ file = new FileStream(_fileName, FileMode.Create, FileAccess.Write, FileShare.Read);
+
+ XmlTextWriter writer = new XmlTextWriter(file, System.Text.Encoding.UTF8);
+ writer.Formatting = Formatting.Indented;
+ writer.Indentation = 1;
+ writer.IndentChar = (char)9;
+ writer.WriteStartDocument(true);
+ writer.WriteStartElement("config"); // <config>
+
+ writer.WriteElementString("PauseTime", PauseTime.ToString());
+ writer.WriteElementString("UsePreChangeCommand", UsePreChangeCommand.ToString());
+ writer.WriteElementString("SendSelect", SendSelect.ToString());
+ writer.WriteElementString("DoubleChannelSelect", DoubleChannelSelect.ToString());
+ writer.WriteElementString("ChannelDigits", ChannelDigits.ToString());
+ writer.WriteElementString("RepeatChannelCommands", RepeatChannelCommands.ToString());
+ writer.WriteElementString("RepeatDelay", RepeatPauseTime.ToString());
+
+ writer.WriteElementString("SelectCommand", SelectCommand);
+ writer.WriteElementString("PreChangeCommand", PreChangeCommand);
+
+ for (int i = 0; i < 10; i++)
+ writer.WriteElementString("Digit" + i.ToString(), Digits[i]);
+
+ writer.WriteEndElement(); // </config>
+ writer.WriteEndDocument();
+ writer.Close();
+ }
+ catch (Exception ex)
+ {
+ Log.Error("TV3UuirtBlaster: SaveExternalChannelConfig() {0}", ex.Message);
+ }
+
+ if (file != null)
+ file.Close();
+ }
+
+ }
+
+}
Added: trunk/plugins/TV3UuirtBlaster/Forms/BlastCommand.cs
===================================================================
--- trunk/plugins/TV3UuirtBlaster/Forms/BlastCommand.cs (rev 0)
+++ trunk/plugins/TV3UuirtBlaster/Forms/BlastCommand.cs 2007-05-04 17:08:44 UTC (rev 375)
@@ -0,0 +1,84 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+
+namespace TvEngine
+{
+
+ public partial class BlastCommand : Form
+ {
+
+ #region Properties
+
+ public string CommandString
+ {
+ get
+ {
+ return string.Format("{0}|{1}",
+ labelIRCommandFile.Text,
+ (string)comboBoxPort.SelectedItem);
+ }
+ }
+
+ #endregion Properties
+
+ #region Constructors
+
+ public BlastCommand(string file)
+ {
+ InitializeComponent();
+
+ labelIRCommandFile.Text = file;
+
+ comboBoxPort.Items.AddRange(Enum.GetNames(typeof(BlasterPort)));
+ comboBoxPort.SelectedIndex = 0;
+ }
+ public BlastCommand(string[] commands)
+ {
+ InitializeComponent();
+
+ if (commands == null)
+ return;
+
+ labelIRCommandFile.Text = commands[0];
+
+ comboBoxPort.Items.AddRange(Enum.GetNames(typeof(BlasterPort)));
+ comboBoxPort.SelectedItem = commands[1];
+ }
+
+ #endregion Constructors
+
+ #region Buttons
+
+ private void buttonOK_Click(object sender, EventArgs e)
+ {
+ this.DialogResult = DialogResult.OK;
+ this.Close();
+ }
+
+ private void buttonCancel_Click(object sender, EventArgs e)
+ {
+ this.DialogResult = DialogResult.Cancel;
+ this.Close();
+ }
+
+ private void buttonTest_Click(object sender, EventArgs e)
+ {
+ string fileName = labelIRCommandFile.Text.Trim();
+
+ if (fileName.Length == 0)
+ return;
+
+ TV3UuirtBlaster.BlastIR(TV3UuirtBlaster.AppDataFolder + TV3UuirtBlaster.IRFolder + fileName + TV3UuirtBlaster.IRExtension,
+ (BlasterPort)Enum.Parse(typeof(BlasterPort), (string)comboBoxPort.SelectedItem));
+ }
+
+ #endregion Buttons
+
+ }
+
+}
Added: trunk/plugins/TV3UuirtBlaster/Forms/BlastCommand.designer.cs
===================================================================
--- trunk/plugins/TV3UuirtBlaster/Forms/BlastCommand.designer.cs (rev 0)
+++ trunk/plugins/TV3UuirtBlaster/Forms/BlastCommand.designer.cs 2007-05-04 17:08:44 UTC (rev 375)
@@ -0,0 +1,152 @@
+namespace TvEngine
+{
+
+ partial class BlastCommand
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.labelIRFile = new System.Windows.Forms.Label();
+ this.labelBlasterPort = new System.Windows.Forms.Label();
+ this.comboBoxPort = new System.Windows.Forms.ComboBox();
+ this.labelIRCommandFile = new System.Windows.Forms.Label();
+ this.buttonTest = new System.Windows.Forms.Button();
+ this.buttonOK = new System.Windows.Forms.Button();
+ this.buttonCancel = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // labelIRFile
+ //
+ this.labelIRFile.Location = new System.Drawing.Point(8, 8);
+ this.labelIRFile.Name = "labelIRFile";
+ this.labelIRFile.Size = new System.Drawing.Size(88, 20);
+ this.labelIRFile.TabIndex = 0;
+ this.labelIRFile.Text = "IR Command:";
+ this.labelIRFile.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // labelBlasterPort
+ //
+ this.labelBlasterPort.Location = new System.Drawing.Point(8, 40);
+ this.labelBlasterPort.Name = "labelBlasterPort";
+ this.labelBlasterPort.Size = new System.Drawing.Size(88, 21);
+ this.labelBlasterPort.TabIndex = 2;
+ this.labelBlasterPort.Text = "Blaster port:";
+ this.labelBlasterPort.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // comboBoxPort
+ //
+ this.comboBoxPort.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.comboBoxPort.FormattingEnabled = true;
+ this.comboBoxPort.Location = new System.Drawing.Point(96, 40);
+ this.comboBoxPort.Name = "comboBoxPort";
+ this.comboBoxPort.Size = new System.Drawing.Size(104, 21);
+ this.comboBoxPort.TabIndex = 3;
+ //
+ // labelIRCommandFile
+ //
+ this.labelIRCommandFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.labelIRCommandFile.AutoEllipsis = true;
+ this.labelIRCommandFile.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+ this.labelIRCommandFile.Location = new System.Drawing.Point(96, 8);
+ this.labelIRCommandFile.Name = "labelIRCommandFile";
+ this.labelIRCommandFile.Size = new System.Drawing.Size(184, 20);
+ this.labelIRCommandFile.TabIndex = 1;
+ this.labelIRCommandFile.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // buttonTest
+ //
+ this.buttonTest.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.buttonTest.Location = new System.Drawing.Point(8, 72);
+ this.buttonTest.Name = "buttonTest";
+ this.buttonTest.Size = new System.Drawing.Size(56, 24);
+ this.buttonTest.TabIndex = 4;
+ this.buttonTest.Text = "Test";
+ this.buttonTest.UseVisualStyleBackColor = true;
+ this.buttonTest.Click += new System.EventHandler(this.buttonTest_Click);
+ //
+ // buttonOK
+ //
+ this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonOK.Location = new System.Drawing.Point(160, 72);
+ this.buttonOK.Name = "buttonOK";
+ this.buttonOK.Size = new System.Drawing.Size(56, 24);
+ this.buttonOK.TabIndex = 5;
+ this.buttonOK.Text = "OK";
+ this.buttonOK.UseVisualStyleBackColor = true;
+ this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
+ //
+ // buttonCancel
+ //
+ this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+ this.buttonCancel.Location = new System.Drawing.Point(224, 72);
+ this.buttonCancel.Name = "buttonCancel";
+ this.buttonCancel.Size = new System.Drawing.Size(56, 24);
+ this.buttonCancel.TabIndex = 6;
+ this.buttonCancel.Text = "Cancel";
+ this.buttonCancel.UseVisualStyleBackColor = true;
+ this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
+ //
+ // BlastCommand
+ //
+ this.AcceptButton = this.buttonOK;
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.CancelButton = this.buttonCancel;
+ this.ClientSize = new System.Drawing.Size(288, 104);
+ this.Controls.Add(this.buttonOK);
+ this.Controls.Add(this.buttonCancel);
+ this.Controls.Add(this.buttonTest);
+ this.Controls.Add(this.labelIRCommandFile);
+ this.Controls.Add(this.labelBlasterPort);
+ this.Controls.Add(this.comboBoxPort);
+ this.Controls.Add(this.labelIRFile);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.MinimumSize = new System.Drawing.Size(294, 136);
+ this.Name = "BlastCommand";
+ this.ShowIcon = false;
+ this.ShowInTaskbar = false;
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "Blast Command";
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label labelIRFile;
+ private System.Windows.Forms.Label labelBlasterPort;
+ private System.Windows.Forms.ComboBox comboBoxPort;
+ private System.Windows.Forms.Label labelIRCommandFile;
+ private System.Windows.Forms.Button buttonTest;
+ private System.Windows.Forms.Button buttonOK;
+ private System.Windows.Forms.Button buttonCancel;
+ }
+
+}
Added: trunk/plugins/TV3UuirtBlaster/Forms/BlastCommand.resx
===================================================================
--- trunk/plugins/TV3UuirtBlaster/Forms/BlastCommand.resx (rev 0)
+++ trunk/plugins/TV3UuirtBlaster/Forms/BlastCommand.resx 2007-05-04 17:08:44 UTC (rev 375)
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
Added: trunk/plugins/TV3UuirtBlaster/Forms/ExternalChannels.cs
===================================================================
--- trunk/plugins/TV3UuirtBlaster/Forms/ExternalChannels.cs (rev 0)
+++ trunk/plugins/TV3UuirtBlaster/Forms/ExternalChannels.cs 2007-05-04 17:08:44 UTC (rev 375)
@@ -0,0 +1,253 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Diagnostics;
+using System.Drawing;
+using System.IO;
+using System.Text;
+using System.Threading;
+using System.Windows.Forms;
+using System.Xml;
+
+namespace TvEngine
+{
+
+ public partial class ExternalChannels : Form
+ {
+
+ #region Variables
+
+ StbSetup[] _tvCardStbSetups;
+
+ #endregion Variables
+
+ #region Constructor
+
+ public ExternalChannels()
+ {
+ InitializeComponent();
+ }
+
+ #endregion Constructor
+
+ private void ExternalChannels_Load(object sender, EventArgs e)
+ {
+ IList cards = TvDatabase.Card.ListAll();
+
+ _tvCardStbSetups = new StbSetup[cards.Count];
+
+ comboBoxCopyFrom.Items.Clear();
+
+ TabPage tempPage;
+ int index = 0;
+
+ foreach (TvDatabase.Card card in cards)
+ {
+ comboBoxCopyFrom.Items.Add(card.IdCard);
+
+ _tvCardStbSetups[index] = new StbSetup(card.IdCard);
+ _tvCardStbSetups[index].Name = string.Format("StbSetup{0}", index);
+ _tvCardStbSetups[index].Dock = DockStyle.Fill;
+ _tvCardStbSetups[index].TabIndex = 0;
+
+ tempPage = new TabPage(string.Format("TV Card {0}", index + 1));
+ tempPage.Controls.Add(_tvCardStbSetups[index]);
+
+ this.tabControlTVCards.TabPages.Add(tempPage);
+
+ index++;
+ }
+
+ comboBoxCopyFrom.SelectedIndex = 0;
+
+ // Setup quick setup combo box
+ string[] quickSetupFiles = Directory.GetFiles(TV3UuirtBlaster.AppDataFolder + TV3UuirtBlaster.STBFolder, "*.xml", SearchOption.TopDirectoryOnly);
+ foreach (string file in quickSetupFiles)
+ comboBoxQuickSetup.Items.Add(Path.GetFileNameWithoutExtension(file));
+
+ comboBoxQuickSetup.Items.Add("Clear all");
+ }
+
+ static bool ProcessExternalChannelProgram(string runCommand, int currentChannelDigit, string fullChannelString)
+ {
+ string[] commands = TV3UuirtBlaster.SplitRunCommand(runCommand);
+
+ if (commands == null)
+ return false;
+
+ commands[2] = commands[2].Replace("%1", currentChannelDigit.ToString());
+ commands[2] = commands[2].Replace("%2", fullChannelString);
+
+ return TV3UuirtBlaster.ProcessRunCommand(commands);
+ }
+
+ static bool ProcessSerialCommand(string serialCommand, int currentChannelDigit, string fullChannelString)
+ {
+ string[] commands = TV3UuirtBlaster.SplitSerialCommand(serialCommand);
+
+ if (commands == null)
+ return false;
+
+ commands[0] = commands[0].Replace("%1", currentChannelDigit.ToString());
+ commands[0] = commands[0].Replace("%2", fullChannelString);
+
+ return TV3UuirtBlaster.ProcessSerialCommand(commands);
+
+ }
+
+ #region Buttons
+
+ private void buttonOK_Click(object sender, EventArgs e)
+ {
+ foreach (StbSetup setup in _tvCardStbSetups)
+ {
+ setup.Save();
+ TV3UuirtBlaster.GetExternalChannelConfig(setup.CardId).SaveExternalChannelConfig();
+ }
+
+ this.DialogResult = DialogResult.OK;
+ this.Close();
+ }
+
+ private void buttonTest_Click(object sender, EventArgs e)
+ {
+ StbSetup setup = _tvCardStbSetups[tabControlTVCards.SelectedIndex];
+
+ int channelTest = Decimal.ToInt32(numericUpDownTest.Value);
+ string channel;
+ switch (setup.ChannelDigits)
+ {
+ case 2:
+ channel = channelTest.ToString("00");
+ break;
+
+ case 3:
+ channel = channelTest.ToString("000");
+ break;
+
+ case 4:
+ channel = channelTest.ToString("0000");
+ break;
+
+ default:
+ channel = channelTest.ToString();
+ break;
+ }
+
+ try
+ {
+ int charVal;
+ string command;
+
+ for (int repeatCount = 0; repeatCount <= setup.RepeatChannelCommands; repeatCount++)
+ {
+ if (repeatCount > 0 && setup.RepeatPauseTime > 0)
+ Thread.Sleep(setup.RepeatPauseTime);
+
+ if (setup.UsePreChangeCommand && !String.IsNullOrEmpty(setup.PreChangeCommand))
+ {
+ if (setup.PreChangeCommand.StartsWith(TV3UuirtBlaster.RunCommandPrefix))
+ ProcessExternalChannelProgram(setup.PreChangeCommand.Substring(TV3UuirtBlaster.RunCommandPrefix.Length), -1, channel);
+ else if (setup.PreChangeCommand.StartsWith(TV3UuirtBlaster.SerialCommandPrefix))
+ ProcessSerialCommand(setup.PreChangeCommand.Substring(TV3UuirtBlaster.SerialCommandPrefix.Length), -1, channel);
+ else
+ TV3UuirtBlaster.ProcessCommand(setup.PreChangeCommand);
+
+ if (setup.PauseTime > 0)
+ Thread.Sleep(setup.PauseTime);
+ }
+
+ foreach (char digit in channel)
+ {
+ charVal = digit - 48;
+
+ command = setup.Digits[charVal];
+ if (!String.IsNullOrEmpty(command))
+ {
+ if (command.StartsWith(TV3UuirtBlaster.RunCommandPrefix))
+ ProcessExternalChannelProgram(command.Substring(TV3UuirtBlaster.RunCommandPrefix.Length), charVal, channel);
+ else if (command.StartsWith(TV3UuirtBlaster.SerialCommandPrefix))
+ ProcessSerialCommand(command.Substring(TV3UuirtBlaster.SerialCommandPrefix.Length), charVal, channel);
+ else
+ TV3UuirtBlaster.ProcessCommand(command);
+
+ if (setup.PauseTime > 0)
+ Thread.Sleep(setup.PauseTime);
+ }
+ }
+
+ if (setup.SendSelect && !String.IsNullOrEmpty(setup.SelectCommand))
+ {
+ if (setup.SelectCommand.StartsWith(TV3UuirtBlaster.RunCommandPrefix))
+ {
+ ProcessExternalChannelProgram(setup.SelectCommand.Substring(TV3UuirtBlaster.RunCommandPrefix.Length), -1, channel);
+
+ if (setup.DoubleChannelSelect)
+ {
+ if (setup.PauseTime > 0)
+ Thread.Sleep(setup.PauseTime);
+
+ ProcessExternalChannelProgram(setup.SelectCommand.Substring(TV3UuirtBlaster.RunCommandPrefix.Length), -1, channel);
+ }
+ }
+ else if (setup.SelectCommand.StartsWith(TV3UuirtBlaster.SerialCommandPrefix))
+ {
+ ProcessSerialCommand(setup.SelectCommand.Substring(TV3UuirtBlaster.SerialCommandPrefix.Length), -1, channel);
+
+ if (setup.DoubleChannelSelect)
+ {
+ if (setup.PauseTime > 0)
+ Thread.Sleep(setup.PauseTime);
+
+ ProcessSerialCommand(setup.SelectCommand.Substring(TV3UuirtBlaster.SerialCommandPrefix.Length), -1, channel);
+ }
+ }
+ else
+ {
+ TV3UuirtBlaster.ProcessCommand(setup.SelectCommand);
+
+ if (setup.DoubleChannelSelect)
+ {
+ if (setup.PauseTime > 0)
+ Thread.Sleep(setup.PauseTime);
+
+ TV3UuirtBlaster.ProcessCommand(setup.SelectCommand);
+ }
+ }
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show(ex.Message, "Failed to test external channel", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ }
+ }
+
+ private void buttonQuickSet_Click(object sender, EventArgs e)
+ {
+ string quickSetup = comboBoxQuickSetup.Text;
+
+ if (String.IsNullOrEmpty(quickSetup))
+ return;
+
+ _tvCardStbSetups[tabControlTVCards.SelectedIndex].SetToXml(quickSetup);
+ }
+
+ private void buttonCopyFrom_Click(object sender, EventArgs e)
+ {
+ _tvCardStbSetups[tabControlTVCards.SelectedIndex].SetToCard((int)comboBoxCopyFrom.SelectedItem);
+ }
+
+ private void buttonCancel_Click(object sender, EventArgs e)
+ {
+ this.DialogResult = DialogResult.Cancel;
+ this.Close();
+ }
+
+ #endregion Buttons
+
+ }
+
+}
Added: trunk/plugins/TV3UuirtBlaster/Forms/ExternalChannels.designer.cs
===================================================================
--- trunk/plugins/TV3UuirtBlaster/Forms/ExternalChannels.designer.cs (rev 0)
+++ trunk/plugins/TV3UuirtBlaster/Forms/ExternalChannels.designer.cs 2007-05-04 17:08:44 UTC (rev 375)
@@ -0,0 +1,233 @@
+namespace TvEngine
+{
+ partial class ExternalChannels
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.buttonOK = new System.Windows.Forms.Button();
+ this.groupBoxQuickSetup = new System.Windows.Forms.GroupBox();
+ this.buttonQuickSet = new System.Windows.Forms.Button();
+ this.comboBoxQuickSetup = new System.Windows.Forms.ComboBox();
+ this.groupBoxTest = new System.Windows.Forms.GroupBox();
+ this.labelCh = new System.Windows.Forms.Label();
+ this.buttonTest = new System.Windows.Forms.Button();
+ this.numericUpDownTest = new System.Windows.Forms.NumericUpDown();
+ this.buttonCopyFrom = new System.Windows.Forms.Button();
+ this.comboBoxCopyFrom = new System.Windows.Forms.ComboBox();
+ this.tabControlTVCards = new System.Windows.Forms.TabControl();
+ this.buttonCancel = new System.Windows.Forms.Button();
+ this.groupBoxQuickSetup.SuspendLayout();
+ this.groupBoxTest.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownTest)).BeginInit();
+ this.SuspendLayout();
+ //
+ // buttonOK
+ //
+ this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonOK.Location = new System.Drawing.Point(400, 416);
+ this.buttonOK.Name = "buttonOK";
+ this.buttonOK.Size = new System.Drawing.Size(56, 24);
+ this.buttonOK.TabIndex = 5;
+ this.buttonOK.Text = "OK";
+ this.buttonOK.UseVisualStyleBackColor = true;
+ this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
+ //
+ // groupBoxQuickSetup
+ //
+ this.groupBoxQuickSetup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.groupBoxQuickSetup.Controls.Add(this.buttonQuickSet);
+ this.groupBoxQuickSetup.Controls.Add(this.comboBoxQuickSetup);
+ this.groupBoxQuickSetup.Location = new System.Drawing.Point(8, 360);
+ this.groupBoxQuickSetup.Name = "groupBoxQuickSetup";
+ this.groupBoxQuickSetup.Size = new System.Drawing.Size(288, 48);
+ this.groupBoxQuickSetup.TabIndex = 1;
+ this.groupBoxQuickSetup.TabStop = false;
+ this.groupBoxQuickSetup.Text = "Quick Setup";
+ //
+ // buttonQuickSet
+ //
+ this.buttonQuickSet.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonQuickSet.Location = new System.Drawing.Point(232, 16);
+ this.buttonQuickSet.Name = "buttonQuickSet";
+ this.buttonQuickSet.Size = new System.Drawing.Size(48, 21);
+ this.buttonQuickSet.TabIndex = 1;
+ this.buttonQuickSet.Text = "Set";
+ this.buttonQuickSet.UseVisualStyleBackColor = true;
+ this.buttonQuickSet.Click += new System.EventHandler(this.buttonQuickSet_Click);
+ //
+ // comboBoxQuickSetup
+ //
+ this.comboBoxQuickSetup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.comboBoxQuickSetup.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.comboBoxQuickSetup.FormattingEnabled = true;
+ this.comboBoxQuickSetup.Location = new System.Drawing.Point(8, 16);
+ this.comboBoxQuickSetup.Name = "comboBoxQuickSetup";
+ this.comboBoxQuickSetup.Size = new System.Drawing.Size(216, 21);
+ this.comboBoxQuickSetup.TabIndex = 0;
+ //
+ // groupBoxTest
+ //
+ this.groupBoxTest.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.groupBoxTest.Controls.Add(this.labelCh);
+ this.groupBoxTest.Controls.Add(this.buttonTest);
+ this.groupBoxTest.Controls.Add(this.numericUpDownTest);
+ this.groupBoxTest.Location = new System.Drawing.Point(304, 360);
+ this.groupBoxTest.Name = "groupBoxTest";
+ this.groupBoxTest.Size = new System.Drawing.Size(216, 48);
+ this.groupBoxTest.TabIndex = 2;
+ this.groupBoxTest.TabStop = false;
+ this.groupBoxTest.Text = "Test";
+ //
+ // labelCh
+ //
+ this.labelCh.Location = new System.Drawing.Point(8, 16);
+ this.labelCh.Name = "labelCh";
+ this.labelCh.Size = new System.Drawing.Size(64, 20);
+ this.labelCh.TabIndex = 0;
+ this.labelCh.Text = "Channel:";
+ this.labelCh.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // buttonTest
+ //
+ this.buttonTest.Location = new System.Drawing.Point(152, 16);
+ this.buttonTest.Name = "buttonTest";
+ this.buttonTest.Size = new System.Drawing.Size(56, 20);
+ this.buttonTest.TabIndex = 2;
+ this.buttonTest.Text = "Test";
+ this.buttonTest.UseVisualStyleBackColor = true;
+ this.buttonTest.Click += new System.EventHandler(this.buttonTest_Click);
+ //
+ // numericUpDownTest
+ //
+ this.numericUpDownTest.Location = new System.Drawing.Point(72, 16);
+ this.numericUpDownTest.Maximum = new decimal(new int[] {
+ 9999,
+ 0,
+ 0,
+ 0});
+ this.numericUpDownTest.Name = "numericUpDownTest";
+ this.numericUpDownTest.Size = new System.Drawing.Size(72, 20);
+ this.numericUpDownTest.TabIndex = 1;
+ this.numericUpDownTest.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.numericUpDownTest.Value = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ //
+ // buttonCopyFrom
+ //
+ this.buttonCopyFrom.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.buttonCopyFrom.Location = new System.Drawing.Point(8, 416);
+ this.buttonCopyFrom.Name = "buttonCopyFrom";
+ this.buttonCopyFrom.Size = new System.Drawing.Size(144, 21);
+ this.buttonCopyFrom.TabIndex = 3;
+ this.buttonCopyFrom.Text = "Copy from saved config:";
+ this.buttonCopyFrom.UseVisualStyleBackColor = true;
+ this.buttonCopyFrom.Click += new System.EventHandler(this.buttonCopyFrom_Click);
+ //
+ // comboBoxCopyFrom
+ //
+ this.comboBoxCopyFrom.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.comboBoxCopyFrom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.comboBoxCopyFrom.FormattingEnabled = true;
+ this.comboBoxCopyFrom.Location = new System.Drawing.Point(160, 416);
+ this.comboBoxCopyFrom.Name = "comboBoxCopyFrom";
+ this.comboBoxCopyFrom.Size = new System.Drawing.Size(120, 21);
+ this.comboBoxCopyFrom.TabIndex = 4;
+ //
+ // tabControlTVCards
+ //
+ this.tabControlTVCards.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.tabControlTVCards.Location = new System.Drawing.Point(8, 8);
+ this.tabControlTVCards.Name = "tabControlTVCards";
+ this.tabControlTVCards.SelectedIndex = 0;
+ this.tabControlTVCards.Size = new System.Drawing.Size(512, 344);
+ this.tabControlTVCards.TabIndex = 0;
+ //
+ // buttonCancel
+ //
+ this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+ this.buttonCancel.Location = new System.Drawing.Point(464, 416);
+ this.buttonCancel.Name = "buttonCancel";
+ this.buttonCancel.Size = new System.Drawing.Size(56, 24);
+ this.buttonCancel.TabIndex = 6;
+ this.buttonCancel.Text = "Cancel";
+ this.buttonCancel.UseVisualStyleBackColor = true;
+ this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
+ //
+ // ExternalChannels
+ //
+ this.AcceptButton = this.buttonOK;
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.CancelButton = this.buttonCancel;
+ this.ClientSize = new System.Drawing.Size(528, 447);
+ this.Controls.Add(this.buttonCancel);
+ this.Controls.Add(this.tabControlTVCards);
+ this.Controls.Add(this.comboBoxCopyFrom);
+ this.Controls.Add(this.buttonCopyFrom);
+ this.Controls.Add(this.groupBoxTest);
+ this.Controls.Add(this.groupBoxQuickSetup);
+ this.Controls.Add(this.buttonOK);
+ this.MinimizeBox = false;
+ this.MinimumSize = new System.Drawing.Size(536, 474);
+ this.Name = "ExternalChannels";
+ this.ShowIcon = false;
+ this.ShowInTaskbar = false;
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "External Channel Changing";
+ this.Load += new System.EventHandler(this.ExternalChannels_Load);
+ this.groupBoxQuickSetup.ResumeLayout(false);
+ this.groupBoxTest.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownTest)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button buttonOK;
+ private System.Windows.Forms.GroupBox groupBoxQuickSetup;
+ private System.Windows.Forms.ComboBox comboBoxQuickSetup;
+ private System.Windows.Forms.GroupBox groupBoxTest;
+ private System.Windows.Forms.NumericUpDown numericUpDownTest;
+ private System.Windows.Forms.Button buttonTest;
+ private System.Windows.Forms.Button buttonQuickSet;
+ private System.Windows.Forms.Label labelCh;
+ private System.Windows.Forms.Button buttonCopyFrom;
+ private System.Windows.Forms.ComboBox comboBoxCopyFrom;
+ private System.Windows.Forms.TabControl tabControlTVCards;
+ private System.Windows.Forms.Button buttonCancel;
+
+ }
+}
\ No newline at end of file
Added: trunk/plugins/TV3UuirtBlaster/Forms/ExternalChannels.resx
===================================================================
--- trunk/plugins/TV3UuirtBlaster/Forms/ExternalChannels.resx (rev 0)
+++ trunk/plugins/TV3UuirtBlaster/Forms/ExternalChannels.resx 2007-05-04 17:08:44 UTC (rev 375)
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
Added: trunk/plugins/TV3UuirtBlaster/Forms/ExternalProgram.Designer.cs
===================================================================
--- trunk/plugins/TV3UuirtBlaster/Forms/ExternalProgram.Designer.cs (rev 0)
+++ trunk/plugins/TV3UuirtBlaster/Forms/ExternalProgram.Designer.cs 2007-05-04 17:08:44 UTC (rev 375)
@@ -0,0 +1,294 @@
+namespace TvEngine
+{
+ partial class ExternalProgram
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.textBoxProgram = new System.Windows.Forms.TextBox();
+ this.labelProgram = new System.Windows.Forms.Label();
+ this.buttonProgam = new System.Windows.Forms.Button();
+ this.buttonStartup = new System.Windows.Forms.Button();
+ this.labelStartup = new System.Windows.Forms.Label();
+ this.textBoxStartup = new System.Windows.Forms.TextBox();
+ this.buttonOK = new System.Windows.Forms.Button();
+ this.buttonCancel = new System.Windows.Forms.Button();
+ this.labelParameters = new System.Windows.Forms.Label();
+ this.textBoxParameters = new System.Windows.Forms.TextBox();
+ this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
+ this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
+ this.buttonParamQuestion = new System.Windows.Forms.Button();
+ this.checkBoxShellExecute = new System.Windows.Forms.CheckBox();
+ this.buttonTest = new System.Windows.Forms.Button();
+ this.checkBoxNoWindow = new System.Windows.Forms.CheckBox();
+ this.checkBoxWaitForExit = new System.Windows.Forms.CheckBox();
+ this.comboBoxWindowStyle = new System.Windows.Forms.ComboBox();
+ this.labelWindowStyle = new System.Windows.Forms.Label();
+ this.SuspendLayout();
+ //
+ // textBoxProgram
+ //
+ this.textBoxProgram.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.textBoxProgram.Location = new System.Drawing.Point(8, 24);
+ this.textBoxProgram.Name = "textBoxProgram";
+ this.textBoxProgram.Size = new System.Drawing.Size(288, 20);
+ this.textBoxProgram.TabIndex = 1;
+ //
+ // labelProgram
+ //
+ this.labelProgram.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windo...
[truncated message content] |
|
From: <an...@us...> - 2007-05-04 13:55:12
|
Revision: 374
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=374&view=rev
Author: and-81
Date: 2007-05-04 06:55:10 -0700 (Fri, 04 May 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/IgorPlugUSB/Config.cs
trunk/plugins/IgorPlugUSB/IgorPlugUSB.cs
Modified: trunk/plugins/IgorPlugUSB/Config.cs
===================================================================
--- trunk/plugins/IgorPlugUSB/Config.cs 2007-05-04 13:31:38 UTC (rev 373)
+++ trunk/plugins/IgorPlugUSB/Config.cs 2007-05-04 13:55:10 UTC (rev 374)
@@ -25,6 +25,8 @@
private void Config_Load(object sender, EventArgs e)
{
+ listViewButtons.Items.Clear();
+
foreach (MappedKeyCode mKC in IgorPlugUSB.KeyCodes)
{
listViewButtons.Items.Add(
@@ -48,7 +50,7 @@
private void buttonOK_Click(object sender, EventArgs e)
{
- IgorPlugUSB.KeyCodes = new List<MappedKeyCode>();
+ IgorPlugUSB.KeyCodes.Clear();
foreach (ListViewItem item in listViewButtons.Items)
IgorPlugUSB.KeyCodes.Add(new MappedKeyCode(item.SubItems[0].Text, item.SubItems[1].Text));
Modified: trunk/plugins/IgorPlugUSB/IgorPlugUSB.cs
===================================================================
--- trunk/plugins/IgorPlugUSB/IgorPlugUSB.cs 2007-05-04 13:31:38 UTC (rev 373)
+++ trunk/plugins/IgorPlugUSB/IgorPlugUSB.cs 2007-05-04 13:55:10 UTC (rev 374)
@@ -72,6 +72,8 @@
try
{
+ LoadRemote();
+
_inputHandler = new InputHandler(InputHandler);
_readThread = new Thread(new ThreadStart(ReadThread));
@@ -127,6 +129,8 @@
void LoadRemote()
{
+ KeyCodes.Clear();
+
XmlDocument doc = new XmlDocument();
doc.Load(RemoteFile);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <an...@us...> - 2007-05-04 13:31:41
|
Revision: 373
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=373&view=rev
Author: and-81
Date: 2007-05-04 06:31:38 -0700 (Fri, 04 May 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/IgorPlugUSB/IgorPlugUSB.csproj
Modified: trunk/plugins/IgorPlugUSB/IgorPlugUSB.csproj
===================================================================
--- trunk/plugins/IgorPlugUSB/IgorPlugUSB.csproj 2007-05-04 13:30:33 UTC (rev 372)
+++ trunk/plugins/IgorPlugUSB/IgorPlugUSB.csproj 2007-05-04 13:31:38 UTC (rev 373)
@@ -85,10 +85,4 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="Config.resx">
- <SubType>Designer</SubType>
- <DependentUpon>Config.cs</DependentUpon>
- </EmbeddedResource>
- </ItemGroup>
</Project>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|