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: <fr...@us...> - 2007-02-01 18:29:13
|
Revision: 72 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=72&view=rev Author: framug Date: 2007-02-01 10:29:11 -0800 (Thu, 01 Feb 2007) Log Message: ----------- remove bin for multishortcut Removed Paths: ------------- trunk/plugins/MultiShortcut/MultiShortcut/bin/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <du...@us...> - 2007-02-01 15:38:17
|
Revision: 71 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=71&view=rev Author: dukus Date: 2007-02-01 07:38:04 -0800 (Thu, 01 Feb 2007) Log Message: ----------- Added ICSharpCode.SharpZipLib.DLL to SVN Modified Paths: -------------- trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj Added Paths: ----------- trunk/plugins/mpinstaler/MPInstaler/bin/ trunk/plugins/mpinstaler/MPInstaler/bin/Debug/ trunk/plugins/mpinstaler/MPInstaler/bin/Debug/ICSharpCode.SharpZipLib.DLL Modified: trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj 2007-02-01 00:58:51 UTC (rev 70) +++ trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj 2007-02-01 15:38:04 UTC (rev 71) @@ -48,7 +48,7 @@ <ItemGroup> <Reference Include="ICSharpCode.SharpZipLib, Version=0.84.0.0, Culture=neutral, PublicKeyToken=1b03e6acf1164f73"> <SpecificVersion>False</SpecificVersion> - <HintPath>G:\Program Files\Team MediaPortal\MediaPortal\ICSharpCode.SharpZipLib.DLL</HintPath> + <HintPath>D:\Program Files\Team MediaPortal\MediaPortal\ICSharpCode.SharpZipLib.DLL</HintPath> </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> Added: trunk/plugins/mpinstaler/MPInstaler/bin/Debug/ICSharpCode.SharpZipLib.DLL =================================================================== (Binary files differ) Property changes on: trunk/plugins/mpinstaler/MPInstaler/bin/Debug/ICSharpCode.SharpZipLib.DLL ___________________________________________________________________ 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: Fnee F. <fn...@fr...> - 2007-02-01 07:20:22
|
Hi dukus, I see your plugin on the SVN MP plugins site. What is it purpose ? Is it = to install plugin or something like this ? I download the sources and try to compile it but a reference is missing : ICSharpCode.SharpZipLib Where can I find it ? Can you put it with sources ? Thanks zebons ----- Original Message -----=20 From: <du...@us...> To: <mp-...@li...> Sent: Wednesday, January 31, 2007 11:14 PM Subject: [Mp-plugins-svn] SF.net SVN: mp-plugins: [68] trunk/plugins > Revision: 68 > http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3D68&vie= w=3Drev > Author: dukus > Date: 2007-01-31 14:14:04 -0800 (Wed, 31 Jan 2007) > > Log Message: > ----------- > > > Added Paths: > ----------- > trunk/plugins/mpinstaler/ > trunk/plugins/mpinstaler/MPInstaler/ > trunk/plugins/mpinstaler/MPInstaler/Build dialog.Designer.cs > trunk/plugins/mpinstaler/MPInstaler/Build dialog.cs > trunk/plugins/mpinstaler/MPInstaler/Build dialog.resx > trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs > trunk/plugins/mpinstaler/MPInstaler/Form1.cs > trunk/plugins/mpinstaler/MPInstaler/Form1.resx > trunk/plugins/mpinstaler/MPInstaler/Form2.Designer.cs > trunk/plugins/mpinstaler/MPInstaler/Form2.cs > trunk/plugins/mpinstaler/MPInstaler/Form2.resx > trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj > trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj.user > trunk/plugins/mpinstaler/MPInstaler/MPInstaler_TemporaryKey.pfx > trunk/plugins/mpinstaler/MPInstaler/MPinstalerStruct.cs > trunk/plugins/mpinstaler/MPInstaler/OptionForm.Designer.cs > trunk/plugins/mpinstaler/MPInstaler/OptionForm.cs > trunk/plugins/mpinstaler/MPInstaler/OptionForm.resx > trunk/plugins/mpinstaler/MPInstaler/Program.cs > trunk/plugins/mpinstaler/MPInstaler/Properties/ > trunk/plugins/mpinstaler/MPInstaler/Properties/AssemblyInfo.cs > trunk/plugins/mpinstaler/MPInstaler/Properties/Resources.Designer.cs > trunk/plugins/mpinstaler/MPInstaler/Properties/Resources.resx > trunk/plugins/mpinstaler/MPInstaler/Properties/Settings.Designer.cs > trunk/plugins/mpinstaler/MPInstaler/Properties/Settings.settings > trunk/plugins/mpinstaler/MPInstaler/Properties/app.manifest > trunk/plugins/mpinstaler/MPInstaler/SkinSelect.Designer.cs > trunk/plugins/mpinstaler/MPInstaler/SkinSelect.cs > trunk/plugins/mpinstaler/MPInstaler/SkinSelect.resx > trunk/plugins/mpinstaler/MPInstaler/bin/ > trunk/plugins/mpinstaler/MPInstaler/bin/Debug/ > > trunk/plugins/mpinstaler/MPInstaler/bin/Debug/ICSharpCode.SharpZipLib.d= ll > trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.application > trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.exe > trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.exe.manifes= t > trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.pdb > > trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.vshost.applica= tion > trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.vshost.exe > > trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.vshost.exe.man= ifest > trunk/plugins/mpinstaler/MPInstaler/bin/Release/ > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/ICSharpCode.SharpZipLib= .dll > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.applicati= on > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.exe > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.exe.manif= est > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.pdb > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/ > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPIn= staler.application > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPIn= staler_1_0_0_0/ > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPIn= staler_1_0_0_0/AxInterop.WMPLib.dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPIn= staler_1_0_0_0/Core.dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPIn= staler_1_0_0_0/Databases.dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPIn= staler_1_0_0_0/Dialogs.dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPIn= staler_1_0_0_0/DirectShowLib.dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPIn= staler_1_0_0_0/ICSharpCode.SharpZipLib.DLL.deploy > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPIn= staler_1_0_0_0/Interop.WMPLib.dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPIn= staler_1_0_0_0/MPInstaler.exe.deploy > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPIn= staler_1_0_0_0/MPInstaler.exe.manifest > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPIn= staler_1_0_0_0/MediaPortal.Support.dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPIn= staler_1_0_0_0/Utils.dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPIn= staler_1_0_0_0/edtftpnet-1.2.2.dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/setu= p.exe > trunk/plugins/mpinstaler/MPInstaler/bin/Release/q > trunk/plugins/mpinstaler/MPInstaler/obj/ > trunk/plugins/mpinstaler/MPInstaler/obj/Debug/ > > trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.Build_dialog.r= esources > > trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.Form1.resource= s > > trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.Form2.resource= s > > trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.OptionForm.res= ources > > trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.Properties.Res= ources.resources > > trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.SkinSelect.res= ources > trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.TrustInfo.x= ml > trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.application > > trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.csproj.Generat= eResource.Cache > trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.exe > trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.exe.manifes= t > trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.pdb > > trunk/plugins/mpinstaler/MPInstaler/obj/Debug/ResolveAssemblyReference.= cache > trunk/plugins/mpinstaler/MPInstaler/obj/Debug/TempPE/ > trunk/plugins/mpinstaler/MPInstaler/obj/MPInstaler.csproj.FileList.t= xt > trunk/plugins/mpinstaler/MPInstaler/obj/Release/ > > trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.Build_dialog= .resources > > trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.Form1.resour= ces > > trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.Form2.resour= ces > > trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.OptionForm.r= esources > > trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.Properties.R= esources.resources > > trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.SkinSelect.r= esources > > trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.TrustInfo.xm= l > trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.applicati= on > > trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.csproj.Gener= ateResource.Cache > trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.exe > trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.exe.manif= est > trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.pdb > trunk/plugins/mpinstaler/MPInstaler/obj/Release/Refactor/ > > trunk/plugins/mpinstaler/MPInstaler/obj/Release/ResolveAssemblyReferenc= e.cache > trunk/plugins/mpinstaler/MPInstaler/obj/Release/TempPE/ > trunk/plugins/mpinstaler/MPInstaler/publish/ > trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler.application > trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/ > > trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/AxIntero= p.WMPLib.dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/Core.dll= .deploy > > trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/Database= s.dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/Dialogs.= dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/DirectSh= owLib.dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/ICSharpC= ode.SharpZipLib.DLL.deploy > > trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/Interop.= WMPLib.dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/MPInstal= er.exe.deploy > > trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/MPInstal= er.exe.manifest > > trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/MediaPor= tal.Support.dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/Utils.dl= l.deploy > > trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/edtftpne= t-1.2.2.dll.deploy > > trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0.applicat= ion > trunk/plugins/mpinstaler/MPInstaler/publish/setup.exe > trunk/plugins/mpinstaler/MPInstaler.sln > trunk/plugins/mpinstaler/MPInstaler.suo > > Added: trunk/plugins/mpinstaler/MPInstaler/Build dialog.Designer.cs > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- trunk/plugins/mpinstaler/MPInstaler/Build dialog.Designer.cs > (rev 0) > +++ trunk/plugins/mpinstaler/MPInstaler/Build dialog.Designer.cs > 2007-01-31 22:14:04 UTC (rev 68) > @@ -0,0 +1,118 @@ > +namespace MPInstaler > +{ > + partial class Build_dialog > + { > + /// <summary> > + /// Required designer variable. > + /// </summary> > + private System.ComponentModel.IContainer components =3D null; > + > + /// <summary> > + /// Clean up any resources being used. > + /// </summary> > + /// <param name=3D"disposing">true if managed resources should be > disposed; otherwise, false.</param> > + protected override void Dispose(bool disposing) > + { > + if (disposing && (components !=3D 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.saveFileDialog1 =3D new System.Windows.Forms.SaveFileDialog= (); > + this.textBox1 =3D new System.Windows.Forms.TextBox(); > + this.label1 =3D new System.Windows.Forms.Label(); > + this.button1 =3D new System.Windows.Forms.Button(); > + this.button2 =3D new System.Windows.Forms.Button(); > + this.button3 =3D new System.Windows.Forms.Button(); > + this.SuspendLayout(); > + // > + // saveFileDialog1 > + // > + this.saveFileDialog1.DefaultExt =3D "mpi"; > + this.saveFileDialog1.Filter =3D "MPI files|*.mpi|ZIP files|*.zip= |All > files|*.*"; > + // > + // textBox1 > + // > + this.textBox1.Location =3D new System.Drawing.Point(12, 23); > + this.textBox1.Name =3D "textBox1"; > + this.textBox1.Size =3D new System.Drawing.Size(484, 20); > + this.textBox1.TabIndex =3D 0; > + // > + // label1 > + // > + this.label1.AutoSize =3D true; > + this.label1.Location =3D new System.Drawing.Point(9, 7); > + this.label1.Name =3D "label1"; > + this.label1.Size =3D new System.Drawing.Size(58, 13); > + this.label1.TabIndex =3D 1; > + this.label1.Text =3D "File name :"; > + // > + // button1 > + // > + this.button1.Location =3D new System.Drawing.Point(502, 23); > + this.button1.Name =3D "button1"; > + this.button1.Size =3D new System.Drawing.Size(27, 23); > + this.button1.TabIndex =3D 2; > + this.button1.Text =3D "..."; > + this.button1.UseVisualStyleBackColor =3D true; > + this.button1.Click +=3D new System.EventHandler(this.button1_Cli= ck); > + // > + // button2 > + // > + this.button2.Location =3D new System.Drawing.Point(12, 136); > + this.button2.Name =3D "button2"; > + this.button2.Size =3D new System.Drawing.Size(75, 23); > + this.button2.TabIndex =3D 3; > + this.button2.Text =3D "Build"; > + this.button2.UseVisualStyleBackColor =3D true; > + this.button2.Click +=3D new System.EventHandler(this.button2_Cli= ck); > + // > + // button3 > + // > + this.button3.Location =3D new System.Drawing.Point(421, 136); > + this.button3.Name =3D "button3"; > + this.button3.Size =3D new System.Drawing.Size(75, 23); > + this.button3.TabIndex =3D 4; > + this.button3.Text =3D "OK"; > + this.button3.UseVisualStyleBackColor =3D true; > + this.button3.Click +=3D new System.EventHandler(this.button3_Cli= ck); > + // > + // Build_dialog > + // > + this.AutoScaleDimensions =3D new System.Drawing.SizeF(6F, 13F); > + this.AutoScaleMode =3D System.Windows.Forms.AutoScaleMode.Font; > + this.ClientSize =3D new System.Drawing.Size(537, 171); > + this.Controls.Add(this.button3); > + this.Controls.Add(this.button2); > + this.Controls.Add(this.button1); > + this.Controls.Add(this.label1); > + this.Controls.Add(this.textBox1); > + this.MaximizeBox =3D false; > + this.MinimizeBox =3D false; > + this.Name =3D "Build_dialog"; > + this.Text =3D "Build"; > + this.ResumeLayout(false); > + this.PerformLayout(); > + > + } > + > + #endregion > + > + private System.Windows.Forms.SaveFileDialog saveFileDialog1; > + private System.Windows.Forms.TextBox textBox1; > + private System.Windows.Forms.Label label1; > + private System.Windows.Forms.Button button1; > + private System.Windows.Forms.Button button2; > + private System.Windows.Forms.Button button3; > + } > +} > \ No newline at end of file > > Added: trunk/plugins/mpinstaler/MPInstaler/Build dialog.cs > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- trunk/plugins/mpinstaler/MPInstaler/Build dialog.cs > (rev 0) > +++ trunk/plugins/mpinstaler/MPInstaler/Build dialog.cs 2007-01-31 > 22:14:04 UTC (rev 68) > @@ -0,0 +1,50 @@ > +using System; > +using System.Collections.Generic; > +using System.ComponentModel; > +using System.Data; > +using System.Drawing; > +using System.Text; > +using System.Windows.Forms; > + > +namespace MPInstaler > +{ > + public partial class Build_dialog : Form > + { > + public MPinstalerStruct _struct =3D new MPinstalerStruct(); > + public Build_dialog() > + { > + InitializeComponent(); > + } > + public Build_dialog(MPinstalerStruct st) > + { > + _struct =3D st; > + InitializeComponent(); > + textBox1.Text =3D _struct.BuildFileName; > + } > + > + private void button1_Click(object sender, EventArgs e) > + { > + if (saveFileDialog1.ShowDialog(this) =3D=3D DialogResult.OK) > + { > + textBox1.Text =3D saveFileDialog1.FileName; > + } > + > + } > + > + private void button3_Click(object sender, EventArgs e) > + { > + _struct.BuildFileName =3D textBox1.Text; > + this.Hide(); > + } > + > + private void button2_Click(object sender, EventArgs e) > + { > + _struct.BuildFileName =3D textBox1.Text; > + _struct.BuilFile(); > + } > + public void onbuild() > + { > + > + } > + } > +} > \ No newline at end of file > > Added: trunk/plugins/mpinstaler/MPInstaler/Build dialog.resx > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- trunk/plugins/mpinstaler/MPInstaler/Build dialog.resx > (rev 0) > +++ trunk/plugins/mpinstaler/MPInstaler/Build dialog.resx 2007-01-31 > 22:14:04 UTC (rev 68) > @@ -0,0 +1,123 @@ > +<?xml version=3D"1.0" encoding=3D"utf-8"?> > +<root> > + <!--=20 > + 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=3D"resmimetype">text/microsoft-resx</resheader> > + <resheader name=3D"version">2.0</resheader> > + <resheader name=3D"reader">System.Resources.ResXResourceReader, > System.Windows.Forms, ...</resheader> > + <resheader name=3D"writer">System.Resources.ResXResourceWriter, > System.Windows.Forms, ...</resheader> > + <data name=3D"Name1"><value>this is my long string</value><comment= >this > is a comment</comment></data> > + <data name=3D"Color1" type=3D"System.Drawing.Color, > System.Drawing">Blue</data> > + <data name=3D"Bitmap1" > mimetype=3D"application/x-microsoft.net.object.binary.base64"> > + <value>[base64 mime encoded serialized .NET Framework > object]</value> > + </data> > + <data name=3D"Icon1" type=3D"System.Drawing.Icon, System.Drawing" > mimetype=3D"application/x-microsoft.net.object.bytearray.base64"> > + <value>[base64 mime encoded string representing a byte array f= orm > 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 for= mat > + 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.SoapFormatt= er > + : 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=3D"root" xmlns=3D"" > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > xmlns:msdata=3D"urn:schemas-microsoft-com:xml-msdata"> > + <xsd:import namespace=3D"http://www.w3.org/XML/1998/namespace" /> > + <xsd:element name=3D"root" msdata:IsDataSet=3D"true"> > + <xsd:complexType> > + <xsd:choice maxOccurs=3D"unbounded"> > + <xsd:element name=3D"metadata"> > + <xsd:complexType> > + <xsd:sequence> > + <xsd:element name=3D"value" type=3D"xsd:string" minOcc= urs=3D"0" > /> > + </xsd:sequence> > + <xsd:attribute name=3D"name" use=3D"required" type=3D"xs= d:string" > /> > + <xsd:attribute name=3D"type" type=3D"xsd:string" /> > + <xsd:attribute name=3D"mimetype" type=3D"xsd:string" /> > + <xsd:attribute ref=3D"xml:space" /> > + </xsd:complexType> > + </xsd:element> > + <xsd:element name=3D"assembly"> > + <xsd:complexType> > + <xsd:attribute name=3D"alias" type=3D"xsd:string" /> > + <xsd:attribute name=3D"name" type=3D"xsd:string" /> > + </xsd:complexType> > + </xsd:element> > + <xsd:element name=3D"data"> > + <xsd:complexType> > + <xsd:sequence> > + <xsd:element name=3D"value" type=3D"xsd:string" minOcc= urs=3D"0" > msdata:Ordinal=3D"1" /> > + <xsd:element name=3D"comment" type=3D"xsd:string" > minOccurs=3D"0" msdata:Ordinal=3D"2" /> > + </xsd:sequence> > + <xsd:attribute name=3D"name" type=3D"xsd:string" use=3D"= required" > msdata:Ordinal=3D"1" /> > + <xsd:attribute name=3D"type" type=3D"xsd:string" > msdata:Ordinal=3D"3" /> > + <xsd:attribute name=3D"mimetype" type=3D"xsd:string" > msdata:Ordinal=3D"4" /> > + <xsd:attribute ref=3D"xml:space" /> > + </xsd:complexType> > + </xsd:element> > + <xsd:element name=3D"resheader"> > + <xsd:complexType> > + <xsd:sequence> > + <xsd:element name=3D"value" type=3D"xsd:string" minOcc= urs=3D"0" > msdata:Ordinal=3D"1" /> > + </xsd:sequence> > + <xsd:attribute name=3D"name" type=3D"xsd:string" use=3D"= required" > /> > + </xsd:complexType> > + </xsd:element> > + </xsd:choice> > + </xsd:complexType> > + </xsd:element> > + </xsd:schema> > + <resheader name=3D"resmimetype"> > + <value>text/microsoft-resx</value> > + </resheader> > + <resheader name=3D"version"> > + <value>2.0</value> > + </resheader> > + <resheader name=3D"reader"> > + <value>System.Resources.ResXResourceReader, System.Windows.Forms, > Version=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089= </value> > + </resheader> > + <resheader name=3D"writer"> > + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, > Version=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089= </value> > + </resheader> > + <metadata name=3D"saveFileDialog1.TrayLocation" > type=3D"System.Drawing.Point, System.Drawing, Version=3D2.0.0.0, > Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a"> > + <value>17, 17</value> > + </metadata> > +</root> > \ No newline at end of file > > Added: trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs > (rev 0) > +++ trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs 2007-01-31 > 22:14:04 UTC (rev 68) > @@ -0,0 +1,380 @@ > +namespace MPInstaler > +{ > + partial class Form1 > + { > + /// <summary> > + /// Required designer variable. > + /// </summary> > + private System.ComponentModel.IContainer components =3D null; > + > + /// <summary> > + /// Clean up any resources being used. > + /// </summary> > + /// <param name=3D"disposing">true if managed resources should= be > disposed; otherwise, false.</param> > + protected override void Dispose(bool disposing) > + { > + if (disposing && (components !=3D 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.components =3D new System.ComponentModel.Container(); > + this.menuStrip1 =3D new System.Windows.Forms.MenuStrip(); > + this.fileToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.newToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.openProiectToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.sToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.saveProiectAsToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.buildToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.toolStripSeparator1 =3D new > System.Windows.Forms.ToolStripSeparator(); > + this.optionsToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.toolStripSeparator2 =3D new > System.Windows.Forms.ToolStripSeparator(); > + this.exitToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.addToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.windowPluginToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.windowToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.procesToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.subtitleToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.tagReadersToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.externalPlayersToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.skinToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.componentToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.mediaToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.fullToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.languageToolStripMenuItem =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.bossview =3D new System.Windows.Forms.ListView(); > + this.columnHeader1 =3D new System.Windows.Forms.ColumnHeader= (); > + this.columnHeader2 =3D new System.Windows.Forms.ColumnHeader= (); > + this.columnHeader3 =3D new System.Windows.Forms.ColumnHeader= (); > + this.columnHeader4 =3D new System.Windows.Forms.ColumnHeader= (); > + this.columnHeader5 =3D new System.Windows.Forms.ColumnHeader= (); > + this.contextMenuStrip1 =3D new > System.Windows.Forms.ContextMenuStrip(this.components); > + this.toolStripComboBox1 =3D new > System.Windows.Forms.ToolStripMenuItem(); > + this.openFileDialog1 =3D new > System.Windows.Forms.OpenFileDialog(); > + this.saveFileDialog1 =3D new > System.Windows.Forms.SaveFileDialog(); > + this.groupBox1 =3D new System.Windows.Forms.GroupBox(); > + this.menuStrip1.SuspendLayout(); > + this.contextMenuStrip1.SuspendLayout(); > + this.SuspendLayout(); > + // > + // menuStrip1 > + // > + this.menuStrip1.Items.AddRange(new > System.Windows.Forms.ToolStripItem[] { > + this.fileToolStripMenuItem, > + this.addToolStripMenuItem}); > + this.menuStrip1.Location =3D new System.Drawing.Point(0, 0); > + this.menuStrip1.Name =3D "menuStrip1"; > + this.menuStrip1.Size =3D new System.Drawing.Size(675, 24); > + this.menuStrip1.TabIndex =3D 1; > + this.menuStrip1.Text =3D "menuStrip1"; > + // > + // fileToolStripMenuItem > + // > + this.fileToolStripMenuItem.DropDownItems.AddRange(new > System.Windows.Forms.ToolStripItem[] { > + this.newToolStripMenuItem, > + this.openProiectToolStripMenuItem, > + this.sToolStripMenuItem, > + this.saveProiectAsToolStripMenuItem, > + this.buildToolStripMenuItem, > + this.toolStripSeparator1, > + this.optionsToolStripMenuItem, > + this.toolStripSeparator2, > + this.exitToolStripMenuItem}); > + this.fileToolStripMenuItem.Name =3D "fileToolStripMenuItem"; > + this.fileToolStripMenuItem.Size =3D new System.Drawing.Size(= 35, > 20); > + this.fileToolStripMenuItem.Text =3D "File"; > + // > + // newToolStripMenuItem > + // > + this.newToolStripMenuItem.Name =3D "newToolStripMenuItem"; > + this.newToolStripMenuItem.Size =3D new System.Drawing.Size(1= 68, > 22); > + this.newToolStripMenuItem.Text =3D "New Proiect"; > + this.newToolStripMenuItem.Click +=3D new > System.EventHandler(this.newToolStripMenuItem_Click); > + // > + // openProiectToolStripMenuItem > + // > + this.openProiectToolStripMenuItem.Name =3D > "openProiectToolStripMenuItem"; > + this.openProiectToolStripMenuItem.Size =3D new > System.Drawing.Size(168, 22); > + this.openProiectToolStripMenuItem.Text =3D "Open Proiect .."= ; > + this.openProiectToolStripMenuItem.Click +=3D new > System.EventHandler(this.openProiectToolStripMenuItem_Click); > + // > + // sToolStripMenuItem > + // > + this.sToolStripMenuItem.Name =3D "sToolStripMenuItem"; > + this.sToolStripMenuItem.Size =3D new System.Drawing.Size(168= , > 22); > + this.sToolStripMenuItem.Text =3D "Save Proiect"; > + this.sToolStripMenuItem.Click +=3D new > System.EventHandler(this.sToolStripMenuItem_Click); > + // > + // saveProiectAsToolStripMenuItem > + // > + this.saveProiectAsToolStripMenuItem.Name =3D > "saveProiectAsToolStripMenuItem"; > + this.saveProiectAsToolStripMenuItem.Size =3D new > System.Drawing.Size(168, 22); > + this.saveProiectAsToolStripMenuItem.Text =3D "Save Proiect A= s.."; > + // > + // buildToolStripMenuItem > + // > + this.buildToolStripMenuItem.Name =3D "buildToolStripMenuItem= "; > + this.buildToolStripMenuItem.Size =3D new System.Drawing.Size= (168, > 22); > + this.buildToolStripMenuItem.Text =3D "Build"; > + this.buildToolStripMenuItem.Click +=3D new > System.EventHandler(this.buildToolStripMenuItem_Click); > + // > + // toolStripSeparator1 > + // > + this.toolStripSeparator1.Name =3D "toolStripSeparator1"; > + this.toolStripSeparator1.Size =3D new System.Drawing.Size(16= 5, > 6); > + // > + // optionsToolStripMenuItem > + // > + this.optionsToolStripMenuItem.Name =3D > "optionsToolStripMenuItem"; > + this.optionsToolStripMenuItem.Size =3D new > System.Drawing.Size(168, 22); > + this.optionsToolStripMenuItem.Text =3D "Options"; > + this.optionsToolStripMenuItem.Click +=3D new > System.EventHandler(this.optionsToolStripMenuItem_Click); > + // > + // toolStripSeparator2 > + // > + this.toolStripSeparator2.Name =3D "toolStripSeparator2"; > + this.toolStripSeparator2.Size =3D new System.Drawing.Size(16= 5, > 6); > + // > + // exitToolStripMenuItem > + // > + this.exitToolStripMenuItem.Name =3D "exitToolStripMenuItem"; > + this.exitToolStripMenuItem.Size =3D new System.Drawing.Size(= 168, > 22); > + this.exitToolStripMenuItem.Text =3D "Exit"; > + // > + // addToolStripMenuItem > + // > + this.addToolStripMenuItem.DropDownItems.AddRange(new > System.Windows.Forms.ToolStripItem[] { > + this.windowPluginToolStripMenuItem, > + this.skinToolStripMenuItem, > + this.languageToolStripMenuItem}); > + this.addToolStripMenuItem.Name =3D "addToolStripMenuItem"; > + this.addToolStripMenuItem.Size =3D new System.Drawing.Size(3= 8, > 20); > + this.addToolStripMenuItem.Text =3D "Add"; > + // > + // windowPluginToolStripMenuItem > + // > + this.windowPluginToolStripMenuItem.DropDownItems.AddRange(ne= w > System.Windows.Forms.ToolStripItem[] { > + this.windowToolStripMenuItem, > + this.procesToolStripMenuItem, > + this.subtitleToolStripMenuItem, > + this.tagReadersToolStripMenuItem, > + this.externalPlayersToolStripMenuItem}); > + this.windowPluginToolStripMenuItem.Name =3D > "windowPluginToolStripMenuItem"; > + this.windowPluginToolStripMenuItem.Size =3D new > System.Drawing.Size(132, 22); > + this.windowPluginToolStripMenuItem.Text =3D "Plugin"; > + // > + // windowToolStripMenuItem > + // > + this.windowToolStripMenuItem.Name =3D "windowToolStripMenuIt= em"; > + this.windowToolStripMenuItem.Size =3D new > System.Drawing.Size(160, 22); > + this.windowToolStripMenuItem.Text =3D "Window"; > + this.windowToolStripMenuItem.Click +=3D new > System.EventHandler(this.windowToolStripMenuItem_Click); > + // > + // procesToolStripMenuItem > + // > + this.procesToolStripMenuItem.Name =3D "procesToolStripMenuIt= em"; > + this.procesToolStripMenuItem.Size =3D new > System.Drawing.Size(160, 22); > + this.procesToolStripMenuItem.Text =3D "Process"; > + this.procesToolStripMenuItem.Click +=3D new > System.EventHandler(this.procesToolStripMenuItem_Click); > + // > + // subtitleToolStripMenuItem > + // > + this.subtitleToolStripMenuItem.Name =3D > "subtitleToolStripMenuItem"; > + this.subtitleToolStripMenuItem.Size =3D new > System.Drawing.Size(160, 22); > + this.subtitleToolStripMenuItem.Text =3D "Subtitle"; > + this.subtitleToolStripMenuItem.Click +=3D new > System.EventHandler(this.subtitleToolStripMenuItem_Click); > + // > + // tagReadersToolStripMenuItem > + // > + this.tagReadersToolStripMenuItem.Name =3D > "tagReadersToolStripMenuItem"; > + this.tagReadersToolStripMenuItem.Size =3D new > System.Drawing.Size(160, 22); > + this.tagReadersToolStripMenuItem.Text =3D "TagReaders"; > + this.tagReadersToolStripMenuItem.Click +=3D new > System.EventHandler(this.tagReadersToolStripMenuItem_Click); > + // > + // externalPlayersToolStripMenuItem > + // > + this.externalPlayersToolStripMenuItem.Name =3D > "externalPlayersToolStripMenuItem"; > + this.externalPlayersToolStripMenuItem.Size =3D new > System.Drawing.Size(160, 22); > + this.externalPlayersToolStripMenuItem.Text =3D "ExternalPlay= ers"; > + this.externalPlayersToolStripMenuItem.Click +=3D new > System.EventHandler(this.externalPlayersToolStripMenuItem_Click); > + // > + // skinToolStripMenuItem > + // > + this.skinToolStripMenuItem.DropDownItems.AddRange(new > System.Windows.Forms.ToolStripItem[] { > + this.componentToolStripMenuItem, > + this.mediaToolStripMenuItem, > + this.fullToolStripMenuItem}); > + this.skinToolStripMenuItem.Name =3D "skinToolStripMenuItem"; > + this.skinToolStripMenuItem.Size =3D new System.Drawing.Size(= 132, > 22); > + this.skinToolStripMenuItem.Text =3D "Skin"; > + // > + // componentToolStripMenuItem > + // > + this.componentToolStripMenuItem.Name =3D > "componentToolStripMenuItem"; > + this.componentToolStripMenuItem.Size =3D new > System.Drawing.Size(140, 22); > + this.componentToolStripMenuItem.Text =3D "Component"; > + this.componentToolStripMenuItem.Click +=3D new > System.EventHandler(this.componentToolStripMenuItem_Click); > + // > + // mediaToolStripMenuItem > + // > + this.mediaToolStripMenuItem.Name =3D "mediaToolStripMenuItem= "; > + this.mediaToolStripMenuItem.Size =3D new System.Drawing.Size= (140, > 22); > + this.mediaToolStripMenuItem.Text =3D "Media"; > + this.mediaToolStripMenuItem.Click +=3D new > System.EventHandler(this.mediaToolStripMenuItem_Click); > + // > + // fullToolStripMenuItem > + // > + this.fullToolStripMenuItem.Name =3D "fullToolStripMenuItem"; > + this.fullToolStripMenuItem.Size =3D new System.Drawing.Size(= 140, > 22); > + this.fullToolStripMenuItem.Text =3D "Full"; > + this.fullToolStripMenuItem.Visible =3D false; > + // > + // languageToolStripMenuItem > + // > + this.languageToolStripMenuItem.Name =3D > "languageToolStripMenuItem"; > + this.languageToolStripMenuItem.Size =3D new > System.Drawing.Size(132, 22); > + this.languageToolStripMenuItem.Text =3D "Language"; > + this.languageToolStripMenuItem.Click +=3D new > System.EventHandler(this.languageToolStripMenuItem_Click); > + // > + // bossview > + // > + this.bossview.CheckBoxes =3D true; > + this.bossview.Columns.AddRange(new > System.Windows.Forms.ColumnHeader[] { > + this.columnHeader1, > + this.columnHeader2, > + this.columnHeader3, > + this.columnHeader4, > + this.columnHeader5}); > + this.bossview.ContextMenuStrip =3D this.contextMenuStrip1; > + this.bossview.FullRowSelect =3D true; > + this.bossview.GridLines =3D true; > + this.bossview.Location =3D new System.Drawing.Point(12, 40); > + this.bossview.Name =3D "bossview"; > + this.bossview.Size =3D new System.Drawing.Size(663, 267); > + this.bossview.TabIndex =3D 2; > + this.bossview.UseCompatibleStateImageBehavior =3D false; > + this.bossview.View =3D System.Windows.Forms.View.Details; > + // > + // columnHeader1 > + // > + this.columnHeader1.Text =3D "File"; > + this.columnHeader1.Width =3D 116; > + // > + // columnHeader2 > + // > + this.columnHeader2.Text =3D "Type"; > + this.columnHeader2.Width =3D 115; > + // > + // columnHeader3 > + // > + this.columnHeader3.Text =3D "Subtype"; > + this.columnHeader3.Width =3D 108; > + // > + // columnHeader4 > + // > + this.columnHeader4.Text =3D "Path"; > + this.columnHeader4.Width =3D 170; > + // > + // columnHeader5 > + // > + this.columnHeader5.Text =3D "Id"; > + // > + // contextMenuStrip1 > + // > + this.contextMenuStrip1.Items.AddRange(new > System.Windows.Forms.ToolStripItem[] { > + this.toolStripComboBox1}); > + this.contextMenuStrip1.Name =3D "contextMenuStrip1"; > + this.contextMenuStrip1.Size =3D new System.Drawing.Size(153,= 48); > + // > + // toolStripComboBox1 > + // > + this.toolStripComboBox1.Name =3D "toolStripComboBox1"; > + this.toolStripComboBox1.Size =3D new System.Drawing.Size(152= , > 22); > + this.toolStripComboBox1.Text =3D "Remove"; > + this.toolStripComboBox1.Click +=3D new > System.EventHandler(this.toolStripComboBox1_Click); > + // > + // openFileDialog1 > + // > + this.openFileDialog1.Filter =3D "\"Dll files|*.dll|All > files|*.*\""; > + // > + // saveFileDialog1 > + // > + this.saveFileDialog1.DefaultExt =3D "xml"; > + // > + // groupBox1 > + // > + this.groupBox1.Location =3D new System.Drawing.Point(213, 32= 2); > + this.groupBox1.Name =3D "groupBox1"; > + this.groupBox1.Size =3D new System.Drawing.Size(450, 97); > + this.groupBox1.TabIndex =3D 3; > + this.groupBox1.TabStop =3D false; > + this.groupBox1.Text =3D "Properties"; > + // > + // Form1 > + // > + this.AutoScaleDimensions =3D new System.Drawing.SizeF(6F, 13= F); > + this.AutoScaleMode =3D System.Windows.Forms.AutoScaleMode.Fo= nt; > + this.ClientSize =3D new System.Drawing.Size(675, 431); > + this.Controls.Add(this.bossview); > + this.Controls.Add(this.groupBox1); > + this.Controls.Add(this.menuStrip1); > + this.MainMenuStrip =3D this.menuStrip1; > + this.Name =3D "Form1"; > + this.Text =3D "Form1"; > + this.menuStrip1.ResumeLayout(false); > + this.menuStrip1.PerformLayout(); > + this.contextMenuStrip1.ResumeLayout(false); > + this.ResumeLayout(false); > + this.PerformLayout(); > + > + } > + > + #endregion > + > + private System.Windows.Forms.MenuStrip menuStrip1; > + private System.Windows.Forms.ToolStripMenuItem > fileToolStripMenuItem; > + private System.Windows.Forms.ToolStripMenuItem > newToolStripMenuItem; > + private System.Windows.Forms.ListView bossview; > + private System.Windows.Forms.ColumnHeader columnHeader1; > + private System.Windows.Forms.ColumnHeader columnHeader2; > + private System.Windows.Forms.ColumnHeader columnHeader3; > + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; > + private System.Windows.Forms.ToolStripMenuItem > addToolStripMenuItem; > + private System.Windows.Forms.ToolStripMenuItem > windowPluginToolStripMenuItem; > + private System.Windows.Forms.ToolStripMenuItem > windowToolStripMenuItem; > + private System.Windows.Forms.ToolStripMenuItem > procesToolStripMenuItem; > + private System.Windows.Forms.ToolStripMenuItem > subtitleToolStripMenuItem; > + private System.Windows.Forms.ToolStripMenuItem > tagReadersToolStripMenuItem; > + private System.Windows.Forms.ToolStripMenuItem > externalPlayersToolStripMenuItem; > + private System.Windows.Forms.ColumnHeader columnHeader4; > + private System.Windows.Forms.ToolStripMenuItem > skinToolStripMenuItem; > + private System.Windows.Forms.ToolStripMenuItem > componentToolStripMenuItem; > + private System.Windows.Forms.ToolStripMenuItem > mediaToolStripMenuItem; > + private System.Windows.Forms.ToolStripMenuItem > fullToolStripMenuItem; > + private System.Windows.Forms.ToolStripMenuItem > openProiectToolStripMenuItem; > + private System.Windows.Forms.ToolStripMenuItem > sToolStripMenuItem; > + private System.Windows.Forms.ToolStripMenuItem > saveProiectAsToolStripMenuItem; > + private System.Windows.Forms.ToolStripSeparator > toolStripSeparator1; > + private System.Windows.Forms.ToolStripMenuItem > optionsToolStripMenuItem; > + private System.Windows.Forms.ToolStripSeparator > toolStripSeparator2; > + private System.Windows.Forms.ToolStripMenuItem > exitToolStripMenuItem; > + private System.Windows.Forms.OpenFileDialog openFileDialog1; > + private System.Windows.Forms.ColumnHeader columnHeader5; > + private System.Windows.Forms.SaveFileDialog saveFileDialog1; > + private System.Windows.Forms.ToolStripMenuItem > languageToolStripMenuItem; > + private System.Windows.Forms.ToolStripMenuItem > buildToolStripMenuItem; > + private System.Windows.Forms.ToolStripMenuItem toolStripComboBox= 1; > + private System.Windows.Forms.GroupBox groupBox1; > + } > +} > + > > Added: trunk/plugins/mpinstaler/MPInstaler/Form1.cs > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- trunk/plugins/mpinstaler/MPInstaler/Form1.cs > (rev 0) > +++ trunk/plugins/mpinstaler/MPInstaler/Form1.cs 2007-01-31 22:14:04 UT= C > (rev 68) > @@ -0,0 +1,249 @@ > +using System; > +using System.Collections.Generic; > +using System.ComponentModel; > +using System.Data; > +using System.Drawing; > +using System.Text; > +using System.Windows.Forms; > +using System.Xml; > +using System.IO; > +using ICSharpCode.SharpZipLib.Zip; > + > +namespace MPInstaler > +{ > + public partial class Form1 : Form > + { > + private MPinstalerStruct _struct =3D new MPinstalerStruct(); > + public Form1() > + { > + InitializeComponent(); > + } > + > + private void button1_Click(object sender, EventArgs e) > + { > + } > + > + private void sToolStripMenuItem_Click(object sender, EventArgs e) > + { > + Stream myStream; > + > + if (saveFileDialog1.ShowDialog(this) =3D=3D DialogResult.OK) > + { > + if ((myStream =3D saveFileDialog1.OpenFile()) !=3D null) > + { > + // Code to write the stream goes here. > + XmlDocument doc =3D new XmlDocument(); > + XmlWriter writer =3D null; > + _struct.AddFileList(bossview); > + try > + { > + // Create an XmlWriterSettings object with the correct > options. > + XmlWriterSettings settings =3D new XmlWriterSettings(); > + string st =3D string.Empty; > + settings.Indent =3D true; > + settings.IndentChars =3D ("\t"); > + settings.OmitXmlDeclaration =3D true; > + // Create the XmlWriter object and write some content. > + writer =3D XmlWriter.Create(myStream, settings); > + writer.WriteStartElement("MPinstaler"); > + writer.WriteElementString("ver", "1.00.000"); > + writer.WriteStartElement("FileList"); > + for (int i =3D 0; i < _struct.FileList.Count; i++) > + { > + MPIFileList it=3D(MPIFileList)_struct.FileList[i]; > + writer.WriteStartElement("File"); > + > writer.WriteElementString("FileName",Path.GetFileName(it.FileName)); > + writer.WriteElementString("Type", it.Type); > + writer.WriteElementString("SubType", it.SubType); > + writer.WriteElementString("Path", > Path.GetDirectoryName(it.FileName)); > + writer.WriteElementString("Id", it.ID); > + writer.WriteEndElement(); > + st =3D st + bossview.Items[i].SubItems[3].Text + @"\" + > bossview.Items[i].Text + ";"; > + } > + writer.WriteEndElement(); > + writer.WriteStartElement("Option"); > + writer.WriteElementString("BuildFileName", > _struct.BuildFileName); > + writer.WriteEndElement(); > + writer.WriteEndElement(); > + writer.Flush(); > + > + //------------------------------------- > + //------------------------------------- > + } > + finally > + { > + if (writer !=3D null) > + writer.Close(); > + } > + myStream.Close(); > + > + } > + > + } > + > + } > + > + private void windowToolStripMenuItem_Click(object sender, EventArg= s > e) > + { > + addplugin(1); > + } > + > + private void addplugin(int type) > + { > + /* > + 1 - 10 PLUGINS > + 1 - window > + 2 - process > + 3 - subtitle > + 4 - tagreader > + 5 - external player > + */ > + string fil; > + openFileDialog1.Filter =3D "Dll files|*.dll|All files|*.*"; > + if (openFileDialog1.ShowDialog(this) =3D=3D DialogResult.OK) > + { > + fil =3D openFileDialog1.FileName; > + switch (type) > + { > + case 1: > + addrow(Path.GetFileName(fil), MPinstalerStruct.PLUGIN_TYPE= , > MPinstalerStruct.PLUGIN_WINDOW_SUBTYPE, Path.GetDirectoryName(fil), > "01010"); > + break; > + case 2: > + addrow(Path.GetFileName(fil), MPinstalerStruct.PLUGIN_TYPE= , > MPinstalerStruct.PLUGIN_PROCESS_SUBTYPE, Path.GetDirectoryName(fil), > "01020"); > + break; > + case 3: > + addrow(Path.GetFileName(fil), MPinstalerStruct.PLUGIN_TYPE= , > MPinstalerStruct.PLUGIN_SUBTITLE_SUBTYPE, Path.GetDirectoryName(fil), > "01030"); > + break; > + case 4: > + addrow(Path.GetFileName(fil), MPinstalerStruct.PLUGIN_TYPE= , > MPinstalerStruct.PLUGIN_TAGREADER_SUBTYPE, Path.GetDirectoryName(fil), > "01040"); > + break; > + case 5: > + addrow(Path.GetFileName(fil), MPinstalerStruct.PLUGIN_TYPE= , > MPinstalerStruct.PLUGIN_PLAYER_SUBTYPE, Path.GetDirectoryName(fil), > "01050"); > + break; > + default: > + break; > + } > + } > + } > + > + private void addskin(int type) > + { > +// string fil; > + openFileDialog1.Filter =3D "xml files|*.xml|png files|*.png|bmp > files|*.bmp|All files|*.*"; > + openFileDialog1.Multiselect =3D true; > + if (openFileDialog1.ShowDialog(this) =3D=3D DialogResult.OK) > + { > + foreach(string fil in openFileDialog1.FileNames) > + switch (type) > + { > + case 1: addrow(Path.GetFileName(fil), > MPinstalerStruct.SKIN_TYPE, MPinstalerStruct.SKIN_XML_SUBTYPE, > Path.GetDirectoryName(fil), "02010"); > + break; > + case 2: addrow(Path.GetFileName(fil), > MPinstalerStruct.SKIN_MEDIA_TYPE, MPinstalerStruct.SKIN_XML_SUBTYPE, > Path.GetDirectoryName(fil), "02020"); > + break; > + default: > + break; > + } > + } > + } > + > + private void subtitleToolStripMenuItem_Click(object sender, EventA= rgs > e) > + { > + addplugin(3); > + } > + > + private void procesToolStripMenuItem_Click(object sender, EventArg= s > e) > + { > + addplugin(2); > + } > + > + private void tagReadersToolStripMenuItem_Click(object sender, > EventArgs e) > + { > + addplugin(4); > + } > + > + private void externalPlayersToolStripMenuItem_Click(object sender, > EventArgs e) > + { > + addplugin(5); > + } > + > + private void addrow(string file, string type, string subtype, stri= ng > path, string id) > + { > + ListViewItem item1 =3D new ListViewItem(file, 0); > + item1.SubItems.Add(type); > + item1.SubItems.Add(subtype); > + item1.SubItems.Add(path); > + item1.SubItems.Add(id); > + bossview.Items.AddRange(new ListViewItem[] { item1 }); > + } > + > + private void openProiectToolStripMenuItem_Click(object sender, > EventArgs e) > + { > + string fil; > + openFileDialog1.Filter =3D "XML files|*.xml|All files|*.*"; > + if (openFileDialog1.ShowDialog(this) =3D=3D DialogResult.OK) > + { > + fil =3D openFileDialog1.FileName; > + XmlDocument doc =3D new XmlDocument(); > + doc.Load(fil); > + XmlNode ver =3D > doc.DocumentElement.SelectSingleNode("/MPinstaler"); > + bossview.Items.Clear(); > + XmlNodeList fileList =3D ver.SelectNodes("FileList/File"); > + foreach (XmlNode nodefile in fileList) > + { > + addrow(nodefile.SelectSingleNode("FileName").InnerText, > + nodefile.SelectSingleNode("Type").InnerText, > + nodefile.SelectSingleNode("SubType").InnerText, > + nodefile.SelectSingleNode("Path").InnerText, > + nodefile.SelectSingleNode("Id").InnerText); > + } > + > _struct.BuildFileName=3Dver.SelectSingleNode("Option/BuildFileName").In= nerText; > + } > + _struct.AddFileList(bossview); > + } > + > + private void languageToolStripMenuItem_Click(object sender, EventA= rgs > e) > + { > + Form2 StrForm =3D new Form2(); > + StrForm.ShowDialog(); > + } > + > + private void optionsToolStripMenuItem_Click(object sender, EventAr= gs > e) > + { > + OptionForm opForm =3D new OptionForm(); > + opForm.ShowDialog(); > + } > + > + private void buildToolStripMenuItem_Click(object sender, EventArgs= e) > + { > + Build_dialog buildfrm =3D new Build_dialog(this._struct); > + buildfrm.ShowDialog(); > + this._struct =3D buildfrm._struct; > + } > + > + private void newToolStripMenuItem_Click(object sender, EventArgs e= ) > + { > + bossview.Items.Clear(); > + _struct.Clear(); > + } > + > + private void componentToolStripMenuItem_Click(object sender, > EventArgs e) > + { > + addskin(1); > + } > + > + private void mediaToolStripMenuItem_Click(object sender, EventArgs= e) > + { > + addskin(2); > + } > + > + private void toolStripComboBox1_Click(object sender, EventArgs e) > + { > + for (int i =3D 0; i < bossview.Items.Count; i++) > + if (bossview.Items[i].Selected) bossview.Items.RemoveAt(i); > + } > + > + > + > + > + } > +} > \ No newline at end of file > > Added: trunk/plugins/mpinstaler/MPInstaler/Form1.resx > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- trunk/plugins/mpinstaler/MPInstaler/Form1.resx > (rev 0) > +++ trunk/plugins/mpinstaler/MPInstaler/Form1.resx 2007-01-31 22:14:04 = UTC > (rev 68) > @@ -0,0 +1,132 @@ > +<?xml version=3D"1.0" encoding=3D"utf-8"?> > +<root> > + <!--=20 > + 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=3D"resmimetype">text/microsoft-resx</resheader> > + <resheader name=3D"version">2.0</resheader> > + <resheader name=3D"reader">System.Resources.ResXResourceReader, > System.Windows.Forms, ...</resheader> > + <resheader name=3D"writer">System.Resources.ResXResourceWriter, > System.Windows.Forms, ...</resheader> > + <data name=3D"Name1"><value>this is my long string</value><comment= >this > is a comment</comment></data> > + <data name=3D"Color1" type=3D"System.Drawing.Color, > System.Drawing">Blue</data> > + <data name=3D"Bitmap1" > mimetype=3D"application/x-microsoft.net.object.binary.base64"> > + <value>[base64 mime encoded serialized .NET Framework > object]</value> > + </data> > + <data name=3D"Icon1" type=3D"System.Drawing.Icon, System.Drawing" > mimetype=3D"application/x-microsoft.net.object.bytearray.base64"> > + <value>[base64 mime encoded string representing a byte array f= orm > 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 for= mat > + 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.SoapFormatt= er > + : 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=3D"root" xmlns=3D"" > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > xmlns:msdata=3D"urn:schemas-microsoft-com:xml-msdata"> > + <xsd:import namespace=3D"http://www.w3.org/XML/1998/namespace" /> > + <xsd:element name=3D"root" msdata:IsDataSet=3D"true"> > + <xsd:complexType> > + <xsd:choice maxOccurs=3D"unbounded"> > + <xsd:element name=3D"metadata"> > + <xsd:complexType> > + <xsd:sequence> > + <xsd:element name=3D"value" type=3D"xsd:string" minOcc= urs=3D"0" > /> > + </xsd:sequence> > + <xsd:attribute name=3D"name" use=3D"required" type=3D"xs= d:string" > /> > + <xsd:attribute name=3D"type" type=3D"xsd:string" /> > + <xsd:attribute name=3D"mimetype" type=3D"xsd:string" /> > + <xsd:attribute ref=3D"xml:space" /> > + </xsd:complexType> > + </xsd:element> > + <xsd:element name=3D"assembly"> > + <xsd:complexType> > + <xsd:attribute name=3D"alias" type=3D"xsd:string" /> > + <xsd:attribute name=3D"name" type=3D"xsd:string" /> > + </xsd:complexType> > + </xsd:element> > + <xsd:element name=3D"data"> > + <xsd:complexType> > + <xsd:sequence> > + <xsd:element name=3D"value" type=3D"xsd:string" minOcc= urs=3D"0" > msdata:Ordinal=3D"1" /> > + <xsd:element name=3D"comment" type=3D"xsd:string" > minOccurs=3D"0" msdata:Ordinal=3D"2" /> > + </xsd:sequence> > + <xsd:attribute name=3D"name" type=3D"xsd:string" use=3D"= required" > msdata:Ordinal=3D"1" /> > + <xsd:attribute name=3D"type" type=3D"xsd:string" > msdata:Ordinal=3D"3" /> > + <xsd:attribute name=3D"mimetype" type=3D"xsd:string" > msdata:Ordinal=3D"4" /> > + <xsd:attribute ref=3D"xml:space" /> > + </xsd:complexType> > + </xsd:element> > + <xsd:element name=3D"resheader"> > + <xsd:complexType> > + <xsd:sequence> > + <xsd:element name=3D"value" type=3D"xsd:string" minOcc= urs=3D"0" > msdata:Ordinal=3D"1" /> > + </xsd:sequence> > + <xsd:attribute name=3D"name" type=3D"xsd:string" use=3D"= required" > /> > + </xsd:complexType> > + </xsd:element> > + </xsd:choice> > + </xsd:complexType> > + </xsd:element> > + </xsd:schema> > + <resheader name=3D"resmimetype"> > + <value>text/microsoft-resx</value> > + </resheader> > + <resheader name=3D"version"> > + <value>2.0</value> > + </resheader> > + <resheader name=3D"reader"> > + <value>System.Resources.ResXResourceReader, System.Windows.Forms, > Version=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089= </value> > + </resheader> > + <resheader name=3D"writer"> > + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, > Version=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089= </value> > + </resheader> > + <metadata name=3D"menuStrip1.TrayLocation" type=3D"System.Drawing.Po= int, > System.Drawing, Version=3D2.0.0.0, Culture=3Dneutral, > PublicKeyToken=3Db03f5f7f11d50a3a"> > + <value>17, 17</value> > + </metadata> > + <metadata name=3D"contextMenuStrip1.TrayLocation" > type=3D"System.Dr... [truncated message content] |
From: <moi...@us...> - 2007-02-01 00:58:53
|
Revision: 70 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=70&view=rev Author: moiristo Date: 2007-01-31 16:58:51 -0800 (Wed, 31 Jan 2007) Log Message: ----------- A new version of IPTV@UT Modified Paths: -------------- trunk/plugins/IPTV@UT/IPTV@UT/ConfigurationForm.cs trunk/plugins/IPTV@UT/IPTV@UT/IPTV.cs trunk/plugins/IPTV@UT/IPTV@UT/IPTV@UT.csproj trunk/plugins/IPTV@UT/IPTV@UT/IPTVPlugin.cs trunk/plugins/IPTV@UT/IP...@UT...o trunk/plugins/MyTorrents/c3o.plugins.suo trunk/plugins/UitzendingGemist/UitGemist.suo trunk/plugins/VideoLAN/ConfigurationForm.cs trunk/plugins/VideoLAN/VideoLanPlugin.cs trunk/plugins/VideoLAN/VlcUserControl.cs Added Paths: ----------- trunk/plugins/IPTV@UT/[ Default Skin ]/MyIPTV.xml Removed Paths: ------------- trunk/plugins/IPTV@UT/[ Default Skin ]/MP_0.2.1/ trunk/plugins/IPTV@UT/[ Default Skin ]/MP_0.2.1_SVN/ trunk/plugins/IPTV@UT/[ Project Mayhem 3 ]/ Modified: trunk/plugins/IPTV@UT/IPTV@UT/ConfigurationForm.cs =================================================================== --- trunk/plugins/IPTV@UT/IPTV@UT/ConfigurationForm.cs 2007-01-31 22:29:16 UTC (rev 69) +++ trunk/plugins/IPTV@UT/IPTV@UT/ConfigurationForm.cs 2007-02-01 00:58:51 UTC (rev 70) @@ -7,7 +7,7 @@ using System.Text; using System.Windows.Forms; using MediaPortal.GUI.Library; -using MediaPortal.Util; +using MediaPortal.Utils; namespace MediaPortal.GUI.IPTV { Modified: trunk/plugins/IPTV@UT/IPTV@UT/IPTV.cs =================================================================== --- trunk/plugins/IPTV@UT/IPTV@UT/IPTV.cs 2007-01-31 22:29:16 UTC (rev 69) +++ trunk/plugins/IPTV@UT/IPTV@UT/IPTV.cs 2007-02-01 00:58:51 UTC (rev 70) @@ -3,7 +3,6 @@ using MediaPortal.Util; using MediaPortal.Dialogs; using MediaPortal.Playlists; -using MediaPortal.VideoLanPlugin; using System.Drawing; using System.IO; @@ -12,8 +11,12 @@ public class IPTV : GUIWindow { #region SkinControlAttributes - [SkinControlAttribute(2)] + [SkinControlAttribute(19)] + protected GUIListControl listview = null; + [SkinControlAttribute(21)] protected GUIButtonControl btnLoad = null; + [SkinControlAttribute(22)] + protected GUIButtonControl btnRecordings = null; [SkinControlAttribute(99)] protected GUIVideoControl videoWindow = null; #endregion @@ -22,9 +25,11 @@ private static int currentChannel = 0; private static PlayListVLCIO plvi = new PlayListVLCIO(); private static VirtualDirectory plDirectory = new VirtualDirectory(); + private static VirtualDirectory recDirectory = new VirtualDirectory(); private static string playListPath; private static OnActionHandler ah; - private static bool inited = false; + private static bool inited = false; + private static string vlciptvdir = Directory.GetCurrentDirectory() + @"\vlciptv"; public override int GetID { @@ -54,6 +59,14 @@ share.Path = playListPath; plDirectory.IsRootShare(playListPath); + recDirectory.AddExtension(".ts"); + recDirectory.ShowFilesWithoutExtension = false; + + Share share2 = new Share(); + share2.Name = "Recordings"; + share2.Path = vlciptvdir; + recDirectory.IsRootShare(vlciptvdir); + if(ah == null) ah = new OnActionHandler(OnAction2); return result; @@ -62,7 +75,8 @@ public void OnAction2(Action action) { if (GUIWindowManager.ActiveWindowEx == (int) GUIWindow.Window.WINDOW_DIALOG_MENU) return; - + bool actionTaken = true; + switch (action.wID) { case Action.ActionType.ACTION_PREV_CHANNEL: @@ -121,8 +135,13 @@ Play(currentChannel); break; } + break; + default: + actionTaken = false; break; } + + if(actionTaken) listview.SelectedListItemIndex = currentChannel; } public override void OnAction(Action action) @@ -141,16 +160,16 @@ } protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType) - { + { if (control == btnLoad) { - if (g_Player.Playing) g_Player.Stop(); - GUIDialogSelect diag = (GUIDialogSelect)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_SELECT); + GUIDialogSelect diag = (GUIDialogSelect)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_SELECT); diag.SetHeading("Choose Playlist"); diag.Reset(); + diag.IsOverlayAllowed = true; foreach (GUIListItem item in plDirectory.GetDirectory(playListPath)) { - if(!item.IsFolder) diag.Add(item.Label); + if (!item.IsFolder) diag.Add(item.Label); } diag.EnableButton(true); diag.SetButtonLabel("Load Playlist"); @@ -159,11 +178,48 @@ // and wait till user selects one, then load it immediately string selected = diag.SelectedLabelText; - if(File.Exists(playListPath + @"\" + selected + ".vlc")) - LoadAndPlay(playListPath + @"\" + selected + ".vlc"); - else LoadAndPlay(playListPath + @"\" + selected + ".m3u"); + if (!selected.Trim().Equals("")) + { + if (File.Exists(playListPath + @"\" + selected + ".vlc")) + LoadAndPlay(playListPath + @"\" + selected + ".vlc"); + else LoadAndPlay(playListPath + @"\" + selected + ".m3u"); + } } + if (control == btnRecordings) + { + GUIDialogSelect diag = (GUIDialogSelect)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_SELECT); + diag.SetHeading("Available Recordings"); + diag.Reset(); + diag.IsOverlayAllowed = true; + foreach (GUIListItem item in recDirectory.GetDirectory(vlciptvdir)) + { + if (!item.IsFolder) diag.Add(item.Label); + } + diag.EnableButton(true); + diag.SetButtonLabel("Load Recording"); + diag.DoModal(GUIWindowManager.ActiveWindow); + // and wait till user selects one, then load it immediately + string selected = diag.SelectedLabelText; + + if (!selected.Trim().Equals("")) + { + GUIGraphicsContext.IsFullScreenVideo = false; + g_Player.Play(vlciptvdir + @"\" + selected + ".ts"); + GUIPropertyManager.SetProperty("#IPTV.View.channel", selected); + } + } + if (control == listview && actionType == Action.ActionType.ACTION_SELECT_ITEM) + { + if (listview.SelectedListItemIndex == -1) return; + else + { + currentChannel = listview.SelectedListItemIndex; + Play(currentChannel); + } + } + listview.SelectedListItemIndex = currentChannel; + base.OnClicked(controlId, control, actionType); } @@ -191,10 +247,16 @@ GUIPropertyManager.SetProperty("#IPTV.View.channel", ""); // Read a playlist, if configured, and start playing it LoadAndPlay(GetDefaultPlayList()); - inited = true; } - + + foreach (PlayListItem item in playlist) + { + GUIListItem litem = new GUIListItem(); + litem.Label = item.Description; + litem.IconImage = "check-box.png"; + listview.Add(litem); + } } protected override void OnPageDestroy(int new_windowId) @@ -205,20 +267,20 @@ protected override void OnShowContextMenu() { - if (playlist.Count == 0) return; + //if (playlist.Count == 0) return; - GUIDialogMenu menu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); - menu.Reset(); + //GUIDialogMenu menu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); + //menu.Reset(); - menu.SetHeading("Channel List"); - foreach (PlayListItem item in playlist) - menu.Add(item.Description); - if (menu.SelectedId == -1) return; - else - { - currentChannel = menu.SelectedId - 1; - Play(currentChannel); - } + //menu.SetHeading("Channel List"); + //foreach (PlayListItem item in playlist) + // menu.Add(item.Description); + //if (menu.SelectedId == -1) return; + //else + //{ + // currentChannel = menu.SelectedId - 1; + // Play(currentChannel); + //} base.OnShowContextMenu(); } @@ -231,7 +293,7 @@ playlist.Clear(); bool result = plvi.Load(playlist, plFile); if (result) - { + { if (currentChannel < playlist.Count) Play(currentChannel); else if (playlist.Count > 0) Play(0); } @@ -257,7 +319,7 @@ plDir = reader.GetValueAsString("settings", "PlayListDir", ""); } return plDir; - } + } public static void Play(int plIndex) { @@ -267,7 +329,7 @@ Log.Info("MyIPTV: Trying to play channel '" + item.Description + "' (" + item.FileName + ")."); GUIGraphicsContext.IsFullScreenVideo = false; g_Player.Play(item.FileName); - GUIPropertyManager.SetProperty("#IPTV.View.channel", item.Description); + GUIPropertyManager.SetProperty("#IPTV.View.channel", item.Description); } } } \ No newline at end of file Modified: trunk/plugins/IPTV@UT/IPTV@UT/IPTV@UT.csproj =================================================================== --- trunk/plugins/IPTV@UT/IPTV@UT/IPTV@UT.csproj 2007-01-31 22:29:16 UTC (rev 69) +++ trunk/plugins/IPTV@UT/IPTV@UT/IPTV@UT.csproj 2007-02-01 00:58:51 UTC (rev 70) @@ -28,24 +28,24 @@ <WarningLevel>4</WarningLevel> </PropertyGroup> <ItemGroup> - <Reference Include="Core, Version=1.0.2524.28381, Culture=neutral, processorArchitecture=MSIL"> + <Reference Include="Core, Version=1.0.2586.6922, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\trunk\mediaportal\xbmc\bin\Release\Core.dll</HintPath> + <HintPath>..\..\..\trunk\mediaportal\Core\bin\Release\Core.dll</HintPath> </Reference> <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\trunk\mediaportal\Dialogs\bin\Release\Dialogs.dll</HintPath> + <HintPath>..\..\..\trunk\mediaportal\Dialogs\bin\Release\Dialogs.dll</HintPath> </Reference> - <Reference Include="ExternalPlayers, Version=1.0.2543.36238, Culture=neutral, processorArchitecture=MSIL"> - <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\trunk\mediaportal\ExternalPlayers\bin\Release\ExternalPlayers.dll</HintPath> - </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.DirectoryServices" /> <Reference Include="System.Drawing" /> <Reference Include="System.Windows.Forms" /> <Reference Include="System.Xml" /> + <Reference Include="Utils, Version=1.0.2586.6921, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\trunk\mediaportal\Utils\bin\Release\Utils.dll</HintPath> + </Reference> </ItemGroup> <ItemGroup> <Compile Include="ConfigurationForm.cs"> @@ -75,4 +75,7 @@ <Target Name="AfterBuild"> </Target> --> + <PropertyGroup> + <PostBuildEvent>xcopy $(TargetPath) D:\MediaPortal\trunk\mediaportal\xbmc\bin\Release\plugins\windows\ /y</PostBuildEvent> + </PropertyGroup> </Project> \ No newline at end of file Modified: trunk/plugins/IPTV@UT/IPTV@UT/IPTVPlugin.cs =================================================================== --- trunk/plugins/IPTV@UT/IPTV@UT/IPTVPlugin.cs 2007-01-31 22:29:16 UTC (rev 69) +++ trunk/plugins/IPTV@UT/IPTV@UT/IPTVPlugin.cs 2007-02-01 00:58:51 UTC (rev 70) @@ -37,7 +37,7 @@ // Returns the name of the plugin which is shown in the plugin menu public string PluginName() { - return "My IPTV"; + return "VLC IPTV"; } // Returns the description of the plugin is shown in the plugin menu Modified: trunk/plugins/IPTV@UT/IP...@UT...o =================================================================== (Binary files differ) Added: trunk/plugins/IPTV@UT/[ Default Skin ]/MyIPTV.xml =================================================================== --- trunk/plugins/IPTV@UT/[ Default Skin ]/MyIPTV.xml (rev 0) +++ trunk/plugins/IPTV@UT/[ Default Skin ]/MyIPTV.xml 2007-02-01 00:58:51 UTC (rev 70) @@ -0,0 +1,91 @@ +<window> + <id>7500</id> + <defaultcontrol>19</defaultcontrol> + <allowoverlay>no</allowoverlay> + <define>#header.label:My IPTV</define> + <define>#header.image:</define> + <define>#header.hover:hover_my tv.png</define> + <controls> + <import>common.window.xml</import> + <control> + <type>image</type> + <description>background image</description> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <texture>background.png</texture> + </control> + <control> + <type>listcontrol</type> + <description>afleveringen</description> + <id>19</id> + <posX>290</posX> + <posY>97</posY> + <width>410</width> + <onup>17</onup> + <font2>font10</font2> + <font3>font10</font3> + <textureHeight>25</textureHeight> + <IconYOff>3</IconYOff> + <textYOff>0</textYOff> + </control> + <control> + <type>videowindow</type> + <description>video window</description> + <id>99</id> + <posX>30</posX> + <posY>190</posY> + <width>224</width> + <height>136</height> + <colordiffuse>ffffffff</colordiffuse> + <onright>19</onright> + <onup>17</onup> + <ondown>21</ondown> + <animation>WindowClose</animation> + <action>18</action> + <textureFocus>tv_green_border.png</textureFocus> + </control> + + <control> + <type>group</type> + <description>group element</description> + <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> + <layout>StackLayout</layout> + <posX>45</posX> + <posY>420</posY> + <control> + <type>button</type> + <description>Load playlist button</description> + <id>21</id> + <onright>19</onright> + <onup>99</onup> + <ondown>22</ondown> + <label>Load Playlist</label> + </control> + <control> + <type>button</type> + <description>Recordings button</description> + <id>22</id> + <onright>19</onright> + <onup>21</onup> + <ondown>19</ondown> + <label>Recordings</label> + </control> + </control> + + <control> + <type>fadelabel</type> + <description>Current Channelname</description> + <id>13</id> + <posX>32</posX> + <posY>152</posY> + <width>224</width> + <align>left</align> + <label>#IPTV.View.channel</label> + <textcolor>white</textcolor> + </control> + </controls> +</window> \ No newline at end of file Property changes on: trunk/plugins/IPTV@UT/[ Default Skin ]/MyIPTV.xml ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/plugins/MyTorrents/c3o.plugins.suo =================================================================== (Binary files differ) Modified: trunk/plugins/UitzendingGemist/UitGemist.suo =================================================================== (Binary files differ) Modified: trunk/plugins/VideoLAN/ConfigurationForm.cs =================================================================== --- trunk/plugins/VideoLAN/ConfigurationForm.cs 2007-01-31 22:29:16 UTC (rev 69) +++ trunk/plugins/VideoLAN/ConfigurationForm.cs 2007-02-01 00:58:51 UTC (rev 70) @@ -197,7 +197,7 @@ { m_enabledExt = xmlreader.GetValueAsString("vlcplugin", "enabledextensions", ".ts,.gary"); m_enabledStreams = xmlreader.GetValueAsString("vlcplugin", "enabledstreams", "udp"); - bufsize = xmlreader.GetValueAsString("vlcplugin", "buffer", "400"); + bufsize = xmlreader.GetValueAsString("vlcplugin", "buffer", "5000"); m_enabledExt.Replace(":", ","); // in case it was using the old plugin code where the separator was ":" } if (m_enabledExt != null && m_enabledExt.Length > 0) Modified: trunk/plugins/VideoLAN/VideoLanPlugin.cs =================================================================== --- trunk/plugins/VideoLAN/VideoLanPlugin.cs 2007-01-31 22:29:16 UTC (rev 69) +++ trunk/plugins/VideoLAN/VideoLanPlugin.cs 2007-02-01 00:58:51 UTC (rev 70) @@ -30,6 +30,7 @@ bool _isFullScreen = false; bool _notifyPlaying = true; int _positionX = 10, _positionY = 10, _videoWidth = 100, _videoHeight = 100; + int audioDelay = 0; public static VlcUserControl vlcControl = null; @@ -62,7 +63,7 @@ public override string VersionNumber { - get { return "0.6"; } + get { return "0.7"; } } public override string[] GetAllSupportedExtensions() @@ -141,11 +142,24 @@ GUIWindowManager.SendThreadMessage(msg); Player_Initializing(); + string vlciptvdir = Directory.GetCurrentDirectory() + @"\vlciptv"; + if (!Directory.Exists(vlciptvdir)) Directory.CreateDirectory(vlciptvdir); - string[] option = new string[2]; - option[0] = ":http-caching=" + getBufferSize(); - option[1] = ":vout=direct3d"; - + string[] option = new string[]{ + ":http-caching=" + getBufferSize(), + ":mms-caching=" + getBufferSize(), + ":realrtsp-caching=" + getBufferSize(), + //":tcp-caching==" + getBufferSize(), + //":udp-caching==" + getBufferSize(), + ":smb-caching=" + getBufferSize(), + ":snapshot-path=" + vlciptvdir, + ":record-path=" + vlciptvdir, + ":timeshift-dir=" + vlciptvdir, + ":access-filter=record" + }; + + + vlcControl.Stop(); vlcControl.ClearPlayList(); vlcControl.AddToPlayList(strFile, null, option); vlcControl.Play(); @@ -171,16 +185,12 @@ { vlcControl.RotateAudioTrack(); } - if (foAction.wID == Action.ActionType.ACTION_FORWARD) + if (foAction.wID == Action.ActionType.ACTION_TAKE_SCREENSHOT) { - vlcControl.Faster(); + vlcControl.SnapShot(); } - if (foAction.wID == Action.ActionType.ACTION_REWIND) + if (foAction.wID == Action.ActionType.ACTION_RECORD) { - vlcControl.Slower(); - } - if (foAction.wID == Action.ActionType.ACTION_TAKE_SCREENSHOT) - { vlcControl.SnapShot(); } if (foAction.wID == Action.ActionType.ACTION_ASPECT_RATIO) @@ -192,6 +202,87 @@ UpdateStatus(); SetWindows(); } + if (foAction.wID == Action.ActionType.ACTION_AUDIO_DELAY_MIN) + { + if(audioDelay>0) + { + audioDelay--; + vlcControl.AudioDelay = audioDelay; + } + } + if (foAction.wID == Action.ActionType.ACTION_AUDIO_DELAY_PLUS) + { + audioDelay++; + vlcControl.AudioDelay = audioDelay; + } + if (foAction.wID == Action.ActionType.ACTION_BIG_STEP_BACK) + { + vlcControl.BigStepBack(); + } + if (foAction.wID == Action.ActionType.ACTION_BIG_STEP_FORWARD) + { + vlcControl.BigStepForward(); + } + if (foAction.wID == Action.ActionType.ACTION_DVD_MENU) + { + vlcControl.DvdMenu(); + } + //if (foAction.wID == Action.ActionType.ACTION_FORWARD) + //{ + // vlcControl.Faster(); + //} + //if (foAction.wID == Action.ActionType.ACTION_REWIND) + //{ + // vlcControl.Slower(); + //} + if (foAction.wID == Action.ActionType.ACTION_FORWARD || foAction.wID == Action.ActionType.ACTION_STEP_FORWARD) + { + vlcControl.MediumStepForward(); + } + if (foAction.wID == Action.ActionType.ACTION_REWIND || foAction.wID == Action.ActionType.ACTION_STEP_BACK) + { + vlcControl.MediumStepBack(); + } + if (foAction.wID == Action.ActionType.ACTION_MOVE_LEFT) + { + vlcControl.MoveLeft(); + } + if (foAction.wID == Action.ActionType.ACTION_MOVE_RIGHT) + { + vlcControl.MoveRight(); + } + if (foAction.wID == Action.ActionType.ACTION_MOVE_DOWN) + { + vlcControl.MoveDown(); + } + if (foAction.wID == Action.ActionType.ACTION_MOVE_UP) + { + vlcControl.MoveUp(); + } + if (foAction.wID == Action.ActionType.ACTION_NEXT_SUBTITLE) + { + vlcControl.RotateSubtitles(); + } + if (foAction.wID == Action.ActionType.ACTION_NEXT_CHAPTER) + { + vlcControl.NextDvdChapter(); + } + if (foAction.wID == Action.ActionType.ACTION_PREV_CHAPTER) + { + vlcControl.PreviousDvdChapter(); + } + if (foAction.wID == Action.ActionType.ACTION_RECORD) + { + vlcControl.Record(); + } + if (foAction.wID == Action.ActionType.ACTION_SMALL_STEP_BACK) + { + vlcControl.ShortStepBack(); + } + if (foAction.wID == Action.ActionType.ACTION_SELECT_ITEM) + { + vlcControl.Activate(); + } if (foAction.wID == Action.ActionType.ACTION_STOP) { Player_stopEvent(); @@ -565,7 +656,7 @@ private int getBufferSize() { - int result = 400; + int result = 5000; using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Directory.GetCurrentDirectory() + @"\MediaPortal.xml")) { result = xmlreader.GetValueAsInt("vlcplugin", "buffer", 400); Modified: trunk/plugins/VideoLAN/VlcUserControl.cs =================================================================== --- trunk/plugins/VideoLAN/VlcUserControl.cs 2007-01-31 22:29:16 UTC (rev 69) +++ trunk/plugins/VideoLAN/VlcUserControl.cs 2007-02-01 00:58:51 UTC (rev 70) @@ -830,6 +830,11 @@ this.nativeVlc.PressKey("key-snapshot"); } + public void Record() + { + this.nativeVlc.PressKey("key-record"); + } + public void UnCropTop() { //this.nativeVlc.PressKey("key-uncrop-top"); @@ -894,6 +899,11 @@ set { this.useMpegVbrOffset = value; } } + public void DvdMenu() + { + this.nativeVlc.PressKey("key-disc-menu"); + } + public void NextDvdTrack() { this.nativeVlc.PressKey("key-title-next"); @@ -914,6 +924,61 @@ this.nativeVlc.PressKey("key-chapter-prev"); } + public void BigStepBack() + { + this.nativeVlc.PressKey("key-jump-long"); + } + + public void BigStepForward() + { + this.nativeVlc.PressKey("key-jump+long"); + } + + public void MediumStepBack() + { + this.nativeVlc.PressKey("key-jump-medium"); + } + + public void MediumStepForward() + { + this.nativeVlc.PressKey("key-jump+medium"); + } + + public void ShortStepBack() + { + this.nativeVlc.PressKey("key-jump-short"); + } + + public void ShortStepForward() + { + this.nativeVlc.PressKey("key-jump+short"); + } + + public void MoveLeft() + { + this.nativeVlc.PressKey("key-nav-left"); + } + + public void MoveRight() + { + this.nativeVlc.PressKey("key-nav-right"); + } + + public void MoveDown() + { + this.nativeVlc.PressKey("key-nav-down"); + } + + public void MoveUp() + { + this.nativeVlc.PressKey("key-nav-up"); + } + + public void Activate() + { + this.nativeVlc.PressKey("key-nav-activate"); + } + private void VlcUserControl_Resize(object sender, EventArgs e) { if(!ComputeCrop()) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <du...@us...> - 2007-01-31 22:37:10
|
Revision: 69 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=69&view=rev Author: dukus Date: 2007-01-31 14:29:16 -0800 (Wed, 31 Jan 2007) Log Message: ----------- First commit problems resolved Removed Paths: ------------- trunk/plugins/mpinstaler/MPInstaler/bin/ trunk/plugins/mpinstaler/MPInstaler/obj/ trunk/plugins/mpinstaler/MPInstaler/publish/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <du...@us...> - 2007-01-31 22:14:08
|
Revision: 68 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=68&view=rev Author: dukus Date: 2007-01-31 14:14:04 -0800 (Wed, 31 Jan 2007) Log Message: ----------- Added Paths: ----------- trunk/plugins/mpinstaler/ trunk/plugins/mpinstaler/MPInstaler/ trunk/plugins/mpinstaler/MPInstaler/Build dialog.Designer.cs trunk/plugins/mpinstaler/MPInstaler/Build dialog.cs trunk/plugins/mpinstaler/MPInstaler/Build dialog.resx trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs trunk/plugins/mpinstaler/MPInstaler/Form1.cs trunk/plugins/mpinstaler/MPInstaler/Form1.resx trunk/plugins/mpinstaler/MPInstaler/Form2.Designer.cs trunk/plugins/mpinstaler/MPInstaler/Form2.cs trunk/plugins/mpinstaler/MPInstaler/Form2.resx trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj.user trunk/plugins/mpinstaler/MPInstaler/MPInstaler_TemporaryKey.pfx trunk/plugins/mpinstaler/MPInstaler/MPinstalerStruct.cs trunk/plugins/mpinstaler/MPInstaler/OptionForm.Designer.cs trunk/plugins/mpinstaler/MPInstaler/OptionForm.cs trunk/plugins/mpinstaler/MPInstaler/OptionForm.resx trunk/plugins/mpinstaler/MPInstaler/Program.cs trunk/plugins/mpinstaler/MPInstaler/Properties/ trunk/plugins/mpinstaler/MPInstaler/Properties/AssemblyInfo.cs trunk/plugins/mpinstaler/MPInstaler/Properties/Resources.Designer.cs trunk/plugins/mpinstaler/MPInstaler/Properties/Resources.resx trunk/plugins/mpinstaler/MPInstaler/Properties/Settings.Designer.cs trunk/plugins/mpinstaler/MPInstaler/Properties/Settings.settings trunk/plugins/mpinstaler/MPInstaler/Properties/app.manifest trunk/plugins/mpinstaler/MPInstaler/SkinSelect.Designer.cs trunk/plugins/mpinstaler/MPInstaler/SkinSelect.cs trunk/plugins/mpinstaler/MPInstaler/SkinSelect.resx trunk/plugins/mpinstaler/MPInstaler/bin/ trunk/plugins/mpinstaler/MPInstaler/bin/Debug/ trunk/plugins/mpinstaler/MPInstaler/bin/Debug/ICSharpCode.SharpZipLib.dll trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.application trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.exe trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.exe.manifest trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.pdb trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.vshost.application trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.vshost.exe trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.vshost.exe.manifest trunk/plugins/mpinstaler/MPInstaler/bin/Release/ trunk/plugins/mpinstaler/MPInstaler/bin/Release/ICSharpCode.SharpZipLib.dll trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.application trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.exe trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.exe.manifest trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.pdb trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/ trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler.application trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/ trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/AxInterop.WMPLib.dll.deploy trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/Core.dll.deploy trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/Databases.dll.deploy trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/Dialogs.dll.deploy trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/DirectShowLib.dll.deploy trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/ICSharpCode.SharpZipLib.DLL.deploy trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/Interop.WMPLib.dll.deploy trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/MPInstaler.exe.deploy trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/MPInstaler.exe.manifest trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/MediaPortal.Support.dll.deploy trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/Utils.dll.deploy trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/edtftpnet-1.2.2.dll.deploy trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/setup.exe trunk/plugins/mpinstaler/MPInstaler/bin/Release/q trunk/plugins/mpinstaler/MPInstaler/obj/ trunk/plugins/mpinstaler/MPInstaler/obj/Debug/ trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.Build_dialog.resources trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.Form1.resources trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.Form2.resources trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.OptionForm.resources trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.Properties.Resources.resources trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.SkinSelect.resources trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.TrustInfo.xml trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.application trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.csproj.GenerateResource.Cache trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.exe trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.exe.manifest trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.pdb trunk/plugins/mpinstaler/MPInstaler/obj/Debug/ResolveAssemblyReference.cache trunk/plugins/mpinstaler/MPInstaler/obj/Debug/TempPE/ trunk/plugins/mpinstaler/MPInstaler/obj/MPInstaler.csproj.FileList.txt trunk/plugins/mpinstaler/MPInstaler/obj/Release/ trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.Build_dialog.resources trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.Form1.resources trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.Form2.resources trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.OptionForm.resources trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.Properties.Resources.resources trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.SkinSelect.resources trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.TrustInfo.xml trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.application trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.csproj.GenerateResource.Cache trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.exe trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.exe.manifest trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.pdb trunk/plugins/mpinstaler/MPInstaler/obj/Release/Refactor/ trunk/plugins/mpinstaler/MPInstaler/obj/Release/ResolveAssemblyReference.cache trunk/plugins/mpinstaler/MPInstaler/obj/Release/TempPE/ trunk/plugins/mpinstaler/MPInstaler/publish/ trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler.application trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/ trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/AxInterop.WMPLib.dll.deploy trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/Core.dll.deploy trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/Databases.dll.deploy trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/Dialogs.dll.deploy trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/DirectShowLib.dll.deploy trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/ICSharpCode.SharpZipLib.DLL.deploy trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/Interop.WMPLib.dll.deploy trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/MPInstaler.exe.deploy trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/MPInstaler.exe.manifest trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/MediaPortal.Support.dll.deploy trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/Utils.dll.deploy trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/edtftpnet-1.2.2.dll.deploy trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0.application trunk/plugins/mpinstaler/MPInstaler/publish/setup.exe trunk/plugins/mpinstaler/MPInstaler.sln trunk/plugins/mpinstaler/MPInstaler.suo Added: trunk/plugins/mpinstaler/MPInstaler/Build dialog.Designer.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/Build dialog.Designer.cs (rev 0) +++ trunk/plugins/mpinstaler/MPInstaler/Build dialog.Designer.cs 2007-01-31 22:14:04 UTC (rev 68) @@ -0,0 +1,118 @@ +namespace MPInstaler +{ + partial class Build_dialog + { + /// <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.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.button1 = new System.Windows.Forms.Button(); + this.button2 = new System.Windows.Forms.Button(); + this.button3 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // saveFileDialog1 + // + this.saveFileDialog1.DefaultExt = "mpi"; + this.saveFileDialog1.Filter = "MPI files|*.mpi|ZIP files|*.zip|All files|*.*"; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(12, 23); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(484, 20); + this.textBox1.TabIndex = 0; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(9, 7); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(58, 13); + this.label1.TabIndex = 1; + this.label1.Text = "File name :"; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(502, 23); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(27, 23); + this.button1.TabIndex = 2; + this.button1.Text = "..."; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // button2 + // + this.button2.Location = new System.Drawing.Point(12, 136); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(75, 23); + this.button2.TabIndex = 3; + this.button2.Text = "Build"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // button3 + // + this.button3.Location = new System.Drawing.Point(421, 136); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(75, 23); + this.button3.TabIndex = 4; + this.button3.Text = "OK"; + this.button3.UseVisualStyleBackColor = true; + this.button3.Click += new System.EventHandler(this.button3_Click); + // + // Build_dialog + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(537, 171); + this.Controls.Add(this.button3); + this.Controls.Add(this.button2); + this.Controls.Add(this.button1); + this.Controls.Add(this.label1); + this.Controls.Add(this.textBox1); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "Build_dialog"; + this.Text = "Build"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.SaveFileDialog saveFileDialog1; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Button button3; + } +} \ No newline at end of file Added: trunk/plugins/mpinstaler/MPInstaler/Build dialog.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/Build dialog.cs (rev 0) +++ trunk/plugins/mpinstaler/MPInstaler/Build dialog.cs 2007-01-31 22:14:04 UTC (rev 68) @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace MPInstaler +{ + public partial class Build_dialog : Form + { + public MPinstalerStruct _struct = new MPinstalerStruct(); + public Build_dialog() + { + InitializeComponent(); + } + public Build_dialog(MPinstalerStruct st) + { + _struct = st; + InitializeComponent(); + textBox1.Text = _struct.BuildFileName; + } + + private void button1_Click(object sender, EventArgs e) + { + if (saveFileDialog1.ShowDialog(this) == DialogResult.OK) + { + textBox1.Text = saveFileDialog1.FileName; + } + + } + + private void button3_Click(object sender, EventArgs e) + { + _struct.BuildFileName = textBox1.Text; + this.Hide(); + } + + private void button2_Click(object sender, EventArgs e) + { + _struct.BuildFileName = textBox1.Text; + _struct.BuilFile(); + } + public void onbuild() + { + + } + } +} \ No newline at end of file Added: trunk/plugins/mpinstaler/MPInstaler/Build dialog.resx =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/Build dialog.resx (rev 0) +++ trunk/plugins/mpinstaler/MPInstaler/Build dialog.resx 2007-01-31 22:14:04 UTC (rev 68) @@ -0,0 +1,123 @@ +<?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> + <metadata name="saveFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> +</root> \ No newline at end of file Added: trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs (rev 0) +++ trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs 2007-01-31 22:14:04 UTC (rev 68) @@ -0,0 +1,380 @@ +namespace MPInstaler +{ + partial class Form1 + { + /// <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.components = new System.ComponentModel.Container(); + this.menuStrip1 = new System.Windows.Forms.MenuStrip(); + this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.openProiectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.sToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.saveProiectAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.buildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.addToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.windowPluginToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.windowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.procesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.subtitleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.tagReadersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.externalPlayersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.skinToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.componentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.mediaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.fullToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.languageToolStripMenuItem = 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(); + this.columnHeader3 = new System.Windows.Forms.ColumnHeader(); + this.columnHeader4 = new System.Windows.Forms.ColumnHeader(); + this.columnHeader5 = new System.Windows.Forms.ColumnHeader(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.toolStripComboBox1 = new System.Windows.Forms.ToolStripMenuItem(); + this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); + this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.menuStrip1.SuspendLayout(); + this.contextMenuStrip1.SuspendLayout(); + this.SuspendLayout(); + // + // menuStrip1 + // + this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.fileToolStripMenuItem, + this.addToolStripMenuItem}); + this.menuStrip1.Location = new System.Drawing.Point(0, 0); + this.menuStrip1.Name = "menuStrip1"; + this.menuStrip1.Size = new System.Drawing.Size(675, 24); + this.menuStrip1.TabIndex = 1; + this.menuStrip1.Text = "menuStrip1"; + // + // fileToolStripMenuItem + // + this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.newToolStripMenuItem, + this.openProiectToolStripMenuItem, + this.sToolStripMenuItem, + this.saveProiectAsToolStripMenuItem, + this.buildToolStripMenuItem, + this.toolStripSeparator1, + this.optionsToolStripMenuItem, + this.toolStripSeparator2, + this.exitToolStripMenuItem}); + this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; + this.fileToolStripMenuItem.Size = new System.Drawing.Size(35, 20); + this.fileToolStripMenuItem.Text = "File"; + // + // newToolStripMenuItem + // + this.newToolStripMenuItem.Name = "newToolStripMenuItem"; + this.newToolStripMenuItem.Size = new System.Drawing.Size(168, 22); + this.newToolStripMenuItem.Text = "New Proiect"; + this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click); + // + // openProiectToolStripMenuItem + // + this.openProiectToolStripMenuItem.Name = "openProiectToolStripMenuItem"; + this.openProiectToolStripMenuItem.Size = new System.Drawing.Size(168, 22); + this.openProiectToolStripMenuItem.Text = "Open Proiect .."; + this.openProiectToolStripMenuItem.Click += new System.EventHandler(this.openProiectToolStripMenuItem_Click); + // + // sToolStripMenuItem + // + this.sToolStripMenuItem.Name = "sToolStripMenuItem"; + this.sToolStripMenuItem.Size = new System.Drawing.Size(168, 22); + this.sToolStripMenuItem.Text = "Save Proiect"; + this.sToolStripMenuItem.Click += new System.EventHandler(this.sToolStripMenuItem_Click); + // + // saveProiectAsToolStripMenuItem + // + this.saveProiectAsToolStripMenuItem.Name = "saveProiectAsToolStripMenuItem"; + this.saveProiectAsToolStripMenuItem.Size = new System.Drawing.Size(168, 22); + this.saveProiectAsToolStripMenuItem.Text = "Save Proiect As.."; + // + // buildToolStripMenuItem + // + this.buildToolStripMenuItem.Name = "buildToolStripMenuItem"; + this.buildToolStripMenuItem.Size = new System.Drawing.Size(168, 22); + this.buildToolStripMenuItem.Text = "Build"; + this.buildToolStripMenuItem.Click += new System.EventHandler(this.buildToolStripMenuItem_Click); + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(165, 6); + // + // optionsToolStripMenuItem + // + this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem"; + this.optionsToolStripMenuItem.Size = new System.Drawing.Size(168, 22); + this.optionsToolStripMenuItem.Text = "Options"; + this.optionsToolStripMenuItem.Click += new System.EventHandler(this.optionsToolStripMenuItem_Click); + // + // toolStripSeparator2 + // + this.toolStripSeparator2.Name = "toolStripSeparator2"; + this.toolStripSeparator2.Size = new System.Drawing.Size(165, 6); + // + // exitToolStripMenuItem + // + this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; + this.exitToolStripMenuItem.Size = new System.Drawing.Size(168, 22); + this.exitToolStripMenuItem.Text = "Exit"; + // + // addToolStripMenuItem + // + this.addToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.windowPluginToolStripMenuItem, + this.skinToolStripMenuItem, + this.languageToolStripMenuItem}); + this.addToolStripMenuItem.Name = "addToolStripMenuItem"; + this.addToolStripMenuItem.Size = new System.Drawing.Size(38, 20); + this.addToolStripMenuItem.Text = "Add"; + // + // windowPluginToolStripMenuItem + // + this.windowPluginToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.windowToolStripMenuItem, + this.procesToolStripMenuItem, + this.subtitleToolStripMenuItem, + this.tagReadersToolStripMenuItem, + this.externalPlayersToolStripMenuItem}); + this.windowPluginToolStripMenuItem.Name = "windowPluginToolStripMenuItem"; + this.windowPluginToolStripMenuItem.Size = new System.Drawing.Size(132, 22); + this.windowPluginToolStripMenuItem.Text = "Plugin"; + // + // windowToolStripMenuItem + // + this.windowToolStripMenuItem.Name = "windowToolStripMenuItem"; + this.windowToolStripMenuItem.Size = new System.Drawing.Size(160, 22); + this.windowToolStripMenuItem.Text = "Window"; + this.windowToolStripMenuItem.Click += new System.EventHandler(this.windowToolStripMenuItem_Click); + // + // procesToolStripMenuItem + // + this.procesToolStripMenuItem.Name = "procesToolStripMenuItem"; + this.procesToolStripMenuItem.Size = new System.Drawing.Size(160, 22); + this.procesToolStripMenuItem.Text = "Process"; + this.procesToolStripMenuItem.Click += new System.EventHandler(this.procesToolStripMenuItem_Click); + // + // subtitleToolStripMenuItem + // + this.subtitleToolStripMenuItem.Name = "subtitleToolStripMenuItem"; + this.subtitleToolStripMenuItem.Size = new System.Drawing.Size(160, 22); + this.subtitleToolStripMenuItem.Text = "Subtitle"; + this.subtitleToolStripMenuItem.Click += new System.EventHandler(this.subtitleToolStripMenuItem_Click); + // + // tagReadersToolStripMenuItem + // + this.tagReadersToolStripMenuItem.Name = "tagReadersToolStripMenuItem"; + this.tagReadersToolStripMenuItem.Size = new System.Drawing.Size(160, 22); + this.tagReadersToolStripMenuItem.Text = "TagReaders"; + this.tagReadersToolStripMenuItem.Click += new System.EventHandler(this.tagReadersToolStripMenuItem_Click); + // + // externalPlayersToolStripMenuItem + // + this.externalPlayersToolStripMenuItem.Name = "externalPlayersToolStripMenuItem"; + this.externalPlayersToolStripMenuItem.Size = new System.Drawing.Size(160, 22); + this.externalPlayersToolStripMenuItem.Text = "ExternalPlayers"; + this.externalPlayersToolStripMenuItem.Click += new System.EventHandler(this.externalPlayersToolStripMenuItem_Click); + // + // skinToolStripMenuItem + // + this.skinToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.componentToolStripMenuItem, + this.mediaToolStripMenuItem, + this.fullToolStripMenuItem}); + this.skinToolStripMenuItem.Name = "skinToolStripMenuItem"; + this.skinToolStripMenuItem.Size = new System.Drawing.Size(132, 22); + this.skinToolStripMenuItem.Text = "Skin"; + // + // componentToolStripMenuItem + // + this.componentToolStripMenuItem.Name = "componentToolStripMenuItem"; + this.componentToolStripMenuItem.Size = new System.Drawing.Size(140, 22); + this.componentToolStripMenuItem.Text = "Component"; + this.componentToolStripMenuItem.Click += new System.EventHandler(this.componentToolStripMenuItem_Click); + // + // mediaToolStripMenuItem + // + this.mediaToolStripMenuItem.Name = "mediaToolStripMenuItem"; + this.mediaToolStripMenuItem.Size = new System.Drawing.Size(140, 22); + this.mediaToolStripMenuItem.Text = "Media"; + this.mediaToolStripMenuItem.Click += new System.EventHandler(this.mediaToolStripMenuItem_Click); + // + // fullToolStripMenuItem + // + this.fullToolStripMenuItem.Name = "fullToolStripMenuItem"; + this.fullToolStripMenuItem.Size = new System.Drawing.Size(140, 22); + this.fullToolStripMenuItem.Text = "Full"; + this.fullToolStripMenuItem.Visible = false; + // + // languageToolStripMenuItem + // + this.languageToolStripMenuItem.Name = "languageToolStripMenuItem"; + this.languageToolStripMenuItem.Size = new System.Drawing.Size(132, 22); + this.languageToolStripMenuItem.Text = "Language"; + this.languageToolStripMenuItem.Click += new System.EventHandler(this.languageToolStripMenuItem_Click); + // + // bossview + // + this.bossview.CheckBoxes = true; + this.bossview.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.columnHeader1, + this.columnHeader2, + this.columnHeader3, + this.columnHeader4, + this.columnHeader5}); + this.bossview.ContextMenuStrip = this.contextMenuStrip1; + this.bossview.FullRowSelect = true; + this.bossview.GridLines = true; + this.bossview.Location = new System.Drawing.Point(12, 40); + this.bossview.Name = "bossview"; + this.bossview.Size = new System.Drawing.Size(663, 267); + this.bossview.TabIndex = 2; + this.bossview.UseCompatibleStateImageBehavior = false; + this.bossview.View = System.Windows.Forms.View.Details; + // + // columnHeader1 + // + this.columnHeader1.Text = "File"; + this.columnHeader1.Width = 116; + // + // columnHeader2 + // + this.columnHeader2.Text = "Type"; + this.columnHeader2.Width = 115; + // + // columnHeader3 + // + this.columnHeader3.Text = "Subtype"; + this.columnHeader3.Width = 108; + // + // columnHeader4 + // + this.columnHeader4.Text = "Path"; + this.columnHeader4.Width = 170; + // + // columnHeader5 + // + this.columnHeader5.Text = "Id"; + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripComboBox1}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(153, 48); + // + // toolStripComboBox1 + // + this.toolStripComboBox1.Name = "toolStripComboBox1"; + this.toolStripComboBox1.Size = new System.Drawing.Size(152, 22); + this.toolStripComboBox1.Text = "Remove"; + this.toolStripComboBox1.Click += new System.EventHandler(this.toolStripComboBox1_Click); + // + // openFileDialog1 + // + this.openFileDialog1.Filter = "\"Dll files|*.dll|All files|*.*\""; + // + // saveFileDialog1 + // + this.saveFileDialog1.DefaultExt = "xml"; + // + // groupBox1 + // + this.groupBox1.Location = new System.Drawing.Point(213, 322); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(450, 97); + this.groupBox1.TabIndex = 3; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Properties"; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(675, 431); + this.Controls.Add(this.bossview); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.menuStrip1); + this.MainMenuStrip = this.menuStrip1; + this.Name = "Form1"; + this.Text = "Form1"; + this.menuStrip1.ResumeLayout(false); + this.menuStrip1.PerformLayout(); + this.contextMenuStrip1.ResumeLayout(false); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.MenuStrip menuStrip1; + private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem; + private System.Windows.Forms.ListView bossview; + private System.Windows.Forms.ColumnHeader columnHeader1; + private System.Windows.Forms.ColumnHeader columnHeader2; + private System.Windows.Forms.ColumnHeader columnHeader3; + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem addToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem windowPluginToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem windowToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem procesToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem subtitleToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem tagReadersToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem externalPlayersToolStripMenuItem; + private System.Windows.Forms.ColumnHeader columnHeader4; + private System.Windows.Forms.ToolStripMenuItem skinToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem componentToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem mediaToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem fullToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem openProiectToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem sToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem saveProiectAsToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; + private System.Windows.Forms.ToolStripMenuItem optionsToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; + private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; + private System.Windows.Forms.OpenFileDialog openFileDialog1; + private System.Windows.Forms.ColumnHeader columnHeader5; + private System.Windows.Forms.SaveFileDialog saveFileDialog1; + private System.Windows.Forms.ToolStripMenuItem languageToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem buildToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem toolStripComboBox1; + private System.Windows.Forms.GroupBox groupBox1; + } +} + Added: trunk/plugins/mpinstaler/MPInstaler/Form1.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/Form1.cs (rev 0) +++ trunk/plugins/mpinstaler/MPInstaler/Form1.cs 2007-01-31 22:14:04 UTC (rev 68) @@ -0,0 +1,249 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; +using System.Xml; +using System.IO; +using ICSharpCode.SharpZipLib.Zip; + +namespace MPInstaler +{ + public partial class Form1 : Form + { + private MPinstalerStruct _struct = new MPinstalerStruct(); + public Form1() + { + InitializeComponent(); + } + + private void button1_Click(object sender, EventArgs e) + { + } + + private void sToolStripMenuItem_Click(object sender, EventArgs e) + { + Stream myStream; + + if (saveFileDialog1.ShowDialog(this) == DialogResult.OK) + { + if ((myStream = saveFileDialog1.OpenFile()) != null) + { + // Code to write the stream goes here. + XmlDocument doc = new XmlDocument(); + XmlWriter writer = null; + _struct.AddFileList(bossview); + try + { + // Create an XmlWriterSettings object with the correct options. + XmlWriterSettings settings = new XmlWriterSettings(); + string st = string.Empty; + settings.Indent = true; + settings.IndentChars = ("\t"); + settings.OmitXmlDeclaration = true; + // Create the XmlWriter object and write some content. + writer = XmlWriter.Create(myStream, settings); + writer.WriteStartElement("MPinstaler"); + writer.WriteElementString("ver", "1.00.000"); + writer.WriteStartElement("FileList"); + for (int i = 0; i < _struct.FileList.Count; i++) + { + MPIFileList it=(MPIFileList)_struct.FileList[i]; + writer.WriteStartElement("File"); + writer.WriteElementString("FileName",Path.GetFileName(it.FileName)); + writer.WriteElementString("Type", it.Type); + writer.WriteElementString("SubType", it.SubType); + writer.WriteElementString("Path", Path.GetDirectoryName(it.FileName)); + writer.WriteElementString("Id", it.ID); + writer.WriteEndElement(); + st = st + bossview.Items[i].SubItems[3].Text + @"\" + bossview.Items[i].Text + ";"; + } + writer.WriteEndElement(); + writer.WriteStartElement("Option"); + writer.WriteElementString("BuildFileName", _struct.BuildFileName); + writer.WriteEndElement(); + writer.WriteEndElement(); + writer.Flush(); + + //------------------------------------- + //------------------------------------- + } + finally + { + if (writer != null) + writer.Close(); + } + myStream.Close(); + + } + + } + + } + + private void windowToolStripMenuItem_Click(object sender, EventArgs e) + { + addplugin(1); + } + + private void addplugin(int type) + { + /* + 1 - 10 PLUGINS + 1 - window + 2 - process + 3 - subtitle + 4 - tagreader + 5 - external player + */ + string fil; + openFileDialog1.Filter = "Dll files|*.dll|All files|*.*"; + if (openFileDialog1.ShowDialog(this) == DialogResult.OK) + { + fil = openFileDialog1.FileName; + switch (type) + { + case 1: + addrow(Path.GetFileName(fil), MPinstalerStruct.PLUGIN_TYPE, MPinstalerStruct.PLUGIN_WINDOW_SUBTYPE, Path.GetDirectoryName(fil), "01010"); + break; + case 2: + addrow(Path.GetFileName(fil), MPinstalerStruct.PLUGIN_TYPE, MPinstalerStruct.PLUGIN_PROCESS_SUBTYPE, Path.GetDirectoryName(fil), "01020"); + break; + case 3: + addrow(Path.GetFileName(fil), MPinstalerStruct.PLUGIN_TYPE, MPinstalerStruct.PLUGIN_SUBTITLE_SUBTYPE, Path.GetDirectoryName(fil), "01030"); + break; + case 4: + addrow(Path.GetFileName(fil), MPinstalerStruct.PLUGIN_TYPE, MPinstalerStruct.PLUGIN_TAGREADER_SUBTYPE, Path.GetDirectoryName(fil), "01040"); + break; + case 5: + addrow(Path.GetFileName(fil), MPinstalerStruct.PLUGIN_TYPE, MPinstalerStruct.PLUGIN_PLAYER_SUBTYPE, Path.GetDirectoryName(fil), "01050"); + break; + default: + break; + } + } + } + + private void addskin(int type) + { +// string fil; + openFileDialog1.Filter = "xml files|*.xml|png files|*.png|bmp files|*.bmp|All files|*.*"; + openFileDialog1.Multiselect = true; + if (openFileDialog1.ShowDialog(this) == DialogResult.OK) + { + foreach(string fil in openFileDialog1.FileNames) + switch (type) + { + case 1: addrow(Path.GetFileName(fil), MPinstalerStruct.SKIN_TYPE, MPinstalerStruct.SKIN_XML_SUBTYPE, Path.GetDirectoryName(fil), "02010"); + break; + case 2: addrow(Path.GetFileName(fil), MPinstalerStruct.SKIN_MEDIA_TYPE, MPinstalerStruct.SKIN_XML_SUBTYPE, Path.GetDirectoryName(fil), "02020"); + break; + default: + break; + } + } + } + + private void subtitleToolStripMenuItem_Click(object sender, EventArgs e) + { + addplugin(3); + } + + private void procesToolStripMenuItem_Click(object sender, EventArgs e) + { + addplugin(2); + } + + private void tagReadersToolStripMenuItem_Click(object sender, EventArgs e) + { + addplugin(4); + } + + private void externalPlayersToolStripMenuItem_Click(object sender, EventArgs e) + { + addplugin(5); + } + + private void addrow(string file, string type, string subtype, string path, string id) + { + ListViewItem item1 = new ListViewItem(file, 0); + item1.SubItems.Add(type); + item1.SubItems.Add(subtype); + item1.SubItems.Add(path); + item1.SubItems.Add(id); + bossview.Items.AddRange(new ListViewItem[] { item1 }); + } + + private void openProiectToolStripMenuItem_Click(object sender, EventArgs e) + { + string fil; + openFileDialog1.Filter = "XML files|*.xml|All files|*.*"; + if (openFileDialog1.ShowDialog(this) == DialogResult.OK) + { + fil = openFileDialog1.FileName; + XmlDocument doc = new XmlDocument(); + doc.Load(fil); + XmlNode ver = doc.DocumentElement.SelectSingleNode("/MPinstaler"); + bossview.Items.Clear(); + XmlNodeList fileList = ver.SelectNodes("FileList/File"); + foreach (XmlNode nodefile in fileList) + { + addrow(nodefile.SelectSingleNode("FileName").InnerText, + nodefile.SelectSingleNode("Type").InnerText, + nodefile.SelectSingleNode("SubType").InnerText, + nodefile.SelectSingleNode("Path").InnerText, + nodefile.SelectSingleNode("Id").InnerText); + } + _struct.BuildFileName=ver.SelectSingleNode("Option/BuildFileName").InnerText; + } + _struct.AddFileList(bossview); + } + + private void languageToolStripMenuItem_Click(object sender, EventArgs e) + { + Form2 StrForm = new Form2(); + StrForm.ShowDialog(); + } + + private void optionsToolStripMenuItem_Click(object sender, EventArgs e) + { + OptionForm opForm = new OptionForm(); + opForm.ShowDialog(); + } + + private void buildToolStripMenuItem_Click(object sender, EventArgs e) + { + Build_dialog buildfrm = new Build_dialog(this._struct); + buildfrm.ShowDialog(); + this._struct = buildfrm._struct; + } + + private void newToolStripMenuItem_Click(object sender, EventArgs e) + { + bossview.Items.Clear(); + _struct.Clear(); + } + + private void componentToolStripMenuItem_Click(object sender, EventArgs e) + { + addskin(1); + } + + private void mediaToolStripMenuItem_Click(object sender, EventArgs e) + { + addskin(2); + } + + private void toolStripComboBox1_Click(object sender, EventArgs e) + { + for (int i = 0; i < bossview.Items.Count; i++) + if (bossview.Items[i].Selected) bossview.Items.RemoveAt(i); + } + + + + + } +} \ No newline at end of file Added: trunk/plugins/mpinstaler/MPInstaler/Form1.resx =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/Form1.resx (rev 0) +++ trunk/plugins/mpinstaler/MPInstaler/Form1.resx 2007-01-31 22:14:04 UTC (rev 68) @@ -0,0 +1,132 @@ +<?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> + <metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> + <metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>126, 17</value> + </metadata> + <metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>271, 17</value> + </metadata> + <metadata name="saveFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>401, 17</value> + </metadata> +</root> \ No newline at end of file Added: trunk/plugins/mpinstaler/MPInstaler/Form2.Designer.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/Form2.Designer.cs (rev 0) +++ trunk/plugins/mpinstaler/MPInstaler/Form2.Designer.cs 2007-01-31 22:14:04 UTC (rev 68) @@ -0,0 +1,136 @@ +namespace MPInstaler +{ + partial class Form2 + { + /// <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.button1 = new System.Windows.Forms.Button(); + this.button2 = new System.Windows.Forms.Button(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + 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.SuspendLayout(); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(80, 289); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(65, 23); + this.button1.TabIndex = 0; + this.button1.Text = "Add"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // button2 + // + this.button2.Location = new System.Drawing.Point(186, 289); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(75, 23); + this.button2.TabIndex = 1; + this.button2.Text = "Remove"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(12, 22); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(372, 21); + this.comboBox1.TabIndex = 2; + // + // listView1 + // + this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.columnHeader1, + this.columnHeader2}); + this.listView1.FullRowSelect = true; + this.listView1.GridLines = true; + this.listView1.Location = new System.Drawing.Point(12, 68); + this.listView1.Name = "listView1"; + this.listView1.Size = new System.Drawing.Size(372, 179); + this.listView1.TabIndex = 3; + this.listView1.UseCompatibleStateImageBehavior = false; + this.listView1.View = System.Windows.Forms.View.Details; + this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged); + // + // columnHeader1 + // + this.columnHeader1.Text = "Id"; + // + // columnHeader2 + // + this.columnHeader2.Text = "Value"; + this.columnHeader2.Width = 308; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(12, 253); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(62, 20); + this.textBox1.TabIndex = 4; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(80, 253); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = n... [truncated message content] |
From: <fr...@us...> - 2007-01-31 21:34:52
|
Revision: 67 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=67&view=rev Author: framug Date: 2007-01-31 13:34:49 -0800 (Wed, 31 Jan 2007) Log Message: ----------- Add MultiShortcut plugin (tested, it works), enjoy ;) Added Paths: ----------- trunk/plugins/MultiShortcut/ trunk/plugins/MultiShortcut/DLLFix/ trunk/plugins/MultiShortcut/DLLFix/DLLFix.csproj trunk/plugins/MultiShortcut/DLLFix/Program.cs trunk/plugins/MultiShortcut/DLLFix/Properties/ trunk/plugins/MultiShortcut/DLLFix/Properties/AssemblyInfo.cs trunk/plugins/MultiShortcut/DLLFix/bin/ trunk/plugins/MultiShortcut/DLLFix/bin/Release/ trunk/plugins/MultiShortcut/DLLFix/bin/Release/AxInterop.WMPLib.dll trunk/plugins/MultiShortcut/DLLFix/bin/Release/Bass.Net.dll trunk/plugins/MultiShortcut/DLLFix/bin/Release/BassRegistration.dll trunk/plugins/MultiShortcut/DLLFix/bin/Release/Core.dll trunk/plugins/MultiShortcut/DLLFix/bin/Release/DLLFix.exe trunk/plugins/MultiShortcut/DLLFix/bin/Release/DLLFix.pdb trunk/plugins/MultiShortcut/DLLFix/bin/Release/Databases.dll trunk/plugins/MultiShortcut/DLLFix/bin/Release/Dialogs.dll trunk/plugins/MultiShortcut/DLLFix/bin/Release/DirectShowLib.dll trunk/plugins/MultiShortcut/DLLFix/bin/Release/ICSharpCode.SharpZipLib.dll trunk/plugins/MultiShortcut/DLLFix/bin/Release/Interop.SHDocVw.dll trunk/plugins/MultiShortcut/DLLFix/bin/Release/Interop.WMPLib.dll trunk/plugins/MultiShortcut/DLLFix/bin/Release/MediaPortal.Support.dll trunk/plugins/MultiShortcut/DLLFix/bin/Release/MediaPortal.Support.pdb trunk/plugins/MultiShortcut/DLLFix/bin/Release/MultiShortcut00.dll trunk/plugins/MultiShortcut/DLLFix/bin/Release/MultiShortcut00.pdb trunk/plugins/MultiShortcut/DLLFix/bin/Release/Utils.dll trunk/plugins/MultiShortcut/DLLFix/bin/Release/edtftpnet-1.2.2.dll trunk/plugins/MultiShortcut/MultiButton.sln trunk/plugins/MultiShortcut/MultiButton.suo trunk/plugins/MultiShortcut/MultiShortcut/ trunk/plugins/MultiShortcut/MultiShortcut/Config.Designer.cs trunk/plugins/MultiShortcut/MultiShortcut/Config.cs trunk/plugins/MultiShortcut/MultiShortcut/Config.resx trunk/plugins/MultiShortcut/MultiShortcut/MultiShortcut.cs trunk/plugins/MultiShortcut/MultiShortcut/MultiShortcut.csproj trunk/plugins/MultiShortcut/MultiShortcut/Properties/ trunk/plugins/MultiShortcut/MultiShortcut/Properties/AssemblyInfo.cs trunk/plugins/MultiShortcut/MultiShortcut/bin/ trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/ trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/AxInterop.WMPLib.dll trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Bass.Net.dll trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/BassRegistration.dll trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Core.dll trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Databases.dll trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Dialogs.dll trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/DirectShowLib.dll trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/ICSharpCode.SharpZipLib.dll trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Interop.SHDocVw.dll trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Interop.WMPLib.dll trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/MediaPortal.Support.dll trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/MediaPortal.Support.pdb trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/MultiShortcut00.dll trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/MultiShortcut00.pdb trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Utils.dll trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/edtftpnet-1.2.2.dll trunk/plugins/MultiShortcut/TestServer/ trunk/plugins/MultiShortcut/TestServer/Program.cs trunk/plugins/MultiShortcut/TestServer/Properties/ trunk/plugins/MultiShortcut/TestServer/Properties/AssemblyInfo.cs trunk/plugins/MultiShortcut/TestServer/TestServer.csproj trunk/plugins/MultiShortcut/TestServer/bin/ trunk/plugins/MultiShortcut/TestServer/bin/Release/ trunk/plugins/MultiShortcut/TestServer/bin/Release/AxInterop.WMPLib.dll trunk/plugins/MultiShortcut/TestServer/bin/Release/Bass.Net.dll trunk/plugins/MultiShortcut/TestServer/bin/Release/BassRegistration.dll trunk/plugins/MultiShortcut/TestServer/bin/Release/Core.dll trunk/plugins/MultiShortcut/TestServer/bin/Release/Databases.dll trunk/plugins/MultiShortcut/TestServer/bin/Release/Dialogs.dll trunk/plugins/MultiShortcut/TestServer/bin/Release/DirectShowLib.dll trunk/plugins/MultiShortcut/TestServer/bin/Release/ICSharpCode.SharpZipLib.dll trunk/plugins/MultiShortcut/TestServer/bin/Release/Interop.SHDocVw.dll trunk/plugins/MultiShortcut/TestServer/bin/Release/Interop.WMPLib.dll trunk/plugins/MultiShortcut/TestServer/bin/Release/MediaPortal.Support.dll trunk/plugins/MultiShortcut/TestServer/bin/Release/MediaPortal.Support.pdb trunk/plugins/MultiShortcut/TestServer/bin/Release/MultiShortcut00.dll trunk/plugins/MultiShortcut/TestServer/bin/Release/MultiShortcut00.pdb trunk/plugins/MultiShortcut/TestServer/bin/Release/TestServer.exe trunk/plugins/MultiShortcut/TestServer/bin/Release/TestServer.pdb trunk/plugins/MultiShortcut/TestServer/bin/Release/Utils.dll trunk/plugins/MultiShortcut/TestServer/bin/Release/edtftpnet-1.2.2.dll Added: trunk/plugins/MultiShortcut/DLLFix/DLLFix.csproj =================================================================== --- trunk/plugins/MultiShortcut/DLLFix/DLLFix.csproj (rev 0) +++ trunk/plugins/MultiShortcut/DLLFix/DLLFix.csproj 2007-01-31 21:34:49 UTC (rev 67) @@ -0,0 +1,57 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>8.0.50727</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{8EDA7E5D-E56B-486E-BFB3-DB3A47733E39}</ProjectGuid> + <OutputType>Exe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>DLLFix</RootNamespace> + <AssemblyName>DLLFix</AssemblyName> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="Core, Version=1.0.2587.38185, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\MediaPortal\Core\bin\Release\Core.dll</HintPath> + </Reference> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Program.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\MultiShortcut\MultiShortcut.csproj"> + <Project>{7CBDA33F-E11F-400B-8B3F-ABB0B54462AC}</Project> + <Name>MultiShortcut</Name> + </ProjectReference> + </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. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Added: trunk/plugins/MultiShortcut/DLLFix/Program.cs =================================================================== --- trunk/plugins/MultiShortcut/DLLFix/Program.cs (rev 0) +++ trunk/plugins/MultiShortcut/DLLFix/Program.cs 2007-01-31 21:34:49 UTC (rev 67) @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Reflection; + +using MediaPortal.MultiShortcut; + +namespace DLLFix +{ + class Program + { + const int fixStart = 11290; + + static void Main(string[] args) + { + + byte[] search_bytes = new byte[] + { + 0x52, 0x75, 0x6E, 0x74, 0x69, 0x6D, 0x65, 0x43, + 0x6F, 0x6D, 0x70, 0x61, 0x74, 0x69, 0x62, 0x69, + 0x6C, 0x69, 0x74, 0x79, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x00, 0x4D, 0x75, + 0x6C, 0x74, 0x69, 0x53, 0x68, 0x6F, 0x72, 0x74, + 0x63, 0x75, 0x74 + }; + + byte fileCounter = 0; + + string myPath = System.Reflection.Assembly.GetExecutingAssembly().Location; + myPath = myPath.Substring(0, myPath.LastIndexOf('\\')); + + string[] files = Directory.GetFiles(myPath, "*.dll"); + + Console.WriteLine("*******************************************************"); + Console.WriteLine("** **"); + Console.WriteLine("** MultiShortcut DLL fix (.net metadata changer) **"); + Console.WriteLine("** **"); + Console.WriteLine("*******************************************************"); + Console.WriteLine(""); + Console.WriteLine("1.) Patching files...\n"); + foreach (string s in files) + { + using (Stream st = new FileStream(s, FileMode.Open, FileAccess.ReadWrite)) + { + int offset = 0; + long file_pos = 0; + int bytes_read = 0; + byte[] buffer = new byte[65536]; + + bool match = false; + + while ((bytes_read = st.Read(buffer, offset, buffer.Length - offset)) > 0 && !match) + { + for (int i = 0; i < bytes_read + offset - search_bytes.Length; i++) + { + match = true; + + for (int j = 0; j < search_bytes.Length; j++) + { + if (search_bytes[j] != buffer[i + j]) + { + match = false; + break; + } + } + + if (match) + { + st.Seek(file_pos + i - offset + search_bytes.Length, SeekOrigin.Begin); + byte[] replaceBuffer = new byte[] { (Byte)(48 + (fileCounter > 9 ? ((int)fileCounter / 10) : 0)), (Byte)(48 + ((int)fileCounter % 10)) }; + st.Write(replaceBuffer, 0, replaceBuffer.Length); + Console.WriteLine(" - PATCHED: {0}",s.Substring(s.LastIndexOf('\\')+1)); + break; + } + } + + file_pos = st.Position; + + offset = search_bytes.Length; + for (int i = 0; i < offset; i++) + { + buffer[i] = buffer[buffer.Length - offset + i]; + } + } + + } + fileCounter++; + } + + Console.WriteLine("\n2.) Done."); + Console.WriteLine("\n3.) Press Enter to close..."); + Console.ReadKey(); + } + } +} Added: trunk/plugins/MultiShortcut/DLLFix/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/MultiShortcut/DLLFix/Properties/AssemblyInfo.cs (rev 0) +++ trunk/plugins/MultiShortcut/DLLFix/Properties/AssemblyInfo.cs 2007-01-31 21:34:49 UTC (rev 67) @@ -0,0 +1,33 @@ +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("DLLFix")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("lr-software")] +[assembly: AssemblyProduct("DLLFix")] +[assembly: AssemblyCopyright("Copyright © lr-software 2006")] +[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)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("351bc816-4ecd-4da5-b4fb-a8af512fec21")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/AxInterop.WMPLib.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/AxInterop.WMPLib.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/Bass.Net.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/Bass.Net.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/BassRegistration.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/BassRegistration.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/Core.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/Core.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/DLLFix.exe =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/DLLFix.exe ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/DLLFix.pdb =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/DLLFix.pdb ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/Databases.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/Databases.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/Dialogs.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/Dialogs.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/DirectShowLib.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/DirectShowLib.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/ICSharpCode.SharpZipLib.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/ICSharpCode.SharpZipLib.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/Interop.SHDocVw.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/Interop.SHDocVw.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/Interop.WMPLib.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/Interop.WMPLib.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/MediaPortal.Support.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/MediaPortal.Support.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/MediaPortal.Support.pdb =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/MediaPortal.Support.pdb ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/MultiShortcut00.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/MultiShortcut00.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/MultiShortcut00.pdb =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/MultiShortcut00.pdb ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/Utils.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/Utils.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/DLLFix/bin/Release/edtftpnet-1.2.2.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/DLLFix/bin/Release/edtftpnet-1.2.2.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiButton.sln =================================================================== --- trunk/plugins/MultiShortcut/MultiButton.sln (rev 0) +++ trunk/plugins/MultiShortcut/MultiButton.sln 2007-01-31 21:34:49 UTC (rev 67) @@ -0,0 +1,32 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestServer", "TestServer\TestServer.csproj", "{D2159E0B-44FA-41D8-B701-081D2C931CC0}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultiShortcut", "MultiShortcut\MultiShortcut.csproj", "{7CBDA33F-E11F-400B-8B3F-ABB0B54462AC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DLLFix", "DLLFix\DLLFix.csproj", "{8EDA7E5D-E56B-486E-BFB3-DB3A47733E39}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D2159E0B-44FA-41D8-B701-081D2C931CC0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D2159E0B-44FA-41D8-B701-081D2C931CC0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D2159E0B-44FA-41D8-B701-081D2C931CC0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D2159E0B-44FA-41D8-B701-081D2C931CC0}.Release|Any CPU.Build.0 = Release|Any CPU + {7CBDA33F-E11F-400B-8B3F-ABB0B54462AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7CBDA33F-E11F-400B-8B3F-ABB0B54462AC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7CBDA33F-E11F-400B-8B3F-ABB0B54462AC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7CBDA33F-E11F-400B-8B3F-ABB0B54462AC}.Release|Any CPU.Build.0 = Release|Any CPU + {8EDA7E5D-E56B-486E-BFB3-DB3A47733E39}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8EDA7E5D-E56B-486E-BFB3-DB3A47733E39}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8EDA7E5D-E56B-486E-BFB3-DB3A47733E39}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8EDA7E5D-E56B-486E-BFB3-DB3A47733E39}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal Added: trunk/plugins/MultiShortcut/MultiButton.suo =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiButton.suo ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/Config.Designer.cs =================================================================== --- trunk/plugins/MultiShortcut/MultiShortcut/Config.Designer.cs (rev 0) +++ trunk/plugins/MultiShortcut/MultiShortcut/Config.Designer.cs 2007-01-31 21:34:49 UTC (rev 67) @@ -0,0 +1,90 @@ +namespace MediaPortal.MultiShortcut +{ + partial class Config + { + /// <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.propertyGrid1 = new System.Windows.Forms.PropertyGrid(); + this.button1 = new System.Windows.Forms.Button(); + this.button2 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // propertyGrid1 + // + this.propertyGrid1.HelpVisible = false; + this.propertyGrid1.Location = new System.Drawing.Point(12, 12); + this.propertyGrid1.Name = "propertyGrid1"; + this.propertyGrid1.Size = new System.Drawing.Size(270, 383); + this.propertyGrid1.TabIndex = 0; + this.propertyGrid1.ToolbarVisible = false; + // + // button1 + // + this.button1.DialogResult = System.Windows.Forms.DialogResult.OK; + this.button1.Location = new System.Drawing.Point(126, 401); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 1; + this.button1.Text = "&Save"; + this.button1.UseVisualStyleBackColor = true; + // + // button2 + // + this.button2.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.button2.Location = new System.Drawing.Point(207, 401); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(75, 23); + this.button2.TabIndex = 2; + this.button2.Text = "Cancel"; + this.button2.UseVisualStyleBackColor = true; + // + // Config + // + this.AcceptButton = this.button1; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoSize = true; + this.CancelButton = this.button2; + this.ClientSize = new System.Drawing.Size(295, 434); + this.ControlBox = false; + this.Controls.Add(this.button2); + this.Controls.Add(this.button1); + this.Controls.Add(this.propertyGrid1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Name = "Config"; + this.Text = "MultiShortcut Configuration"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.PropertyGrid propertyGrid1; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Button button2; + } +} \ No newline at end of file Added: trunk/plugins/MultiShortcut/MultiShortcut/Config.cs =================================================================== --- trunk/plugins/MultiShortcut/MultiShortcut/Config.cs (rev 0) +++ trunk/plugins/MultiShortcut/MultiShortcut/Config.cs 2007-01-31 21:34:49 UTC (rev 67) @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace MediaPortal.MultiShortcut +{ + public partial class Config : Form + { + public Config() + { + InitializeComponent(); + } + + public void SetPropertyGrid(object o) + { + propertyGrid1.SelectedObject = o; + } + + } +} \ No newline at end of file Added: trunk/plugins/MultiShortcut/MultiShortcut/Config.resx =================================================================== --- trunk/plugins/MultiShortcut/MultiShortcut/Config.resx (rev 0) +++ trunk/plugins/MultiShortcut/MultiShortcut/Config.resx 2007-01-31 21:34:49 UTC (rev 67) @@ -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/MultiShortcut/MultiShortcut/MultiShortcut.cs =================================================================== --- trunk/plugins/MultiShortcut/MultiShortcut/MultiShortcut.cs (rev 0) +++ trunk/plugins/MultiShortcut/MultiShortcut/MultiShortcut.cs 2007-01-31 21:34:49 UTC (rev 67) @@ -0,0 +1,375 @@ +// THIS IS NOTHING MORE THAN A HACK! +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Reflection; +using System.IO; +using System.Runtime.InteropServices; +using System.Threading; + +using System.ComponentModel; + +using MediaPortal.GUI.Library; +using MediaPortal.Dialogs; +using MediaPortal.Util; + +namespace MediaPortal.MultiShortcut +{ + public class MultiShortcut: GUIWindow, ISetupForm, IShowPlugin + { + #region ISetupForm Members + + protected internal int m_ID = -1; + protected internal string m_Name = String.Empty; + + protected internal string m_ExeFile = String.Empty; + protected internal string m_ProgFile = String.Empty; + protected internal string m_Arguments = String.Empty; + + protected internal string m_Picture = String.Empty; + protected internal string m_ButtonImg = String.Empty; + protected internal string m_ButtonImgF = String.Empty; + protected internal string m_Caption = String.Empty; + protected internal bool m_HandleMPWindow = false; + + int m_MP_WindowHWND = 0; + + public MultiShortcut() + { + m_Name = System.Reflection.Assembly.GetExecutingAssembly().Location; + string[] nameParts = m_Name.Split('\\'); + m_Name = nameParts[nameParts.Length - 1]; + nameParts = m_Name.Split('.'); + if (nameParts.Length > 0) + { + m_Name = nameParts[0]; + m_ID = FindID(ref m_Name); + } + + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MediaPortal.xml")) + { + m_ExeFile = xmlreader.GetValueAsString(m_Name, "exefile", string.Empty); + m_Arguments = xmlreader.GetValueAsString(m_Name, "arguments", string.Empty); + m_Picture = xmlreader.GetValueAsString(m_Name, "picture", string.Empty); + m_ButtonImg = xmlreader.GetValueAsString(m_Name, "buttonimage", string.Empty); + m_ButtonImgF = xmlreader.GetValueAsString(m_Name, "buttonimagefocus", string.Empty); + m_Caption = xmlreader.GetValueAsString(m_Name, "caption", string.Empty); + m_ID = xmlreader.GetValueAsInt(m_Name, "pluginid", -1); + m_HandleMPWindow = xmlreader.GetValueAsInt(m_Name, "handlempwindow", 1) == 0; + + if (m_ExeFile.Length > 0) + { + string[] parts = m_ExeFile.Split('\\'); + if (parts.Length > 0) m_ProgFile = parts[parts.Length - 1]; + } + } + + if (m_ID < 0) + { + List<int> lst = new List<int>(25); + + foreach (object o in PluginManager.GUIPlugins) + lst.Add(((ISetupForm)o).GetWindowId()); + + foreach (object o in PluginManager.NonGUIPlugins) + lst.Add(((ISetupForm)o).GetWindowId()); + + foreach (object o in PluginManager.WakeablePlugins) + lst.Add(((ISetupForm)o).GetWindowId()); + + Random rd = new Random((int)DateTime.Now.Ticks); + int id = rd.Next(1000, 9000); + while (IsInList(lst, id)) id = rd.Next(1000,9000); + + m_ID = id; + } + + using (MediaPortal.Profile.Settings xmlwrite = new MediaPortal.Profile.Settings("MediaPortal.xml")) + { + xmlwrite.SetValue(m_Name, "pluginid", m_ID); + } + } + + private bool IsInList(List<int> lst, int id) + { + foreach(int i in lst) + if (i == id) return true; + + return false; + } + + private int FindID(ref string name) + { + int i = name.LastIndexOf('_'); + if (i < 0) + return -1; + else + { + try + { + int newID = Convert.ToInt32(name.Substring(i + 1)); + name = name.Substring(0, i); + return newID; + } + catch (Exception e) + { +//fmu Log.Write(e); + Log.Error(e); + return -1; + } + } + } + + public string Author() + { + return "kuerb"; + } + + public bool CanEnable() + { + return true; + } + + public bool DefaultEnabled() + { + return true; + } + + public string Description() + { + return "Adds button to homepage (dynamic id!)"; + } + + public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage) + { + strButtonText = m_Caption.Length > 0 ? m_Caption : "-no name-"; + strButtonImage = m_ButtonImg; + strButtonImageFocus = m_ButtonImgF; + strPictureImage = m_Picture; + return true; + } + + public int GetWindowId() + { + return m_ID; + } + + public bool HasSetup() + { + return true; + } + + public string PluginName() + { + return String.Format(m_Name); + } + + public void ShowPlugin() + { + Config cf = new Config(); + cf.SetPropertyGrid(new ConfigWrapper(this)); + + + if (cf.ShowDialog() == System.Windows.Forms.DialogResult.OK) + { + using (MediaPortal.Profile.Settings xmlwrite = new MediaPortal.Profile.Settings("MediaPortal.xml")) + { + xmlwrite.SetValue(m_Name, "exefile", m_ExeFile); + xmlwrite.SetValue(m_Name, "arguments", m_Arguments); + xmlwrite.SetValue(m_Name, "picture", m_Picture); + xmlwrite.SetValue(m_Name, "buttonimage", m_ButtonImg); + xmlwrite.SetValue(m_Name, "buttonimagefocus", m_ButtonImgF); + xmlwrite.SetValue(m_Name, "caption", m_Caption); + xmlwrite.SetValue(m_Name, "pluginid", m_ID); + xmlwrite.SetValue(m_Name, "handlempwindow", m_HandleMPWindow ? 0 : 1); + } + } + } + + #endregion + + #region GUIWindow + + public override int GetID + { + get { return m_ID; } + set {} + } + + public override bool Init() + { + return false; + } + + protected override void OnPageLoad() + { + + if (m_ExeFile == string.Empty || !File.Exists(m_ExeFile)) + { + GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.SetHeading("Could not start program!"); + dlg.SetLine(1, String.Format("ConfigSection: [{0}]",m_Name)); + dlg.DoModal(GUIWindowManager.ActiveWindow); + } + else + RunProgram(m_ExeFile, m_Arguments); + + GUIWindowManager.ShowPreviousWindow(); + } + + private void RunProgram(string exeName, string argsLine) + { + ProcessStartInfo psI = new ProcessStartInfo(exeName, argsLine); + Process newProcess = new Process(); + + try + { + newProcess.StartInfo.FileName = exeName; + newProcess.StartInfo.Arguments = argsLine; + newProcess.StartInfo.UseShellExecute = true; + newProcess.EnableRaisingEvents = true; + if (newProcess.Start()) + { + if (m_HandleMPWindow) + { + m_MP_WindowHWND = Win32Wrapper.FindWindow(null, "MediaPortal - "); + if (m_MP_WindowHWND > 0) + { + Win32Wrapper.ShowWindow(m_MP_WindowHWND, Win32Wrapper.SW_HIDE); + /* next two lines not yet need. + Thread.Sleep(2000); + Win32Wrapper.SetWindowPos(newProcess.MainWindowHandle, Win32Wrapper.HWND_TOPMOST, 0, 0, 0, 0, Win32Wrapper.SWP_NOSIZE | Win32Wrapper.SWP_NOMOVE); + */ + newProcess.Exited += new EventHandler(newProcess_Exited); + } + } + } + + } + catch (Exception e) + { + throw e; + } + } + + void newProcess_Exited(object sender, EventArgs e) + { + Win32Wrapper.ShowWindow(m_MP_WindowHWND, Win32Wrapper.SW_SHOWDEFAULT); + } + + #endregion + + #region IShowPlugin Members + + public bool ShowDefaultHome() + { + return true; + } + + #endregion + } + + internal class ConfigWrapper + { + MultiShortcut m_MS = null; + + public ConfigWrapper(MultiShortcut ms) + { + m_MS = ms; + } + + [Category("Program")] + public string Exefile + { + get { return m_MS.m_ExeFile; } + set { m_MS.m_ExeFile = value; } + } + + [Category("Program")] + public string Arguments + { + get { return m_MS.m_Arguments; } + set { m_MS.m_Arguments = value; } + } + + [Category("Program")] + public bool HideMPWhileExecuting + { + get { return m_MS.m_HandleMPWindow; } + set { m_MS.m_HandleMPWindow = value; } + } + + [Category("Homescreen")] + public string Picture + { + get { return m_MS.m_Picture; } + set { m_MS.m_Picture = value; } + } + + [Category("Homescreen")] + public string ButtonImage + { + get { return m_MS.m_ButtonImg; } + set { m_MS.m_ButtonImg = value; } + } + + [Category("Homescreen")] + public string ButtonImageFocus + { + get { return m_MS.m_ButtonImgF; } + set { m_MS.m_ButtonImgF = value; } + } + + [Category("Homescreen")] + public string ButtonCaption + { + get { return m_MS.m_Caption; } + set { m_MS.m_Caption = value; } + } + } + + internal class Win32Wrapper + { + public const int GWL_STYLE = -16; + public const int GWL_EXSTYLE = -20; + + public const uint SWP_NOSIZE = 0x0001; + public const uint SWP_NOMOVE = 0x0002; + public const uint SWP_NOZORDER = 0x0004; + public const uint SWP_NOREDRAW = 0x0008; + public const uint SWP_NOACTIVATE = 0x0010; + public const uint SWP_FRAMECHANGED = 0x0020; + public const uint SWP_SHOWWINDOW = 0x0040; + public const uint SWP_HIDEWINDOW = 0x0080; + public const uint SWP_NOCOPYBITS = 0x0100; + public const uint SWP_NOOWNERZORDER = 0x0200; + public const uint SWP_NOSENDCHANGING = 0x0400; + public const int SW_HIDE = 0; + public const int SW_SHOWDEFAULT = 10; + + public const int HWND_TOPMOST = -1; + + [DllImport("User32", ExactSpelling = true)] + public static extern int SetWindowPos(IntPtr hWnd, int hWndInsertAfter, + int x, int y, int cx, int cy, uint uFlags); + + public const int WM_SYSCOMMAND = 0x0112; + public const int BM_CLICK = 0x00F5; + + + + [DllImport("user32.dll")] + public static extern int FindWindow( + string lpClassName, // class name + string lpWindowName // window name + ); + + [DllImport("User32", EntryPoint = "SetForegroundWindow")] + public static extern bool SetForegroundWindow(int hWnd); + + [DllImport("User32", ExactSpelling = true)] + public static extern bool ShowWindow(int hWnd, int nCmdShow); + + } +} Added: trunk/plugins/MultiShortcut/MultiShortcut/MultiShortcut.csproj =================================================================== --- trunk/plugins/MultiShortcut/MultiShortcut/MultiShortcut.csproj (rev 0) +++ trunk/plugins/MultiShortcut/MultiShortcut/MultiShortcut.csproj 2007-01-31 21:34:49 UTC (rev 67) @@ -0,0 +1,78 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>8.0.50727</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{7CBDA33F-E11F-400B-8B3F-ABB0B54462AC}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>MultiShortcut</RootNamespace> + <AssemblyName>MultiShortcut00</AssemblyName> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="Core, Version=1.0.2587.38185, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\MediaPortal\Core\bin\Release\Core.dll</HintPath> + </Reference> + <Reference Include="Databases, Version=1.0.2587.38186, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\MediaPortal\Databases\bin\Release\Databases.dll</HintPath> + </Reference> + <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\MediaPortal\Dialogs\bin\Release\Dialogs.dll</HintPath> + </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.2587.38184, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\MediaPortal\Utils\bin\Release\Utils.dll</HintPath> + </Reference> + </ItemGroup> + <ItemGroup> + <Compile Include="Config.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="Config.Designer.cs"> + <DependentUpon>Config.cs</DependentUpon> + </Compile> + <Compile Include="MultiShortcut.cs"> + </Compile> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <EmbeddedResource Include="Config.resx"> + <SubType>Designer</SubType> + <DependentUpon>Config.cs</DependentUpon> + </EmbeddedResource> + </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. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Added: trunk/plugins/MultiShortcut/MultiShortcut/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/MultiShortcut/MultiShortcut/Properties/AssemblyInfo.cs (rev 0) +++ trunk/plugins/MultiShortcut/MultiShortcut/Properties/AssemblyInfo.cs 2007-01-31 21:34:49 UTC (rev 67) @@ -0,0 +1,35 @@ +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("MultiShortcut")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("lr-software")] +[assembly: AssemblyProduct("MultiShortcut")] +[assembly: AssemblyCopyright("Copyright © lr-software 2006")] +[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)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("6fc5722f-e54a-4fef-8ff5-70ff897c0ccd")] + +// 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.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/AxInterop.WMPLib.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/AxInterop.WMPLib.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Bass.Net.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Bass.Net.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/BassRegistration.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/BassRegistration.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Core.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Core.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Databases.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Databases.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Dialogs.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Dialogs.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/DirectShowLib.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/DirectShowLib.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/ICSharpCode.SharpZipLib.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/ICSharpCode.SharpZipLib.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Interop.SHDocVw.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Interop.SHDocVw.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Interop.WMPLib.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Interop.WMPLib.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/MediaPortal.Support.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/MediaPortal.Support.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/MediaPortal.Support.pdb =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/MediaPortal.Support.pdb ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/MultiShortcut00.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/MultiShortcut00.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/MultiShortcut00.pdb =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/MultiShortcut00.pdb ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Utils.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/Utils.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/edtftpnet-1.2.2.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MultiShortcut/MultiShortcut/bin/Release/edtftpnet-1.2.2.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MultiShortcut/TestServer/Program.cs =================================================================== --- trunk/plugins/MultiShortcut/TestServer/Program.cs (rev 0) +++ trunk/plugins/MultiShortcut/TestServer/Program.cs 2007-01-31 21:34:49 UTC (rev 67) @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using MediaPortal.GUI.Library; +using MediaPortal.Util; + +using MediaPortal.MultiShortcut; + + +namespace TestServer +{ + class Program + { + static void Main(string[] args) + { + MultiShortcut ms = new MultiShortcut(); + MultiShortcut ms2 = new MultiShortcut(); + //ms.RunProgram(@"c:\windows\notepad.exe", String.Empty); + + Console.ReadKey(); + } + } +} Added: trunk/plugins/MultiShortcut/TestServer/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/MultiShortcut/TestServer/Properties/AssemblyInfo.cs (rev 0) +++ trunk/plugins/MultiShortcut/TestServer/Properties/AssemblyInfo.cs 2007-01-31 21:34:49 UTC (rev 67) @@ -0,0 +1,33 @@ +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("TestServer")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("lr-software")] +[assembly: AssemblyProduct("TestServer")] +[assembly: AssemblyCopyright("Copyright © lr-software 2006")] +[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)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("33c0939b-dc1d-41ed-be34-d3cf04a41197")] + +// Version information fo... [truncated message content] |
From: <du...@us...> - 2007-01-31 21:10:50
|
Revision: 66 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=66&view=rev Author: dukus Date: 2007-01-31 13:10:48 -0800 (Wed, 31 Jan 2007) Log Message: ----------- Added Skin & language file Modified Paths: -------------- trunk/plugins/MyDVDs/MyDVDs.suo Added Paths: ----------- trunk/plugins/MyDVDs/language/ trunk/plugins/MyDVDs/language/English/ trunk/plugins/MyDVDs/language/English/strings.xml trunk/plugins/MyDVDs/skin/ trunk/plugins/MyDVDs/skin/BlueTwo/ trunk/plugins/MyDVDs/skin/BlueTwo/Media/ trunk/plugins/MyDVDs/skin/BlueTwo/Media/hover_dvdstack.png trunk/plugins/MyDVDs/skin/BlueTwo/Media/mydvds_logo.png trunk/plugins/MyDVDs/skin/BlueTwo/mydvds.xml trunk/plugins/MyDVDs/skin/BlueTwo/mydvdsfilter.xml trunk/plugins/MyDVDs/skin/BlueTwo/mydvdsinfo.xml Modified: trunk/plugins/MyDVDs/MyDVDs.suo =================================================================== (Binary files differ) Added: trunk/plugins/MyDVDs/language/English/strings.xml =================================================================== --- trunk/plugins/MyDVDs/language/English/strings.xml (rev 0) +++ trunk/plugins/MyDVDs/language/English/strings.xml 2007-01-31 21:10:48 UTC (rev 66) @@ -0,0 +1,3525 @@ + <strings> + <characters>512</characters> + <string> + <id>0</id> + <value>My Programs</value> + </string> + <string> + <id>1</id> + <value>My Pictures</value> + </string> + <string> + <id>2</id> + <value>My Music</value> + </string> + <string> + <id>3</id> + <value>My Videos</value> + </string> + <string> + <id>4</id> + <value>TV Guide</value> + </string> + <string> + <id>5</id> + <value>Settings</value> + </string> + <string> + <id>6</id> + <value>XBOX Media Center CVS build</value> + </string> + <string> + <id>7</id> + <value>My Files</value> + </string> + <string> + <id>8</id> + <value>My Weather</value> + </string> + <string> + <id>9</id> + <value>My News</value> + </string> + <string> + <id>10</id> + <value>My Recipes</value> + </string> + <string> + <id>11</id> + <value>Monday</value> + </string> + <string> + <id>12</id> + <value>Tuesday</value> + </string> + <string> + <id>13</id> + <value>Wednesday</value> + </string> + <string> + <id>14</id> + <value>Thursday</value> + </string> + <string> + <id>15</id> + <value>Friday</value> + </string> + <string> + <id>16</id> + <value>Saturday</value> + </string> + <string> + <id>17</id> + <value>Sunday</value> + </string> + <string> + <id>21</id> + <value>January</value> + </string> + <string> + <id>22</id> + <value>February</value> + </string> + <string> + <id>23</id> + <value>March</value> + </string> + <string> + <id>24</id> + <value>April</value> + </string> + <string> + <id>25</id> + <value>May</value> + </string> + <string> + <id>26</id> + <value>June</value> + </string> + <string> + <id>27</id> + <value>July</value> + </string> + <string> + <id>28</id> + <value>August</value> + </string> + <string> + <id>29</id> + <value>September</value> + </string> + <string> + <id>30</id> + <value>October</value> + </string> + <string> + <id>31</id> + <value>November</value> + </string> + <string> + <id>32</id> + <value>December</value> + </string> + <string> + <id>50</id> + <value>My DVDs</value> + </string> + <string> + <id>100</id> + <value>View: Icons</value> + </string> + <string> + <id>101</id> + <value>View: List</value> + </string> + <string> + <id>102</id> + <value>Scan</value> + </string> + <string> + <id>103</id> + <value>Sort by: Name</value> + </string> + <string> + <id>104</id> + <value>Sort by: Date</value> + </string> + <string> + <id>105</id> + <value>Sort by: Size</value> + </string> + <string> + <id>106</id> + <value>No</value> + </string> + <string> + <id>107</id> + <value>Yes</value> + </string> + <string> + <id>108</id> + <value>SlideShow</value> + </string> + <string> + <id>109</id> + <value>Create Thumbs</value> + </string> + <string> + <id>110</id> + <value>Create Thumbnails</value> + </string> + <string> + <id>111</id> + <value>Shortcuts</value> + </string> + <string> + <id>112</id> + <value>PAUSED</value> + </string> + <string> + <id>113</id> + <value>My Files : Source</value> + </string> + <string> + <id>114</id> + <value>My Files : Destination</value> + </string> + <string> + <id>115</id> + <value>Copy</value> + </string> + <string> + <id>116</id> + <value>Move</value> + </string> + <string> + <id>117</id> + <value>Delete</value> + </string> + <string> + <id>118</id> + <value>Rename</value> + </string> + <string> + <id>119</id> + <value>New Folder</value> + </string> + <string> + <id>120</id> + <value>Confirm file copy</value> + </string> + <string> + <id>121</id> + <value>Confirm file move</value> + </string> + <string> + <id>122</id> + <value>Confirm file delete</value> + </string> + <string> + <id>123</id> + <value>Copy these files?</value> + </string> + <string> + <id>124</id> + <value>Move these files?</value> + </string> + <string> + <id>125</id> + <value>Delete these files?</value> + </string> + <string> + <id>126</id> + <value>Status</value> + </string> + <string> + <id>127</id> + <value>Objects</value> + </string> + <string> + <id>128</id> + <value>General</value> + </string> + <string> + <id>129</id> + <value>Slideshow</value> + </string> + <string> + <id>130</id> + <value>System info</value> + </string> + <string> + <id>131</id> + <value>Screen</value> + </string> + <string> + <id>132</id> + <value>Albums</value> + </string> + <string> + <id>133</id> + <value>Artists</value> + </string> + <string> + <id>134</id> + <value>Shares</value> + </string> + <string> + <id>135</id> + <value>Genres</value> + </string> + <string> + <id>136</id> + <value>Playlist</value> + </string> + <string> + <id>137</id> + <value>Search</value> + </string> + <string> + <id>138</id> + <value>SYSTEM INFORMATION</value> + </string> + <string> + <id>139</id> + <value>Temperatures:</value> + </string> + <string> + <id>140</id> + <value>CPU:</value> + </string> + <string> + <id>141</id> + <value>GPU:</value> + </string> + <string> + <id>142</id> + <value>Time:</value> + </string> + <string> + <id>143</id> + <value>Current:</value> + </string> + <string> + <id>144</id> + <value>Build:</value> + </string> + <string> + <id>145</id> + <value>Network:</value> + </string> + <string> + <id>146</id> + <value>Type:</value> + </string> + <string> + <id>147</id> + <value>Static</value> + </string> + <string> + <id>148</id> + <value>DHCP</value> + </string> + <string> + <id>149</id> + <value>MAC</value> + </string> + <string> + <id>150</id> + <value>IP:</value> + </string> + <string> + <id>151</id> + <value>Link:</value> + </string> + <string> + <id>152</id> + <value>Half duplex</value> + </string> + <string> + <id>153</id> + <value>Full duplex</value> + </string> + <string> + <id>154</id> + <value>Storage</value> + </string> + <string> + <id>155</id> + <value>Drive</value> + </string> + <string> + <id>156</id> + <value>Free</value> + </string> + <string> + <id>157</id> + <value>Video</value> + </string> + <string> + <id>158</id> + <value>Free Memory</value> + </string> + <string> + <id>159</id> + <value>No link</value> + </string> + <string> + <id>160</id> + <value>Free</value> + </string> + <string> + <id>161</id> + <value>Unavailable</value> + </string> + <string> + <id>162</id> + <value>Tray Open</value> + </string> + <string> + <id>163</id> + <value>Reading</value> + </string> + <string> + <id>164</id> + <value>No Disc</value> + </string> + <string> + <id>165</id> + <value>Disc Present</value> + </string> + <string> + <id>166</id> + <value>Skin:</value> + </string> + <string> + <id>167</id> + <value>FTP server:</value> + </string> + <string> + <id>168</id> + <value>Synchronize Time:</value> + </string> + <string> + <id>169</id> + <value>Resolution:</value> + </string> + <string> + <id>170</id> + <value>Album:</value> + </string> + <string> + <id>171</id> + <value>Artist:</value> + </string> + <string> + <id>172</id> + <value>Date of Release:</value> + </string> + <string> + <id>173</id> + <value>Rating:</value> + </string> + <string> + <id>174</id> + <value>Genre:</value> + </string> + <string> + <id>175</id> + <value>Tones:</value> + </string> + <string> + <id>176</id> + <value>Styles:</value> + </string> + <string> + <id>177</id> + <value>Review:</value> + </string> + <string> + <id>178</id> + <value>Tracks:</value> + </string> + <string> + <id>179</id> + <value>Song</value> + </string> + <string> + <id>180</id> + <value>Duration</value> + </string> + <string> + <id>181</id> + <value>Select album</value> + </string> + <string> + <id>182</id> + <value>Tracks</value> + </string> + <string> + <id>183</id> + <value>Review</value> + </string> + <string> + <id>184</id> + <value>Refresh</value> + </string> + <string> + <id>185</id> + <value>Searching album</value> + </string> + <string> + <id>186</id> + <value>OK</value> + </string> + <string> + <id>187</id> + <value>No albums found!</value> + </string> + <string> + <id>188</id> + <value>Select all</value> + </string> + <string> + <id>189</id> + <value>Scanning media info</value> + </string> + <string> + <id>190</id> + <value>Save</value> + </string> + <string> + <id>191</id> + <value>Shuffle</value> + </string> + <string> + <id>192</id> + <value>Clear</value> + </string> + <string> + <id>193</id> + <value>Scan</value> + </string> + <string> + <id>194</id> + <value>Searching...</value> + </string> + <string> + <id>195</id> + <value>No IMDB info found!</value> + </string> + <string> + <id>196</id> + <value>Select movie:</value> + </string> + <string> + <id>197</id> + <value>Querying IMDB info</value> + </string> + <string> + <id>198</id> + <value>Downloading Movie details</value> + </string> + <string> + <id>199</id> + <value>Director:</value> + </string> + <string> + <id>200</id> + <value>Writer:</value> + </string> + <string> + <id>201</id> + <value>Year:</value> + </string> + <string> + <id>202</id> + <value>Tagline:</value> + </string> + <string> + <id>203</id> + <value>Plot outline:</value> + </string> + <string> + <id>204</id> + <value>Rating:</value> + </string> + <string> + <id>205</id> + <value>Votes:</value> + </string> + <string> + <id>206</id> + <value>Cast</value> + </string> + <string> + <id>207</id> + <value>Plot</value> + </string> + <string> + <id>208</id> + <value>Play</value> + </string> + <string> + <id>209</id> + <value>Next</value> + </string> + <string> + <id>210</id> + <value>Previous</value> + </string> + <string> + <id>211</id> + <value>Searching for applications</value> + </string> + <string> + <id>212</id> + <value>applications found</value> + </string> + <string> + <id>213</id> + <value>UI Calibration</value> + </string> + <string> + <id>214</id> + <value>Screen Calib.</value> + </string> + <string> + <id>215</id> + <value>Soften</value> + </string> + <string> + <id>216</id> + <value>Zoom</value> + </string> + <string> + <id>217</id> + <value>Stretch</value> + </string> + <string> + <id>218</id> + <value>DVD Drive</value> + </string> + <string> + <id>219</id> + <value>Please insert disc</value> + </string> + <string> + <id>220</id> + <value>Remote Share</value> + </string> + <string> + <id>221</id> + <value>Network is not connected</value> + </string> + <string> + <id>222</id> + <value>Cancel</value> + </string> + <string> + <id>223</id> + <value>Auto widescreen switching</value> + </string> + <string> + <id>224</id> + <value>Speed</value> + </string> + <string> + <id>225</id> + <value>Transition time</value> + </string> + <string> + <id>226</id> + <value>Enable PAL60</value> + </string> + <string> + <id>227</id> + <value>Enable CDDB</value> + </string> + <string> + <id>228</id> + <value>Shuffle Playlist on load</value> + </string> + <string> + <id>229</id> + <value>HD Spindown time (mins)</value> + </string> + <string> + <id>230</id> + <value>Filters</value> + </string> + <string> + <id>231</id> + <value>None</value> + </string> + <string> + <id>232</id> + <value>Point</value> + </string> + <string> + <id>233</id> + <value>Linear</value> + </string> + <string> + <id>234</id> + <value>Anisotropic</value> + </string> + <string> + <id>235</id> + <value>Quincunx</value> + </string> + <string> + <id>236</id> + <value>Gaussian Cubic</value> + </string> + <string> + <id>237</id> + <value>Minification:</value> + </string> + <string> + <id>238</id> + <value>Magnification:</value> + </string> + <string> + <id>240</id> + <value>Autorun DVD-Video</value> + </string> + <string> + <id>241</id> + <value>Autorun VCD/SVCD</value> + </string> + <string> + <id>242</id> + <value>Autorun Audio-CD</value> + </string> + <string> + <id>243</id> + <value>Autorun XBOX Games</value> + </string> + <string> + <id>244</id> + <value>Autorun Videos</value> + </string> + <string> + <id>245</id> + <value>Autorun Music</value> + </string> + <string> + <id>246</id> + <value>Autorun Pictures</value> + </string> + <string> + <id>247</id> + <value>Scripts</value> + </string> + <string> + <id>248</id> + <value>Language</value> + </string> + <string> + <id>249</id> + <value>Music</value> + </string> + <string> + <id>250</id> + <value>Visualisation</value> + </string> + <string> + <id>251</id> + <value>Select destination directory</value> + </string> + <string> + <id>252</id> + <value>Output to all speakers</value> + </string> + <string> + <id>253</id> + <value>Number of channels</value> + </string> + <string> + <id>254</id> + <value>DD Stereo Passthrough</value> + </string> + <string> + <id>255</id> + <value>CDDB</value> + </string> + <string> + <id>256</id> + <value>Querying freedb for CDDB info</value> + </string> + <string> + <id>257</id> + <value>Error</value> + </string> + <string> + <id>258</id> + <value>Enable ID3 tags</value> + </string> + <string> + <id>259</id> + <value>Opening</value> + </string> + <string> + <id>260</id> + <value>Shoutcast</value> + </string> + <string> + <id>261</id> + <value>Waiting for start....</value> + </string> + <string> + <id>262</id> + <value>Scripts Output</value> + </string> + <string> + <id>263</id> + <value>HTTP server:</value> + </string> + <string> + <id>264</id> + <value>Record</value> + </string> + <string> + <id>265</id> + <value>Stop Rec.</value> + </string> + <string> + <id>266</id> + <value>Sort by: Track</value> + </string> + <string> + <id>267</id> + <value>Sort by: Time</value> + </string> + <string> + <id>268</id> + <value>Sort by: Title</value> + </string> + <string> + <id>269</id> + <value>Sort by: Artist</value> + </string> + <string> + <id>270</id> + <value>Sort by: Album</value> + </string> + <string> + <id>271</id> + <value>Top 100</value> + </string> + <string> + <id>272</id> + <value>Top Left Overscan Compensation</value> + </string> + <string> + <id>273</id> + <value>Bottom Right Overscan Compensation</value> + </string> + <string> + <id>274</id> + <value>Subtitles Position</value> + </string> + <string> + <id>275</id> + <value>Pixel Ratio Adjustment</value> + </string> + <string> + <id>276</id> + <value>-WARNING!- Leave at 0,0 for best quality,change for shrinking video to fit.</value> + </string> + <string> + <id>277</id> + <value>Move the bar to change the subtitles position</value> + </string> + <string> + <id>278</id> + <value>-Important!- for best quality, change rectangle so it's perfectly square</value> + </string> + <string> + <id>279</id> + <value>Unable to load settings</value> + </string> + <string> + <id>280</id> + <value>using default fallbacks</value> + </string> + <string> + <id>281</id> + <value>Please check the .xml files</value> + </string> + <string> + <id>282</id> + <value>found %i items</value> + </string> + <string> + <id>283</id> + <value>Search Results</value> + </string> + <string> + <id>284</id> + <value>No results found</value> + </string> + <string> + <id>285</id> + <value>Deinterlace filter</value> + </string> + <string> + <id>286</id> + <value>Postprocessing filter</value> + </string> + <string> + <id>287</id> + <value>Subtitles</value> + </string> + <string> + <id>288</id> + <value>Font</value> + </string> + <string> + <id>289</id> + <value>Size</value> + </string> + <string> + <id>290</id> + <value>Volume amplification (dB)</value> + </string> + <string> + <id>291</id> + <value>Video</value> + </string> + <string> + <id>292</id> + <value>Audio</value> + </string> + <string> + <id>293</id> + <value>Subtitles</value> + </string> + <string> + <id>294</id> + <value>Create bookmark</value> + </string> + <string> + <id>295</id> + <value>Cycle bookmarks</value> + </string> + <string> + <id>296</id> + <value>Clear bookmarks</value> + </string> + <string> + <id>297</id> + <value>AVDelay</value> + </string> + <string> + <id>298</id> + <value>Slider</value> + </string> + <string> + <id>299</id> + <value>Runtime:</value> + </string> + <string> + <id>300</id> + <value>1. Language</value> + </string> + <string> + <id>301</id> + <value>2. Volume</value> + </string> + <string> + <id>302</id> + <value>3. Stream</value> + </string> + <string> + <id>303</id> + <value>Delay</value> + </string> + <string> + <id>304</id> + <value>Language</value> + </string> + <string> + <id>305</id> + <value>Enabled</value> + </string> + <string> + <id>306</id> + <value>Non-Interleaved</value> + </string> + <string> + <id>307</id> + <value>Auto</value> + </string> + <string> + <id>308</id> + <value>vertical deblocking filter</value> + </string> + <string> + <id>309</id> + <value>horizontal deblocking filter</value> + </string> + <string> + <id>310</id> + <value>Auto brightness/contrast</value> + </string> + <string> + <id>311</id> + <value>Dering</value> + </string> + <string> + <id>312</id> + <value>(0=auto)</value> + </string> + <string> + <id>313</id> + <value>Reorganize database</value> + </string> + <string> + <id>314</id> + <value>Preparing...</value> + </string> + <string> + <id>315</id> + <value>Database error</value> + </string> + <string> + <id>316</id> + <value>Searching songs...</value> + </string> + <string> + <id>317</id> + <value>Reorganization successfull</value> + </string> + <string> + <id>318</id> + <value>Marking deleted songs</value> + </string> + <string> + <id>319</id> + <value>Error reorganizing songs</value> + </string> + <string> + <id>320</id> + <value>Searching artists...</value> + </string> + <string> + <id>321</id> + <value>Error reorganizing artists</value> + </string> + <string> + <id>322</id> + <value>Searching genres...</value> + </string> + <string> + <id>323</id> + <value>Error reorganizing genres</value> + </string> + <string> + <id>324</id> + <value>Searching pathes...</value> + </string> + <string> + <id>325</id> + <value>Error reorganizing pathes</value> + </string> + <string> + <id>326</id> + <value>Searching albums...</value> + </string> + <string> + <id>327</id> + <value>Error reorganizing albums</value> + </string> + <string> + <id>328</id> + <value>Writing changes...</value> + </string> + <string> + <id>329</id> + <value>Error writing changes</value> + </string> + <string> + <id>330</id> + <value>This may take some time...</value> + </string> + <string> + <id>331</id> + <value>Compressing database...</value> + </string> + <string> + <id>332</id> + <value>Error compressing database</value> + </string> + <string> + <id>333</id> + <value>Do you want to reorganize my music database?</value> + </string> + <string> + <id>334</id> + <value>Reorganize my music database</value> + </string> + <string> + <id>335</id> + <value>Start</value> + </string> + <string> + <id>336</id> + <value>Adj. Framerate</value> + </string> + <string> + <id>337</id> + <value>Audio Output:</value> + </string> + <string> + <id>338</id> + <value>Analog</value> + </string> + <string> + <id>339</id> + <value>Digital</value> + </string> + <string> + <id>340</id> + <value>Various Artists</value> + </string> + <string> + <id>341</id> + <value>Play DVD</value> + </string> + <string> + <id>342</id> + <value>Movies</value> + </string> + <string> + <id>343</id> + <value>Adjust Framerate</value> + </string> + <string> + <id>344</id> + <value>Actors</value> + </string> + <string> + <id>345</id> + <value>Year</value> + </string> + <string> + <id>346</id> + <value>Stack</value> + </string> + <string> + <id>347</id> + <value>Unstack</value> + </string> + <string> + <id>348</id> + <value>Flatten Directory Hierarchy</value> + </string> + <string> + <id>349</id> + <value>Show only Default.xbe</value> + </string> + <string> + <id>350</id> + <value>Programs</value> + </string> + <string> + <id>351</id> + <value>Off</value> + </string> + <string> + <id>352</id> + <value>Dim</value> + </string> + <string> + <id>353</id> + <value>Black</value> + </string> + <string> + <id>354</id> + <value>Matrix Trails</value> + </string> + <string> + <id>355</id> + <value>Screensaver Idle Timeout</value> + </string> + <string> + <id>356</id> + <value>Screensaver Mode</value> + </string> + <string> + <id>357</id> + <value>Shutdown Idle Timeout</value> + </string> + <string> + <id>358</id> + <value>All albums</value> + </string> + <string> + <id>359</id> + <value>Recent albums</value> + </string> + <string> + <id>360</id> + <value>Screensaver</value> + </string> + <string> + <id>361</id> + <value>R. SlideShow</value> + </string> + <string> + <id>362</id> + <value>Screensaver Fade Level (%)</value> + </string> + <string> + <id>363</id> + <value>Sort by: File</value> + </string> + <string> + <id>364</id> + <value>DD/DTS Multichannel Passthrough</value> + </string> + <string> + <id>365</id> + <value>Sort by: Name</value> + </string> + <string> + <id>366</id> + <value>Sort by: Year</value> + </string> + <string> + <id>367</id> + <value>Sort by: Rating</value> + </string> + <string> + <id>368</id> + <value>IMDB</value> + </string> + <string> + <id>369</id> + <value>Title</value> + </string> + <string> + <id>370</id> + <value>T-Storms</value> + </string> + <string> + <id>371</id> + <value>Partly</value> + </string> + <string> + <id>372</id> + <value>Mostly</value> + </string> + <string> + <id>373</id> + <value>Sunny</value> + </string> + <string> + <id>374</id> + <value>Cloudy</value> + </string> + <string> + <id>375</id> + <value>Snow</value> + </string> + <string> + <id>376</id> + <value>Rain</value> + </string> + <string> + <id>377</id> + <value>Light</value> + </string> + <string> + <id>378</id> + <value>AM</value> + </string> + <string> + <id>379</id> + <value>PM</value> + </string> + <string> + <id>380</id> + <value>Showers</value> + </string> + <string> + <id>381</id> + <value>Few</value> + </string> + <string> + <id>382</id> + <value>Scattered</value> + </string> + <string> + <id>383</id> + <value>Wind</value> + </string> + <string> + <id>384</id> + <value>Strong</value> + </string> + <string> + <id>385</id> + <value>Fair</value> + </string> + <string> + <id>386</id> + <value>Clear</value> + </string> + <string> + <id>387</id> + <value>Early</value> + </string> + <string> + <id>388</id> + <value>and</value> + </string> + <string> + <id>389</id> + <value>Fog</value> + </string> + <string> + <id>390</id> + <value>Haze</value> + </string> + <string> + <id>391</id> + <value>Windy</value> + </string> + <string> + <id>392</id> + <value>Drizzle</value> + </string> + <string> + <id>393</id> + <value>Freezing</value> + </string> + <string> + <id>394</id> + <value>N/A</value> + </string> + <string> + <id>396</id> + <value>Select Location</value> + </string> + <string> + <id>397</id> + <value>Refresh Time</value> + </string> + <string> + <id>398</id> + <value>Temperature Units</value> + </string> + <string> + <id>399</id> + <value>Speed Units</value> + </string> + <string> + <id>400</id> + <value>Weather</value> + </string> + <string> + <id>401</id> + <value>Temp</value> + </string> + <string> + <id>402</id> + <value>Feels Like</value> + </string> + <string> + <id>403</id> + <value>UV Index</value> + </string> + <string> + <id>404</id> + <value>Wind</value> + </string> + <string> + <id>405</id> + <value>Dew Point</value> + </string> + <string> + <id>406</id> + <value>Humidity</value> + </string> + <string> + <id>407</id> + <value>From</value> + </string> + <string> + <id>408</id> + <value>at</value> + </string> + <string> + <id>410</id> + <value>Accessing Weather.com</value> + </string> + <string> + <id>411</id> + <value>Getting Weather For:</value> + </string> + <string> + <id>412</id> + <value>Unable to get weather data</value> + </string> + <string> + <id>413</id> + <value>Manual</value> + </string> + <string> + <id>414</id> + <value>No review for this album</value> + </string> + <string> + <id>415</id> + <value>Downloading thumbnail...</value> + </string> + <string> + <id>416</id> + <value>Not available</value> + </string> + <string> + <id>417</id> + <value>View: Big Icons</value> + </string> + <string> + <id>418</id> + <value>My Videos/Genres</value> + </string> + <string> + <id>419</id> + <value>My Videos/Actors</value> + </string> + <string> + <id>420</id> + <value>My Videos/Years</value> + </string> + <string> + <id>421</id> + <value>My Videos/Title</value> + </string> + <string> + <id>422</id> + <value>Delete albuminfo</value> + </string> + <string> + <id>423</id> + <value>Delete CDDB info</value> + </string> + <string> + <id>424</id> + <value>Select</value> + </string> + <string> + <id>425</id> + <value>No albuminfo found.</value> + </string> + <string> + <id>426</id> + <value>No CDDB info found.</value> + </string> + <string> + <id>427</id> + <value>Disc:</value> + </string> + <string> + <id>428</id> + <value>Insert correct CD/DVD</value> + </string> + <string> + <id>429</id> + <value>Please insert the following CD/DVD</value> + </string> + <string> + <id>430</id> + <value>Sort by: DVD#</value> + </string> + <string> + <id>431</id> + <value>No Cache</value> + </string> + <string> + <id>432</id> + <value>Delete movie from database</value> + </string> + <string> + <id>433</id> + <value>Are you sure to remove</value> + </string> + <string> + <id>434</id> + <value>the movie?</value> + </string> + <string> + <id>435</id> + <value>Track</value> + </string> + <string> + <id>436</id> + <value>Year:</value> + </string> + <string> + <id>437</id> + <value>Duration:</value> + </string> + <string> + <id>438</id> + <value>Opening file</value> + </string> + <string> + <id>439</id> + <value>Cache</value> + </string> + <string> + <id>440</id> + <value>Harddisk</value> + </string> + <string> + <id>441</id> + <value>UDF</value> + </string> + <string> + <id>442</id> + <value>LAN</value> + </string> + <string> + <id>443</id> + <value>Internet</value> + </string> + <string> + <id>444</id> + <value>video</value> + </string> + <string> + <id>445</id> + <value>audio</value> + </string> + <string> + <id>446</id> + <value>DVD</value> + </string> + <string> + <id>447</id> + <value>Autorun</value> + </string> + <string> + <id>448</id> + <value>LCD</value> + </string> + <string> + <id>449</id> + <value>Enabled</value> + </string> + <string> + <id>450</id> + <value>Columns</value> + </string> + <string> + <id>451</id> + <value>Row 1 adress:</value> + </string> + <string> + <id>452</id> + <value>Row 2 adress:</value> + </string> + <string> + <id>453</id> + <value>Row 3 adress:</value> + </string> + <string> + <id>454</id> + <value>Row 4 adress:</value> + </string> + <string> + <id>455</id> + <value>Rows:</value> + </string> + <string> + <id>456</id> + <value>Mode:</value> + </string> + <string> + <id>457</id> + <value>Switch view</value> + </string> + <string> + <id>458</id> + <value>B/Mark</value> + </string> + <string> + <id>459</id> + <value>Subs</value> + </string> + <string> + <id>460</id> + <value>Audio Stream</value> + </string> + <string> + <id>461</id> + <value>[active]</value> + </string> + <string> + <id>462</id> + <value>Subtitle</value> + </string> + <string> + <id>463</id> + <value>Backlight</value> + </string> + <string> + <id>464</id> + <value>Brightness</value> + </string> + <string> + <id>465</id> + <value>Contrast</value> + </string> + <string> + <id>466</id> + <value>Gamma</value> + </string> + <string> + <id>467</id> + <value>Type</value> + </string> + <string> + <id>468</id> + <value>Move the bar to change the osd position</value> + </string> + <string> + <id>469</id> + <value>OSD Position</value> + </string> + <string> + <id>470</id> + <value>Credits</value> + </string> + <string> + <id>471</id> + <value>Modchip</value> + </string> + <string> + <id>472</id> + <value>OSD Timeout</value> + </string> + <string> + <id>473</id> + <value>High Quality Resampling</value> + </string> + <string> + <id>474</id> + <value>Off</value> + </string> + <string> + <id>475</id> + <value>Music Only</value> + </string> + <string> + <id>476</id> + <value>Music & Video</value> + </string> + <string> + <id>477</id> + <value>Unable to load playlist</value> + </string> + <string> + <id>478</id> + <value>OSD</value> + </string> + <string> + <id>479</id> + <value>Skin and Language</value> + </string> + <string> + <id>480</id> + <value>User Interface</value> + </string> + <string> + <id>481</id> + <value>Audio Options</value> + </string> + <string> + <id>482</id> + <value>About XBMC</value> + </string> + <string> + <id>483</id> + <value>Album</value> + </string> + <string> + <id>484</id> + <value>Artist</value> + </string> + <string> + <id>485</id> + <value>Delete album</value> + </string> + <string> + <id>486</id> + <value>Repeat</value> + </string> + <string> + <id>487</id> + <value>Repeat One</value> + </string> + <string> + <id>488</id> + <value>Repeat folder playlist</value> + </string> + <string> + <id>489</id> + <value>Use playlist in songs</value> + </string> + <string> + <id>490</id> + <value>Auto switch list and icons in songs</value> + </string> + <string> + <id>491</id> + <value>Use big icons</value> + </string> + <string> + <id>492</id> + <value>Audio language</value> + </string> + <string> + <id>500</id> + <value>File menu</value> + </string> + <string> + <id>501</id> + <value>Set as destination</value> + </string> + <string> + <id>502</id> + <value>Unable to complete action</value> + </string> + <string> + <id>503</id> + <value>Delete this folder</value> + </string> + <string> + <id>504</id> + <value>Goto destination</value> + </string> + <string> + <id>505</id> + <value>Calculating</value> + </string> + <string> + <id>506</id> + <value>Are you sure?</value> + </string> + <string> + <id>507</id> + <value>items</value> + </string> + <string> + <id>508</id> + <value>To</value> + </string> + <string> + <id>509</id> + <value>Destination File exists. Overwrite File ?</value> + </string> + <string> + <id>510</id> + <value>Cancel</value> + </string> + <string> + <id>511</id> + <value>Always</value> + </string> + <string> + <id>512</id> + <value>Never</value> + </string> + <string> + <id>513</id> + <value>Item is protected, action not completed</value> + </string> + <string> + <id>514</id> + <value>Error creating folder, action not completed</value> + </string> + <string> + <id>515</id> + <value>Error deleting folder, action not completed</value> + </string> + <string> + <id>516</id> + <value>Unable to delete destination file, action not completed</value> + </string> + <string> + <id>517</id> + <value>Fatal error, action not completed</value> + </string> + <string> + <id>518</id> + <value>Delete this song?</value> + </string> + + <string> + <id>530</id> + <value>Photo disc inserted, do you want to open it?</value> + </string> + <string> + <id>531</id> + <value>Movie disc inserted, do you want to open it?</value> + </string> + <string> + <id>532</id> + <value>Audio disc inserted, do you want to open it?</value> + </string> + + + + <string> + <id>550</id> + <value>Crop</value> + </string> + <string> + <id>600</id> + <value>TVGuide</value> + </string> + <string> + <id>601</id> + <value>Record Now</value> + </string> + <string> + <id>602</id> + <value>Channel</value> + </string> + <string> + <id>603</id> + <value>Scheduled</value> + </string> + <string> + <id>604</id> + <value>Recorded TV</value> + </string> + <string> + <id>605</id> + <value>My TV</value> + </string> + <string> + <id>606</id> + <value>Loading new TVGuide</value> + </string> + <string> + <id>607</id> + <value>Load</value> + </string> + <string> + <id>608</id> + <value>TVGuide Import failed</value> + </string> + <string> + <id>609</id> + <value>TVGuide Import done</value> + </string> + <string> + <id>610</id> + <value>Don't record</value> + </string> + <string> + <id>611</id> + <value>Record once</value> + </string> + <string> + <id>612</id> + <value>Record everytime on this channel</value> + </string> + <string> + <id>613</id> + <value>Record everytime on every channel</value> + </string> + <string> + <id>614</id> + <value>Record every week at this time</value> + </string> + <string> + <id>615</id> + <value>Record every day at this time</value> + </string> + <string> + <id>616</id> + <value>Select Recording type</value> + </string> + <string> + <id>617</id> + <value>New</value> + </string> + <string> + <id>618</id> + <value>Delete</value> + </string> + <string> + <id>619</id> + <value>Edit Date/Time</value> + </string> + <string> + <id>620</id> + <value>Sort by: Channel</value> + </string> + <string> + <id>621</id> + <value>Sort by: Date</value> + </string> + <string> + <id>622</id> + <value>Sort by: Name</value> + </string> + <string> + <id>623</id> + <value>Sort by: Type</value> + </string> + <string> + <id>624</id> + <value>Cleanup</value> + </string> + <string> + <id>625</id> + <value>Schedules removed:</value> + </string> + <string> + <id>626</id> + <value>Change type</value> + </string> + <string> + <id>627</id> + <value>Channels:</value> + </string> + <string> + <id>628</id> + <value>Programs:</value> + </string> + <string> + <id>629</id> + <value>Stop Record</value> + </string> + <string> + <id>630</id> + <value>Do you want to reboot?</value> + </string> + <string> + <id>631</id> + <value>Do you want to shutdown?</value> + </string> + <string> + <id>632</id> + <value>Objects</value> + </string> + <string> + <id>633</id> + <value>Start Date/Time</value> + </string> + <string> + <id>634</id> + <value>End Date/Time</value> + </string> + <string> + <id>635</id> + <value>Time</value> + </string> + <string> + <id>636</id> + <value>Date</value> + </string> + <string> + <id>637</id> + <value>Edit Recording</value> + </string> + <string> + <id>638</id> + <value>New Recording</value> + </string> + <string> + <id>639</id> + <value>Albums of</value> + </string> + <string> + <id>640</id> + <value>Saturation</value> + </string> + <string> + <id>641</id> + <value>Sharpness</value> + </string> + <string> + <id>642</id> + <value>Loading TV channels</value> + </string> + <string> + <id>643</id> + <value>Loading TV programs</value> + </string> + <string> + <id>644</id> + <value>Sorting TV programs</value> + </string> + <string> + <id>645</id> + <value>Loading XML file</value> + </string> + <string> + <id>646</id> + <value>Scheduled recordings</value> + </string> + <string> + <id>647</id> + <value>Once</value> + </string> + <string> + <id>648</id> + <value>Daily</value> + </string> + <string> + <id>649</id> + <value>Every</value> + </string> + <string> + <id>650</id> + <value>Everytime on this channel</value> + </string> + <string> + <id>651</id> + <value>Everytime on any channel</value> + </string> + <string> + <id>652</id> + <value>Recorded TV</value> + </string> + <string> + <id>653</id> + <value>Delete this recording?</value> + </string> + <string> + <id>654</id> + <value>Eject</value> + </string> + <string> + <id>655</id> + <value>Play recorded tv</value> + </string> + <string> + <id>656</id> + <value>Delete recorded tv</value> + </string> + <string> + <id>657</id> + <value>Mon</value> + </string> + <string> + <id>658</id> + <value>Tue</value> + </string> + <string> + <id>659</id> + <value>Wed</value> + </string> + <string> + <id>660</id> + <value>Thu</value> + </string> + <string> + <id>661</id> + <value>Fri</value> + </string> + <string> + <id>662</id> + <value>Sat</value> + </string> + <string> + <id>663</id> + <value>Sun</value> + </string> + <string> + <id>664</id> + <value>Delete this picture?</value> + </string> + <string> + <id>665</id> + <value>My Radio</value> + </string> + <string> + <id>666</id> + <value>Stations</value> + </string> + <string> + <id>667</id> + <value>Auto Tune</value> + </string> + <string> + <id>668</id> + <value>Sort by: Type</value> + </string> + <string> + <id>669</id> + <value>Sort by: Genre</value> + </string> + <string> + <id>670</id> + <value>Sort by: Bitrate</value> + </string> + <string> + <id>671</id> + <value>Sort by: Watched</value> + </string> + <string> + <id>672</id> + <value>Record Mon-Fri</value> + </string> + <string> + <id>673</id> + <value>Scroll speed</value> + </string> + <string> + <id>674</id> + <value>GUI Settings</value> + </string> + <string> + <id>675</id> + <value>Example:</value> + </string> + <string> + <id>676</id> + <value>Delete watched recordings?</value> + </string> + <string> + <id>677</id> + <value>times</value> + </string> + <string> + <id>678</id> + <value>Sort by: Genre</value> + </string> + <string> + <id>679</id> + <value>Weekly</value> + </string> + <string> + <id>680</id> + <value>Mon-Fri</value> + </string> + <string> + <id>681</id> + <value>Waiting</value> + </string> + <string> + <id>682</id> + <value>Recording</value> + </string> + <string> + <id>683</id> + <value>Finished</value> + </string> + <string> + <id>684</id> + <value>Canceled</value> + </string> + <string> + <id>685</id> + <value>Sort by: Status</value> + </string> + +<string><id>686</id><value>Born</value></string> +<string><id>687</id><value>Years Active</value></string> +<string><id>688</id><value>Instruments</value></string> +<string><id>689</id><value>Bio.</value></string> +<string><id>690</id><value>Discography (Albums)</value></string> +<string><id>691</id><value>Discography (compilations, boxes)</value></string> +<string><id>700</id><value>Discography (eps, singles)</value></string> +<string><id>701</id><value>Discography (bootlegs, videos, interviews)</value></string> +<string><id>702</id><value>No artists found!</value></string> +<string><id>703</id><value>Not connected to the Internet!</value></string> +<string><id>704</id><value>Feed Retrieval</value></string> +<string><id>705</id><value>Getting RSS Feed for </value></string> +<string><id>706</id><value>Select Feed</value></string> +<string><id>707</id><value>TV On</value></string> +<string><id>708</id><value>Timeshifting</value></string> +<string><id>709</id><value>Auto update</value></string> +<string><id>710</id><value>A new version is available</value></string> +<string><id>711</id><value>Upgrade from v#old ->v#new ?</value></string> +<string><id>712</id><value>Back</value></string> + +<string> + <id>713</id> + <value>Autoplay</value> +</string> +<string> + <id>714</id> + <value>Disc inserted, do you want to play it?</value> +</string> +<string> + <id>715</id> + <value>CD inserted, do you want to play it?</value> +</string> +<string> + <id>716</id> + <value>Satellite</value> +</string> +<string> + <id>717</id> + <value>Weather</value> +</string> +<string> + <id>718</id> + <value>Clear Top100</value> +</string> +<string> + <id>719</id> + <value>Are you sure to reset the top 100 list?</value> +</string> +<string> + <id>720</id> + <value>Show: Duration</value> +</string> +<string> + <id>721</id> + <value>Show: Times played</value> +</string> +<string> + <id>722</id> + <value>Unable to play Disc</value> +</string> +<string> + <id>723</id> + <value>Did you insert a Disc?</value> +</string> +<string> + <id>724</id> + <value>Search TVGuide</value> +</string> +<string> + <id>725</id> + <value>Genres</value> +</string> +<string> + <id>726</id> + <value>Title</value> +</string> +<string> + <id>727</id> + <value>Live tv in background</value> +</string> +<string> + <id>728</id> + <value>No Video/TV playing</value> +</string> +<string> + <id>729</id> + <value>Make sure you use VMR9 and that something is playing</value> +</string> +<string> + <id>730</id> + <value>This schedule is recording. If you delete</value> +</string> +<string> + <id>731</id> + <value>the schedule then the recording is stopped.</value> +</string> +<string> + <id>732</id> + <value>Are you sure?</value> +</string> +<string> + <id>733</id> + <value>View: Filmstrip</value> +</string> +<string> + <id>734</id> + <value>Image:</value> +</string> +<string> + <id>735</id> + <value>Rotate</value> +</string> +<string> + <id>736</id> + <value>No TVGuide data available</value> +</string> +<string> + <id>737</id> + <value>View: Satellite</value> +</string> +<string> + <id>738</id> + <value>View: Temperature</value> +</string> +<string> + <id>739</id> + <value>View: UV Index</value> +</string> +<string> + <id>740</id> + <value>View: Winds</value> +</string> +<string> + <id>741</id> + <value>View: Humidity</value> +</string> +<string> + <id>742</id> + <value>View: Precipitation</value> +</string> +<string> + <id>743</id> + <value>4 Day Forecast</value> +</string> +<string> + <id>744</id> + <value>Sun Rise</value> +</string> +<string> + <id>745</id> + <value>Sun Set</value> +</string> +<string> + <id>746</id> + <value>High</value> +</string> +<string> + <id>747</id> + <value>Low</value> +</string> +<string> + <id>748</id> + <value>Precipitation</value> +</string> +<string> + <id>750</id> + <value>Images</value> +</string> +<string> + <id>800</id> + <value>Starts with</value> +</string> +<string> + <id>801</id> + <value>Contains</value> +</string> +<string> + <id>802</id> + <value>Ends with</value> +</string> +<string> + <id>803</id> + <value> Is </value> +</string> +<string> + <id>804</id> + <value>Done</value> +</string> +<string> + <id>805</id> + <value>Clear</value> +</string> +<string> + <id>806</id> + <value>Title</value> +</string> +<string> + <id>807</id> + <value>Yield</value> +</string> +<string> + <id>808</id> + <value>Ingredients</value> +</string> +<string> + <id>809</id> + <value>Directions</value> +</string> +<string> + <id>810</id> + <value>Card</value> +</string> +<!-- My Alarm Strings --> +<string> + <id>850</id> + <value>My Alarm</value> +</string> +<string> + <id>851</id> + <value>Playlist</value> +</string> +<string> + <id>852</id> + <value>Alarm On/Off</value> +</string> +<string> + <id>853</id> + <value>Name:</value> +</string> +<string> + <id>854</id> + <value>Enabled on these days</value> +</string> +<string> + <id>855</id> + <value>Alarm Time</value> +</string> +<string> + <id>856</id> + <value>Sleep Timer</value> +</string> +<string> + <id>857</id> + <value>Snooze</value> +</string> +<string> + <id>858</id> + <value>Snooze Time</value> +</string> +<string> + <id>859</id> + <value>Sleep Timer</value> +</string> +<string> + <id>860</id> + <value>Increase volume over time</value> +</string> +<string> + <id>861</id> + <value>Alarm Details</value> +</string> +<string> + <id>862</id> + <value>Radio</value> +</string> +<string> + <id>863</id> + <value>File</value> +</string> +<string> + <id>864</id> + <value>Media type</value> +</string> + +<string> + <id>865</id> + <value>Number of minutes until sleep:</value> +</string> +<string> + <id>866</id> + <value>Decrease volume over time</value> +</string> +<string> + <id>867</id> + <value>Shutdown computer</value> +</string> +<string> + <id>868</id> + <value>Reset</value> +</string> + +<!-- Default name for new alarm --> +<string> + <id>869</id> + <value>NewAlarm</value> +</string> +<string> + <id>870</id> + <value>Recurring</value> +</string> +<string> + <id>871</id> + <value>Wake up pc</value> +</string> +<string> + <id>872</id> + <value>Starts with</value> +</string> +<string> + <id>873</id> + <value>TV Show</value> +</string> +<string> + <id>874</id> + <value>Episode</value> +</string> +<string> + <id>875</id> + <value>Current program</value> +</string> +<string> + <id>876</id> + <value>Until manual stop</value> +</string> +<string> + <id>877</id> + <value>Priorities</value> +</string> +<string> + <id>878</id> + <value>Storage</value> +</string> +<string> + <id>879</id> + <value>Recording conflict</value> +</string> +<string> + <id>880</id> + <value>Time to record:</value> +</string> +<string> + <id>881</id> + <value>Choose recording to stop:</value> +</string> +<string> + <id>882</id> + <value>Quality setting</value> +</string> +<string> + <id>883</id> + <value>Low</value> +</string> +<string> + <id>884</id> + <value>Medium</value> +</string> +<string> + <id>885</id> + <value>High</value> +</string> +<string> + <id>886</id> + <value>Default</value> +</string> +<string> + <id>887</id> + <value>Specify number of episodes to keep</value> +</string> +<string> + <id>888</id> + <value>Episodes Management</value> +</string> +<string> + <id>889</id> + <value>All episodes</value> +</string> + +<!-- End My Alarm Strings --> +<string> + <id>890</id> + <value>Play CD</value> +</string> +<string> + <id>891</id> + <value>Select TV Channel</value> +</string> +<string> + <id>892</id> + <value>Conflicts</value> +</string> +<string> + <id>893</id> + <value>Portable</value> +</string> +<string> + <id>894</id> + <value>Compress TV Recordings</value> +</string> +<string> + <id>895</id> + <value>Auto compress</value> +</string> +<string> + <id>896</id> + <value>Compress</value> +</string> +<string> + <id>897</id> + <value>Settings</value> +</string> +<string> + <id>898</id> + <value>MPEG-2</value> +</string> +<string> + <id>899</id> + <value>WMV</value> +</string> + +<string> + <id>900</id> + <value>Resume movie from last time ?</value> +</string> +<string> + <id>901</id> + <value>MSN Messenger</value> +</string> +<string> + <id>902</id> + <value>Online contacts</value> +</string> +<string> + <id>903</id> + <value>Sign in</value> +</string> +<string> + <id>904</id> + <value>Sign out</value> +</string> +<string> + <id>905</id> + <value>You need to configure this plugin first</value> +</string> +<string> + <id>906</id> + <value>Fill in your email adres in the setup</value> +</string> +<string> + <id>907</id> + <value>Could not connect to MSN</value> +</string> +<string> + <id>908</id> + <value>is typing a message...</value> +</string> +<string> + <id>909</id> + <value>Connecting...</value> +</string> +<string> + <id>910</id> + <value>Signing in...</value> +</string> +<string> + <id>911</id> + <value>No channels</value> +</string> +<string> + <id>912</id> + <value>Unable to download latest news</value> +</string> +<string> + <id>913</id> + <value>My Plugins</value> +</string> +<string> + <id>914</id> + <value>Recordings</value> +</string> +<string> + <id>915</id> + <value>TV Channels</value> +</string> +<string> + <id>916</id> + <value>Remote file</value> +</string> +<string> + <id>917</id> + <value>This file is located on a remote share</value> +</string> +<string> + <id>918</id> + <value>Should I download it to your default</value> +</string> +<string> + <id>919</id> + <value>local share?</value> +</string> +<string> + <id>920</id> + <value>Unable to download remote file</value> +</string> +<string> + <id>921</id> + <value>File is being downloaded</value> +</string> +<string> + <id>922</id> + <value>Description</value> +</string> +<string> + <id>923</id> + <value>Show</value> +</string> +<string> + <id>924</id> + <value>Menu</value> +</string> +<string> + <id>925</id> + <value>Delete this movie</value> +</string> +<string> + <id>926</id> + <value>Add to playlist</value> +</string> +<string> + <id>927</id> + <value>Warning</value> +</string> +<string> + <id>928</id> + <value>Find coverart</value> +</string> +<string> + <id>929</id> + <value>Close menu</value> +</string> +<string> + <id>930</id> + <value>Add to favorites</value> +</string> +<string> + <id>931</id> + <value>Rating</value> +</string> +<string> + <id>932</id> + <value>Favorites</value> +</string> +<string> + <id>933</id> + <value>Remove from favorites</value> +</string> +<string> + <id>934</id> + <value>Set rating</value> +</string> +<string> + <id>935</id> + <value>Show: Rating</value> +</string> +<string> + <id>936</id> + <value>Resume from:</value> +</string> +<string> + <id>937</id> + <value>Import TV Guide</value> +</string> +<string> + <id>938</id> + <value>View this channel</value> +</string> +<string> + <id>939</id> + <value>Switch mode</value> +</string> +<string> + <id>940</id> + <value>Properties</value> +</string> +<string> + <id>941</id> + <value>Change aspect ratio</value> +</string> +<string> + <id>942</id> + <value>Stretch</value> +</string> +<string> + <id>943</id> + <value>Normal</value> +</string> +<string> + <id>944</id> + <value>Original</value> +</string> +<string> + <id>945</id> + <value>Letterbox</value> +</string> +<string> + <id>946</id> + <value>Pan and Scan</value> +</string> +<string> + <id>947</id> + <value>Zoom</value> +</string> +<string> + <id>948</id> + <value>Online</value> +</string> +<string> + <id>949</id> + <value>Busy</value> +</string> +<string> + <id>950</id> + <value>Be Right Back</value> +</string> +<string> + <id>951</id> + <value>Away</value> +</string> +<string> + <id>952</id> + <value>Phone</value> +</string> +<string> + <id>953</id> + <value>Lunch</value> +</string> +<string> + <id>954</id> + <value>Hidden</value> +</string> +<string> + <id>955</id> + <value>Idle</value> +</string> +<string> + <id>956</id> + <value>Online</value> +</string> +<string> + <id>957</id> + <value>MSN Messenger</value> +</string> +<string> + <id>958</id> + <value>Talking to</value> +</string> +<string> + <id>959</id> + <value>has joined the conversation</value> +</string> +<string> + <id>960</id> + <value>has left the conversation</value> +</string> +<string> + <id>961</id> + <value>MSN Status</value> +</string> + + +<string> + <id>970</id> + <value>Previous window</value> +</string> +<string> + <id>971</id> + <value>Group</value> +</string> +<string> + <id>972</id> + <value>All Channels</value> +</string> +<string> + <id>973</id> + <value>Maximum FPS</value> +</string> +<string> + <id>974</id> + <value>Root Menu</value> +</string> +<string> + <id>975</id> + <value>Previous chapter</value> +</string> +<string> + <id>976</id> + <value>Next chapter</value> +</string> +<string> + <id>977</id> + <value>There is no free card available</value> +</string> +<string> + <id>978</id> + <value>which can watch this channel</value> +</string> +<string> + <id>979</id> + <value>Play recording from beginning</value> +</string> +<string> + <id>980</id> + <value>Play recording from live point</value> +</string> +<string> + <id>981</id> + <value>Cancel this show</value> +</string> +<string> + <id>982</id> + <value>Delete this entire recording</value> +</string> + +<string> + <id>983</id> + <value>My Playlists</value> +</string> +<string> + <id>984</id> + <value>Downloading movie list</value> +</string> +<string> + <id>985</id> + <value>Downloading movies details</value> +</string> +<string> + <id>986</id> + <value>Downloading actor</value> +</string> +<string> + <id>987</id> + <value>Years</value> +</string> + +<string> + <id>988</id> + <value>Quality</value> +</string> +<string> + <id>989</id> + <value>FPS</value> +</string> +<string> + <id>990</id> + <value>Bitrate</value> +</string> +<string> + <id>991</id> + <value>Priority</value> +</string> +<string> + <id>992</id> + <value>Delete original file</value> +</string> +<string> + <id>993</id> + <value>Custom</value> +</string> +<string> + <id>994</id> + <value>Enable Auto compress</value> +</string> +<string> + <id>995</id> + <value>Are you sure to compress the</value> +</string> +<string> + <id>996</id> + <value>selected recordings?</value> +</string> + +<string> + <id>997</id> + <value>Completed</value> +</string> + +<string> + <id>998</id> + <value>XviD</value> +</string> +<string> + <id>999</id> + <value>This plugin allows you to transcode your</value> +</string> +<string> + <id>1000</id> + <value>TV Recordings from dvr-ms into mpg, xvid or wmv</value> +</string> +<string> + <id>1001</id> + <value>Please note. You'll need to have the</value> +</string> +<string> + <id>1002</id> + <value>Elecard MPEG2 video decoder installed</value> +</string> +<string> + <id>1003</id> + <value>for transcoding to xvid</value> +</string> +<string> + <id>1004</id> + <value>About to start recording</value> +</string> +<string> + <id>1005</id> + <value>on channel </value> +</string> +<string> + <id>1006</id> + <value>Allow recording to begin</value> +</string> +<string> + <id>1007</id> + <value>Cancel recording and maintain watching tv</value> +</string> +<string> + <id>1008</id> + <value>Queue</value> +</string> +<string> + <id>1009</id> + <value>Downloading coverart</value> +</string> +<string> + <id>1010</id> + <value>Watched</value> +</string> +<string> + <id>1011</id> + <value>Biography</value> +</string> +<string> + <id>1012</id> + <value>This program will be interrupted by</value> +</string> +<string> + <id>1013</id> + <value>Would you like to record the second part also?</value> +</string> +<string> + <id>1014</id> + <value>Notify me when program begins</value> +</string> +<string> + <id>1015</id> + <value>Don't notify me when program begins</value> +</string> +<string> + <id>1016</id> + <value>Program starts in 5 mins</value> +</string> +<string> + <id>1017</id> + <value>Sort by: Duration</value> +</string> +<string> + <id>1440</id> + <value>My TeleText</value> +</string> +<string> + <id>1441</id> + <value>TeleText</value> +</string> +<string> + <id>1442</id> + <value>Scroll speed (horizontal)</value> +</string> +<string> + <id>1443</id> + <value>Scroll speed (vertical)</value> +</string> + + <!-- My Status Strings --> + <string><id>1950</id><value>My Status</value></string> + <string><id>1951</id><value>Harddisk</value></string> + <string><id>1952</id><value>Fan</value></string> + <string><id>1953</id><value>Free</value></string> + <string><id>1954</id><value>Temperature</value></string> + <string><id>1955</id><value>C</value></string> + <string><id>1956</id><value>Select alarm sound</value></string> + <string><id>1957</id><value>Preferences</value></string> + <string><id>1958</id><value>CPU usage</value></string> + <string><id>1959</id><value>Voltage</value></string> + <string><id>1960</id><value>Volt</value></string> + <string><id>1961</id><value>Clock frequency</value></string> + <string><id>1962</id><value>Preferences</value></string> + <string><id>1963</id><value>Sensor details</value></string> + <string><id>1964</id><value>Sensor alarm</value></string> + <string><id>1965</id><value>Highest Value</value></string> + <string><id>1966</id><value>Lowest Value</value></string> + <string><id>1967</id><value>top alarm threshold</value></string> + <string><id>1968</id><value>lower alarm threshold</value></string> + <string><id>1969</id><value>Test sound</value></string> + <string><id>1970</id><value>Alarm interval (in seconds)</value></string> + <string><id>1971</id><value>Shutdown on alert</value></string> + <string><id>1972</id><value>Status details</value></string> + <string><id>1973</id><value>of</value></string> + <string><id>1974</id><value>Memory</value></string> + <string><id>1975</id><value>Next Page</value></string> + <string><id>1976</id><value>rpm</value></string> + <string><id>1977</id><value>Filesystem</value></string> + <string><id>1978</id><value>VirtualMem</value></string> + <!-- End of My Status Strings --> + + <!-- My Recipie Strings --> + <string><id>2005</id><value>Delete</value></string> + <string><id>2006</id><value>Title</value></string> + <string><id>2007</id><value>Yield</value></string> + <string><id>2008</id><value>Ingredients</value></string> + <string><id>2009</id><value>Directions</value></string> + <string><id>2010</id><value>Card</value></string> + <string><id>2011</id><value>Print</value></string> + <string><id>2012</id><value>Delete</value></string> + <string><id>2013</id><value>Favorites</value></string> + <string><id>2014</id><value>Unknown</value></string> + <string><id>2015</id><value>per Serving</value></string> + <string><id>2016</id><value>small</value></string> + <string><id>2017</id><value>fluid ounce</value></string> + <string><id>2018</id><value>cup</value></string> + <string><id>2019</id><value>pint</value></string> + <string><id>2020</id><value>medium</value></string> + <string><id>2021</id><value>large</value></string> + <string><id>2022</id><value>can</value></string> + <string><id>2023</id><value>package</value></string> + <string><id>2024</id><value>pinch</value></string> + <string><id>2025</id><value>drop</value></string> + <string><id>2026</id><value>dash</value></string> + <string><id>2027</id><value>carton</value></string> + <string><id>2028</id><value>bunch</value></string> + <string><id>2029</id><value>slice</value></string> + <string><id>2030</id><value>each</value></string> + <string><id>2031</id><value>teaspoon</value></string> + <string><id>2032</id><value>teaspoon</value></string> + <string><id>2033</id><value>tablespoon</value></string> + <string><id>2034</id><value>tablespoon</value></string> + <string><id>2035</id><value>quart</value></string> + <string><id>2036</id><value>gallon</value></string> + <string><id>2037</id><value>ounce</value></string> + <string><id>2038</id><value>pound</value></string> + <string><id>2039</id><value>mililiter</value></string> + <string><id>2040</id><value>mililiter</value></string> + <string><id>2041</id><value>centiliter</value></string> + <string><id>2042</id><value>deciliter</value></string> + <string><id>2043</id><value>liter</value></string> + <string><id>2044</id><value>milligram</value></string> + <string><id>2045</id><value>centigram</value></string> + <string><id>2046</id><value>decigram</value></string> + <string><id>2047</id><value>gram</value></string> + <string><id>2048</id><value>kilogram</value></string> + <string><id>2049</id><value>Delete this Recipie?</value></string> + <string><id>2050</id><value>Delete this Categorie?</value></string> + <string><id>2051</id><value>Search in Title</value></string> + <string><id>2052</id><value>Search in Recipie</value></string> + <string><id>2053</id><value>Categorie</value></string> + <string><id>2054</id><value>No Entry!</value></string> + <!-- End of My Recipie Strings --> + + <!-- My Burner Strings --> + <string><id>2100</id><value>Burn</value></string> + <string><id>2101</id><value>Copy CD/DVD</value></string> + <string><id>2102</id><value>Create Audio-CD</value></string> + <string><id>2103</id><value>Create Video-CD</value></string> + <string><id>2104</id><value>Create Video-DVD</value></string> + <string><id>2105</id><value>Create Data-CD</value></string> + <string><id>2106</id><value>Create Data-DVD</value></string> + <string><id>2107</id><value>Start copy</value></string> + <string><id>2108</id><value>Insert empty CD/DVD</value></string> + <string><id>2109</id><value>then press OK</value></string> + <string><id>2110</id><value>Insert original CD/DVD</value></string> + <string><id>2111</id><value>Finished !</value></string> + <string><id>2112</id><value>Waiting for CD/DVD</value></string> + <string><id>2113</id><value>Copy all</value></string> + <string><id>2114</id><value>Erase disc</value></string> + <string><id>2115</id><value>Insert CD/DVD RW</value></string> + <string><id>2116</id><value>Drive not ready</value></string> + <string><id>2117</id><value>a fatal error has occurred!</value></string> + <string><id>2118</id><value>Convert DVR-MS</value></string> + <string><id>2119</id><value>Start convert</value></string> + <string><id>2120</id><value>Converting file(s)...</value></string> + <string><id>2121</id><value>Couldn't convert file(s)!</value></string> + <string><id>2122</id><value>starts!</value></s... [truncated message content] |
From: <fr...@us...> - 2007-01-31 20:33:46
|
Revision: 65 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=65&view=rev Author: framug Date: 2007-01-31 12:33:39 -0800 (Wed, 31 Jan 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/file explorer/Release/Plugins/Windows/Explorer.dll trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs trunk/plugins/file explorer/Source/Explorer.suo trunk/plugins/file explorer/Source/bin/Release/Explorer.dll Modified: trunk/plugins/file explorer/Release/Plugins/Windows/Explorer.dll =================================================================== (Binary files differ) Modified: trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs =================================================================== --- trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs 2007-01-31 20:09:36 UTC (rev 64) +++ trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs 2007-01-31 20:33:39 UTC (rev 65) @@ -300,13 +300,12 @@ GUIWindowManager.Process(); } } -//fmu if someone know how to remove this obsolete m$soft method ? + //fmu if someone know how to remove this obsolete m$soft method ? private void SuspendThread() { - processThread.Suspend(); + processThread.Suspend(); } - -//fmu if someone know how to remove this obsolete m$soft method ? + //fmu if someone know how to remove this obsolete m$soft method ? private void ResumeThread() { processThread.Resume(); Modified: trunk/plugins/file explorer/Source/Explorer.suo =================================================================== (Binary files differ) Modified: trunk/plugins/file explorer/Source/bin/Release/Explorer.dll =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2007-01-31 20:09:48
|
Revision: 64 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=64&view=rev Author: framug Date: 2007-01-31 12:09:36 -0800 (Wed, 31 Jan 2007) Log Message: ----------- added comment if someone know how to change these obsoletes m$soft methods ? Modified Paths: -------------- trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs trunk/plugins/file explorer/Source/Explorer.suo trunk/plugins/file explorer/Source/bin/Release/Explorer.dll Modified: trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs =================================================================== --- trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs 2007-01-31 19:51:26 UTC (rev 63) +++ trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs 2007-01-31 20:09:36 UTC (rev 64) @@ -300,12 +300,13 @@ GUIWindowManager.Process(); } } - +//fmu if someone know how to remove this obsolete m$soft method ? private void SuspendThread() { - processThread.Suspend(); + processThread.Suspend(); } - + +//fmu if someone know how to remove this obsolete m$soft method ? private void ResumeThread() { processThread.Resume(); Modified: trunk/plugins/file explorer/Source/Explorer.suo =================================================================== (Binary files differ) Modified: trunk/plugins/file explorer/Source/bin/Release/Explorer.dll =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2007-01-31 19:51:32
|
Revision: 63 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=63&view=rev Author: framug Date: 2007-01-31 11:51:26 -0800 (Wed, 31 Jan 2007) Log Message: ----------- Add file explorer plugin Added Paths: ----------- trunk/plugins/file explorer/ trunk/plugins/file explorer/Release/ trunk/plugins/file explorer/Release/Plugins/ trunk/plugins/file explorer/Release/Plugins/Windows/ trunk/plugins/file explorer/Release/Plugins/Windows/Explorer.dll trunk/plugins/file explorer/Release/Plugins/Windows/FileExplorer/ trunk/plugins/file explorer/Release/Plugins/Windows/FileExplorer/Compression.dll trunk/plugins/file explorer/Release/Skin/ trunk/plugins/file explorer/Release/Skin/BlueTwo/ trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_dialog.xml trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_main.xml trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_modulepreview.xml trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_musicpreview.xml trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_textpreview.xml trunk/plugins/file explorer/Release/Skin/MCE/ trunk/plugins/file explorer/Release/Skin/MCE/explorer_dialog.xml trunk/plugins/file explorer/Release/Skin/MCE/explorer_main.xml trunk/plugins/file explorer/Release/Skin/MCE/explorer_modulepreview.xml trunk/plugins/file explorer/Release/Skin/MCE/explorer_musicpreview.xml trunk/plugins/file explorer/Release/Skin/MCE/explorer_textpreview.xml trunk/plugins/file explorer/Release/Skin/Project X/ trunk/plugins/file explorer/Release/Skin/Project X/explorer_dialog.xml trunk/plugins/file explorer/Release/Skin/Project X/explorer_main.xml trunk/plugins/file explorer/Release/Skin/Project X/explorer_modulepreview.xml trunk/plugins/file explorer/Release/Skin/Project X/explorer_musicpreview.xml trunk/plugins/file explorer/Release/Skin/Project X/explorer_textpreview.xml trunk/plugins/file explorer/Source/ trunk/plugins/file explorer/Source/AssemblyInfo.cs trunk/plugins/file explorer/Source/Compression/ trunk/plugins/file explorer/Source/Compression/Compression.dsp trunk/plugins/file explorer/Source/Compression/Compression.dsw trunk/plugins/file explorer/Source/Compression/Compression.ncb trunk/plugins/file explorer/Source/Compression/Compression.opt trunk/plugins/file explorer/Source/Compression/Compression.plg trunk/plugins/file explorer/Source/Compression/export.cpp trunk/plugins/file explorer/Source/Compression/export.h trunk/plugins/file explorer/Source/Compression/main.cpp trunk/plugins/file explorer/Source/Constants.cs trunk/plugins/file explorer/Source/Dialogs/ trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs trunk/plugins/file explorer/Source/DrivesView.cs trunk/plugins/file explorer/Source/ExceptionViewer.cs trunk/plugins/file explorer/Source/Explorer.cs trunk/plugins/file explorer/Source/Explorer.csproj trunk/plugins/file explorer/Source/Explorer.sln trunk/plugins/file explorer/Source/Explorer.suo trunk/plugins/file explorer/Source/Preview/ trunk/plugins/file explorer/Source/Preview/ModulePreview.cs trunk/plugins/file explorer/Source/Preview/PicturePreview.cs trunk/plugins/file explorer/Source/Preview/StreamingPreview.cs trunk/plugins/file explorer/Source/Preview/TextPreview.cs trunk/plugins/file explorer/Source/Setup.Designer.cs trunk/plugins/file explorer/Source/Setup.cs trunk/plugins/file explorer/Source/Setup.resx trunk/plugins/file explorer/Source/bin/ trunk/plugins/file explorer/Source/bin/Release/ trunk/plugins/file explorer/Source/bin/Release/Core.dll trunk/plugins/file explorer/Source/bin/Release/Dialogs.dll trunk/plugins/file explorer/Source/bin/Release/Explorer.dll trunk/plugins/file explorer/Source/bin/Release/System.Drawing.dll trunk/plugins/file explorer/Source/bin/Release/System.Windows.Forms.dll trunk/plugins/file explorer/Source/bin/Release/Utils.dll trunk/plugins/file explorer/doc/ trunk/plugins/file explorer/doc/Bugs.txt trunk/plugins/file explorer/doc/COPYING.txt Added: trunk/plugins/file explorer/Release/Plugins/Windows/Explorer.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/file explorer/Release/Plugins/Windows/Explorer.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/file explorer/Release/Plugins/Windows/FileExplorer/Compression.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/file explorer/Release/Plugins/Windows/FileExplorer/Compression.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_dialog.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_dialog.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_dialog.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,46 @@ +<window> + <id>557316</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_main.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_main.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_main.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,112 @@ +<window> + <id>557311</id> + <defaultcontrol>1</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>5</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <description>Menu left</description> + <type>button</type> + <id>1</id> + <posX>1</posX> + <posY>1</posY> + <label>Menu left</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>1</onup> + <ondown>3</ondown> + </control> + <control> + <description>Menu right</description> + <type>button</type> + <id>2</id> + <posX>352</posX> + <posY>1</posY> + <label>Menu right</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>2</onup> + <ondown>4</ondown> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>3</id> + <posX>1</posX> + <posY>55</posY> + <height>500</height> + <width>350</width> + <onright>4</onright> + <onleft>1</onleft> + <onup>3</onup> + <ondown>3</ondown> + <spinPosX>240</spinPosX> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>4</id> + <posX>352</posX> + <posY>55</posY> + <height>500</height> + <width>350</width> + <onright>2</onright> + <onleft>3</onleft> + <onup>4</onup> + <ondown>4</ondown> + </control> + <control> + <description>label left</description> + <type>label</type> + <id>6</id> + <posX>1</posX> + <posY>500</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>label right</description> + <type>label</type> + <id>7</id> + <posX>352</posX> + <posY>500</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir left</description> + <type>label</type> + <id>9</id> + <posX>1</posX> + <posY>35</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir right</description> + <type>label</type> + <id>10</id> + <posX>352</posX> + <posY>36</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_modulepreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_modulepreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_modulepreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,64 @@ +<window> + <id>557313</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_musicpreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_musicpreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_musicpreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,64 @@ +<window> + <id>557314</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_textpreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_textpreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_textpreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,29 @@ +<window> + <id>557312</id> + <defaultcontrol>2</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <type>textbox</type> + <id>2</id> + <posX>1</posX> + <posY>1</posY> + <width>700</width> + <height>576</height> + <font>font12</font> + <textcolor>White</textcolor> + <spinPosX>640</spinPosX> + <spinPosY>560</spinPosY> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/MCE/explorer_dialog.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/MCE/explorer_dialog.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/MCE/explorer_dialog.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,46 @@ +<window> + <id>557316</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/MCE/explorer_main.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/MCE/explorer_main.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/MCE/explorer_main.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,112 @@ +<window> + <id>557311</id> + <defaultcontrol>1</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>5</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <description>Menu left</description> + <type>button</type> + <id>1</id> + <posX>1</posX> + <posY>1</posY> + <label>Menu left</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>1</onup> + <ondown>3</ondown> + </control> + <control> + <description>Menu right</description> + <type>button</type> + <id>2</id> + <posX>352</posX> + <posY>1</posY> + <label>Menu right</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>2</onup> + <ondown>4</ondown> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>3</id> + <posX>1</posX> + <posY>55</posY> + <height>500</height> + <width>350</width> + <onright>4</onright> + <onleft>1</onleft> + <onup>3</onup> + <ondown>3</ondown> + <spinPosX>240</spinPosX> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>4</id> + <posX>352</posX> + <posY>55</posY> + <height>500</height> + <width>350</width> + <onright>2</onright> + <onleft>3</onleft> + <onup>4</onup> + <ondown>4</ondown> + </control> + <control> + <description>label left</description> + <type>label</type> + <id>6</id> + <posX>1</posX> + <posY>500</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>label right</description> + <type>label</type> + <id>7</id> + <posX>352</posX> + <posY>500</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir left</description> + <type>label</type> + <id>9</id> + <posX>1</posX> + <posY>35</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir right</description> + <type>label</type> + <id>10</id> + <posX>352</posX> + <posY>36</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/MCE/explorer_modulepreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/MCE/explorer_modulepreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/MCE/explorer_modulepreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,64 @@ +<window> + <id>557313</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/MCE/explorer_musicpreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/MCE/explorer_musicpreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/MCE/explorer_musicpreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,64 @@ +<window> + <id>557314</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/MCE/explorer_textpreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/MCE/explorer_textpreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/MCE/explorer_textpreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,29 @@ +<window> + <id>557312</id> + <defaultcontrol>2</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <type>textbox</type> + <id>2</id> + <posX>1</posX> + <posY>1</posY> + <width>700</width> + <height>576</height> + <font>font12</font> + <textcolor>White</textcolor> + <spinPosX>640</spinPosX> + <spinPosY>560</spinPosY> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/Project X/explorer_dialog.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/Project X/explorer_dialog.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/Project X/explorer_dialog.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,46 @@ +<window> + <id>557316</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/Project X/explorer_main.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/Project X/explorer_main.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/Project X/explorer_main.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,112 @@ +<window> + <id>557311</id> + <defaultcontrol>1</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>5</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <description>Menu left</description> + <type>button</type> + <id>1</id> + <posX>1</posX> + <posY>1</posY> + <label>Menu left</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>1</onup> + <ondown>3</ondown> + </control> + <control> + <description>Menu right</description> + <type>button</type> + <id>2</id> + <posX>352</posX> + <posY>1</posY> + <label>Menu right</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>2</onup> + <ondown>4</ondown> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>3</id> + <posX>1</posX> + <posY>55</posY> + <height>500</height> + <width>350</width> + <onright>4</onright> + <onleft>1</onleft> + <onup>3</onup> + <ondown>3</ondown> + <spinPosX>240</spinPosX> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>4</id> + <posX>352</posX> + <posY>55</posY> + <height>500</height> + <width>350</width> + <onright>2</onright> + <onleft>3</onleft> + <onup>4</onup> + <ondown>4</ondown> + </control> + <control> + <description>label left</description> + <type>label</type> + <id>6</id> + <posX>1</posX> + <posY>500</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>label right</description> + <type>label</type> + <id>7</id> + <posX>352</posX> + <posY>500</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir left</description> + <type>label</type> + <id>9</id> + <posX>1</posX> + <posY>35</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir right</description> + <type>label</type> + <id>10</id> + <posX>352</posX> + <posY>36</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/Project X/explorer_modulepreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/Project X/explorer_modulepreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/Project X/explorer_modulepreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,64 @@ +<window> + <id>557313</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/Project X/explorer_musicpreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/Project X/explorer_musicpreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/Project X/explorer_musicpreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,64 @@ +<window> + <id>557314</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/Project X/explorer_textpreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/Project X/explorer_textpreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/Project X/explorer_textpreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,29 @@ +<window> + <id>557312</id> + <defaultcontrol>2</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <type>textbox</type> + <id>2</id> + <posX>1</posX> + <posY>1</posY> + <width>700</width> + <height>576</height> + <font>font12</font> + <textcolor>White</textcolor> + <spinPosX>640</spinPosX> + <spinPosY>560</spinPosY> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Source/AssemblyInfo.cs =================================================================== --- trunk/plugins/file explorer/Source/AssemblyInfo.cs (rev 0) +++ trunk/plugins/file explorer/Source/AssemblyInfo.cs 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,31 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Information about this assembly is defined by the following +// attributes. +// +// change them to the information which is associated with the assembly +// you compile. + +[assembly: AssemblyTitle("Explorer")] +[assembly: AssemblyDescription("File Explorer")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Sinus Arts")] +[assembly: AssemblyProduct("Explorer")] +[assembly: AssemblyCopyright("2006 Andreas Groß")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// This sets the default COM visibility of types in the assembly to invisible. +// If you need to expose a type to COM, use [ComVisible(true)] on that type. +[assembly: ComVisible(false)] + +// The assembly version has following format : +// +// Major.Minor.Build.Revision +// +// You can specify all values by your own or you can build default build and revision +// numbers with the '*' character (the default): + +[assembly: AssemblyVersion("0.1.0.0")] Added: trunk/plugins/file explorer/Source/Compression/Compression.dsp =================================================================== --- trunk/plugins/file explorer/Source/Compression/Compression.dsp (rev 0) +++ trunk/plugins/file explorer/Source/Compression/Compression.dsp 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,113 @@ +# Microsoft Developer Studio Project File - Name="Compression" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** NICHT BEARBEITEN ** + +# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 + +CFG=Compression - Win32 Debug +!MESSAGE Dies ist kein g\xFCltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE +!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f\xFChren Sie den Befehl +!MESSAGE +!MESSAGE NMAKE /f "Compression.mak". +!MESSAGE +!MESSAGE Sie k\xF6nnen beim Ausf\xFChren von NMAKE eine Konfiguration angeben +!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: +!MESSAGE +!MESSAGE NMAKE /f "Compression.mak" CFG="Compression - Win32 Debug" +!MESSAGE +!MESSAGE F\xFCr die Konfiguration stehen zur Auswahl: +!MESSAGE +!MESSAGE "Compression - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library") +!MESSAGE "Compression - Win32 Debug" (basierend auf "Win32 (x86) Dynamic-Link Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "Compression - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "COMPRESSION_EXPORTS" /YX /FD /c +# ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "COMPRESSION_EXPORTS" /YX /FD /c +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x407 /d "NDEBUG" +# ADD RSC /l 0x407 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 + +!ELSEIF "$(CFG)" == "Compression - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "COMPRESSION_EXPORTS" /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "COMPRESSION_EXPORTS" /YX /FD /GZ /c +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x407 /d "_DEBUG" +# ADD RSC /l 0x407 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "Compression - Win32 Release" +# Name "Compression - Win32 Debug" +# Begin Group "Quellcodedateien" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=.\export.cpp +# End Source File +# Begin Source File + +SOURCE=.\main.cpp +# End Source File +# End Group +# Begin Group "Header-Dateien" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=.\export.h +# End Source File +# End Group +# Begin Group "Ressourcendateien" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project Added: trunk/plugins/file explorer/Source/Compression/Compression.dsw =================================================================== --- trunk/plugins/file explorer/Source/Compression/Compression.dsw (rev 0) +++ trunk/plugins/file explorer/Source/Compression/Compression.dsw 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GEL\xD6SCHT WERDEN! + +############################################################################### + +Project: "Compression"=".\Compression.dsp" - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + Added: trunk/plugins/file explorer/Source/Compression/Compression.ncb =================================================================== (Binary files differ) Property changes on: trunk/plugins/file explorer/Source/Compression/Compression.ncb ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/file explorer/Source/Compression/Compression.opt =================================================================== (Binary files differ) Property changes on: trunk/plugins/file explorer/Source/Compression/Compression.opt ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/file explorer/Source/Compression/Compression.plg =================================================================== --- trunk/plugins/file explorer/Source/Compression/Compression.plg (rev 0) +++ trunk/plugins/file explorer/Source/Compression/Compression.plg 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,36 @@ +<html> +<body> +<pre> +<h1>Erstellungsprotokoll</h1> +<h3> +--------------------Konfiguration: Compression - Win32 Release-------------------- +</h3> +<h3>Befehlszeilen</h3> +Erstellen der tempor\xE4ren Datei "C:\DOKUME~1\Admin\LOKALE~1\Temp\RSP185.tmp" mit Inhalten +[ +/nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "COMPRESSION_EXPORTS" /Fp"Release/Compression.pch" /YX /Fo"Release/" /Fd"Release/" /FD /c +"e:\Eigene Dateien\SharpDevelop Projects\MediaPortal PlugIns\Explorer\Compression\export.cpp" +"e:\Eigene Dateien\SharpDevelop Projects\MediaPortal PlugIns\Explorer\Compression\main.cpp" +] +Creating command line "cl.exe @C:\DOKUME~1\Admin\LOKALE~1\Temp\RSP185.tmp" +Erstellen der tempor\xE4ren Datei "C:\DOKUME~1\Admin\LOKALE~1\Temp\RSP186.tmp" mit Inhalten +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /incremental:no /pdb:"Release/Compression.pdb" /machine:I386 /out:"Release/Compression.dll" /implib:"Release/Compression.lib" +".\Release\export.obj" +".\Release\main.obj" +] +Erstellen der Befehlzeile "link.exe @C:\DOKUME~1\Admin\LOKALE~1\Temp\RSP186.tmp" +<h3>Ausgabefenster</h3> +Kompilierung l\xE4uft... +export.cpp +main.cpp +Linker-Vorgang l\xE4uft... + Bibliothek Release/Compression.lib und Objekt Release/Compression.exp wird erstellt + + + +<h3>Ergebnisse</h3> +Compression.dll - 0 Fehler, 0 Warnung(en) +</pre> +</body> +</html> Added: trunk/plugins/file explorer/Source/Compression/export.cpp =================================================================== --- trunk/plugins/file explorer/Source/Compression/export.cpp (rev 0) +++ trunk/plugins/file explorer/Source/Compression/export.cpp 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,69 @@ +/* export.cpp + * + * + * File created on: 07.08.2006 + * Version : 0.1 + * + * + * Copyright (C) 2006 Andreas Gro\xDF (contact: sin...@gm...) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +#include "export.h" +#include <windows.h> +#include <winioctl.h> + + +EXPORT bool CompressFile(char* file) +{ + HANDLE hFile = CreateFile(file, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); + if (hFile == INVALID_HANDLE_VALUE) + { + return false; + } + + USHORT usCompression = COMPRESSION_FORMAT_DEFAULT; + DWORD dwReturned = 0; + if (DeviceIoControl(hFile, FSCTL_SET_COMPRESSION, &usCompression, sizeof(USHORT), NULL, 0, &dwReturned, NULL) == 0) + { + CloseHandle(hFile); + return false; + } + + CloseHandle(hFile); + return true; +} + +EXPORT bool UncompressFile(char* file) +{ + HANDLE hFile = CreateFile(file, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); + if (hFile == INVALID_HANDLE_VALUE) + { + return false; + } + + USHORT usCompression = COMPRESSION_FORMAT_NONE; + DWORD dwReturned = 0; + if (DeviceIoControl(hFile, FSCTL_SET_COMPRESSION, &usCompression, sizeof(USHORT), NULL, 0, &dwReturned, NULL) == 0) + { + CloseHandle(hFile); + return false; + } + + CloseHandle(hFile); + return true; +} Added: trunk/plugins/file explorer/Source/Compression/export.h =================================================================== --- trunk/plugins/file explorer/Source/Compression/export.h (rev 0) +++ trunk/plugins/file explorer/Source/Compression/export.h 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,33 @@ +/* export.h + * + * + * File created on: 07.08.2006 + * Version : 0.1 + * + * + * Copyright (C) 2006 Andreas Gro\xDF (contact: sin...@gm...) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +#define EXPORT __declspec(dllexport) + + +extern "C" +{ + EXPORT bool CompressFile(char* file); + EXPORT bool UncompressFile(char* file); +} \ No newline at end of file Added: trunk/plugins/file explorer/Source/Compression/main.cpp =================================================================== --- trunk/plugins/file explorer/Source/Compression/main.cpp (rev 0) +++ trunk/plugins/file explorer/Source/Compression/main.cpp 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,32 @@ +/* main.cpp + * + * + * File created on: 07.08.2006 + * Version : 0.1 + * + * + * Copyright (C) 2006 Andreas Gro\xDF (contact: sin...@gm...) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +#include <windows.h> + + +BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwReasonForCall, LPVOID pvReserved) +{ + return TRUE; +} Added: trunk/plugins/file explorer/Source/Constants.cs =================================================================== --- trunk/plugins/file explorer/Source/Constants.cs (rev 0) +++ trunk/plugins/file explorer/Source/Constants.cs 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,110 @@ +/* Constants.cs + * + * + * File created on: 17.07.2006 + * Version : 0.1 + * + * + * Copyright (C) 2006 Andreas Groß (contact: sin...@gm...) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +using System; + +namespace Explorer +{ + /// <summary> + /// Description of Constants. + /// </summary> + public static class Constants + { + #region PlugIn Info constants + public struct PlugInInfo + { + /// <summary> + /// Name of PlugIn. + /// </summary> + public static readonly string NAME = "File Explorer"; + + /// <summary> + /// Description of PlugIn. + /// </summary> + public static readonly string DESCRIPTION = "File Explorer"; + + /// <summary> + /// Author of PlugIn. + /// </summary> + public static readonly string AUTHOR = "Andreas Groß"; + } + #endregion + + #region Window IDs + public struct WindowIDs + { + /// <summary> + /// The main windows id. + /// </summary> + public static readonly int MAIN = 557311; + public static readonly int TEXTVIEWER = 557312; + public static readonly int MUSICVIEWER = 557313; + public static readonly int STREAMINGVIEWER = 557314; + public static readonly int PICTUREVIEWER = 557315; + public static readonly int DIALOGOPERATION = 557316; + } + #endregion + + #region CotnrolIDs + public struct ControlIDs + { + public static readonly int LISTBOX_LEFT = 3; + public static readonly int LISTBOX_RIGHT = 4; + } + #endregion + + #region SetupForm + public struct SetupForm + { + public static readonly string[] valueNames = + {"Extensions", "Trashbin", "AllFiles", "SystemFiles", "SystemDirs"}; + + public static readonly string[] valueDescriptions = + {"Show file extensions", "Copy files to trashcan instead of deleting them", + "Show all files", "Show system files", "Show system directories" }; + + public static readonly bool[] valueStandards = {true, true, false, false, false}; + } + #endregion + + #region DriveTypes + public struct DriveTypes + { + public static readonly int REMOVEABLE = 2; + public static readonly int FIXED = 3; + public static readonly int REMOTEDISK = 4; + public static readonly int CD_DVD = 5; + public static readonly int RAMDISK = 6; + } + #endregion + + #region ViewerExtensions + public struct ViewerExtensions + { + public static readonly string[] TextPreviewExtensions = {".txt", ".ini", ".inf", ".bat", ".cs", ".cpp", ".xml", ".h", ".hpp", ".bas", ".vb", ".asm"}; + } + #endregion + } +} Added: trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs =================================================================== --- trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs (rev 0) +++ trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,401 @@ +/* GUIDialogOperation.cs + * + * + * File created on: 27.07.2006 + * Version : 0.1 + * + * + * Copyright (C) 2006 Andreas Groß (contact: sin...@gm...) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +using System; +using MediaPortal.GUI.Library; +using System.Threading; + +namespace Explorer.Dialogs +{ + /// <summary> + /// This class shows a dialog which shows information about + /// operations done by DrivesView class. + /// </summary> + public class GUIDialogOperation : GUIWindow, IRenderLayer + { + #region enum DialogType + /// <summary> + /// Available dialogtypes. + /// </summary> + public enum DialogType : int + { + COPY = 0, + MOVE = 1, + DELETE = 2, + ENCRYPT = 3, + DECRYPT = 4, + COMPRESS = 5, + UNCOMPRESS = 6, + HIDE = 7, + UNHIDE = 8, + READONLY_FLAG_ADD = 9, + READONLY_FLAG_REMOVE = 10, + AUDIO_PLAYLIST_CREATE = 11, + VIDEO_PLAYLIST_CREATE = 12, + AUDIO_PLAYLIST_ADD = 13, + VIDEO_PLAYLIST_ADD = 14 + }; + #endregion + + #region vars + private int parentID; + private bool running = false; + + private DialogType type = 0; + + private string file = string.Empty; + private string to = string.Empty; + + private Thread processThread = null; + #endregion + + #region skin vars + [SkinControlAttribute(2)] private GUILabelControl lblHeading = null; + [SkinControlAttribute(3)] private GUILabelControl lblText1 = null; + [SkinControlAttribute(4)] private GUILabelControl lblText2 = null; + #endregion + + #region public members + /// <summary> + /// Shows the dialog and waits until the user has closed it. + /// </summary> + /// <param name="parentID">Parentwindow id.</param> + public void DoModal(int parentID) + { + this.parentID = parentID; + + GUIWindow win = GUIWindowManager.GetWindow(parentID); + + GUIWindowManager.IsSwitchingToNewWindow = true; + GUIWindowManager.RouteToWindow(GetID); + + // activate this window + GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_INIT, GetID, 0, 0, 0, 0, null); + OnMessage(msg); + + GUIWindowManager.IsSwitchingToNewWindow = false; + + running = true; + while (running && GUIGraphicsContext.CurrentState == GUIGraphicsContext.State.RUNNING) + { + GUIWindowManager.Process(); + } + } + + /// <summary> + /// Shows the dialog. + /// </summary> + /// <param name="parentID">Parentwindow id.</param> + public void Show(int parentID) + { + this.parentID = parentID; + + GUIWindow win = GUIWindowManager.GetWindow(parentID); + + GUIWindowManager.IsSwitchingToNewWindow = true; + GUIWindowManager.RouteToWindow(GetID); + + // activate this window + GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_INIT, GetID, 0, 0, 0, 0, null); + OnMessage(msg); + + GUIWindowManager.IsSwitchingToNewWindow = false; + GUIWindowManager.Process(); + + running = true; + + processThread = new Thread(new ThreadStart(this.ProcessThread)); + processThread.Start(); + } + + /// <summary> + /// Closes the dialog. Only available if the dialog was shown using Show(). + /// </summary> + public void Close() + { + this.OnAction(new Action(Action.ActionType.ACTION_CLOSE_DIALOG, 0, 0)); + } + + /// <summary> + /// Sets/returns the dialogtype. + /// </summary> + public DialogType Type + { + get { return type; } + set { SetType(value); } + } + + /// <summary> + /// Sets the dialogtype. + /// </summary> + /// <param name="type">Dialogtype.</param> + public void SetType(DialogType type) + { + this.type = type; + + switch (type) + { + case DialogType.AUDIO_PLAYLIST_CREATE: + lblHeading.Label = "Create Audio Playlist"; + lblText1.Label = "Adding File: "; + lblText2.Label = "Path: "; + break; + case DialogType.COMPRESS: + lblHeading.Label = "Compressing"; + lblText1.Label = "Compressing File: "; + lblText2.Label = "Path: "; + break; + case DialogType.COPY: + lblHeading.Label = "Copy"; + lblText1.Label = "File: "; + lblText2.Label = "To: "; + break; + case DialogType.DECRYPT: + lblHeading.Label = "Decrypting"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.DELETE: + lblHeading.Label = "Delete"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.ENCRYPT: + lblHeading.Label = "Encrypting"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.HIDE: + lblHeading.Label = "Hide"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.MOVE: + lblHeading.Label = "Move"; + lblText1.Label = "File: "; + lblText2.Label = "To: "; + break; + case DialogType.READONLY_FLAG_ADD: + lblHeading.Label = "Set readonly flag"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.READONLY_FLAG_REMOVE: + lblHeading.Label = "Remove readonly flag"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.UNCOMPRESS: + lblHeading.Label = "Uncompressing"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.UNHIDE: + lblHeading.Label = "Unhide"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.VIDEO_PLAYLIST_CREATE: + lblHeading.Label = "Create Video Playlist"; + lblText1.Label = "Adding File: "; + lblText2.Label = "Path: "; + break; + case DialogType.AUDIO_PLAYLIST_ADD: + lblHeading.Label = "Add to Audio Playlist"; + lblText1.Label = "Reading files . . . "; + lblText2.Label = string.Empty; + break; + case DialogType.VIDEO_PLAYLIST_ADD: + lblHeading.Label = "Add to Video Playlist"; + lblText1.Label = "Reading files . . . "; + lblText2.Label = string.Empty; + break; + } + } + + public void SetCurrentFile(string file) + { + SuspendThread(); + this.file = file; + lblText1.Label = "File: " + file; + ResumeThread(); + } + + public void SetToPath(string path) + { + SuspendThread(); + if (path.Length > 30) + { + path = path.Substring(0, 3) + "..\\" + GetFilename(path); + } + this.to = path; + lblText2.Label = "To: " + path; + ResumeThread(); + } + + public void SetPath(string path) + { + SuspendThread(); + if (path.Length > 30) + { + path = path.Substring(0, 3) + "..\\" + GetFilename(path); + } + lblText2.Label = "Path: " + path; + ResumeThread(); + } + + /// <summary> + /// Adds text to the dialog's first label. + /// </summary> + /// <param name="text">Text</param> + public void SetText(string text) + { + SuspendThread(); + lblText1.Label = text; + lblText2.Label = string.Empty; + ResumeThread(); + } + + /// <summary> + /// Adds text to the dialog's first and second label. + /// </summary> + /// <param name="text1">Text for label 1.</param> + /// <param name="text2">Text for label 2.</param> + public void SetText(string text1, string text2) + { + SuspendThread(); + lblText1.Label = text1; + lblText1.Label = text2; + ResumeThread(); + } + #endregion + + #region private members + private void ProcessThread() + { + while (running) + { + GUIWindowManager.Process(); + } + } + + private void SuspendThread() + { + processThread.Suspend(); + } + + private void ResumeThread() + { + processThread.Resume(); + } + + private string GetFilename(string filePath) + { + int index = filePath.LastIndexOf("\\"); + + if (index == -1) + { + index = filePath.LastIndexOf("/"); + } + + if (index == -1) + { + return filePath; + } + + return filePath.Substring(index + 1); + } + #endregion + + #region Overrides + public override int GetID + { + get { return Constants.WindowIDs.DIALOGOPERATION; } + set { base.GetID = value; } + } + + public override bool Init() + { + return Load(GUIGraphicsContext.Skin + "\\explorer_dialog.xml"); + } + + public override void OnAction(Action action) + { + if (action.wID == Action.ActionType.ACTION_CLOSE_DIALOG || action.wID == Action.ActionType.ACTION_PREVIOUS_MENU) + { + GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT, GetID, 0, 0, 0, 0, null); + OnMessage(msg); + + return; + } + + base.OnAction(action); + } + + public override bool OnMessage(GUIMessage message) + { + if (message.Message == GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT) + { + GUIWindowManager.IsSwitchingToNewWindow = true; + + lock (this) + { + FreeResources(); + DeInitControls(); + GUILayerManager.UnRegisterLayer(this); + ... [truncated message content] |
From: <fr...@us...> - 2007-01-31 19:35:28
|
Revision: 62 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=62&view=rev Author: framug Date: 2007-01-31 11:35:13 -0800 (Wed, 31 Jan 2007) Log Message: ----------- Add My ClickMania Added Paths: ----------- trunk/plugins/My clickmania/ trunk/plugins/My clickmania/AssemblyInfo.cs trunk/plugins/My clickmania/Class1.cs trunk/plugins/My clickmania/ClickMania.cs trunk/plugins/My clickmania/ClickManiaControl.cs trunk/plugins/My clickmania/ClickManiaSetup.cs trunk/plugins/My clickmania/ClickManiaSetup.designer.cs trunk/plugins/My clickmania/ClickManiaSetup.resx trunk/plugins/My clickmania/GUIClickMania.csproj trunk/plugins/My clickmania/GUIClickMania.csproj.user trunk/plugins/My clickmania/GUIClickMania.sln trunk/plugins/My clickmania/GUIClickMania.suo trunk/plugins/My clickmania/UpgradeLog.XML trunk/plugins/My clickmania/bin/ trunk/plugins/My clickmania/bin/Release/ trunk/plugins/My clickmania/bin/Release/Core.dll trunk/plugins/My clickmania/bin/Release/Dialogs.dll trunk/plugins/My clickmania/bin/Release/GUIClickMania.dll trunk/plugins/My clickmania/bin/Release/Utils.dll trunk/plugins/My clickmania/myClickMania.cs Added: trunk/plugins/My clickmania/AssemblyInfo.cs =================================================================== --- trunk/plugins/My clickmania/AssemblyInfo.cs (rev 0) +++ trunk/plugins/My clickmania/AssemblyInfo.cs 2007-01-31 19:35:13 UTC (rev 62) @@ -0,0 +1,58 @@ +using System.Reflection; +using System.Runtime.CompilerServices; + +// +// 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("")] Added: trunk/plugins/My clickmania/Class1.cs =================================================================== --- trunk/plugins/My clickmania/Class1.cs (rev 0) +++ trunk/plugins/My clickmania/Class1.cs 2007-01-31 19:35:13 UTC (rev 62) @@ -0,0 +1,17 @@ +using System; + +namespace GUIClickMania +{ + /// <summary> + /// Summary description for Class1. + /// </summary> + public class Class1 + { + public Class1() + { + // + // TODO: Add constructor logic here + // + } + } +} Added: trunk/plugins/My clickmania/ClickMania.cs =================================================================== --- trunk/plugins/My clickmania/ClickMania.cs (rev 0) +++ trunk/plugins/My clickmania/ClickMania.cs 2007-01-31 19:35:13 UTC (rev 62) @@ -0,0 +1,357 @@ +using System; +using MediaPortal.GUI.Library; + +namespace MyClickMania +{ + /// <summary> + /// Summary description for ClickMania. + /// </summary> + /// + + enum BlockStatus + { + visible = 0, + disappearing, + invisible, + }; + + enum GameStatus + { + Stopped = 0, + Running, + Disapering, + MoveDown, + MoveLeft, + Check, + Lost, + Won, + }; + + public class ClickMania + { + #region const, structs and member variables + // const + private const int m_nSizeX = 8; + private const int m_nSizeY = 12; + private const int m_MaxColor = 5; + private const int m_MaxMoves = (int)((m_nSizeX * m_nSizeY)/2) + 2; + + // structs + public struct Block + { + public int color; + public int status; + }; + + // member variables + private int m_nScore = 0; + private int m_nMoves = 0; + private int m_nStatus = (int) GameStatus.Stopped; + private Block [,] m_Grid; + private Block [,,] m_GridHistory; + private int [] m_ScoreHistory; + + #endregion + + #region Properties + public int MaxX { get {return m_nSizeX; } } + public int MaxY { get {return m_nSizeY; } } + public int MaxColor { get {return m_MaxColor; } } + public int Score { get {return m_nScore; } set {m_nScore = value; } } + public int Status { get {return m_nStatus; } set {m_nStatus = value; } } + #endregion + + #region Indexer + public Block this [int x, int y] + { + get { return m_Grid[x,y]; } // ToDo: check x,y + set { m_Grid[x,y] = value; } // ToDo: check x,y + } + #endregion + + #region Init & Start + public ClickMania() + { + m_Grid = new Block[m_nSizeX, m_nSizeY]; + m_GridHistory = new Block[m_MaxMoves, m_nSizeX, m_nSizeY]; + m_ScoreHistory = new int[m_MaxMoves]; + m_nStatus = (int) GameStatus.Stopped; + } + + + // Generates the grid + public void Start() + { + m_nScore = 0; + m_nMoves = 0; + m_nStatus = (int) GameStatus.Stopped; + Random r = new Random(unchecked((int)DateTime.Now.Ticks)); + + for (int i = 0; i < m_nSizeX; i++) + { + for (int j = 0; j < m_nSizeY; j++) + { + m_Grid[i,j].color = r.Next(0, m_MaxColor); + m_Grid[i,j].status = (int)BlockStatus.visible; + } + } + + StoreMove(); + m_nStatus = (int) GameStatus.Running; + } + #endregion + + #region Check Clicked Block + // clicked on x, y pos in Array + // return number of found pos with equal color + public int Clicked(int x, int y) + { + if (m_Grid[x,y].status == (int)BlockStatus.disappearing) + { + return 0; + } + int col = m_Grid[x,y].color; + + int px, py, nx, ny; // + px = (x == 0 ? 0 : x-1); //prior x + py = (y == 0 ? 0 : y-1); //prior y + nx = (x == m_nSizeX-1 ? m_nSizeX-1 : x+1); // next x + ny = (y == m_nSizeY-1 ? m_nSizeY-1 : y+1); // next y + + // check if min one neighour has same color + if ( ((m_Grid[px,y].color == col) && (px != x) && (m_Grid[px,y].status == (int)BlockStatus.visible)) + ||((m_Grid[nx,y].color == col) && (nx != x) && (m_Grid[nx,y].status == (int)BlockStatus.visible)) + ||((m_Grid[x,py].color == col) && (py != y) && (m_Grid[x,py].status == (int)BlockStatus.visible)) + ||((m_Grid[x,ny].color == col) && (ny != y) && (m_Grid[x,ny].status == (int)BlockStatus.visible)) ) + { + int found = CheckPos(x,y, col); + if (found > 1) + { + m_nStatus = (int)GameStatus.Disapering; + } + return found; + } + return 1; + } + + + public int CheckPos(int x, int y, int col) + { + if (m_Grid[x,y].status == (int)BlockStatus.disappearing) + { + return 0; + } + + m_Grid[x,y].status = (int)BlockStatus.disappearing; + + int px, py, nx, ny; // + px = (x == 0 ? 0 : x-1); //prior x + py = (y == 0 ? 0 : y-1); //prior y + nx = (x == m_nSizeX-1 ? m_nSizeX-1 : x+1); // next x + ny = (y == m_nSizeY-1 ? m_nSizeY-1 : y+1); // next y + int ret = 1; + + if ((m_Grid[px,y].status == (int)BlockStatus.visible) && (m_Grid[px,y].color == col)) + { + ret += CheckPos(px, y, col); + } + + if ((m_Grid[nx,y].status == (int)BlockStatus.visible) && (m_Grid[nx,y].color == col)) + { + ret += CheckPos(nx, y, col); + } + + if ((m_Grid[x,py].status == (int)BlockStatus.visible) && (m_Grid[x,py].color == col)) + { + ret += CheckPos(x, py, col); + } + + if ((m_Grid[x,ny].status == (int)BlockStatus.visible) && (m_Grid[x,ny].color == col)) + { + ret += CheckPos(x, ny, col); + } + + return ret; + } + #endregion + + #region Move Blocks + public bool MakeInvisible() + { + bool ret = false; + for (int i = 0; i < m_nSizeX; i++) + { + for (int j = 0; j < m_nSizeY; j++) + { + if (m_Grid[i,j].status == (int)BlockStatus.disappearing) + { + m_Grid[i,j].status = (int)BlockStatus.invisible; + ret = true; + } + } + } + m_nStatus = (int) GameStatus.MoveDown; + return ret; + } + + public bool MoveDown() + { + bool ret = false; + for (int i = 0; i < m_nSizeX; i++) + { + for (int j = m_nSizeY-1; j >= 0; j--) + { + // if current pos invisible, then ... + if (m_Grid[i,j].status == (int)BlockStatus.invisible) + { + // ... search for the next visible pos + for (int k = j-1; k>= 0; k--) + { + if (m_Grid[i,k].status == (int)BlockStatus.visible) + { + Block temp = m_Grid[i,j]; + m_Grid[i,j] = m_Grid[i, k]; + m_Grid[i,k] = temp; + ret = true; + break; + } + } + } + } + } + + m_nStatus = (int) GameStatus.MoveLeft; + return ret; + } + + public bool MoveLeft() + { + bool ret = false; + for (int i = 0; i < m_nSizeX; i++) + { + // check if first block is invisible, then ... + if (m_Grid[i,m_nSizeY-1].status == (int)BlockStatus.invisible) + { + // ... search for the next visible + for (int k = i+1; k < m_nSizeX; k++) + { + if (m_Grid[k,m_nSizeY-1].status == (int)BlockStatus.visible) + { + // move the complete row + ret = true; + for (int j = 0; j < m_nSizeY; j++) + { + Block temp = m_Grid[i,j]; + m_Grid[i,j] = m_Grid[k, j]; + m_Grid[k,j] = temp; + } + break; + } + } + } + } + + StoreMove(); + m_nStatus = (int) GameStatus.Check; + return ret; + } + #endregion + + #region Check Won or Lost + public bool CheckWon() + { + if (m_Grid[0, m_nSizeY-1].status == (int)BlockStatus.invisible) + { + m_nStatus = (int) GameStatus.Won; + return true; + } + m_nStatus = (int)GameStatus.Running; + return false; + } + + public bool CheckLost() + { + bool MoveLeft = false; + //search for a possible move + for (int i = 0; i < m_nSizeX; i++) + { + for (int j = m_nSizeY-1; j >= 0; j--) + { + if (m_Grid[i,j].status == (int)BlockStatus.visible) + { + // test if around the visible block a other with the same color exists + int px, py, nx, ny, col; + px = (i == 0 ? 0 : i-1); //prior x + py = (j == 0 ? 0 : j-1); //prior y + nx = (i == m_nSizeX-1 ? m_nSizeX-1 : i+1); // next x + ny = (j == m_nSizeY-1 ? m_nSizeY-1 : j+1); // next y + col = m_Grid[i,j].color; + + // check if min one neighour has same color + if ( ((m_Grid[px,j].color == col) && (px != i) && (m_Grid[px,j].status == (int)BlockStatus.visible)) + ||((m_Grid[nx,j].color == col) && (nx != i) && (m_Grid[nx,j].status == (int)BlockStatus.visible)) + ||((m_Grid[i,py].color == col) && (py != j) && (m_Grid[i,py].status == (int)BlockStatus.visible)) + ||((m_Grid[i,ny].color == col) && (ny != j) && (m_Grid[i,ny].status == (int)BlockStatus.visible)) ) + { + MoveLeft = true; + } + } + else + { + break; + } + } + } + + + if (MoveLeft == false) + { + m_nStatus = (int) GameStatus.Lost; + return true; + } + m_nStatus = (int)GameStatus.Running; + return false; + } + #endregion + + #region History + public void StoreMove() + { + for (int i = 0; i < m_nSizeX; i++) + { + for (int j = 0; j < m_nSizeY; j++) + { + m_GridHistory[m_nMoves,i,j].color = m_Grid[i,j].color; + m_GridHistory[m_nMoves,i,j].status = m_Grid[i,j].status; + } + } + m_ScoreHistory[m_nMoves] = Score; + if (m_nMoves < m_MaxMoves - 1) + { + m_nMoves++; + } + } + + public void TakeBackMove() + { + int back = 0; + if (m_nMoves > 1) + { + m_nMoves--; + back = m_nMoves - 1; + } + + Score = m_ScoreHistory[back]; + for (int i = 0; i < m_nSizeX; i++) + { + for (int j = 0; j < m_nSizeY; j++) + { + m_Grid[i,j].color = m_GridHistory[back,i,j].color; + m_Grid[i,j].status = m_GridHistory[back,i,j].status; + } + } + } + #endregion + + } +} Added: trunk/plugins/My clickmania/ClickManiaControl.cs =================================================================== --- trunk/plugins/My clickmania/ClickManiaControl.cs (rev 0) +++ trunk/plugins/My clickmania/ClickManiaControl.cs 2007-01-31 19:35:13 UTC (rev 62) @@ -0,0 +1,508 @@ +using System; +using System.Windows.Forms; +using System.Xml.Serialization; +using System.Drawing; + +using MediaPortal.GUI.Library; +using MediaPortal.Dialogs; +using MediaPortal.Util; +using MediaPortal.Drawing; + +using Microsoft.DirectX; +using Microsoft.DirectX.Direct3D; +using Direct3D=Microsoft.DirectX.Direct3D; + + + +namespace MyClickMania +{ + /// <summary> + /// Summary description for ClickManiaControl. + /// </summary> + public class ClickManiaControl : GUIControl + { + #region Member variables + + ClickMania m_game = new ClickMania(); // the game itselfe without visualisation + Settings m_Settings = new Settings(); // Serialization + //GUIFont m_Font; // fonts needed + GUIImage[] m_imgBackgrounds; // some backgrounds + GUIImage[] m_imgBlocks; // blocks in differnt colors + GUIImage[] m_imgBlocksGlow; // glowing blocks in different colors + GUIImage[] m_imgCursors; // something for the remote control user + int m_nxCursor = 0; // x position of cursor + int m_nyCursor = 0; // y position of cursor + int m_ncCount = 0; // Counter for the cursor image + int m_nCursorTick = 0; // cursor animation delay implementation + int m_nCursorDelay = 25; // the delay itselfe + int m_nxScale = 1; // x scaling factor + int m_nyScale = 1; // y scaling factor + int m_nxOffset = 0; // x offset of the board + int m_nyOffset = 0; // y offset of the board + int m_nBoardWidth = 0; // width of the board + int m_nBoardHeight = 0; // height of the board + int m_nLastTick = 0; // for delay implementation + int m_nDelay = 150; // the delay itselfe + long m_lStartTime = 0; // save the start time for the game timer + int m_dwPosX = 592; + int m_dwPosY = 88; + + protected long m_dwColorDiffuse = 0xFFFFFFFF; // + + #endregion + + #region Properties + + public int Score + { + get {return (m_game != null ? m_game.Score : 0);} + } + + public int HighScore + { + get {return (m_Settings != null ? m_Settings.Highscore : 0);} + set + { + if (m_Settings != null) + { + m_Settings.Highscore = value; + m_Settings.Save(); + } + } + } + + public bool Sound + { + get { return (m_Settings != null ? m_Settings.Sound : false); } + set + { + if (m_Settings != null) + { + m_Settings.Sound = value; + m_Settings.Save(); + } + if (value) GUIControl.SelectControl(GetID, 4); + else GUIControl.DeSelectControl(GetID, 4); + } + } + + public bool KeyInterface + { + get { return (m_Settings != null ? m_Settings.KeyInterface : false); } + set + { + if (m_Settings != null) + { + m_Settings.KeyInterface = value; + m_Settings.Save(); + } + if (value) GUIControl.SelectControl(GetID, 6); + else GUIControl.DeSelectControl(GetID, 6); + } + } + + #endregion + + #region Serialization + + [Serializable] + public class Settings + { + protected int m_nHighscore; + protected bool m_bKeyInterface; + protected bool m_bSound; + + public Settings() + { + m_nHighscore = 0; + m_bKeyInterface = false; + m_bSound = false; + } + + [XmlElement("Highscore")] + public int Highscore + { + get { return m_nHighscore; } + set { m_nHighscore = value;} + } + + [XmlElement("KeyInterface")] + public bool KeyInterface + { + get { return m_bKeyInterface; } + set { m_bKeyInterface = value;} + } + + [XmlElement("Sound")] + public bool Sound + { + get { return m_bSound; } + set { m_bSound = value;} + } + + public void Load() + { + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MediaPortal.xml")) + { + m_nHighscore = xmlreader.GetValueAsInt("clickmania", "highscore", 0); + m_bKeyInterface = xmlreader.GetValueAsBool("clickmania", "keyinterface", false); + m_bSound = xmlreader.GetValueAsBool("clickmania", "sound", true); + } + } + + public void Save() + { + using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MediaPortal.xml")) + { + xmlwriter.SetValue("clickmania", "highscore", m_nHighscore); + xmlwriter.SetValueAsBool("clickmania", "keyinterface", m_bKeyInterface); + xmlwriter.SetValueAsBool("clickmania", "sound", m_bSound); + } + } + } + + #endregion Serialization + + #region Init & Start Game + public ClickManiaControl(int nParentID): base(nParentID) + { + m_Settings.Load(); + } + + + public void Start(int m_dwControlID) + { + + GUIControl.FocusControl(GetID, m_dwControlID); + + GUIPropertyManager.SetProperty("#cm_status", " "); + + m_lStartTime = -DateTime.Now.Ticks; // negative to get a counter from zero + m_nxCursor = 0; // set cursor to the lower left side + m_nyCursor = m_game.MaxY-1; + m_ncCount = 0; + m_nCursorTick = Environment.TickCount; + m_game.Start(); + GUIPropertyManager.SetProperty("#cm_score", m_game.Score.ToString()); + } + + #endregion + + #region Overrides + + public override void FinalizeConstruction() + { + base.FinalizeConstruction (); + + m_nBoardWidth = this.Width; + m_nBoardHeight = this.Height; + + m_nyScale = m_nBoardHeight / (m_game.MaxY + 2); + m_nxScale = m_nyScale; + m_nBoardWidth = m_nxScale * m_game.MaxX; + m_dwPosX = this._positionX; + m_dwPosY = this._positionY; + m_nxOffset = m_dwPosX + ((this.Width - (m_nxScale * m_game.MaxX)) / 2); + m_nyOffset = m_dwPosY+ ((this.Height - (m_nyScale * m_game.MaxY)) / 2); + m_imgBlocks = new GUIImage[] + { + new GUIImage(GetID, 10001, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\block_red.png", m_dwColorDiffuse), + new GUIImage(GetID, 10002, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\block_blue.png", m_dwColorDiffuse), + new GUIImage(GetID, 10003, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\block_gray.png", m_dwColorDiffuse), + new GUIImage(GetID, 10004, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\block_yellow.png", m_dwColorDiffuse), + new GUIImage(GetID, 10005, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\block_cyan.png", m_dwColorDiffuse), + new GUIImage(GetID, 10006, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\block_orange.png", m_dwColorDiffuse), + new GUIImage(GetID, 10007, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\block_green.png", m_dwColorDiffuse), + }; + + m_imgBlocksGlow = new GUIImage[] + { + new GUIImage(GetID, 10011, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\block_red_glow.png", m_dwColorDiffuse), + new GUIImage(GetID, 10012, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\block_blue_glow.png", m_dwColorDiffuse), + new GUIImage(GetID, 10013, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\block_gray_glow.png", m_dwColorDiffuse), + new GUIImage(GetID, 10014, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\block_yellow_glow.png", m_dwColorDiffuse), + new GUIImage(GetID, 10015, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\block_cyan_glow.png", m_dwColorDiffuse), + new GUIImage(GetID, 10016, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\block_orange_glow.png", m_dwColorDiffuse), + new GUIImage(GetID, 10017, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\block_green_glow.png", m_dwColorDiffuse), + }; + + m_imgBackgrounds = new GUIImage[] + { + new GUIImage(GetID, 10021, m_dwPosX, m_dwPosY, this.Width, this.Height, GUIGraphicsContext.Skin + @"\media\clickmania\background.png", m_dwColorDiffuse), + new GUIImage(GetID, 10022, m_dwPosX, m_dwPosY, this.Width, this.Height, GUIGraphicsContext.Skin + @"\media\clickmania\background_focus.png", m_dwColorDiffuse), + }; + + m_imgCursors = new GUIImage[] + { + new GUIImage(GetID, 10031, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\cursor1.png", Color.Black), + new GUIImage(GetID, 10032, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\cursor2.png", Color.Black), + new GUIImage(GetID, 10033, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\cursor3.png", Color.Black), + new GUIImage(GetID, 10034, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\cursor4.png", Color.Black), + new GUIImage(GetID, 10034, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\cursor5.png", Color.Black), + new GUIImage(GetID, 10034, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\cursor6.png", Color.Black), + new GUIImage(GetID, 10034, m_dwPosX, m_dwPosY, m_nxScale, m_nyScale, GUIGraphicsContext.Skin + @"\media\clickmania\cursor7.png", Color.Black), + }; + } + + + public override void AllocResources() + { + base.AllocResources (); + + if(m_imgBlocks != null) + { + foreach(GUIImage image in m_imgBlocks) + { + image.AllocResources(); + } + } + + + if(m_imgBlocksGlow != null) + { + foreach(GUIImage image in m_imgBlocksGlow) + { + image.AllocResources(); + } + } + + if(m_imgBackgrounds != null) + { + foreach(GUIImage image in m_imgBackgrounds) + { + image.AllocResources(); + } + } + + if(m_imgCursors != null) + { + foreach(GUIImage image in m_imgCursors) + { + image.AllocResources(); + } + } + } + + public override void OnAction(Action action) + { + if (m_game.Status != (int)GameStatus.Stopped) + { + switch (action.wID) + { + case Action.ActionType.ACTION_KEY_PRESSED: + + if ((KeyInterface == true) && (m_game.Status == (int)GameStatus.Running) /* && (action.m_key.KeyCode == 0x13) */) + { + ProcessBlockClicked(m_nxCursor, m_nyCursor); + } + else + { + base.OnAction(action); + } + break; + case Action.ActionType.ACTION_MOUSE_CLICK: + if (m_game.Status == (int)GameStatus.Running) + { + // calc the block where the mouse was clicked on + int x = (int)((int)action.fAmount1 - m_nxOffset)/m_nxScale; + int y = (int)((int)action.fAmount2 - m_nyOffset)/m_nyScale; + if ((x > -1) & (x < 8) & (y > -1) & (y < 12)) + ProcessBlockClicked(x, y); + } + else + { + base.OnAction(action); + } + break; + case Action.ActionType.ACTION_MOVE_UP: + if (m_nyCursor > 0) m_nyCursor -= 1; + break; + case Action.ActionType.ACTION_MOVE_DOWN: + if (m_nyCursor < m_game.MaxY-1) m_nyCursor += 1; + break; + case Action.ActionType.ACTION_MOVE_LEFT: + if (m_nxCursor > 0) m_nxCursor -= 1; + else + base.OnAction(action); + break; + case Action.ActionType.ACTION_MOVE_RIGHT: + if (m_nxCursor < m_game.MaxX-1) m_nxCursor += 1; + break; + default: + base.OnAction(action); + break; + } + } + else + { + base.OnAction(action); + } + } + + public override void Render(float timePassed) + { + RenderBackground(timePassed); + + if (m_game.Status != (int)GameStatus.Stopped) + { + // show timer only when game is running + if (m_game.Status < (int)GameStatus.Lost) + { + GUIPropertyManager.SetProperty("#cm_time", DateTime.Now.AddTicks(m_lStartTime).ToLongTimeString()); + } + + for (int i=0; i<m_game.MaxX; i++) + { + int posX = m_nxOffset + (int) (i * m_nxScale); + for (int j=0; j<m_game.MaxY; j++) + { + int posY = m_nyOffset + (int) (j * m_nyScale); + int col = m_game[i, j].color; + + switch (m_game[i, j].status) + { + case (int)BlockStatus.visible: + if (m_imgBlocks != null && m_imgBlocks[col] != null) + { + m_imgBlocks[col].SetPosition(posX, posY); + m_imgBlocks[col].Render(timePassed); + } + break; + case (int)BlockStatus.disappearing: + if (m_imgBlocks != null && m_imgBlocks[col] != null) + { + m_imgBlocksGlow[col].SetPosition(posX, posY); + m_imgBlocksGlow[col].Render(timePassed); + } + break; + } + } + } + + switch (m_game.Status) + { + case (int)GameStatus.Disapering: + if ((Environment.TickCount - m_nLastTick) > m_nDelay) + { + if (m_game.MakeInvisible() == true) + { + //if (Sound == true) Utils.PlaySound("ClickMania.Block.wav", false, true); + } + m_nLastTick = Environment.TickCount; + } + break; + + case (int)GameStatus.MoveDown: + if ((Environment.TickCount - m_nLastTick) > m_nDelay) + { + if (m_game.MoveDown() == true) + { + //if (Sound == true) Utils.PlaySound("ClickMania.MoveDown.wav", false, true); + } + m_nLastTick = Environment.TickCount; + } + break; + + case (int)GameStatus.MoveLeft: + if ((Environment.TickCount - m_nLastTick) > m_nDelay) + { + if (m_game.MoveLeft() == true) + { + if (m_game.Status == (int)GameStatus.Running) + { + if (Sound == true) Utils.PlaySound("ClickMania.MoveLeft.wav", false, true); + } + } + m_nLastTick = Environment.TickCount; + } + break; + case (int)GameStatus.Check: + if (m_game.CheckWon() == true) // did we won? + { + if (Sound == true) Utils.PlaySound("ClickMania.Won.wav", false, true); + } + else if (m_game.CheckLost() == true) // no more move possible? + { + GUIPropertyManager.SetProperty("#cm_status", "Game Over"); + if (Sound == true) Utils.PlaySound("ClickMania.GameOver.wav", false, true); + } + break; + + case (int)GameStatus.Won: + GUIPropertyManager.SetProperty("#cm_status", String.Format("Your Score: {0}", m_game.Score)); + break; + + case (int)GameStatus.Lost: + GUIPropertyManager.SetProperty("#cm_status", "Game Over"); + break; + + } + RenderCursor(timePassed); + } + } + + public void RenderBackground(float timePassed) + { + if(IsFocused) + { + m_imgBackgrounds[1].Render(timePassed); + } + else + { + m_imgBackgrounds[0].Render(timePassed); + } + } + + public void RenderCursor(float timePassed) + { + if ((KeyInterface) && (m_imgCursors != null)) + { + int posX = m_nxOffset + (int) (m_nxCursor * m_nxScale); //can be optimized + int posY = m_nyOffset + (int) (m_nyCursor * m_nyScale); //can be optimized + m_imgCursors[m_ncCount].SetPosition(posX, posY); + m_imgCursors[m_ncCount].Render(timePassed); + if ((Environment.TickCount - m_nCursorTick) > m_nCursorDelay) + { + m_nCursorTick = Environment.TickCount; + m_ncCount += 1; + if (m_ncCount >= m_imgCursors.Length) + { + m_ncCount = 0; + } + } + } + } + + + public void ProcessBlockClicked(int x, int y) + { + int found = m_game.Clicked(x, y); + if (found > 1) + { + if (Sound == true) Utils.PlaySound("ClickMania.Block.wav", false, true); + m_game.Score += found*found; + if (m_game.Score > m_Settings.Highscore) + { + m_Settings.Highscore = m_game.Score; + m_Settings.Save(); + } + GUIPropertyManager.SetProperty("#cm_score", m_game.Score.ToString()); + GUIPropertyManager.SetProperty("#cm_highscore", m_Settings.Highscore.ToString()); + m_nLastTick = Environment.TickCount; + } + } + + #endregion + + + public void TakeBackMove() + { + if (m_game.Status == (int)GameStatus.Running) + { + m_game.TakeBackMove(); + GUIPropertyManager.SetProperty("#cm_score", m_game.Score.ToString()); + } + } + + } +} Added: trunk/plugins/My clickmania/ClickManiaSetup.cs =================================================================== --- trunk/plugins/My clickmania/ClickManiaSetup.cs (rev 0) +++ trunk/plugins/My clickmania/ClickManiaSetup.cs 2007-01-31 19:35:13 UTC (rev 62) @@ -0,0 +1,46 @@ +using System; +using System.Collections; +using System.ComponentModel; +using System.Drawing; +using System.Windows.Forms; + +namespace MyClickMania +{ + public partial class ClickManiaSetup : Form + { + public ClickManiaSetup() + { + InitializeComponent(); + } + + private void ClickManiaSetup_Load(object sender, EventArgs e) + { + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MediaPortal.xml")) + { + textBox1.Text = xmlreader.GetValueAsString("clickmania", "pluginName", PluginName()); + textBox2.Text = xmlreader.GetValueAsString("clickmania", "Title", "Click Mania"); + } + } + private void ButOK_Click(object sender, EventArgs e) + { + if (textBox1.Text.Length == 0) + { + System.Windows.Forms.MessageBox.Show("The Plugin's Name is Mandatory !"); + textBox1.Focus(); + return; + } + if (textBox2.Text.Length == 0) + { + System.Windows.Forms.MessageBox.Show("The Game's Title is Mandatory !"); + textBox2.Focus(); + return; + } + using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MediaPortal.xml")) + { + xmlwriter.SetValue("clickmania", "pluginName", textBox1.Text.ToString()); + xmlwriter.SetValue("clickmania", "Title", textBox2.Text.ToString()); + } + this.Close(); + } + } +} Added: trunk/plugins/My clickmania/ClickManiaSetup.designer.cs =================================================================== --- trunk/plugins/My clickmania/ClickManiaSetup.designer.cs (rev 0) +++ trunk/plugins/My clickmania/ClickManiaSetup.designer.cs 2007-01-31 19:35:13 UTC (rev 62) @@ -0,0 +1,186 @@ +using System; +using System.Collections; +using System.ComponentModel; +using System.Drawing; +using System.Windows.Forms; +using MediaPortal.GUI.Library; +using System.IO; + +namespace MyClickMania +{ + partial class ClickManiaSetup + { + /// <summary> + /// Variable nécessaire au concepteur. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Nettoyage des ressources utilisées. + /// </summary> + /// <param name="disposing">true si les ressources managées doivent être supprimées ; sinon, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + public string PluginName() + { + return "My ClickMania"; + } + + public string Description() + { + return "ClickMania for MediaPortal"; + } + + public string Author() + { + return "Bavarian"; + } + + public void ShowPlugin() + { + ShowDialog(); + } + public bool DefaultEnabled() + { + return false; + } + public bool CanEnable() + { + return true; + } + + public bool HasSetup() + { + return true; + } + public int GetWindowId() + { + return 5555; + } + /// <summary> + /// If the plugin should have its own button on the home screen 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 = GUILocalizeStrings.Get(50); + if (strButtonText == "") + { + strButtonText = "MyClickMania"; + } + strButtonImage = ""; + strButtonImageFocus = ""; + strPictureImage = "hover_My videostack.png"; + return true; + } + #region Code généré par le Concepteur Windows Form + + /// <summary> + /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas + /// le contenu de cette méthode avec l'éditeur de code. + /// </summary> + private void InitializeComponent() + { + this.ButOK = new System.Windows.Forms.Button(); + this.label10 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.label11 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.SuspendLayout(); + // + // ButOK + // + this.ButOK.Location = new System.Drawing.Point(387, 55); + this.ButOK.Name = "ButOK"; + this.ButOK.Size = new System.Drawing.Size(64, 31); + this.ButOK.TabIndex = 33; + this.ButOK.Text = "OK"; + this.ButOK.UseVisualStyleBackColor = true; + this.ButOK.Click += new System.EventHandler(this.ButOK_Click); + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(391, 29); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(60, 13); + this.label10.TabIndex = 34; + this.label10.Text = "Version 1.1"; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(134, 29); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(108, 20); + this.textBox1.TabIndex = 35; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(45, 32); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(67, 13); + this.label11.TabIndex = 36; + this.label11.Text = "Plugin Name"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(45, 69); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(65, 13); + this.label1.TabIndex = 38; + this.label1.Text = "Game's Title"; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(134, 66); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(108, 20); + this.textBox2.TabIndex = 37; + // + // ClickManiaSetup + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(524, 132); + this.Controls.Add(this.label1); + this.Controls.Add(this.textBox2); + this.Controls.Add(this.label11); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.label10); + this.Controls.Add(this.ButOK); + this.Name = "ClickManiaSetup"; + this.Text = "ClickManiaSetup"; + this.Load += new System.EventHandler(this.ClickManiaSetup_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button ButOK; + private Label label10; + private TextBox textBox1; + private Label label11; + private Label label1; + private TextBox textBox2; + + } +} \ No newline at end of file Added: trunk/plugins/My clickmania/ClickManiaSetup.resx =================================================================== --- trunk/plugins/My clickmania/ClickManiaSetup.resx (rev 0) +++ trunk/plugins/My clickmania/ClickManiaSetup.resx 2007-01-31 19:35:13 UTC (rev 62) @@ -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/My clickmania/GUIClickMania.csproj =================================================================== --- trunk/plugins/My clickmania/GUIClickMania.csproj (rev 0) +++ trunk/plugins/My clickmania/GUIClickMania.csproj 2007-01-31 19:35:13 UTC (rev 62) @@ -0,0 +1,148 @@ +<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>{AC53379F-3218-4C18-B0D8-052BF9ABC107}</ProjectGuid> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ApplicationIcon> + </ApplicationIcon> + <AssemblyKeyContainerName> + </AssemblyKeyContainerName> + <AssemblyName>GUIClickMania</AssemblyName> + <AssemblyOriginatorKeyFile> + </AssemblyOriginatorKeyFile> + <DefaultClientScript>JScript</DefaultClientScript> + <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout> + <DefaultTargetSchema>IE50</DefaultTargetSchema> + <DelaySign>false</DelaySign> + <OutputType>Library</OutputType> + <RootNamespace>GUIClickMania</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.2585.31249, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>D:\sources mp\Core\bin\Release\Core.dll</HintPath> + </Reference> + <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>D:\sources mp\WindowPlugins\bin\Release\Dialogs.dll</HintPath> + </Reference> + <Reference Include="Microsoft.DirectX"> + <Name>Microsoft.DirectX</Name> + <HintPath>C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2902.0\Microsoft.DirectX.dll</HintPath> + <AssemblyFolderKey>hklm\dn\dx_1.0.2902.0</AssemblyFolderKey> + </Reference> + <Reference Include="Microsoft.DirectX.Direct3D"> + <Name>Microsoft.DirectX.Direct3D</Name> + <HintPath>C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2902.0\Microsoft.DirectX.Direct3D.dll</HintPath> + <AssemblyFolderKey>hklm\dn\dx_1.0.2902.0</AssemblyFolderKey> + </Reference> + <Reference Include="System"> + <Name>System</Name> + </Reference> + <Reference Include="System.Data"> + <Name>System.Data</Name> + </Reference> + <Reference Include="System.Drawing"> + <Name>System.Drawing</Name> + </Reference> + <Reference Include="System.Windows.Forms"> + <Name>System.Windows.Forms</Name> + </Reference> + <Reference Include="System.Xml"> + <Name>System.XML</Name> + </Reference> + <Reference Include="Utils, Version=1.0.2585.31248, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>D:\sources mp\Utils\bin\Release\Utils.dll</HintPath> + </Reference> + </ItemGroup> + <ItemGroup> + <Compile Include="AssemblyInfo.cs"> + <SubType>Code</SubType> + </Compile> + <Compile Include="ClickMania.cs"> + <SubType>Code</SubType> + </Compile> + <Compile Include="ClickManiaControl.cs"> + <SubType>Code</SubType> + </Compile> + <Compile Include="ClickManiaSetup.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="ClickManiaSetup.designer.cs"> + <DependentUpon>ClickManiaSetup.cs</DependentUpon> + </Compile> + <Compile Include="myClickMania.cs"> + <SubType>Code</SubType> + </Compile> + </ItemGroup> + <ItemGroup> + <EmbeddedResource Include="ClickManiaSetup.resx"> + <DependentUpon>ClickManiaSetup.cs</DependentUpon> + <SubType>Designer</SubType> + </EmbeddedResource> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> + <PropertyGroup> + <PreBuildEvent> + </PreBuildEvent> + <PostBuildEvent> + </PostBuildEvent> + </PropertyGroup> +</Project> \ No newline at end of file Added: trunk/plugins/My clickmania/GUIClickMania.csproj.user =================================================================== --- trunk/plugins/My clickmania/GUIClickMania.csproj.user (rev 0) +++ trunk/plugins/My clickmania/GUIClickMania.csproj.user 2007-01-31 19:35:13 UTC (rev 62) @@ -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>D:\SourceCode\mediaportal\xbmc\bin\Release\plugins\windows\;D:\SourceCode\mediaportal\xbmc\bin\Release\</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/My clickmania/GUIClickMania.sln =================================================================== --- trunk/plugins/My clickmania/GUIClickMania.sln (rev 0) +++ trunk/plugins/My clickmania/GUIClickMania.sln 2007-01-31 19:35:13 UTC (rev 62) @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual C# Express 2005 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GUIClickMania", "GUIClickMania.csproj", "{AC53379F-3218-4C18-B0D8-052BF9ABC107}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {AC53379F-3218-4C18-B0D8-052BF9ABC107}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AC53379F-3218-4C18-B0D8-052BF9ABC107}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AC53379F-3218-4C18-B0D8-052BF9ABC107}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AC53379F-3218-4C18-B0D8-052BF9ABC107}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal Added: trunk/plugins/My clickmania/GUIClickMania.suo =================================================================== (Binary files differ) Property changes on: trunk/plugins/My clickmania/GUIClickMania.suo ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/My clickmania/UpgradeLog.XML =================================================================== --- trunk/plugins/My clickmania/UpgradeLog.XML (rev 0) +++ trunk/plugins/My clickmania/UpgradeLog.XML 2007-01-31 19:35:13 UTC (rev 62) @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet type='text/xsl' href='_UpgradeReport_Files/UpgradeReport.xslt'?> +<UpgradeLog> +<Properties><Property Name="Solution" Value="GUIClickMania"> +</Property><Property Name="Fichier solution" Value="C:\mediaportal_plugin\MyClickMania\GUIClickMania.sln"> +</Property><Property Name="Fichier d'options utilisateur" Value="C:\mediaportal_plugin\MyClickMania\GUIClickMania.suo"> +</Property><Property Name="Date" Value="samedi 30 décembre 2006"> +</Property><Property Name="Time" Value="10:58"> +</Property></Properties><Event ErrorLevel="0" Project="" Source="GUIClickMania.sln" Description="Fichier correctement sauvegardé en tant que C:\mediaportal_plugin\MyClickMania\Backup\GUIClickMania.sln"> +</Event><Event ErrorLevel="0" Project="" Source="GUIClickMania.suo" Description="Fichier correctement sauvegardé en tant que C:\mediaportal_plugin\MyClickMania\Backup\GUIClickMania.suo"> +</Event><Event ErrorLevel="0" Project="GUIClickMania" Source="GUIClickMania.csproj" Description="Fichier projet correctement sauvegardé en tant que C:\mediaportal_plugin\MyClickMania\Backup\GUIClickMania.csproj"> +</Event><Event ErrorLevel="0" Project="GUIClickMania" Source="GUIClickMania.csproj.user" Description="Fichier utilisateur de projet correctement sauvegardé en tant que C:\mediaportal_plugin\MyClickMania\Backup\GUIClickMania.csproj.user"> +</Event><Event ErrorLevel="0" Project="GUIClickMania" Source="AssemblyInfo.cs" Description="Fichier correctement sauvegardé en tant que C:\mediaportal_plugin\MyClickMania\Backup\AssemblyInfo.cs"> +</Event><Event ErrorLevel="0" Project="GUIClickMania" Source="ClickMania.cs" Description="Fichier correctement sauvegardé en tant que C:\mediaportal_plugin\MyClickMania\Backup\ClickMania.cs"> +</Event><Event ErrorLevel="0" Project="GUIClickMania" Source="ClickManiaControl.cs" Description="Fichier correctement sauvegardé en tant que C:\mediaportal_plugin\MyClickMania\Backup\ClickManiaControl.cs"> +</Event><Event ErrorLevel="0" Project="GUIClickMania" Source="myClickMania.cs" Description="Fichier correctement sauvegardé en tant que C:\mediaportal_plugin\MyClickMania\Backup\myClickMania.cs"> +</Event><Event ErrorLevel="0" Project="GUIClickMania" Source="GUIClickMania.csproj" Description="Projet correctement converti"> +</Event><Event ErrorLevel="3" Project="GUIClickMania" Source="GUIClickMania.csproj" Description="Converted"> +</Event><Event ErrorLevel="0" Project="" Source="GUIClickMania.sln" Description="Solution correctement convertie"> +</Event><Event ErrorLevel="3" Project="" Source="GUIClickMania.sln" Description="Converted"> +</Event><Event ErrorLevel="0" Project="GUIClickMania" Source="GUIClickMania.csproj" Description="Analyse terminée : la mise à niveau n'est pas requise pour les fichiers projet."> +</Event></UpgradeLog> Added: trunk/plugins/My clickmania/bin/Release/Core.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/My clickmania/bin/Release/Core.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/My clickmania/bin/Release/Dialogs.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/My clickmania/bin/Release/Dialogs.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/My clickmania/bin/Release/GUIClickMania.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/My clickmania/bin/Release/GUIClickMania.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/My clickmania/bin/Release/Utils.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/My clickmania/bin/Release/Utils.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/My clickmania/myClickMania.cs =================================================================== --- trunk/plugins/My clickmania/myClickMania.cs (rev 0) +++ t... [truncated message content] |
From: <fr...@us...> - 2007-01-31 19:32:59
|
Revision: 61 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=61&view=rev Author: framug Date: 2007-01-31 11:32:51 -0800 (Wed, 31 Jan 2007) Log Message: ----------- Add My Explorer plugin Added Paths: ----------- trunk/plugins/My Explorer/ trunk/plugins/My Explorer/GUIExplorer.cs trunk/plugins/My Explorer/My Explorer.csproj trunk/plugins/My Explorer/My Explorer.sln trunk/plugins/My Explorer/My Explorer.suo trunk/plugins/My Explorer/Properties/ trunk/plugins/My Explorer/Properties/AssemblyInfo.cs trunk/plugins/My Explorer/SetupForm.cs trunk/plugins/My Explorer/SetupForm.resx trunk/plugins/My Explorer/bin/ trunk/plugins/My Explorer/bin/Release/ trunk/plugins/My Explorer/bin/Release/Core.dll trunk/plugins/My Explorer/bin/Release/Dialogs.dll trunk/plugins/My Explorer/bin/Release/My Explorer.dll trunk/plugins/My Explorer/bin/Release/My Explorer.pdb trunk/plugins/My Explorer/bin/Release/Utils.dll Added: trunk/plugins/My Explorer/GUIExplorer.cs =================================================================== --- trunk/plugins/My Explorer/GUIExplorer.cs (rev 0) +++ trunk/plugins/My Explorer/GUIExplorer.cs 2007-01-31 19:32:51 UTC (rev 61) @@ -0,0 +1,825 @@ +/* + * Copyright (C) 2005 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#region usings +using System; +using System.IO; +using System.Collections; +using MediaPortal.Util; +using MediaPortal.GUI.Library; +using MediaPortal.Dialogs; +#endregion + +namespace MediaPortal.GUI.GUIExplorer +{ + /// <summary> + /// Summary description for GUIExplorer + /// </summary> + public class GUIExplorer : GUIWindow + { + public static int WINDOW_STATUS = 770; + + #region Private Enumerations + + enum Controls + { + CONTROL_SELECT_SOURCE = 2, + CONTROL_SELECT_DEST = 3, + CONTROL_COPY = 4, + CONTROL_MOVE = 5, + CONTROL_DELETE = 6, + CONTROL_MAKE_DIR = 7, + CONTROL_RESET_SELECT = 8, + CONTROL_MARK_ALL = 9, + CONTROL_TRASHCAN = 10, + CONTROL_LIST_DIR = 20 + }; + + enum States + { + STATE_MAIN = 0, + STATE_SELECT_SOURCE = 1, + STATE_SELECT_DEST = 2, + STATE_COPY = 3, + STATE_MAKE_DIR = 4, + STATE_RESET_SELECT = 5 + }; + + private States currentState = States.STATE_MAIN; + + #endregion + + #region Private Variables + private struct file + { + public string name; + public long size; + public string fullpath; + public string path; + } + + string[] video = new string[20]; // video shares folder + string[] vname = new string[20]; // video share names + string[] sound = new string[20]; // sound shares folder + string[] sname = new string[20]; // sound shares names + string[] pictures = new string[20]; // pictures shares folder + string[] pname = new string[20]; // pictures shares names + + private string tempFolder=""; // trashcan folder + private bool showOnlyShares=false; // shows only shares in destination folder + private bool enableDelete=false; // shows delete button + private bool deleteImmed=false; // enable immediate delete funtion + private bool deleteTemp=false; // enable trashcan + + private ArrayList files = new ArrayList(); + private ArrayList selected = new ArrayList(); + private string tmpStr; + private ArrayList currentExt= new ArrayList(); + private string currentFolder=null; + private string[] drives=new string[27]; + private string[] drivesCd=new string[27]; + private int driveCount=0; + private int driveCdCount=0; + private long actSize=0; + private int fileCount=0; + #endregion + + #region Constructor + public GUIExplorer() + { + // + // TODO: Add constructor logic here + // + } + #endregion + + #region Overrides + public override int GetID + { + get { return WINDOW_STATUS; } + set { base.GetID = value; } + } + + public override bool Init() + { + return Load (GUIGraphicsContext.Skin+@"\myexplorer.xml"); + } + + public override void OnAction(Action action) + { + if (action.wID == Action.ActionType.ACTION_PREVIOUS_MENU) + { + GUIWindowManager.ShowPreviousWindow(); + return; + } + base.OnAction(action); + } + + public override bool OnMessage(GUIMessage message) + { + switch ( message.Message ) + { + case GUIMessage.MessageType.GUI_MSG_WINDOW_INIT: // MyExplorer starts + base.OnMessage(message); + GUIPropertyManager.SetProperty("#currentmodule", GUILocalizeStrings.Get(2200)); + GUIPropertyManager.SetProperty("#explorer_title",GUILocalizeStrings.Get(2200)); + GUIPropertyManager.SetProperty("#explorer_size"," "); + LoadShareSettings(); // loads showShares settings from XML + driveCount=0; + driveCdCount=0; + GetDrives(); // loads all drives + LoadSettings(); // loads all settings from XML + ResetValues(); + currentExt.Add("*"); + return true; + case GUIMessage.MessageType.GUI_MSG_CLICKED: + //get sender control + base.OnMessage(message); + int iControl=message.SenderControlId; + if (iControl==(int)Controls.CONTROL_SELECT_SOURCE) // select source + { + GUIControl.DisableControl(GetID,(int)Controls.CONTROL_SELECT_DEST); + GUIControl.DisableControl(GetID,(int)Controls.CONTROL_COPY); + GUIControl.DisableControl(GetID,(int)Controls.CONTROL_MOVE); + GUIControl.DisableControl(GetID,(int)Controls.CONTROL_DELETE); + GUIControl.DisableControl(GetID,(int)Controls.CONTROL_MAKE_DIR); + currentState=States.STATE_SELECT_SOURCE; + GUIControl.ClearControl(GetID,(int)Controls.CONTROL_LIST_DIR); + GUIPropertyManager.SetProperty("#explorer_title",GUILocalizeStrings.Get(2201)); + LoadDriveListControl(true); + currentFolder=""; + actSize=0; + return true; + } + if (iControl==(int)Controls.CONTROL_SELECT_DEST) // select destination + { + GUIControl.EnableControl(GetID,(int)Controls.CONTROL_COPY); + GUIControl.EnableControl(GetID,(int)Controls.CONTROL_MOVE); + GUIControl.EnableControl(GetID,(int)Controls.CONTROL_MAKE_DIR); + currentState=States.STATE_SELECT_DEST; + GUIControl.ClearControl(GetID,(int)Controls.CONTROL_LIST_DIR); + GUIPropertyManager.SetProperty("#explorer_title",GUILocalizeStrings.Get(2202)); + LoadDriveListControl(false); + currentFolder=""; + actSize=0; + return true; + } + if (iControl==(int)Controls.CONTROL_TRASHCAN) // select trashcan + { + GUIControl.EnableControl(GetID,(int)Controls.CONTROL_COPY); + GUIControl.EnableControl(GetID,(int)Controls.CONTROL_MOVE); + currentState=States.STATE_SELECT_SOURCE; + GUIControl.ClearControl(GetID,(int)Controls.CONTROL_LIST_DIR); + GUIPropertyManager.SetProperty("#explorer_title",GUILocalizeStrings.Get(2202)); + LoadListControl(tempFolder,currentExt); + currentFolder=tempFolder; + actSize=0; + return true; + } + if (iControl==(int)Controls.CONTROL_COPY || iControl==(int)Controls.CONTROL_MOVE) // select copy data + { + if (currentState==States.STATE_SELECT_DEST) + { + GUIDialogYesNo dlgYesNo = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + if (null==dlgYesNo) break; + dlgYesNo.SetHeading(GUILocalizeStrings.Get(2200)); + if (iControl==(int)Controls.CONTROL_COPY) + { + dlgYesNo.SetLine(2,GUILocalizeStrings.Get(2209)); + GUIPropertyManager.SetProperty("#explorer_size",GUILocalizeStrings.Get(2211)); + } + else + { + dlgYesNo.SetLine(2,GUILocalizeStrings.Get(2214)); + GUIPropertyManager.SetProperty("#explorer_size",GUILocalizeStrings.Get(2215)); + } + dlgYesNo.DoModal(GetID); + if (dlgYesNo.IsConfirmed) + { + foreach(file f in selected) + { + if (iControl==(int)Controls.CONTROL_COPY) + { + Move(false,f.fullpath, f.name, currentFolder+"\\"); + } + else + { + Move(true,f.fullpath, f.name, currentFolder+"\\"); + } + } + GUIDialogOK dlgOk = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlgOk.SetHeading(GUILocalizeStrings.Get(2200)); + if (iControl==(int)Controls.CONTROL_COPY) + { + dlgOk.SetLine(2,fileCount.ToString()+" "+GUILocalizeStrings.Get(2210)); + } + else + { + dlgOk.SetLine(2,fileCount.ToString()+" "+GUILocalizeStrings.Get(2216)); + } + dlgOk.DoModal(GetID); + } + ResetValues(); + LoadListControl(currentFolder,currentExt); + } + } + if (iControl==(int)Controls.CONTROL_MAKE_DIR) // select make directory + { + if (currentState==States.STATE_SELECT_DEST) + { + int activeWindow=(int)GUIWindowManager.ActiveWindow; + GUIPropertyManager.SetProperty("#explorer_title",GUILocalizeStrings.Get(2204)); +//fmu VirtualSearchKeyboard keyBoard=(VirtualSearchKeyboard)GUIWindowManager.GetWindow(1001); +//fmu keyBoard.Text = ""; +//fmu keyBoard.Reset(); +//fmu keyBoard.TextChanged+=new MediaPortal.Dialogs.VirtualSearchKeyboard.TextChangedEventHandler(keyboard_TextChanged); // add the event handler +//fmu keyBoard.DoModal(activeWindow); // show it... +//fmu keyBoard.TextChanged-=new MediaPortal.Dialogs.VirtualSearchKeyboard.TextChangedEventHandler(keyboard_TextChanged); // remove the handler +//fmu string verStr = keyBoard.Text; + + VirtualKeyboard keyboard = (VirtualKeyboard)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_VIRTUAL_KEYBOARD); + keyboard.Text = ""; + keyboard.Reset(); + keyboard.TextChanged += new MediaPortal.Dialogs.VirtualKeyboard.TextChangedEventHandler(keyboard_TextChanged); // add the event handler + keyboard.DoModal(activeWindow); // show it... + keyboard.TextChanged -= new MediaPortal.Dialogs.VirtualKeyboard.TextChangedEventHandler(keyboard_TextChanged); // remove the handler + string verStr = keyboard.Text; + + GUIDialogYesNo dlgYesNo = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + if (null == dlgYesNo) break; + dlgYesNo.SetHeading(GUILocalizeStrings.Get(2200)); + dlgYesNo.SetLine(1,GUILocalizeStrings.Get(2207)); + dlgYesNo.SetLine(2,verStr+" "+GUILocalizeStrings.Get(2208)); + dlgYesNo.DoModal(GetID); + if (dlgYesNo.IsConfirmed) + { + string path = currentFolder+"\\"+verStr; + try + { + // Determine whether the directory exists. + if (Directory.Exists(path)) + { + GUIDialogOK dlgOk = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlgOk.SetHeading(GUILocalizeStrings.Get(2200)); + dlgOk.SetLine(2,GUILocalizeStrings.Get(2224)); + dlgOk.DoModal(GetID); + } + else + { + DirectoryInfo di = Directory.CreateDirectory(path); + GUIDialogOK dlgOk2 = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlgOk2.SetHeading(GUILocalizeStrings.Get(2200)); + dlgOk2.SetLine(2,GUILocalizeStrings.Get(2224)); + dlgOk2.DoModal(GetID); + } + } + catch (Exception ) + { +//fmu Log.Write("Error Make Dir"); + Log.Error("Error Make Dir"); + } + LoadListControl(currentFolder,currentExt); + } + } + } + if (iControl==(int)Controls.CONTROL_RESET_SELECT) // select reset all selections + { + GUIDialogYesNo dlgYesNo = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + if (null==dlgYesNo) break; + dlgYesNo.SetHeading(GUILocalizeStrings.Get(2200)); + dlgYesNo.SetLine(2,GUILocalizeStrings.Get(2205)); + dlgYesNo.DoModal(GetID); + if (dlgYesNo.IsConfirmed) + { + ResetValues(); + } + return true; + } + + if (iControl==(int)Controls.CONTROL_MARK_ALL) // select mark all + { + if (currentState==States.STATE_SELECT_SOURCE) + { + GUIControl.EnableControl(GetID,(int)Controls.CONTROL_SELECT_DEST); // you can select destination only when a file is selected + if(enableDelete==true) + { + GUIControl.EnableControl(GetID,(int)Controls.CONTROL_DELETE); // you can delete files only when a file is selected + } + int count = GUIControl.GetItemCount(GetID, (int)Controls.CONTROL_LIST_DIR); + for (int i=0; i<count; i++) + { + GUIListItem item = GUIControl.GetListItem(GetID, (int)Controls.CONTROL_LIST_DIR,i); + if (item.IconImage!="check-box.png" && !item.Label.StartsWith("\\..") && !item.Label.StartsWith("\\") && item.Label.Substring(1,1)!=":") + { + item.IconImage = "check-box.png"; + file fl = new file(); + fl.name=item.Label; + fl.fullpath=currentFolder+"\\"+item.Label; + fl.path=currentFolder; + + foreach(file f in files) + { + if (f.name==item.Label) + { + actSize=actSize+f.size; + fl.size=f.size; + break; + } + } + selected.Add(fl); + fileCount++; +//fmu tmpStr=fileCount.ToString()+ " Files "+Utils.GetSize(actSize)+" "; + tmpStr = fileCount.ToString() + " Files " + Util.Utils.GetSize(actSize) + " "; + GUIPropertyManager.SetProperty("#explorer_size", tmpStr); + } + } + } + } + if (iControl==(int)Controls.CONTROL_DELETE) // delete selected files + { + GUIDialogYesNo dlgYesNo = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + if (null==dlgYesNo) break; + dlgYesNo.SetHeading(GUILocalizeStrings.Get(2200)); + dlgYesNo.SetLine(2,GUILocalizeStrings.Get(2221)); + GUIPropertyManager.SetProperty("#explorer_size",GUILocalizeStrings.Get(2211)); + dlgYesNo.DoModal(GetID); + if (dlgYesNo.IsConfirmed) + { + foreach(file f in selected) + { + if(deleteImmed==true) + { +//fmu Utils.FileDelete(f.fullpath); + Util.Utils.FileDelete(f.fullpath); + } + else + { + if(deleteTemp==true) + { + try + { + if(currentFolder==tempFolder) + { +//fmu Utils.FileDelete(f.fullpath); + Util.Utils.FileDelete(f.fullpath); + } + else + { + FileInfo fi = new FileInfo(f.fullpath); + fi.MoveTo(tempFolder+"\\"+f.name); + } + } + catch (Exception) + { +//fmu Log.Write("MyExplorer Delete Error: {0} | {1}",f.fullpath,tempFolder); + Log.Error("MyExplorer Delete Error: {0} | {1}", f.fullpath, tempFolder); + } + } + } + } + GUIDialogOK dlgOk = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlgOk.SetHeading(GUILocalizeStrings.Get(2200)); + dlgOk.SetLine(2,fileCount.ToString()+" "+GUILocalizeStrings.Get(2222)); + dlgOk.DoModal(GetID); + } + ResetValues(); + LoadListControl(currentFolder,currentExt); + } + if (iControl==(int)Controls.CONTROL_LIST_DIR) // select list dir + { + GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_ITEM_SELECTED,GetID,0,iControl,0,0,null); + OnMessage(msg); + int iItem=(int)msg.Param1; + int iAction=(int)message.Param1; + if (iAction == (int)Action.ActionType.ACTION_SELECT_ITEM) + { + GUIListItem item = GUIControl.GetSelectedListItem(GetID, (int)Controls.CONTROL_LIST_DIR ); + if (item.Label.StartsWith("..")) // go back folder + { + if (item.Path=="") + LoadDriveListControl(true); + else + LoadListControl(item.Path,currentExt); + } + else if(item.Label.StartsWith("(")) + { + if (item.Label.Contains(":)")) LoadListControl(item.Label[1] + @":\", currentExt); + else LoadListControl(item.Path, currentExt); // is a folder + } + else if (item.Label.StartsWith("[")) // is a share + { + String shareName=item.Label.Substring(1); + shareName=shareName.Substring(0,shareName.Length-1); + bool shareFound = false; + for (int i=0; i<20; i++) + { + if (pname[i]==shareName) + { + currentFolder=pictures[i]; + LoadListControl(currentFolder,currentExt); + shareFound = true; + break; + } + if (sname[i]==shareName) + { + currentFolder=sound[i]; + LoadListControl(currentFolder,currentExt); + shareFound = true; + break; + } + if (vname[i]==shareName) + { + currentFolder=video[i]; + LoadListControl(currentFolder,currentExt); + shareFound = true; + break; + } + } + if (shareFound) LoadListControl(currentFolder,currentExt); + else LoadListControl(item.Path, currentExt); // is a folder + } + else if (item.IsFolder) // is a folder + { + LoadListControl(item.Path,currentExt); + } + else if (item.Label.Substring(1,1)==":") // is a drive + { + currentFolder=item.Label; + if (currentFolder!=String.Empty) + LoadListControl(currentFolder,currentExt); + else + LoadDriveListControl(true); + } + else + { + if (currentState==States.STATE_SELECT_SOURCE) // mark files only in source select mode + { + GUIControl.EnableControl(GetID,(int)Controls.CONTROL_SELECT_DEST); // you can select destination only when a file is selected + if(enableDelete==true) + { + GUIControl.EnableControl(GetID,(int)Controls.CONTROL_DELETE); // you can delete files only when a file is selected + } + if (item.IconImage=="check-box.png") // if file selected then unselect now + { + item.FreeIcons(); + int indx=0; + int indxm=-1; + long s=0; + foreach(file fil in selected) + { + if (item.Label==fil.name) + { + indxm=indx; + s=fil.size; + break; + } + indx++; + } + if (indxm>=0) + { + selected.RemoveAt(indxm); + actSize=actSize-s; + fileCount--; + } + } + else + { // select file + item.IconImage = "check-box.png"; + int indx=currentFolder.IndexOf("\\\\"); + if (indx>0) + { + currentFolder=currentFolder.Remove(indx,1); + } + file fl = new file(); + fl.name=item.Label; + fl.fullpath=currentFolder+"\\"+item.Label; + fl.path=currentFolder; + + foreach(file f in files) + { + if (f.name==item.Label) + { + actSize=actSize+f.size; + fl.size=f.size; + break; + } + } + selected.Add(fl); + fileCount++; + } +//fmu tmpStr=fileCount.ToString()+ " Files "+Utils.GetSize(actSize)+" "; + tmpStr = fileCount.ToString() + " Files " + Util.Utils.GetSize(actSize) + " "; + GUIPropertyManager.SetProperty("#explorer_size", tmpStr); + } + } + } + return true; + } + return true; + } + return base.OnMessage (message); + } + + #endregion + + #region Private Methods + + /// <summary> + /// Reset all Values to start settings + /// </summary> + private void ResetValues() + { + fileCount=0; + selected.Clear(); + currentState=States.STATE_MAIN; + GUIControl.ClearControl(GetID,(int)Controls.CONTROL_LIST_DIR); + GUIPropertyManager.SetProperty("#explorer_size"," "); + if(deleteTemp==false) + { + GUIControl.HideControl(GetID,(int)Controls.CONTROL_TRASHCAN); + } + GUIControl.DisableControl(GetID,(int)Controls.CONTROL_SELECT_DEST); + GUIControl.DisableControl(GetID,(int)Controls.CONTROL_COPY); + GUIControl.DisableControl(GetID,(int)Controls.CONTROL_MOVE); + GUIControl.DisableControl(GetID,(int)Controls.CONTROL_DELETE); + GUIControl.DisableControl(GetID,(int)Controls.CONTROL_MAKE_DIR); + GUIControl.EnableControl(GetID,(int)Controls.CONTROL_SELECT_SOURCE); + } + + /// <summary> + /// Loads files from folder in a list control + /// </summary> + private void LoadListControl(string folder,ArrayList Exts) + { + //clear the list +//fmu folder=Utils.RemoveTrailingSlash(folder); + folder = Util.Utils.RemoveTrailingSlash(folder); + file f = new file(); + GUIControl.ClearControl(GetID,(int)Controls.CONTROL_LIST_DIR); + VirtualDirectory Directory; + ArrayList itemlist; + Directory = new VirtualDirectory(); + Directory.SetExtensions(Exts); + itemlist = Directory.GetDirectory(folder); + + foreach (GUIListItem item in itemlist) + { + if(!item.IsFolder) // if item a folder + { + GUIListItem pItem = new GUIListItem(item.FileInfo.Name); + pItem.IsFolder=false; + pItem.Path=String.Format(@"{0}\{1}", folder,item.FileInfo.Name); + GUIControl.AddListItemControl(GetID,(int)Controls.CONTROL_LIST_DIR,pItem); + f.name=item.FileInfo.Name; + f.size=item.FileInfo.Length; + files.Add(f); + } + else + { + GUIListItem pItem = new GUIListItem(item.Label); + pItem.IsFolder=true; + pItem.Path=String.Format(@"{0}\{1}", folder,item.Label); + if (item.Label=="..") + { + string prevFolder=""; + int pos=folder.LastIndexOf(@"\"); + if (pos>=0) prevFolder=folder.Substring(0,pos); + pItem.Path=prevFolder; + } +//fmu Utils.SetDefaultIcons(pItem); + Util.Utils.SetDefaultIcons(pItem); + GUIControl.AddListItemControl(GetID, (int)Controls.CONTROL_LIST_DIR, pItem); + } + } + string strObjects =String.Format("{0} {1}",GUIControl.GetItemCount(GetID,(int)Controls.CONTROL_LIST_DIR).ToString(), GUILocalizeStrings.Get(632)); + GUIPropertyManager.SetProperty("#itemcount",strObjects); + + currentFolder=folder; + } + + /// <summary> + /// Loads drivelist and shares in a list control + /// </summary> + private void LoadDriveListControl(bool cd) + { + currentFolder=""; + //clear the list + GUIControl.ClearControl(GetID,(int)Controls.CONTROL_LIST_DIR); + + cd = false; + + if (cd==true) + { + for (int i=0; i<driveCdCount; i++) + { + GUIListItem pItem = new GUIListItem(drivesCd[i]); + pItem.Path=drivesCd[i]; + pItem.IsFolder=true; +//fmu Utils.SetDefaultIcons(pItem); + Util.Utils.SetDefaultIcons(pItem); + GUIControl.AddListItemControl(GetID, (int)Controls.CONTROL_LIST_DIR, pItem); + } + } + else + { + for (int i=0; i<driveCount; i++) + { + GUIListItem pItem = new GUIListItem(drives[i]); + pItem.Path=drives[i]; + pItem.IsFolder=true; +//fmu Utils.SetDefaultIcons(pItem); + Util.Utils.SetDefaultIcons(pItem); + GUIControl.AddListItemControl(GetID, (int)Controls.CONTROL_LIST_DIR, pItem); + } + } + + string strObjects = String.Format("{0} {1}", GUIControl.GetItemCount(GetID, (int)Controls.CONTROL_LIST_DIR).ToString(), GUILocalizeStrings.Get(632)); + GUIPropertyManager.SetProperty("#itemcount", strObjects); + } + + + void keyboard_TextChanged(int kindOfSearch,string data) + { + // + } + + enum DriveType + { + Removable = 2, + Fixed = 3, + RemoteDisk = 4, + CD = 5, + DVD = 5, + RamDisk = 6 + } + + /// <summary> + /// fills the drive array. + /// when showOnlyShares==false then the array drives contains all drives witout CD. + /// array drivesCd contains all drives + /// </summary> + void GetDrives() + { + foreach(string drive in Environment.GetLogicalDrives()) + { + DriveType driveType = (DriveType)Util.Utils.getDriveType(drive); + string name=""; + + switch(driveType) + { + case DriveType.Removable: + name=String.Format("({0}:) Removable",drive.Substring(0, 1).ToUpper()); + break; + case DriveType.Fixed: + name=String.Format("({0}:) Fixed",drive.Substring(0, 1).ToUpper()); + break; + case DriveType.RemoteDisk: + name=String.Format("({0}:) Remote",drive.Substring(0, 1).ToUpper()); + break; + case DriveType.DVD: + name=String.Format("({0}:) CD/DVD",drive.Substring(0, 1).ToUpper()); + break; + case DriveType.RamDisk: + name=String.Format("({0}:) Ram",drive.Substring(0, 1).ToUpper()); + break; + } + + if(showOnlyShares == false) + { + drives[driveCount]=name; + driveCount++; + } + + if(driveType == DriveType.DVD) + { + drivesCd[driveCdCount]=name; + driveCdCount++; + } + } + } + + /// <summary> + /// Moves or Copy a file + /// if mc==false copy a file otherwise move a file + /// </summary> + + void Move(bool mc, string source, string name, string destination) + { + bool doNot=false; + try + { + if (System.IO.File.Exists(destination+name)) + { + GUIDialogYesNo dlgYesNo = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlgYesNo.SetHeading(GUILocalizeStrings.Get(2200)); + dlgYesNo.SetLine(1,name); + dlgYesNo.SetLine(2,GUILocalizeStrings.Get(2217)); + dlgYesNo.SetLine(3,GUILocalizeStrings.Get(2218)); + dlgYesNo.DoModal(GetID); + if (dlgYesNo.IsConfirmed) + { + doNot=false; +//fmu Utils.FileDelete(destination+name); + Util.Utils.FileDelete(destination + name); + } + else + { + doNot=true; + } + } + if (doNot==false) + { + FileInfo fi = new FileInfo(source); + if (mc) + { + fi.MoveTo(destination+name); + } + else + { + fi.CopyTo(destination+name,false); + } + } + } + catch (Exception) + { +//fmu Log.Write("MyExplorer Error: from {0} to {1} MC:{2}",source,destination+name,mc); + Log.Error("MyExplorer Error: from {0} to {1} MC:{2}", source, destination + name, mc); + } + } + + /// <summary> + /// Loads only the ShowOnlyShare status + /// </summary> + private void LoadShareSettings() + { + using(MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MediaPortal.xml")) + { + showOnlyShares=xmlreader.GetValueAsBool("myexplorer","show_only_shares",false); + } + } + + /// <summary> + /// Loads all Settings from MediaPortal.xml + /// </summary> + private void LoadSettings() + { + using(MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MediaPortal.xml")) + { + tempFolder=xmlreader.GetValueAsString("myexplorer","temp_folder",""); + enableDelete=xmlreader.GetValueAsBool("myexplorer","enable_delete",false); + deleteImmed=xmlreader.GetValueAsBool("myexplorer","delete_immediately",false); + deleteTemp=xmlreader.GetValueAsBool("myexplorer","delete_temp",false); + for (int i=0; i<20; i++) + { + sound[i]=xmlreader.GetValueAsString("music","sharepath"+i.ToString()," ").Trim(); + sname[i]=xmlreader.GetValueAsString("music","sharename"+i.ToString()," ").Trim(); + vname[i]=xmlreader.GetValueAsString("movies","sharename"+i.ToString()," ").Trim(); + video[i]=xmlreader.GetValueAsString("movies","sharepath"+i.ToString()," ").Trim(); + pname[i]=xmlreader.GetValueAsString("pictures","sharename"+i.ToString()," ").Trim(); + pictures[i]=xmlreader.GetValueAsString("pictures","sharepath"+i.ToString()," ").Trim(); + + if (pname[i].Contains("CD/")==false && pictures[i]!="") + { + drives[driveCount]="["+pname[i]+"]"; + driveCount++; + drivesCd[driveCdCount]="["+pname[i]+"]"; + driveCdCount++; + } + if (vname[i].Contains("CD/") == false && video[i] != "") + { + drives[driveCount]="["+vname[i]+"]"; + driveCount++; + drivesCd[driveCdCount]="["+vname[i]+"]"; + driveCdCount++; + } + if (sname[i].Contains("CD/") == false && sound[i] != "") + { + drives[driveCount]="["+sname[i]+"]"; + driveCount++; + drivesCd[driveCdCount]="["+sname[i]+"]"; + driveCdCount++; + } + } + } + } + #endregion + } +} Added: trunk/plugins/My Explorer/My Explorer.csproj =================================================================== --- trunk/plugins/My Explorer/My Explorer.csproj (rev 0) +++ trunk/plugins/My Explorer/My Explorer.csproj 2007-01-31 19:32:51 UTC (rev 61) @@ -0,0 +1,70 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>8.0.50727</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{083BEF5E-D67F-49E4-8B98-783294A095BD}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>MediaPortal.GUI.GUIExplorer</RootNamespace> + <AssemblyName>My Explorer</AssemblyName> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="Core, Version=1.0.2582.33626, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>D:\sources mp\Core\bin\Release\Core.dll</HintPath> + </Reference> + <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>D:\sources mp\WindowPlugins\bin\Release\Dialogs.dll</HintPath> + </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.2582.33625, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>D:\sources mp\Core\bin\Release\Utils.dll</HintPath> + </Reference> + </ItemGroup> + <ItemGroup> + <Compile Include="GUIExplorer.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + <Compile Include="SetupForm.cs"> + <SubType>Form</SubType> + </Compile> + </ItemGroup> + <ItemGroup> + <EmbeddedResource Include="SetupForm.resx"> + <DependentUpon>SetupForm.cs</DependentUpon> + <SubType>Designer</SubType> + </EmbeddedResource> + </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. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Added: trunk/plugins/My Explorer/My Explorer.sln =================================================================== --- trunk/plugins/My Explorer/My Explorer.sln (rev 0) +++ trunk/plugins/My Explorer/My Explorer.sln 2007-01-31 19:32:51 UTC (rev 61) @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual C# Express 2005 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "My Explorer", "My Explorer.csproj", "{083BEF5E-D67F-49E4-8B98-783294A095BD}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {083BEF5E-D67F-49E4-8B98-783294A095BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {083BEF5E-D67F-49E4-8B98-783294A095BD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {083BEF5E-D67F-49E4-8B98-783294A095BD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {083BEF5E-D67F-49E4-8B98-783294A095BD}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal Added: trunk/plugins/My Explorer/My Explorer.suo =================================================================== (Binary files differ) Property changes on: trunk/plugins/My Explorer/My Explorer.suo ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/My Explorer/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/My Explorer/Properties/AssemblyInfo.cs (rev 0) +++ trunk/plugins/My Explorer/Properties/AssemblyInfo.cs 2007-01-31 19:32:51 UTC (rev 61) @@ -0,0 +1,35 @@ +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("My Explorer")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("My Explorer")] +[assembly: AssemblyCopyright("Copyright © 2006")] +[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)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("e1e38504-09ec-4c73-88b0-ec159a7db045")] + +// 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.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Added: trunk/plugins/My Explorer/SetupForm.cs =================================================================== --- trunk/plugins/My Explorer/SetupForm.cs (rev 0) +++ trunk/plugins/My Explorer/SetupForm.cs 2007-01-31 19:32:51 UTC (rev 61) @@ -0,0 +1,388 @@ +#region Copyright (C) 2005-2006 Team MediaPortal + +/* + * Copyright (C) 2005-2006 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#endregion + +using System; +using System.Drawing; +using System.Collections; +using System.ComponentModel; +using System.Windows.Forms; +using MediaPortal.GUI.Library; + +namespace GUIExplorer +{ + /// <summary> + /// Summary description for SetupForm. + /// </summary> + public class SetupForm : System.Windows.Forms.Form, ISetupForm, IShowPlugin + { + private MediaPortal.UserInterface.Controls.MPLabel label1; + private MediaPortal.UserInterface.Controls.MPLabel label2; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox2; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox3; + private MediaPortal.UserInterface.Controls.MPLabel label3; + private MediaPortal.UserInterface.Controls.MPLabel label4; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox4; + private MediaPortal.UserInterface.Controls.MPTextBox textBox1; + private MediaPortal.UserInterface.Controls.MPLabel label5; + private MediaPortal.UserInterface.Controls.MPButton button1; + private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1; + private MediaPortal.UserInterface.Controls.MPButton button2; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox1; + + public SetupForm() + { + // + // Required for Windows Form Designer support + // + InitializeComponent(); + LoadSettings(); + // + // TODO: Add any constructor code after InitializeComponent call + // + } + + /// <summary> + /// Clean up any resources being used. + /// </summary> + protected override void Dispose(bool disposing) + { + if (disposing) + { + } + 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.label1 = new MediaPortal.UserInterface.Controls.MPLabel(); + this.checkBox1 = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.label2 = new MediaPortal.UserInterface.Controls.MPLabel(); + this.checkBox2 = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.checkBox3 = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.label3 = new MediaPortal.UserInterface.Controls.MPLabel(); + this.label4 = new MediaPortal.UserInterface.Controls.MPLabel(); + this.checkBox4 = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.textBox1 = new MediaPortal.UserInterface.Controls.MPTextBox(); + this.label5 = new MediaPortal.UserInterface.Controls.MPLabel(); + this.button1 = new MediaPortal.UserInterface.Controls.MPButton(); + this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog(); + this.button2 = new MediaPortal.UserInterface.Controls.MPButton(); + this.SuspendLayout(); + // + // label1 + // + this.label1.Location = new System.Drawing.Point(16, 24); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(168, 16); + this.label1.TabIndex = 0; + this.label1.Text = "Show only Shares (Destination)"; + // + // checkBox1 + // + this.checkBox1.AutoSize = true; + this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.checkBox1.Location = new System.Drawing.Point(264, 16); + this.checkBox1.Name = "checkBox1"; + this.checkBox1.Size = new System.Drawing.Size(13, 12); + this.checkBox1.TabIndex = 1; + this.checkBox1.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.Location = new System.Drawing.Point(16, 48); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(152, 23); + this.label2.TabIndex = 2; + this.label2.Text = "Enable Delete Function"; + // + // checkBox2 + // + this.checkBox2.AutoSize = true; + this.checkBox2.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.checkBox2.Location = new System.Drawing.Point(264, 40); + this.checkBox2.Name = "checkBox2"; + this.checkBox2.Size = new System.Drawing.Size(13, 12); + this.checkBox2.TabIndex = 3; + this.checkBox2.UseVisualStyleBackColor = true; + // + // checkBox3 + // + this.checkBox3.AutoSize = true; + this.checkBox3.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.checkBox3.Location = new System.Drawing.Point(264, 64); + this.checkBox3.Name = "checkBox3"; + this.checkBox3.Size = new System.Drawing.Size(13, 12); + this.checkBox3.TabIndex = 4; + this.checkBox3.UseVisualStyleBackColor = true; + // + // label3 + // + this.label3.Location = new System.Drawing.Point(16, 72); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(160, 24); + this.label3.TabIndex = 5; + this.label3.Text = "Delete Files immediately "; + // + // label4 + // + this.label4.Location = new System.Drawing.Point(16, 96); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(256, 23); + this.label4.TabIndex = 6; + this.label4.Text = "Delete moves files to Temp Folder (like Trashcan)"; + // + // checkBox4 + // + this.checkBox4.AutoSize = true; + this.checkBox4.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.checkBox4.Location = new System.Drawing.Point(264, 88); + this.checkBox4.Name = "checkBox4"; + this.checkBox4.Size = new System.Drawing.Size(13, 12); + this.checkBox4.TabIndex = 7; + this.checkBox4.UseVisualStyleBackColor = true; + // + // textBox1 + // + this.textBox1.BorderColor = System.Drawing.Color.Empty; + this.textBox1.Location = new System.Drawing.Point(264, 120); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(216, 20); + this.textBox1.TabIndex = 8; + // + // label5 + // + this.label5.Location = new System.Drawing.Point(16, 120); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(176, 23); + this.label5.TabIndex = 9; + this.label5.Text = "Temp Folder"; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(496, 120); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(32, 24); + this.button1.TabIndex = 10; + this.button1.Text = "..."; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // button2 + // + this.button2.Location = new System.Drawing.Point(472, 176); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(56, 24); + this.button2.TabIndex = 11; + this.button2.Text = "OK"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // SetupForm + // + this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); + this.ClientSize = new System.Drawing.Size(552, 214); + this.Controls.Add(this.button2); + this.Controls.Add(this.button1); + this.Controls.Add(this.label5); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.checkBox4); + this.Controls.Add(this.label4); + this.Controls.Add(this.label3); + this.Controls.Add(this.checkBox3); + this.Controls.Add(this.checkBox2); + this.Controls.Add(this.label2); + this.Controls.Add(this.checkBox1); + this.Controls.Add(this.label1); + this.Name = "SetupForm"; + this.Text = "SetupForm"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + #endregion + + #region plugin vars + + public string PluginName() + { + return "My Explorer"; + } + + public string Description() + { + return "Browse your files with MediaPortal"; + } + + public string Author() + { + return "Gucky62"; + } + + public void ShowPlugin() + { + ShowDialog(); + } + + public bool DefaultEnabled() + { + return false; + } + + public bool CanEnable() + { + return true; + } + + public bool HasSetup() + { + return true; + } + + public int GetWindowId() + { + return 770; + } + + /// <summary> + /// If the plugin should have its own button on the home screen 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 = GUILocalizeStrings.Get(2200); + strButtonImage = ""; + strButtonImageFocus = ""; + strPictureImage = ""; + return true; + } + + #endregion + + #region IShowPlugin Members + + public bool ShowDefaultHome() + { + return false; + } + + #endregion + + private void button1_Click(object sender, System.EventArgs e) + { + using (folderBrowserDialog1 = new FolderBrowserDialog()) + { + folderBrowserDialog1.Description = "Select the folder where delete file will be stored"; + folderBrowserDialog1.ShowNewFolderButton = true; + folderBrowserDialog1.SelectedPath = textBox1.Text; + DialogResult dialogResult = folderBrowserDialog1.ShowDialog(this); + + if (dialogResult == DialogResult.OK) + { + textBox1.Text = folderBrowserDialog1.SelectedPath; + } + } + } + + private void LoadSettings() + { + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MediaPortal.xml")) + { + textBox1.Text = xmlreader.GetValueAsString("myexplorer", "temp_folder", ""); + checkBox1.Checked = xmlreader.GetValueAsBool("myexplorer", "show_only_shares", false); + checkBox2.Checked = xmlreader.GetValueAsBool("myexplorer", "enable_delete", false); + checkBox3.Checked = xmlreader.GetValueAsBool("myexplorer", "delete_immediately", false); + checkBox4.Checked = xmlreader.GetValueAsBool("myexplorer", "delete_temp", false); + } + } + + private void SaveSettings() + { + using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MediaPortal.xml")) + { + xmlwriter.SetValue("myexplorer", "temp_folder", textBox1.Text); + xmlwriter.SetValueAsBool("myexplorer", "show_only_shares", checkBox1.Checked); + xmlwriter.SetValueAsBool("myexplorer", "enable_delete", checkBox2.Checked); + if (checkBox2.Checked == true) + { + xmlwriter.SetValueAsBool("myexplorer", "delete_immediately", checkBox3.Checked); + if (checkBox3.Checked == true) + { + xmlwriter.SetValueAsBool("myexplorer", "delete_temp", false); + } + else + { + xmlwriter.SetValueAsBool("myexplorer", "delete_temp", checkBox4.Checked); + } + } + else + { + xmlwriter.SetValueAsBool("myexplorer", "delete_immediately", false); + xmlwriter.SetValueAsBool("myexplorer", "delete_temp", false); + } + } + } + + private void button2_Click(object sender, System.EventArgs e) + { + if (checkBox4.Checked == true) + { + if (textBox1.Text == "") + { + MessageBox.Show("Please select a temp path!"); + } + else + { + SaveSettings(); + this.Visible = false; + } + } + else + { + if (checkBox2.Checked == true && checkBox3.Checked == false && checkBox4.Checked == false) + { + MessageBox.Show("Please a Option: \n(Delete Files immediately)\n or \n(Delete moves files to Temp Folder)"); + } + else + { + SaveSettings(); + this.Visible = false; + } + } + } + + } +} Added: trunk/plugins/My Explorer/SetupForm.resx =================================================================== --- trunk/plugins/My Explorer/SetupForm.resx (rev 0) +++ trunk/plugins/My Explorer/SetupForm.resx 2007-01-31 19:32:51 UTC (rev 61) @@ -0,0 +1,123 @@ +<?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> + <metadata name="folderBrowserDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> +</root> \ No newline at end of file Added: trunk/plugins/My Explorer/bin/Release/Core.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/My Explorer/bin/Release/Core.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/My Explorer/bin/Release/Dialogs.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/My Explorer/bin/Release/Dialogs.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/My Explorer/bin/Release/My Explorer.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/My Explorer/bin/Release/My Explorer.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/My Explorer/bin/Release/My Explorer.pdb =================================================================== (Binary files differ) Property changes on: trunk/plugins/My Explorer/bin/Release/My Explorer.pdb ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/My Explorer/bin/Release/Utils.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/My Explorer/bin/Release/Utils.dll ___________________________________________________________________ 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: <fr...@us...> - 2007-01-31 19:00:54
|
Revision: 60 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=60&view=rev Author: framug Date: 2007-01-31 11:00:47 -0800 (Wed, 31 Jan 2007) Log Message: ----------- Modified Author() leave Gucky62, remove framug Modified Paths: -------------- trunk/plugins/My Status/My Status.suo trunk/plugins/My Status/SetupForm.cs trunk/plugins/My Status/bin/Release/My Status.dll trunk/plugins/My Status/bin/Release/My Status.pdb Modified: trunk/plugins/My Status/My Status.suo =================================================================== (Binary files differ) Modified: trunk/plugins/My Status/SetupForm.cs =================================================================== --- trunk/plugins/My Status/SetupForm.cs 2007-01-31 11:38:55 UTC (rev 59) +++ trunk/plugins/My Status/SetupForm.cs 2007-01-31 19:00:47 UTC (rev 60) @@ -926,7 +926,7 @@ public string Author() { - return "Gucky62, framug (SVN compliant)"; + return "Gucky62"; } public void ShowPlugin() Modified: trunk/plugins/My Status/bin/Release/My Status.dll =================================================================== (Binary files differ) Modified: trunk/plugins/My Status/bin/Release/My Status.pdb =================================================================== (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-01-31 11:39:00
|
Revision: 59 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=59&view=rev Author: and-81 Date: 2007-01-31 03:38:55 -0800 (Wed, 31 Jan 2007) Log Message: ----------- Property Changed: ---------------- trunk/plugins/ trunk/plugins/TV3MceBlaster/ Property changes on: trunk/plugins ___________________________________________________________________ Name: svn:ignore + My Plugins.FxCop My Plugins.sln My Plugins.suo Property changes on: trunk/plugins/TV3MceBlaster ___________________________________________________________________ Name: svn:ignore + bin obj This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2007-01-31 06:18:19
|
Revision: 58 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=58&view=rev Author: framug Date: 2007-01-30 22:18:14 -0800 (Tue, 30 Jan 2007) Log Message: ----------- Add My Status Plugin Added Paths: ----------- trunk/plugins/My Status/ trunk/plugins/My Status/GUIStatus.cs trunk/plugins/My Status/GUIStatusDetails.cs trunk/plugins/My Status/GUIStatusPrefs.cs trunk/plugins/My Status/My Status.csproj trunk/plugins/My Status/My Status.sln trunk/plugins/My Status/My Status.suo trunk/plugins/My Status/Properties/ trunk/plugins/My Status/Properties/AssemblyInfo.cs trunk/plugins/My Status/SetupForm.cs trunk/plugins/My Status/SetupForm.resx trunk/plugins/My Status/bin/ trunk/plugins/My Status/bin/Release/ trunk/plugins/My Status/bin/Release/Core.dll trunk/plugins/My Status/bin/Release/Dialogs.dll trunk/plugins/My Status/bin/Release/My Status.dll trunk/plugins/My Status/bin/Release/My Status.pdb trunk/plugins/My Status/bin/Release/Utils.dll trunk/plugins/My Status/bin/Release/mbm5.dll Added: trunk/plugins/My Status/GUIStatus.cs =================================================================== --- trunk/plugins/My Status/GUIStatus.cs (rev 0) +++ trunk/plugins/My Status/GUIStatus.cs 2007-01-31 06:18:14 UTC (rev 58) @@ -0,0 +1,905 @@ +/* + * Copyright (C) 2005 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#region Usings +using System; +using System.Drawing; +using System.Windows.Forms; +using System.Management; +using System.Collections; +using MediaPortal.Util; +using MediaPortal.GUI.Library; +using MediaPortal.Dialogs; +using MediaPortal.Player; +using MediaPortal.Playlists; +using mbm5.MBMInfo; +#endregion + +namespace MediaPortal.GUI.GUIStatus +{ + /// <summary> + /// Summary description for GUIStatus. + /// </summary> + public class GUIStatus : GUIWindow + { + public static int WINDOW_STATUS = 755; + + #region Private Enumerations + enum Controls + { + CONTROL_PREFERENCES = 2, // preference button + CONTROL_DETAIL = 3, // status details + CONTROL_NEXTPAGE = 4, // next page + CONTROL_STATUS = 9, // status text + CONTROL_1 = 10, + CONTROL_STATUSBAR = 9875 // status bar + }; + + enum SensorTypes + { + Volt = 1, + Fan = 2, + Percentage = 3, + Temperature = 4, + HD = 5, + Mhz = 6, + Ram = 7 + }; + + #endregion + + #region Private Variables + + private struct Sensor + { + public string name; + public string sname; + public int sensorNum; + public int sensorType; + public string drive; + public string first; + public string last; + public bool alarm; + public bool shutdown; + public long max; + public long min; + } + + private string soundFolder=""; + private string sound=""; + private int playTime=0; + private int maxSensors = 24; + private int pageSensors = 12; + private int numSensors = 0; + private static Sensor[] sensors = new Sensor[42]; + private bool starttimer=false; + private bool onWindow=false; + private bool onDetails=false; + private bool onStatus=false; + private bool showStatusBar=false; + private bool isMbm=false; + private bool page1=true; + private string statusBarSensor=""; + private bool showTopBottom=false; // true=show status bar on top false=bottom + private static bool alarm=false; + private static bool shutdown=false; + private static int selectedSensor=0; + private static string name=""; + private static int delayPlay=6; + private mbmSharedData MBMInfo=new mbmSharedData(); + private System.Windows.Forms.Timer statusTimer = new System.Windows.Forms.Timer(); + static bool m_bForceShutdown = true; // Force shutdown + + #endregion + + #region Constructor + public GUIStatus() + { + // + // TODO: Add constructor logic here + // + } + + #endregion + + #region Overrides + + public override int GetID + { + get { return WINDOW_STATUS; } + set { base.GetID = value; } + } + + public override bool Init() + { + onWindow=false; + onDetails=false; + onStatus=false; + //Log.Write("Start My Status"); + LoadSettings(); + InitializeStatusTimer(); + return Load (GUIGraphicsContext.Skin+@"\mystatus.xml"); + } + + public override void OnAction(Action action) + { + if (action.wID == Action.ActionType.ACTION_PREVIOUS_MENU) + { + onWindow=false; + onDetails=false; + onStatus=false; + GUIWindowManager.ShowPreviousWindow(); + return; + } + base.OnAction(action); + } + public override bool OnMessage(GUIMessage message) + { + switch ( message.Message ) + { + case GUIMessage.MessageType.GUI_MSG_WINDOW_INIT: + base.OnMessage(message); + onStatus=false; + onWindow=true; + onDetails=false; + page1=true; + ShowButtons(); + UpdateFields(); + LoadSound(); + GUIPropertyManager.SetProperty("#currentmodule", GUILocalizeStrings.Get(1950)); + return true; + case GUIMessage.MessageType.GUI_MSG_CLICKED: + //get sender control + base.OnMessage(message); + int iControl=message.SenderControlId; + if (iControl>=(int)Controls.CONTROL_1 && iControl<=((int)Controls.CONTROL_1 + maxSensors)) + { + selectedSensor=iControl; + alarm=sensors[selectedSensor-10].alarm; + name=sensors[selectedSensor-10].name; + onWindow=false; + onDetails=true; + onStatus=true; + GUIWindowManager.ActivateWindow(GUIStatusDetails.WINDOW_STATUS_DETAILS); + return true; + } + if (iControl==(int)Controls.CONTROL_PREFERENCES) // select preference page + { + onStatus=false; + onWindow=false; + onDetails=false; + GUIWindowManager.ActivateWindow(GUIStatusPrefs.WINDOW_STATUS_PREFS); + return true; + } + if (iControl==(int)Controls.CONTROL_NEXTPAGE) // select preference page + { + if(numSensors>12) + { + if (page1==true) + { + page1=false; + HideButtons(); + ShowButtons(); + } + else + { + page1=true; + HideButtons(); + ShowButtons(); + } + } + return true; + } + if (iControl==(int)Controls.CONTROL_DETAIL) // select status details + { + if (onStatus==false) // show textfield + { + onStatus=true; + onWindow=false; + onDetails=false; + HideButtons(); + GUIControl.HideControl( GetID,(int)Controls.CONTROL_NEXTPAGE); + GUIControl.DisableControl( GetID,(int)Controls.CONTROL_NEXTPAGE); + GUIControl.ShowControl( GetID,(int)Controls.CONTROL_STATUS); + GUIControl.EnableControl( GetID,(int)Controls.CONTROL_STATUS); + GUIControl.SetControlLabel(GetID,(int)Controls.CONTROL_DETAIL,GUILocalizeStrings.Get(712)); + return true; + } + else // hide textfield + { + onStatus=false; + onWindow=true; + onDetails=false; + GUIControl.HideControl( GetID,(int)Controls.CONTROL_STATUS); + GUIControl.DisableControl( GetID,(int)Controls.CONTROL_STATUS); + GUIControl.SetControlLabel(GetID,(int)Controls.CONTROL_DETAIL,GUILocalizeStrings.Get(1972)); + ShowButtons(); + return true; + } + } + return true; + case GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT: + onWindow=false; + break; + } + return base.OnMessage (message); + } + + #endregion + + #region Private Methods + + private void HideButtons() // Switch status buttons off + { + for (int i=(int)Controls.CONTROL_1;i<((int)Controls.CONTROL_1+pageSensors);i++) + { + GUIControl.HideControl( GetID,i ); + GUIControl.DisableControl( GetID,i ); + } + } + + private void ShowButtons() // Switch status buttons on + { + int st; + if (onStatus==false) + { + GUIControl.HideControl( GetID,(int)Controls.CONTROL_STATUS); + GUIControl.DisableControl( GetID,(int)Controls.CONTROL_STATUS); + } + if(numSensors>12) + { + GUIControl.ShowControl( GetID,(int)Controls.CONTROL_NEXTPAGE); + GUIControl.EnableControl( GetID,(int)Controls.CONTROL_NEXTPAGE); + } + else + { + GUIControl.HideControl( GetID,(int)Controls.CONTROL_NEXTPAGE); + GUIControl.DisableControl( GetID,(int)Controls.CONTROL_NEXTPAGE); + } + if (page1==true) + { + GUIControl.SetControlLabel(GetID,(int)Controls.CONTROL_NEXTPAGE,GUILocalizeStrings.Get(1975)); + if(numSensors>12) + { + st=(12+(int)Controls.CONTROL_1); + } + else + { + st=(numSensors+(int)Controls.CONTROL_1); + } + } + else + { + GUIControl.SetControlLabel(GetID,(int)Controls.CONTROL_NEXTPAGE,GUILocalizeStrings.Get(712)); + st=((numSensors-12)+(int)Controls.CONTROL_1); + } + for (int i=(int)Controls.CONTROL_1; i<((int)Controls.CONTROL_1+pageSensors); i++) + { + if (i<st) + { + GUIControl.ShowControl( GetID,i); + GUIControl.EnableControl( GetID,i); + } + else + { + GUIControl.HideControl( GetID,i ); + GUIControl.DisableControl( GetID,i ); + } + } + } + + /// <summary> + /// init 1 sec timer. + /// </summary> + private void InitializeStatusTimer() + { + statusTimer.Tick += new EventHandler(OnTimer); + statusTimer.Interval = 1000; //1 sec Intervall + statusTimer.Enabled=true; + statusTimer.Start(); + starttimer=true; + } + + private void OnTimer(Object sender, EventArgs e) + { + if(sender == statusTimer) + { + if (starttimer) UpdateFields(); + } + } + + /// <summary> + /// calculate KB,MB and GB View + /// </summary> + private string CalcExt(long m) + { + string lw=""; + if (m >= 10737418240) + { + m = (m / (1024 * 1024 * 1024)); + lw=m.ToString()+" GB"; + } + else if (m >= 1048576 ) + { + m = (m / (1024 * 1024)); + lw=m.ToString()+" MB"; + } + else if (m >= 1024 ) + { + m = (m / 1024); + lw=m.ToString()+" KB"; + } + return lw; + } + + /// <summary> + /// get infos of a disk + /// </summary> + private string GetDiskInfo(string lw) + { + ManagementObjectSearcher query; + ManagementObjectCollection queryCollection; + System.Management.ObjectQuery oq; + string stringMachineName = "localhost"; + long s=0; + long m=0; + string f=""; + string str=""; + //Connect to the remote computer + ConnectionOptions co = new ConnectionOptions(); + + //Point to machine + System.Management.ManagementScope ms = new System.Management.ManagementScope("\\\\" + stringMachineName + "\\root\\cimv2", co); + oq = new System.Management.ObjectQuery("SELECT * FROM Win32_LogicalDisk WHERE DeviceID = '"+lw+"'"); + query = new ManagementObjectSearcher(ms,oq); + queryCollection = query.Get(); + foreach ( ManagementObject mo in queryCollection) + { + m=Convert.ToInt64(mo["FreeSpace"]); + s=Convert.ToInt64(mo["Size"]); + f=Convert.ToString(mo["FileSystem"]); + } + str=lw+" "+CalcExt(m)+" "+GUILocalizeStrings.Get(1973)+" "+CalcExt(s)+" "+GUILocalizeStrings.Get(1953)+" "+GUILocalizeStrings.Get(1977)+": "+" "+f; + return str; + } + + /// <summary> + /// get the size of a disk + /// </summary> + private long GetDiskSize(string lw) + { + ManagementObjectSearcher query; + ManagementObjectCollection queryCollection; + System.Management.ObjectQuery oq; + string stringMachineName = "localhost"; + long s=0; + //Connect to the remote computer + ConnectionOptions co = new ConnectionOptions(); + + //Point to machine + System.Management.ManagementScope ms = new System.Management.ManagementScope("\\\\" + stringMachineName + "\\root\\cimv2", co); + oq = new System.Management.ObjectQuery("SELECT * FROM Win32_LogicalDisk WHERE DeviceID = '"+lw+"'"); + query = new ManagementObjectSearcher(ms,oq); + queryCollection = query.Get(); + foreach ( ManagementObject mo in queryCollection) + { + s=Convert.ToInt64(mo["Size"]); + } + return s; + } + + /// <summary> + /// get memory infos + /// </summary> + private string GetMemInfo() + { + string str=""; + try + { + ManagementClass memoryClass = new ManagementClass("Win32_OperatingSystem"); + ManagementObjectCollection memory = memoryClass.GetInstances(); + ManagementObjectCollection.ManagementObjectEnumerator memoryEnumerator = memory.GetEnumerator(); + memoryEnumerator.MoveNext(); + str=str+GUILocalizeStrings.Get(1974)+" "+Convert.ToString(memoryEnumerator.Current.Properties["FreePhysicalMemory"].Value) + " KB "; + str=str+GUILocalizeStrings.Get(1973)+" "+Convert.ToString(memoryEnumerator.Current.Properties["TotalVisibleMemorySize"].Value)+" KB "+GUILocalizeStrings.Get(1953)+"\n"; + str=str+GUILocalizeStrings.Get(1978)+": "+Convert.ToString(memoryEnumerator.Current.Properties["FreeVirtualMemory"].Value)+" KB "+GUILocalizeStrings.Get(1973); + str=str+" "+Convert.ToString(memoryEnumerator.Current.Properties["TotalVirtualMemorySize"].Value)+" KB "+GUILocalizeStrings.Get(1953)+"\n"; + } + catch {} + return str; + } + + private long GetFreeDiskLong(string lw) + { + ManagementObjectSearcher query; + ManagementObjectCollection queryCollection; + System.Management.ObjectQuery oq; + string stringMachineName = "localhost"; + long m=0; + //Connect to the remote computer + ConnectionOptions co = new ConnectionOptions(); + + //Point to machine + try + { + System.Management.ManagementScope ms = new System.Management.ManagementScope("\\\\" + stringMachineName + "\\root\\cimv2", co); + oq = new System.Management.ObjectQuery("SELECT * FROM Win32_LogicalDisk WHERE DeviceID = '"+lw+"'"); + query = new ManagementObjectSearcher(ms,oq); + queryCollection = query.Get(); + foreach ( ManagementObject mo in queryCollection) + { + m=Convert.ToInt64(mo["FreeSpace"]); + } + } + catch + { + } + return m; + } + + private string GetFreeDisk(string lw) + { + return CalcExt(GetFreeDiskLong(lw)); + } + + + private void UpdateFields() + { + int start=(int)Controls.CONTROL_1; + string s=""; + string text=""; + double act=0; + double max=0; + int p=0; + if (isMbm==true) + { + MBMInfo.Refresh(); + } + if (onStatus==true) // show status detail page + { + text=text+GetMemInfo()+"\n"; + for (int i=0; i<numSensors && i<=(int)Controls.CONTROL_1+maxSensors; i++) + { + if (sensors[i].sensorType==(int)SensorTypes.HD) + { + text=text+GetDiskInfo(sensors[i].drive)+"\n"; + } + else + { + text=text+String.Format("{0}: {1:0.##} {2}",sensors[i].sname,MBMInfo.Sensor(sensors[i].sensorNum).ssCurrent,sensors[i].last); + if (sensors[i].sensorType!=(int)SensorTypes.Mhz && sensors[i].sensorType!=(int)SensorTypes.Percentage) + { + text=text+" < "+String.Format("{0:0.##} {1}",MBMInfo.Sensor(sensors[i].sensorNum).ssLow,sensors[i].last); + text=text+" > "+String.Format("{0:0.##} {1}",MBMInfo.Sensor(sensors[i].sensorNum).ssHigh, sensors[i].last)+"\n"; + } + else + { + text=text+"\n"; + } + } + } + GUIControl.SetControlLabel(GetID, (int)Controls.CONTROL_STATUS, text ); + } + + // test threshold for each sensor + + for (int i=0; i<numSensors && i<=(int)Controls.CONTROL_1+maxSensors; i++) + { + if (showStatusBar==true) // show statusbar + { + if (statusBarSensor==sensors[i].sname) + { + GUIPropertyManager.SetProperty("#statusbar_name",sensors[i].name); + if(sensors[i].name=="lw") + { + act=Convert.ToDouble((GetFreeDiskLong(sensors[i].drive))); + max=GetDiskSize(sensors[i].drive); + p=100-Convert.ToInt16(act/(max/100)); + GUIPropertyManager.SetProperty("#statusbar_perc",p.ToString()); + GUIPropertyManager.SetProperty("#statusbar_act",act.ToString()); + } + else + { + if (sensors[i].name=="perc1") + { + GUIPropertyManager.SetProperty("#statusbar_perc",Convert.ToString((int)MBMInfo.Sensor(sensors[i].sensorNum).ssCurrent)); + GUIPropertyManager.SetProperty("#statusbar_act",Convert.ToString((int)MBMInfo.Sensor(sensors[i].sensorNum).ssCurrent)); + } + else + { + act=Convert.ToDouble(MBMInfo.Sensor(sensors[i].sensorNum).ssCurrent); + max=(double)sensors[i].max; + try + { + p=Convert.ToInt16(act/(max/100d)); + } + catch(Exception){} + GUIPropertyManager.SetProperty("#statusbar_perc",p.ToString()); + GUIPropertyManager.SetProperty("#statusbar_act",act.ToString()); + } + } + } + } + if (sensors[i].alarm==true) // is test alarm set? + { + switch (sensors[i].name) // which sensor + { + case "lw" : // hd + if ((GetFreeDiskLong(sensors[i].drive)/ (1024 * 1024))<sensors[i].min) Play(); + break; + case "fan1" : // Fan Sensor 1 + if (Convert.ToInt16(MBMInfo.Sensor(sensors[i].sensorNum).ssCurrent) <= sensors[i].min) Play(); + break; + case "fan2" : // Fan Sensor 2 + if (Convert.ToInt16(MBMInfo.Sensor(sensors[i].sensorNum).ssCurrent) <= sensors[i].min) Play(); + break; + case "fan3" : // Fan Sensor 3 + if (Convert.ToInt16(MBMInfo.Sensor(sensors[i].sensorNum).ssCurrent) <= sensors[i].min) Play(); + break; + case "temp1" : // Temp Sensor 1 + if (Convert.ToInt16(MBMInfo.Sensor(sensors[i].sensorNum).ssCurrent) >= sensors[i].max) + { + Play(); + if (shutdown==true) + { +//fmu Log.Write("Shutdown Temp Sensor 1 Alert"); + Log.Warn("Shutdown Temp Sensor 1 Alert"); + WindowsController.ExitWindows(RestartOptions.ShutDown, m_bForceShutdown); + } + } + break; + case "temp2" : // Temp Sensor 2 + if (Convert.ToInt16(MBMInfo.Sensor(sensors[i].sensorNum).ssCurrent) >= sensors[i].max) + { + Play(); + if (shutdown==true) + { + WindowsController.ExitWindows(RestartOptions.ShutDown, m_bForceShutdown); +// Log.Write("Shutdown Temp Sensor 1 Alert"); + Log.Warn("Shutdown Temp Sensor 1 Alert"); + } + } + break; + case "temp3" : // Temp Sensor 3 + if (Convert.ToInt16(MBMInfo.Sensor(sensors[i].sensorNum).ssCurrent) >= sensors[i].max) + { + Play(); + if (shutdown==true) + { + WindowsController.ExitWindows(RestartOptions.ShutDown, m_bForceShutdown); +//fmu Log.Write("Shutdown Temp Sensor 1 Alert"); + Log.Warn("Shutdown Temp Sensor 1 Alert"); + } + } + break; + } + } + } + if (onWindow==true || onDetails==true) + { + int st=0; + int offset=0; + int i=0; + if(page1==true) + { + st=numSensors; + } + else + { + st=numSensors-pageSensors; + offset=pageSensors; + } + i=offset; + for (int l=0; l<st && l<=(int)Controls.CONTROL_1+pageSensors; i++,l++) + { + if (sensors[i].sensorType==(int)SensorTypes.HD) + { + s=String.Format("{0} {1} {2}",sensors[i].first,GetFreeDisk(sensors[i].drive),sensors[i].last); + } + else + { + s=String.Format("{0}: {1:0.##} {2}",sensors[i].sname,MBMInfo.Sensor(sensors[i].sensorNum).ssCurrent,sensors[i].last); + } + + if (onWindow==true) GUIControl.SetControlLabel(GetID,start,s); + if (onDetails==true) + { + if (selectedSensor==start) + { + GUIPropertyManager.SetProperty("#sensor",s); + if (sensors[i].sensorType!=(int)SensorTypes.HD && sensors[i].sensorType!=(int)SensorTypes.Mhz) + { + GUIPropertyManager.SetProperty("#high",String.Format("{0}: {1:0.##}", GUILocalizeStrings.Get(1965),MBMInfo.Sensor(sensors[i].sensorNum).ssHigh)); + GUIPropertyManager.SetProperty("#low",String.Format("{0}: {1:0.##}",GUILocalizeStrings.Get(1966),MBMInfo.Sensor(sensors[i].sensorNum).ssLow)); + GUIPropertyManager.SetProperty("#alhigh",String.Format("{0}: {1:0.##}",GUILocalizeStrings.Get(1967),sensors[i].max)); + GUIPropertyManager.SetProperty("#allow",String.Format("{0}: {1:0.##}",GUILocalizeStrings.Get(1968),sensors[i].min)); + } + else + { + if (sensors[i].sensorType==(int)SensorTypes.Mhz) + { + GUIPropertyManager.SetProperty("#high"," "); + } + else + { + GUIPropertyManager.SetProperty("#high",GUILocalizeStrings.Get(1968)+" "+sensors[i].min.ToString()+" MB"); + } + GUIPropertyManager.SetProperty("#low"," "); + GUIPropertyManager.SetProperty("#alhigh"," "); + GUIPropertyManager.SetProperty("#allow"," "); + } + } + } + start++; + } + } + } + + public static bool IsShutdown() + { + return shutdown; + } + + public static bool IsAlarm() + { + return alarm; + } + + public static void SetShutdown(bool sh) + { + shutdown=sh; + } + + public static void SetAlarm(bool al) + { + sensors[selectedSensor-10].alarm=al; + } + + public static void SetInterval(int dl) + { + delayPlay=dl; + } + + public static int GetInterval() + { + return delayPlay; + } + + public static string GetName() + { + return name; + } + + private void Play() + { + try + { + if (playTime==0) + { + g_Player.Play(soundFolder + "\\" + sound); + g_Player.Volume=99; + } + playTime++; + if (playTime>delayPlay) playTime=0; + } + catch + { + } + } + + private void LoadSound() + { + using(MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MediaPortal.xml")) + { + soundFolder=xmlreader.GetValueAsString("status","status_sound_folder",""); + sound=xmlreader.GetValueAsString("status","status_sound",""); + } + } + + private void LoadSettings() + { + int num=0; + using(MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MediaPortal.xml")) + { + isMbm=xmlreader.GetValueAsBool("status","status_is_mbm",false); + showStatusBar=xmlreader.GetValueAsBool("status","status_bar_show",false); + if (showStatusBar==false) GUIPropertyManager.SetProperty("#statusbar_perc","-1"); + bool top=xmlreader.GetValueAsBool("status","status_bar_top",false); + bool bot=xmlreader.GetValueAsBool("status","status_bar_bottom",false); + if (top==true) showTopBottom=true; + if (bot==true) showTopBottom=false; + if (showTopBottom==true) + { + GUIPropertyManager.SetProperty("#statusbarTB","1"); + } + else + { + GUIPropertyManager.SetProperty("#statusbarTB","2"); + } + statusBarSensor=xmlreader.GetValueAsString("status","status_bar_sensor",""); + soundFolder=xmlreader.GetValueAsString("status","status_sound_folder","c:\\windows\\media"); + sound=xmlreader.GetValueAsString("status","status_sound","ding.wav"); + delayPlay=xmlreader.GetValueAsInt("status","status_sound_delay",6); + shutdown=xmlreader.GetValueAsBool("status","status_shutdown",false); + int hdt=xmlreader.GetValueAsInt("status","status_hd_threshold",200); + char drive='C'; + char ldrive='c'; + for (int i=0;i<24;i++) // read all drives + { + if (xmlreader.GetValueAsBool("status","status_lw"+ldrive,false)) + { + sensors[num].name="lw"; + sensors[num].sname=drive+":"; + sensors[num].drive=drive+":"; + sensors[num].min=hdt; + sensors[num].alarm=xmlreader.GetValueAsBool("status","status_lw"+ldrive+"al",false); + sensors[num].first=GUILocalizeStrings.Get(1951)+" "+drive+":"; + sensors[num].last=GUILocalizeStrings.Get(1953); + sensors[num++].sensorType=(int)SensorTypes.HD; + } + drive++; + ldrive++; + } + if (isMbm==true) + { + MBMInfo.Refresh(); + if (xmlreader.GetValueAsBool("status","status_temp1",false)) + { + sensors[num].name="temp1"; + sensors[num].sensorNum=xmlreader.GetValueAsInt("status","status_temp1i",0); + sensors[num].sname=Convert.ToString(MBMInfo.Sensor(sensors[num].sensorNum).ssName); + sensors[num].alarm=xmlreader.GetValueAsBool("status","status_temp1al",false); + sensors[num].shutdown=xmlreader.GetValueAsBool("status","status_temp1sh",false); + sensors[num].min=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm2); + sensors[num].max=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm1); + sensors[num].first=GUILocalizeStrings.Get(1954)+" 1:"; + sensors[num].last=GUILocalizeStrings.Get(1955); + sensors[num++].sensorType=(int)SensorTypes.Temperature; + } + if (xmlreader.GetValueAsBool("status","status_temp2",false)) + { + sensors[num].name="temp2"; + sensors[num].sensorNum=xmlreader.GetValueAsInt("status","status_temp2i",0); + sensors[num].sname=Convert.ToString(MBMInfo.Sensor(sensors[num].sensorNum).ssName); + sensors[num].alarm=xmlreader.GetValueAsBool("status","status_temp2al",false); + sensors[num].shutdown=xmlreader.GetValueAsBool("status","status_temp1sh",false); + sensors[num].min=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm2); + sensors[num].max=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm1); + sensors[num].first=GUILocalizeStrings.Get(1954)+" 2:"; + sensors[num].last=GUILocalizeStrings.Get(1955); + sensors[num++].sensorType=(int)SensorTypes.Temperature; + } + if (xmlreader.GetValueAsBool("status","status_temp3",false)) + { + sensors[num].name="temp3"; + sensors[num].sensorNum=xmlreader.GetValueAsInt("status","status_temp3i",0); + sensors[num].sname=Convert.ToString(MBMInfo.Sensor(sensors[num].sensorNum).ssName); + sensors[num].alarm=xmlreader.GetValueAsBool("status","status_temp3al",false); + sensors[num].shutdown=xmlreader.GetValueAsBool("status","status_temp1sh",false); + sensors[num].min=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm2); + sensors[num].max=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm1); + sensors[num].first=GUILocalizeStrings.Get(1954)+" 3:"; + sensors[num].last=GUILocalizeStrings.Get(1955); + sensors[num++].sensorType=(int)SensorTypes.Temperature; + } + if (xmlreader.GetValueAsBool("status","status_fan1",false)) + { + sensors[num].name="fan1"; + sensors[num].sensorNum=xmlreader.GetValueAsInt("status","status_fan1i",0); + sensors[num].sname=Convert.ToString(MBMInfo.Sensor(sensors[num].sensorNum).ssName); + sensors[num].alarm=xmlreader.GetValueAsBool("status","status_fan1al",false); + sensors[num].min=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm2); + sensors[num].max=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm1); + sensors[num].first=GUILocalizeStrings.Get(1952)+" 1:"; + sensors[num].last=GUILocalizeStrings.Get(1976); + sensors[num++].sensorType=(int)SensorTypes.Fan; + } + if (xmlreader.GetValueAsBool("status","status_fan2",false)) + { + sensors[num].name="fan2"; + sensors[num].sensorNum=xmlreader.GetValueAsInt("status","status_fan2i",0); + sensors[num].sname=Convert.ToString(MBMInfo.Sensor(sensors[num].sensorNum).ssName); + sensors[num].alarm=xmlreader.GetValueAsBool("status","status_fan2al",false); + sensors[num].min=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm2); + sensors[num].max=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm1); + sensors[num].first=GUILocalizeStrings.Get(1952)+" 2:"; + sensors[num].last=GUILocalizeStrings.Get(1976); + sensors[num++].sensorType=(int)SensorTypes.Fan; + } + if (xmlreader.GetValueAsBool("status","status_fan3",false)) + { + sensors[num].name="fan3"; + sensors[num].sensorNum=xmlreader.GetValueAsInt("status","status_fan3i",0); + sensors[num].sname=Convert.ToString(MBMInfo.Sensor(sensors[num].sensorNum).ssName); + sensors[num].alarm=xmlreader.GetValueAsBool("status","status_fan3al",false); + sensors[num].min=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm2); + sensors[num].max=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm1); + sensors[num].first=GUILocalizeStrings.Get(1952)+" 3:"; + sensors[num].last=GUILocalizeStrings.Get(1976); + sensors[num++].sensorType=(int)SensorTypes.Fan; + } + if (xmlreader.GetValueAsBool("status","status_volt1",false)) + { + sensors[num].name="volt1"; + sensors[num].sensorNum=xmlreader.GetValueAsInt("status","status_volt1i",0); + sensors[num].sname=Convert.ToString(MBMInfo.Sensor(sensors[num].sensorNum).ssName); + sensors[num].alarm=xmlreader.GetValueAsBool("status","status_volt1al",false); + sensors[num].min=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm2); + sensors[num].max=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm1); + sensors[num].first=GUILocalizeStrings.Get(1959)+" 1:"; + sensors[num].last=GUILocalizeStrings.Get(1960); + sensors[num++].sensorType=(int)SensorTypes.Volt; + } + if (xmlreader.GetValueAsBool("status","status_volt2",false)) + { + sensors[num].name="volt2"; + sensors[num].sensorNum=xmlreader.GetValueAsInt("status","status_volt2i",0); + sensors[num].sname=Convert.ToString(MBMInfo.Sensor(sensors[num].sensorNum).ssName); + sensors[num].alarm=xmlreader.GetValueAsBool("status","status_volt2al",false); + sensors[num].min=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm2); + sensors[num].max=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm1); + sensors[num].first=GUILocalizeStrings.Get(1959)+" 2:"; + sensors[num].last=GUILocalizeStrings.Get(1960); + sensors[num++].sensorType=(int)SensorTypes.Volt; + } + if (xmlreader.GetValueAsBool("status","status_volt3",false)) + { + sensors[num].name="volt3"; + sensors[num].sensorNum=xmlreader.GetValueAsInt("status","status_volt3i",0); + sensors[num].sname=Convert.ToString(MBMInfo.Sensor(sensors[num].sensorNum).ssName); + sensors[num].alarm=xmlreader.GetValueAsBool("status","status_volt3al",false); + sensors[num].min=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm2); + sensors[num].max=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm1); + sensors[num].first=GUILocalizeStrings.Get(1959)+" 3:"; + sensors[num].last=GUILocalizeStrings.Get(1960); + sensors[num++].sensorType=(int)SensorTypes.Volt; + } + if (xmlreader.GetValueAsBool("status","status_mhz1",false)) + { + sensors[num].name="mhz1"; + sensors[num].sensorNum=xmlreader.GetValueAsInt("status","status_mhz1i",0); + sensors[num].sname=Convert.ToString(MBMInfo.Sensor(sensors[num].sensorNum).ssName); + sensors[num].alarm=xmlreader.GetValueAsBool("status","status_mhz1al",false); + sensors[num].min=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm2); + sensors[num].max=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm1); + sensors[num].first=GUILocalizeStrings.Get(1961); + sensors[num].last="Mhz"; + sensors[num++].sensorType=(int)SensorTypes.Mhz; + } + if (xmlreader.GetValueAsBool("status","status_perc1",false)) + { + sensors[num].name="perc1"; + sensors[num].sensorNum=xmlreader.GetValueAsInt("status","status_perc1i",0); + sensors[num].sname=Convert.ToString(MBMInfo.Sensor(sensors[num].sensorNum).ssName); + sensors[num].alarm=xmlreader.GetValueAsBool("status","status_perc1al",false); + sensors[num].min=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm2); + sensors[num].max=Convert.ToInt16(MBMInfo.Sensor(sensors[num].sensorNum).ssAlarm1); + sensors[num].first=GUILocalizeStrings.Get(1958); + sensors[num].last="%"; + sensors[num++].sensorType=(int)SensorTypes.Percentage; + } + } + numSensors=num; + } + } + #endregion + } +} Added: trunk/plugins/My Status/GUIStatusDetails.cs =================================================================== --- trunk/plugins/My Status/GUIStatusDetails.cs (rev 0) +++ trunk/plugins/My Status/GUIStatusDetails.cs 2007-01-31 06:18:14 UTC (rev 58) @@ -0,0 +1,97 @@ +/* + * Copyright (C) 2005 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#region Usings +using System; +using System.Management; +using System.Collections; +using System.Windows.Forms; +using MediaPortal.GUI.Library; +using MediaPortal.Dialogs; +using mbm5.MBMInfo; +#endregion + +namespace MediaPortal.GUI.GUIStatus { + public class GUIStatusDetails : GUIWindow { + public static int WINDOW_STATUS_DETAILS = 756; + + private mbmSharedData MBMInfo=new mbmSharedData(); + + #region Private Enumerations + enum Controls { + CONTROL_BACK = 2, + CONTROL_ALARM = 3 + }; + #endregion + + #region Constructor + public GUIStatusDetails() { + // + // TODO: Add constructor logic here + // + GetID=GUIStatusDetails.WINDOW_STATUS_DETAILS; + } + #endregion + + #region Overrides + public override bool Init() { + return Load (GUIGraphicsContext.Skin+@"\mystatusdetails.xml"); + } + + public override void OnAction(Action action) { + if (action.wID == Action.ActionType.ACTION_CLOSE_DIALOG ||action.wID == Action.ActionType.ACTION_PREVIOUS_MENU) { + GUIWindowManager.ShowPreviousWindow(); + return; + } + base.OnAction(action); + } + + public override bool OnMessage(GUIMessage message) { + switch ( message.Message ) { + + case GUIMessage.MessageType.GUI_MSG_WINDOW_INIT: { + base.OnMessage(message); + ((GUIToggleButtonControl)GetControl((int)Controls.CONTROL_ALARM)).Selected = GUIStatus.IsAlarm(); + return true; + } + case GUIMessage.MessageType.GUI_MSG_CLICKED: + //get sender control + base.OnMessage(message); + int iControl=message.SenderControlId; + if (iControl==(int)Controls.CONTROL_BACK) { + SaveSettings(); + GUIWindowManager.ShowPreviousWindow(); + return true; + } + return true; + } + return base.OnMessage(message); + } + + private void SaveSettings() { + using(MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MediaPortal.xml")) { + xmlwriter.SetValueAsBool("status","status_"+GUIStatus.GetName()+"al",((GUIToggleButtonControl)GetControl((int)Controls.CONTROL_ALARM)).Selected); + GUIStatus.SetAlarm(((GUIToggleButtonControl)GetControl((int)Controls.CONTROL_ALARM)).Selected); + } + } + } + #endregion +} Added: trunk/plugins/My Status/GUIStatusPrefs.cs =================================================================== --- trunk/plugins/My Status/GUIStatusPrefs.cs (rev 0) +++ trunk/plugins/My Status/GUIStatusPrefs.cs 2007-01-31 06:18:14 UTC (rev 58) @@ -0,0 +1,197 @@ +/* + * Copyright (C) 2005 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#region Usings +using System; +using System.Management; +using System.Collections; +using System.Windows.Forms; +using MediaPortal.Util; +using MediaPortal.Player; +using MediaPortal.GUI.Library; +using MediaPortal.Dialogs; +using mbm5.MBMInfo; +#endregion + +namespace MediaPortal.GUI.GUIStatus { + /// <summary> + /// Summary description for GUIStatusPrefs. + /// </summary> + public class GUIStatusPrefs : GUIWindow + { + public static int WINDOW_STATUS_PREFS = 757; + + #region Private Enumerations + enum Controls { + CONTROL_BACK = 2, + CONTROL_TEST = 3, + CONTROL_SPIN = 4, + CONTROL_SHUT = 5, + CONTROL_LIST = 10 + }; + #endregion + + #region Private Variables + private string soundFolder = string.Empty; + private string sound = string.Empty; + private int spin; + private GUIListItem selectedItem; + #endregion + + #region Constructor + public GUIStatusPrefs() { + // + // TODO: Add constructor logic here + // + GetID=GUIStatusPrefs.WINDOW_STATUS_PREFS; + } + #endregion + + #region Overrides + public override bool Init() { + return Load (GUIGraphicsContext.Skin+@"\mystatusprefs.xml"); + } + + public override void OnAction(Action action) { + if (action.wID == Action.ActionType.ACTION_CLOSE_DIALOG ||action.wID == Action.ActionType.ACTION_PREVIOUS_MENU) { + GUIWindowManager.ShowPreviousWindow(); + return; + } + base.OnAction(action); + } + + public override bool OnMessage(GUIMessage message) { + switch ( message.Message ) { + + case GUIMessage.MessageType.GUI_MSG_WINDOW_INIT: { + base.OnMessage(message); + LoadSettings(); + LoadListControl(); + GUISpinControl cntlYieldInterval=GetControl((int)Controls.CONTROL_SPIN) as GUISpinControl; + if (cntlYieldInterval!=null) { + for (int i=1; i <= 100; i++) cntlYieldInterval.AddLabel("",i); + cntlYieldInterval.Value=1; + } + cntlYieldInterval.Value=GUIStatus.GetInterval(); + ((GUIToggleButtonControl)GetControl((int)Controls.CONTROL_SHUT)).Selected = GUIStatus.IsShutdown(); + return true; + } + case GUIMessage.MessageType.GUI_MSG_CLICKED: + //get sender control + base.OnMessage(message); + int iControl=message.SenderControlId; + if (iControl==(int)Controls.CONTROL_SPIN) { + GUISpinControl cntlYieldInt=GetControl((int)Controls.CONTROL_SPIN) as GUISpinControl; + int iInterval=(cntlYieldInt.Value)+1; + GUIStatus.SetInterval(iInterval); + spin=iInterval; + } + if (iControl==(int)Controls.CONTROL_BACK) { + GUIStatus.SetShutdown(((GUIToggleButtonControl)GetControl((int)Controls.CONTROL_SHUT)).Selected); + SaveSettings(); + GUIWindowManager.ShowPreviousWindow(); + return true; + } + if (iControl==(int)Controls.CONTROL_TEST) { + Play(); + return true; + } + if (iControl==(int)Controls.CONTROL_LIST) { + GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_ITEM_SELECTED,GetID,0,iControl,0,0,null); + OnMessage(msg); + int iItem=(int)msg.Param1; + int iAction=(int)message.Param1; + if (iAction == (int)Action.ActionType.ACTION_SELECT_ITEM) { + GUIListItem item = GUIControl.GetSelectedListItem(GetID,iControl); + if (item!=null) { + sound = item.Label; + item.IconImage = "check-box.png"; + if(selectedItem != null) { + selectedItem.IconImage = string.Empty; + selectedItem=item; + } + GUIControl.RefreshControl(GetID,(int)Controls.CONTROL_LIST); + } + } + GUIControl.FocusControl(GetID, iControl); + return true; + } + return true; + } + return base.OnMessage(message); + } + #endregion + + #region Private Methods + /// <summary> + /// Loads the list control with the type of sound selected + /// </summary> + /// + private void LoadListControl() { + //clear the list + GUIControl.ClearControl(GetID,(int)Controls.CONTROL_LIST); + VirtualDirectory Directory; + ArrayList itemlist; + Directory = new VirtualDirectory(); + Directory.SetExtensions(Util.Utils.AudioExtensions); + itemlist = Directory.GetDirectory(soundFolder); + + foreach (GUIListItem item in itemlist) { + if(!item.IsFolder) { + GUIListItem pItem = new GUIListItem(item.FileInfo.Name); + if(pItem.Label == sound) { + pItem.IconImage = "check-box.png"; + selectedItem = pItem; + } + GUIControl.AddListItemControl(GetID,(int)Controls.CONTROL_LIST,pItem); + } + } + string strObjects =String.Format("{0} {1}",GUIControl.GetItemCount(GetID,(int)Controls.CONTROL_LIST).ToString(), GUILocalizeStrings.Get(632)); + GUIPropertyManager.SetProperty("#itemcount",strObjects); + } + + private void Play() { + try { + g_Player.Play(soundFolder + "\\" + sound); + g_Player.Volume=99; + } + catch { + } + } + + private void SaveSettings() { + using(MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MediaPortal.xml")) { + xmlwriter.SetValueAsBool("status","status_shutdown",((GUIToggleButtonControl)GetControl((int)Controls.CONTROL_SHUT)).Selected); + xmlwriter.SetValue("status","status_sound",sound); + xmlwriter.SetValue("status","status_sound_delay",spin); + } + } + + private void LoadSettings() { + using(MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MediaPortal.xml")) { + soundFolder=xmlreader.GetValueAsString("status","status_sound_folder",""); + sound=xmlreader.GetValueAsString("status","status_sound",""); + } + } + #endregion + + } +} Added: trunk/plugins/My Status/My Status.csproj =================================================================== --- trunk/plugins/My Status/My Status.csproj (rev 0) +++ trunk/plugins/My Status/My Status.csproj 2007-01-31 06:18:14 UTC (rev 58) @@ -0,0 +1,77 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>8.0.50727</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{55786500-26B8-412B-B5AB-6B965CE1218F}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>MediaPortal.GUI.GUIStatus</RootNamespace> + <AssemblyName>My Status</AssemblyName> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="Core, Version=1.0.2582.36060, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>D:\sources mp\xbmc\bin\Release\Core.dll</HintPath> + </Reference> + <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>D:\sources mp\xbmc\bin\Release\plugins\windows\Dialogs.dll</HintPath> + </Reference> + <Reference Include="mbm5, Version=1.0.1778.42739, Culture=neutral"> + <SpecificVersion>False</SpecificVersion> + <HintPath>.\mbm5.dll</HintPath> + </Reference> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Drawing" /> + <Reference Include="System.Management" /> + <Reference Include="System.Windows.Forms" /> + <Reference Include="System.Xml" /> + <Reference Include="Utils, Version=1.0.2582.36059, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>D:\sources mp\xbmc\bin\Release\Utils.dll</HintPath> + </Reference> + </ItemGroup> + <ItemGroup> + <Compile Include="GUIStatus.cs" /> + <Compile Include="GUIStatusDetails.cs" /> + <Compile Include="GUIStatusPrefs.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + <Compile Include="SetupForm.cs"> + <SubType>Form</SubType> + </Compile> + </ItemGroup> + <ItemGroup> + <EmbeddedResource Include="SetupForm.resx"> + <DependentUpon>SetupForm.cs</DependentUpon> + <SubType>Designer</SubType> + </EmbeddedResource> + </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. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Added: trunk/plugins/My Status/My Status.sln =================================================================== --- trunk/plugins/My Status/My Status.sln (rev 0) +++ trunk/plugins/My Status/My Status.sln 2007-01-31 06:18:14 UTC (rev 58) @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual C# Express 2005 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "My Status", "My Status.csproj", "{55786500-26B8-412B-B5AB-6B965CE1218F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {55786500-26B8-412B-B5AB-6B965CE1218F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {55786500-26B8-412B-B5AB-6B965CE1218F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {55786500-26B8-412B-B5AB-6B965CE1218F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {55786500-26B8-412B-B5AB-6B965CE1218F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal Added: trunk/plugins/My Status/My Status.suo =================================================================== (Binary files differ) Property changes on: trunk/plugins/My Status/My Status.suo ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/My Status/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/My Status/Properties/AssemblyInfo.cs (rev 0) +++ trunk/plugins/My Status/Properties/AssemblyInfo.cs 2007-01-31 06:18:14 UTC (rev 58) @@ -0,0 +1,35 @@ +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("GUIStatus")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("GUIStatus")] +[assembly: AssemblyCopyright("Copyright © 2006")] +[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)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("0aa10a66-969d-4542-840b-7a82b7cd69ad")] + +// 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.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Added: trunk/plugins/My Status/SetupForm.cs =================================================================== --- trunk/plugins/My Status/SetupForm.cs (rev 0) +++ trunk/plugins/My Status/SetupForm.cs 2007-01-31 06:18:14 UTC (rev 58) @@ -0,0 +1,1533 @@ +#region Copyright (C) 2005-2006 Team MediaPortal + +/* + * Copyright (C) 2005-2006 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#endregion + +using System; +using System.Drawing; +using System.Collections; +using System.Management; +using System.ComponentModel; +using System.Windows.Forms; +using MediaPortal.GUI.Library; +using mbm5.MBMInfo; + +namespace GUIStatus +{ + /// <summary> + /// Summary description for SetupForm. + /// </summary> + public class SetupForm : System.Windows.Forms.Form, ISetupForm, IShowPlugin + { + private int[] aFan = { 0, 0, 0, 0 }; + private int[] aMhz = { 0, 0, 0, 0 }; + private int[] aPercentage = { 0, 0, 0, 0 }; + private int[] aTemperature = { 0, 0, 0, 0 }; + private int[] aVolt = { 0, 0, 0, 0, 0, 0, 0, 0 }; + private int statusVer = 1; + private bool isMbm = false; + private mbmSharedData MBMInfo = new mbmSharedData(); + private MediaPortal.UserInterface.Controls.MPLabel label1; + private MediaPortal.UserInterface.Controls.MPLabel label2; + private MediaPortal.UserInterface.Controls.MPLabel label3; + private MediaPortal.UserInterface.Controls.MPLabel label4; + private MediaPortal.UserInterface.Controls.MPLabel label5; + private MediaPortal.UserInterface.Controls.MPLabel label6; + private MediaPortal.UserInterface.Controls.MPLabel label9; + private MediaPortal.UserInterface.Controls.MPLabel label10; + private MediaPortal.UserInterface.Controls.MPLabel label11; + private MediaPortal.UserInterface.Controls.MPLabel label12; + private MediaPortal.UserInterface.Controls.MPGroupBox groupBox1; + private MediaPortal.UserInterface.Controls.MPButton button1; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox1; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox2; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox3; + private MediaPortal.UserInterface.Controls.MPLabel label7; + private MediaPortal.UserInterface.Controls.MPLabel label8; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox4; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox5; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox6; + private MediaPortal.UserInterface.Controls.MPLabel label13; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox7; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox8; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox9; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox10; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox11; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox12; + private MediaPortal.UserInterface.Controls.MPLabel label14; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox15; + private MediaPortal.UserInterface.Controls.MPLabel label15; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox13; + private MediaPortal.UserInterface.Controls.MPButton button2; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox14; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox16; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox17; + private MediaPortal.UserInterface.Controls.MPGroupBox groupBox2; + private MediaPortal.UserInterface.Controls.MPTextBox textBox1; + private MediaPortal.UserInterface.Controls.MPLabel label16; + private MediaPortal.UserInterface.Controls.MPButton button3; + private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1; + private MediaPortal.UserInterface.Controls.MPLabel label17; + private MediaPortal.UserInterface.Controls.MPTextBox textBox2; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox18; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox19; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox20; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox21; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox22; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox23; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox24; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox25; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox26; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox27; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox28; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox29; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox30; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox31; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox32; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox33; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox34; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox35; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox36; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox37; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox38; + private MediaPortal.UserInterface.Controls.MPLabel label18; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox39; + private MediaPortal.UserInterface.Controls.MPLabel label19; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox40; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBox41; + private MediaPortal.UserInterface.Controls.MPLabel label20; + private MediaPortal.UserInterface.Controls.MPComboBox comboBox1; + private MediaPortal.UserInterface.Controls.MPGroupBox groupBox3; + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.Container components = null; + + public SetupForm() + { + // + // Required for Windows Form Designer support + // + InitializeComponent(); + LoadSettings(); + // + // TODO... [truncated message content] |
From: <ze...@us...> - 2007-01-30 23:29:58
|
Revision: 57 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=57&view=rev Author: zebons Date: 2007-01-30 15:29:50 -0800 (Tue, 30 Jan 2007) Log Message: ----------- Removed Paths: ------------- trunk/plugins/MyFilms/MesFilms.xml Deleted: trunk/plugins/MyFilms/MesFilms.xml =================================================================== --- trunk/plugins/MyFilms/MesFilms.xml 2007-01-30 23:25:07 UTC (rev 56) +++ trunk/plugins/MyFilms/MesFilms.xml 2007-01-30 23:29:50 UTC (rev 57) @@ -1,506 +0,0 @@ -<window> - <id>7986</id> - <defaultcontrol>1000</defaultcontrol> - <allowoverlay>yes</allowoverlay> - <controls> - <control> - <type>image</type> - <description>BackGround</description> - <id>1</id> - <posX>0</posX> - <posY>0</posY> - <texture>background.png</texture> - </control> - <control> - <type>group</type> - <description>group element</description> - <id>27</id> - <posX>80</posX> - <posY>80</posY> - <width>198</width> - <height>176</height> - <animation>FlyInFromLeft</animation> - <mpe> - <layout>Grid</layout> - <spring>no</spring> - <spacing>0</spacing> - <padding> - <top>0</top> - <right>0</right> - <bottom>0</bottom> - <left>0</left> - </padding> - </mpe> - <control> - <type>button</type> - <description>Return</description> - <id>7</id> - <posX>84</posX> - <posY>220</posY> - <visible>no</visible> - <label>712</label> - </control> - <control> - <type>sortbutton</type> - <id>3</id> - <posX>84</posX> - <posY>118</posY> - <onleft>3</onleft> - <onright>50</onright> - <onup>2</onup> - <ondown>5</ondown> - <textureAscendingFocused>arrow_round_up_focus.png</textureAscendingFocused> - <font>font13</font> - <textureFocus>menu_list_focus.png</textureFocus> - <textYOff>5</textYOff> - <textXOff>10</textXOff> - <disabledcolor>60ffffff</disabledcolor> - <label>103</label> - <offsetSortButtonY>8</offsetSortButtonY> - <offsetSortButtonX>165</offsetSortButtonX> - <textcolor>White</textcolor> - <textureNoFocus>menu_list_nofocus.png</textureNoFocus> - <textureAscending>arrow_round_up_nofocus.png</textureAscending> - <textureDescending>arrow_round_down_nofocus.png</textureDescending> - <textureDescendingFocused>arrow_round_down_focus.png</textureDescendingFocused> - </control> - <control> - <type>button</type> - <description>Switch view</description> - <id>5</id> - <posX>84</posX> - <posY>152</posY> - <label>457</label> - </control> - <control> - <type>button</type> - <description>Play Film</description> - <id>6</id> - <posX>84</posX> - <posY>186</posY> - <visible>no</visible> - <label>341</label> - </control> - </control> - <control> - <type>image</type> - <description>an Image</description> - <id>1</id> - <posX>75</posX> - <posY>370</posY> - <texture>hover_my videos.png</texture> - </control> - <control> - <type>image</type> - <id>28</id> - <posX>8</posX> - <posY>48</posY> - <texture>videos_logo.png</texture> - </control> - <control> - <type>group</type> - <description>composite control consisting of a list control and a thumbnail panel</description> - <id>1000</id> - <posX>272</posX> - <posY>56</posY> - <width>444</width> - <height>512</height> - <animation>None</animation> - <mpe> - <layout>Grid</layout> - <spring>no</spring> - <spacing>0</spacing> - <padding> - <top>0</top> - <right>0</right> - <bottom>0</bottom> - <left>0</left> - </padding> - </mpe> - <control> - <type>image</type> - <id>1065</id> - <posX>342</posX> - <posY>536</posY> - <width>14</width> - <height>14</height> - <visible>no</visible> - <texture>star.png</texture> - <centered>yes</centered> - </control> - <control> - <type>textboxscrollup</type> - <description>Biography value</description> - <id>2040</id> - <posX>447</posX> - <posY>256</posY> - <width>240</width> - <height>112</height> - <colordiffuse>ffffffff</colordiffuse> - <visible>no</visible> - <textcolor>FFFFFFFF</textcolor> - <label>-</label> - <font>font12</font> - </control> - <control> - <type>textboxscrollup</type> - <description>Biography value</description> - <id>2050</id> - <posX>304</posX> - <posY>368</posY> - <width>384</width> - <height>152</height> - <colordiffuse>ffffffff</colordiffuse> - <visible>no</visible> - <textcolor>FFFFFFFF</textcolor> - <label>#Actor.Biography</label> - <font>font12</font> - </control> - <control> - <type>label</type> - <id>2030</id> - <posX>617</posX> - <posY>106</posY> - <colordiffuse>ffe0e0e0</colordiffuse> - <visible>no</visible> - <label>Note :</label> - <textcolor>ffc0c0c0</textcolor> - <disabledcolor>ffc0c0c0</disabledcolor> - </control> - <control> - <type>label</type> - <id>2031</id> - <posX>447</posX> - <posY>146</posY> - <visible>no</visible> - <label>Année :</label> - <textcolor>ffc0c0c0</textcolor> - <disabledcolor>ffc0c0c0</disabledcolor> - </control> - <control> - <type>label</type> - <id>2032</id> - <posX>447</posX> - <posY>171</posY> - <visible>no</visible> - <label>Genre : </label> - <textcolor>ffc0c0c0</textcolor> - <disabledcolor>ffc0c0c0</disabledcolor> - </control> - <control> - <type>label</type> - <id>2060</id> - <posX>672</posX> - <posY>106</posY> - <visible>no</visible> - <label>6</label> - <textcolor>ffff8000</textcolor> - <disabledcolor>ffff8000</disabledcolor> - </control> - <control> - <type>label</type> - <id>2033</id> - <posX>447</posX> - <posY>196</posY> - <visible>no</visible> - <label>Pays : </label> - <textcolor>ffc0c0c0</textcolor> - <disabledcolor>ffc0c0c0</disabledcolor> - </control> - <control> - <type>label</type> - <id>2038</id> - <posX>312</posX> - <posY>321</posY> - <visible>no</visible> - <label>durée :</label> - <font>font10</font> - </control> - <control> - <type>label</type> - <id>2061</id> - <posX>542</posX> - <posY>146</posY> - <visible>no</visible> - <label>6</label> - </control> - <control> - <type>label</type> - <id>2068</id> - <posX>372</posX> - <posY>321</posY> - <visible>no</visible> - <label>6</label> - <font>font10</font> - </control> - <control> - <type>label</type> - <id>2034</id> - <posX>447</posX> - <posY>221</posY> - <visible>no</visible> - <label>Réalisateur :</label> - <textcolor>ffc0c0c0</textcolor> - <disabledcolor>ffc0c0c0</disabledcolor> - </control> - <control> - <type>image</type> - <id>1064</id> - <posX>326</posX> - <posY>536</posY> - <width>14</width> - <height>14</height> - <visible>no</visible> - <texture>star.png</texture> - <centered>yes</centered> - </control> - <control> - <type>image</type> - <id>1063</id> - <posX>310</posX> - <posY>536</posY> - <width>14</width> - <height>14</height> - <visible>no</visible> - <texture>star.png</texture> - <centered>yes</centered> - </control> - <control> - <type>image</type> - <id>1062</id> - <posX>294</posX> - <posY>536</posY> - <width>14</width> - <height>14</height> - <visible>no</visible> - <texture>star.png</texture> - <centered>yes</centered> - </control> - <control> - <type>image</type> - <id>1061</id> - <posX>278</posX> - <posY>536</posY> - <width>14</width> - <height>14</height> - <visible>no</visible> - <texture>star.png</texture> - <centered>yes</centered> - </control> - <control> - <type>textboxscrollup</type> - <description>Biography value</description> - <id>1025</id> - <posX>368</posX> - <posY>424</posY> - <width>342</width> - <height>96</height> - <colordiffuse>ffffffff</colordiffuse> - <textcolor>FFFFFFFF</textcolor> - <label>-</label> - <font>font12</font> - </control> - <control> - <type>listcontrol</type> - <description>listcontrol</description> - <id>1026</id> - <posX>296</posX> - <posY>64</posY> - <width>409</width> - <height>384</height> - <onleft>2</onleft> - <onright>2</onright> - <onup>2</onup> - <ondown>2</ondown> - <font>font13</font> - <textcolor2>ffffffff</textcolor2> - <textureDown>page_down_nofocus.png</textureDown> - <spinPosY>530</spinPosY> - <remoteColor>ffFFA075</remoteColor> - <textureHeight>32</textureHeight> - <spinHeight>27</spinHeight> - <textureUpFocus>page_up_focus.png</textureUpFocus> - <textXOff>5</textXOff> - <textYOff>4</textYOff> - <spinColor>ffffffff</spinColor> - <spinWidth>26</spinWidth> - <shadedColor>20ffffff</shadedColor> - <unfocusedAlpha>170</unfocusedAlpha> - <textYOff2>4</textYOff2> - <IconXOff>8</IconXOff> - <textureNoFocus>list_sub_nofocus.png</textureNoFocus> - <textureDownFocus>page_down_focus.png</textureDownFocus> - <textcolor>ffffffff</textcolor> - <selectedColor>FFF8BC70</selectedColor> - <image>folder_focus.png</image> - <IconYOff>8</IconYOff> - <spinPosX>590</spinPosX> - <textXOff2>0</textXOff2> - <suffix>|</suffix> - <textureUp>page_up_nofocus.png</textureUp> - <downloadColor>ff80ff80</downloadColor> - <textcolor3>ffffffff</textcolor3> - <textureFocus>list_sub_focus.png</textureFocus> - </control> - <control> - <type>label</type> - <id>1024</id> - <posX>332</posX> - <posY>552</posY> - <visible>no</visible> - <label>6</label> - <font>font12</font> - </control> - <control> - <type>image</type> - <id>1021</id> - <posX>272</posX> - <posY>416</posY> - <width>88</width> - <height>117</height> - <texture>-</texture> - </control> - <control> - <type>label</type> - <id>1022</id> - <posX>280</posX> - <posY>552</posY> - <visible>no</visible> - <label>6</label> - <font>font12</font> - </control> - <control> - <type>image</type> - <id>1051</id> - <posX>278</posX> - <posY>536</posY> - <width>14</width> - <height>14</height> - <visible>no</visible> - <texture>greystar.png</texture> - <centered>yes</centered> - </control> - <control> - <type>image</type> - <id>1052</id> - <posX>294</posX> - <posY>536</posY> - <width>14</width> - <height>14</height> - <visible>no</visible> - <texture>greystar.png</texture> - <centered>yes</centered> - </control> - <control> - <type>image</type> - <id>1053</id> - <posX>310</posX> - <posY>536</posY> - <width>14</width> - <height>14</height> - <visible>no</visible> - <texture>greystar.png</texture> - <centered>yes</centered> - </control> - <control> - <type>image</type> - <id>1054</id> - <posX>326</posX> - <posY>536</posY> - <width>14</width> - <height>14</height> - <visible>no</visible> - <texture>greystar.png</texture> - <centered>yes</centered> - </control> - <control> - <type>image</type> - <id>1055</id> - <posX>342</posX> - <posY>536</posY> - <width>14</width> - <height>14</height> - <visible>no</visible> - <texture>greystar.png</texture> - <centered>yes</centered> - </control> - <control> - <type>image</type> - <id>2024</id> - <posX>304</posX> - <posY>144</posY> - <width>120</width> - <height>176</height> - <visible>no</visible> - <texture>-</texture> - </control> - <control> - <type>fadelabel</type> - <id>2026</id> - <posX>336</posX> - <posY>104</posY> - <visible>no</visible> - <label>label</label> - <textcolor>ffc0c0c0</textcolor> - <disabledcolor>ffc0c0c0</disabledcolor> - </control> - <control> - <type>fadelabel</type> - <id>2025</id> - <posX>320</posX> - <posY>69</posY> - <visible>no</visible> - <label>label</label> - <textcolor>ffffff00</textcolor> - <disabledcolor>ffffff00</disabledcolor> - </control> - <control> - <type>image</type> - <id>2027</id> - <posX>296</posX> - <posY>64</posY> - <width>384</width> - <height>32</height> - <visible>no</visible> - <texture>menu_list_focus.png</texture> - </control> - <control> - <type>fadelabel</type> - <id>2062</id> - <posX>542</posX> - <posY>171</posY> - <visible>no</visible> - <label>label</label> - <disabledcolor>ff808080</disabledcolor> - </control> - <control> - <type>fadelabel</type> - <id>2063</id> - <posX>542</posX> - <posY>196</posY> - <visible>no</visible> - <label>label</label> - <disabledcolor>ff808080</disabledcolor> - </control> - <control> - <type>fadelabel</type> - <id>2064</id> - <posX>542</posX> - <posY>221</posY> - <visible>no</visible> - <label>label</label> - <disabledcolor>ff808080</disabledcolor> - </control> - </control> - <control> - <type>fadelabel</type> - <id>24</id> - <posX>700</posX> - <posY>40</posY> - <label>label</label> - <align>right</align> - <textcolor>ffc0c0c0</textcolor> - <disabledcolor>ffc0c0c0</disabledcolor> - </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: <ze...@us...> - 2007-01-30 23:25:44
|
Revision: 56 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=56&view=rev Author: zebons Date: 2007-01-30 15:25:07 -0800 (Tue, 30 Jan 2007) Log Message: ----------- Added Paths: ----------- trunk/plugins/MyFilms/ trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs trunk/plugins/MyFilms/AntMovieCatalog.cs trunk/plugins/MyFilms/AntMovieCatalog.xsc trunk/plugins/MyFilms/AntMovieCatalog.xsd trunk/plugins/MyFilms/AntMovieCatalog.xss trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilms.csproj trunk/plugins/MyFilms/MesFilms.sln trunk/plugins/MyFilms/MesFilms.suo trunk/plugins/MyFilms/MesFilms.xml trunk/plugins/MyFilms/MesFilmsDetail.cs trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs trunk/plugins/MyFilms/MesFilmsSetup.cs trunk/plugins/MyFilms/MesFilmsSetup.resx trunk/plugins/MyFilms/Properties/ trunk/plugins/MyFilms/Properties/AssemblyInfo.cs trunk/plugins/MyFilms/skin/ trunk/plugins/MyFilms/skin/BlackMyst/ trunk/plugins/MyFilms/skin/BlackMyst/Media/ trunk/plugins/MyFilms/skin/BlackMyst/Media/Films_DD.png trunk/plugins/MyFilms/skin/BlackMyst/Media/Films_first_focus.png trunk/plugins/MyFilms/skin/BlackMyst/Media/Films_first_nofocus.png trunk/plugins/MyFilms/skin/BlackMyst/Media/Films_last_focus.png trunk/plugins/MyFilms/skin/BlackMyst/Media/Films_last_nofocus.png trunk/plugins/MyFilms/skin/BlackMyst/Media/Films_next_focus.PNG trunk/plugins/MyFilms/skin/BlackMyst/Media/Films_next_nofocus.PNG trunk/plugins/MyFilms/skin/BlackMyst/Media/Films_prior_focus.PNG trunk/plugins/MyFilms/skin/BlackMyst/Media/Films_prior_nofocus.PNG trunk/plugins/MyFilms/skin/BlackMyst/Media/Thumbs.db trunk/plugins/MyFilms/skin/BlackMyst/Media/amclogo.png trunk/plugins/MyFilms/skin/BlackMyst/Media/hover_my Films.png trunk/plugins/MyFilms/skin/BlackMyst/MesFilms.xml trunk/plugins/MyFilms/skin/BlackMyst/MesFilmsDetail.xml trunk/plugins/MyFilms/skin/BlueTwo/ trunk/plugins/MyFilms/skin/BlueTwo/Media/ trunk/plugins/MyFilms/skin/BlueTwo/Media/Films_DD.png trunk/plugins/MyFilms/skin/BlueTwo/Media/Films_first_focus.png trunk/plugins/MyFilms/skin/BlueTwo/Media/Films_first_nofocus.png trunk/plugins/MyFilms/skin/BlueTwo/Media/Films_last_focus.png trunk/plugins/MyFilms/skin/BlueTwo/Media/Films_last_nofocus.png trunk/plugins/MyFilms/skin/BlueTwo/Media/Films_next_focus.PNG trunk/plugins/MyFilms/skin/BlueTwo/Media/Films_next_nofocus.PNG trunk/plugins/MyFilms/skin/BlueTwo/Media/Films_prior_focus.PNG trunk/plugins/MyFilms/skin/BlueTwo/Media/Films_prior_nofocus.PNG trunk/plugins/MyFilms/skin/BlueTwo/Media/Thumbs.db trunk/plugins/MyFilms/skin/BlueTwo/Media/amclogo.png trunk/plugins/MyFilms/skin/BlueTwo/Media/hover_my films.png trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml trunk/plugins/MyFilms/skin/BlueTwo/MesFilmsDetail.xml trunk/plugins/MyFilms/skin/BlueTwo wide/ trunk/plugins/MyFilms/skin/BlueTwo wide/Media/ trunk/plugins/MyFilms/skin/BlueTwo wide/Media/Films_DD.png trunk/plugins/MyFilms/skin/BlueTwo wide/Media/Films_first_focus.png trunk/plugins/MyFilms/skin/BlueTwo wide/Media/Films_first_nofocus.png trunk/plugins/MyFilms/skin/BlueTwo wide/Media/Films_last_focus.png trunk/plugins/MyFilms/skin/BlueTwo wide/Media/Films_last_nofocus.png trunk/plugins/MyFilms/skin/BlueTwo wide/Media/Films_next_focus.PNG trunk/plugins/MyFilms/skin/BlueTwo wide/Media/Films_next_nofocus.PNG trunk/plugins/MyFilms/skin/BlueTwo wide/Media/Films_prior_focus.PNG trunk/plugins/MyFilms/skin/BlueTwo wide/Media/Films_prior_nofocus.PNG trunk/plugins/MyFilms/skin/BlueTwo wide/Media/amclogo.png trunk/plugins/MyFilms/skin/BlueTwo wide/Media/hover_my films.png trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms.xml trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilmsDetail.xml trunk/plugins/MyFilms/skin/MePo Green Wide/ trunk/plugins/MyFilms/skin/MePo Green Wide/Media/ trunk/plugins/MyFilms/skin/MePo Green Wide/Media/FilmsVideo.png trunk/plugins/MyFilms/skin/MePo Green Wide/Media/Films_DD.png trunk/plugins/MyFilms/skin/MePo Green Wide/Media/Films_first_focus.png trunk/plugins/MyFilms/skin/MePo Green Wide/Media/Films_first_nofocus.png trunk/plugins/MyFilms/skin/MePo Green Wide/Media/Films_last_focus.png trunk/plugins/MyFilms/skin/MePo Green Wide/Media/Films_last_nofocus.png trunk/plugins/MyFilms/skin/MePo Green Wide/Media/Films_next_focus.png trunk/plugins/MyFilms/skin/MePo Green Wide/Media/Films_next_nofocus.png trunk/plugins/MyFilms/skin/MePo Green Wide/Media/Films_prior_focus.png trunk/plugins/MyFilms/skin/MePo Green Wide/Media/Films_prior_nofocus.png trunk/plugins/MyFilms/skin/MePo Green Wide/Media/Thumbs.db trunk/plugins/MyFilms/skin/MePo Green Wide/Media/amclogo.png trunk/plugins/MyFilms/skin/MePo Green Wide/Media/hover_Films.xml trunk/plugins/MyFilms/skin/MePo Green Wide/MesFilms.xml trunk/plugins/MyFilms/skin/MePo Green Wide/MesFilmsDetail.xml trunk/plugins/MyFilms/skin/MePo Green Wide/Thumbs.db trunk/plugins/MyFilms/skin/Project Mayhem 3/ trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/ trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/Back_films.png trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/Films_DD.png trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/Films_first_focus.png trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/Films_first_nofocus.png trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/Films_last_focus.png trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/Films_last_nofocus.png trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/Films_next_focus.PNG trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/Films_next_nofocus.PNG trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/Films_prior_focus.PNG trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/Films_prior_nofocus.PNG trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/amclogo.png trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/hover_my films.png trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilms.xml trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilmsDetail.xml Added: trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs =================================================================== --- trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs (rev 0) +++ trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs 2007-01-30 23:25:07 UTC (rev 56) @@ -0,0 +1,2558 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// Ce code a été généré par un outil. +// Version du runtime :2.0.50727.42 +// +// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si +// le code est régénéré. +// </auto-generated> +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace MesFilms { + using System; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [Serializable()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.ComponentModel.ToolboxItem(true)] + [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [System.Xml.Serialization.XmlRootAttribute("AntMovieCatalog")] + [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class AntMovieCatalog : System.Data.DataSet { + + private CatalogDataTable tableCatalog; + + private ContentsDataTable tableContents; + + private MovieDataTable tableMovie; + + private System.Data.DataRelation relationCatalog_Contents; + + private System.Data.DataRelation relationContents_Movie; + + private System.Data.SchemaSerializationMode _schemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AntMovieCatalog() { + this.BeginInit(); + this.InitClass(); + System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + base.Relations.CollectionChanged += schemaChangedHandler; + this.EndInit(); + this.InitExpressions(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected AntMovieCatalog(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context, false) { + if ((this.IsBinarySerialized(info, context) == true)) { + this.InitVars(false); + System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + this.Tables.CollectionChanged += schemaChangedHandler1; + this.Relations.CollectionChanged += schemaChangedHandler1; + return; + } + string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); + if ((this.DetermineSchemaSerializationMode(info, context) == System.Data.SchemaSerializationMode.IncludeSchema)) { + System.Data.DataSet ds = new System.Data.DataSet(); + ds.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema))); + if ((ds.Tables["Catalog"] != null)) { + base.Tables.Add(new CatalogDataTable(ds.Tables["Catalog"])); + } + if ((ds.Tables["Contents"] != null)) { + base.Tables.Add(new ContentsDataTable(ds.Tables["Contents"])); + } + if ((ds.Tables["Movie"] != null)) { + base.Tables.Add(new MovieDataTable(ds.Tables["Movie"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema))); + this.InitExpressions(); + } + this.GetSerializationData(info, context); + System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + this.Relations.CollectionChanged += schemaChangedHandler; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.Browsable(false)] + [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)] + public CatalogDataTable Catalog { + get { + return this.tableCatalog; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.Browsable(false)] + [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)] + public ContentsDataTable Contents { + get { + return this.tableContents; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.Browsable(false)] + [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)] + public MovieDataTable Movie { + get { + return this.tableMovie; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.BrowsableAttribute(true)] + [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override System.Data.SchemaSerializationMode SchemaSerializationMode { + get { + return this._schemaSerializationMode; + } + set { + this._schemaSerializationMode = value; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new System.Data.DataTableCollection Tables { + get { + return base.Tables; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new System.Data.DataRelationCollection Relations { + get { + return base.Relations; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void InitializeDerivedDataSet() { + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override System.Data.DataSet Clone() { + AntMovieCatalog cln = ((AntMovieCatalog)(base.Clone())); + cln.InitVars(); + cln.InitExpressions(); + cln.SchemaSerializationMode = this.SchemaSerializationMode; + return cln; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override bool ShouldSerializeTables() { + return false; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override bool ShouldSerializeRelations() { + return false; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void ReadXmlSerializable(System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == System.Data.SchemaSerializationMode.IncludeSchema)) { + this.Reset(); + System.Data.DataSet ds = new System.Data.DataSet(); + ds.ReadXml(reader); + if ((ds.Tables["Catalog"] != null)) { + base.Tables.Add(new CatalogDataTable(ds.Tables["Catalog"])); + } + if ((ds.Tables["Contents"] != null)) { + base.Tables.Add(new ContentsDataTable(ds.Tables["Contents"])); + } + if ((ds.Tables["Movie"] != null)) { + base.Tables.Add(new MovieDataTable(ds.Tables["Movie"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXml(reader); + this.InitVars(); + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() { + System.IO.MemoryStream stream = new System.IO.MemoryStream(); + this.WriteXmlSchema(new System.Xml.XmlTextWriter(stream, null)); + stream.Position = 0; + return System.Xml.Schema.XmlSchema.Read(new System.Xml.XmlTextReader(stream), null); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.InitVars(true); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars(bool initTable) { + this.tableCatalog = ((CatalogDataTable)(base.Tables["Catalog"])); + if ((initTable == true)) { + if ((this.tableCatalog != null)) { + this.tableCatalog.InitVars(); + } + } + this.tableContents = ((ContentsDataTable)(base.Tables["Contents"])); + if ((initTable == true)) { + if ((this.tableContents != null)) { + this.tableContents.InitVars(); + } + } + this.tableMovie = ((MovieDataTable)(base.Tables["Movie"])); + if ((initTable == true)) { + if ((this.tableMovie != null)) { + this.tableMovie.InitVars(); + } + } + this.relationCatalog_Contents = this.Relations["Catalog_Contents"]; + this.relationContents_Movie = this.Relations["Contents_Movie"]; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.DataSetName = "AntMovieCatalog"; + this.Prefix = ""; + this.EnforceConstraints = true; + this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + this.tableCatalog = new CatalogDataTable(); + base.Tables.Add(this.tableCatalog); + this.tableContents = new ContentsDataTable(); + base.Tables.Add(this.tableContents); + this.tableMovie = new MovieDataTable(false); + base.Tables.Add(this.tableMovie); + System.Data.ForeignKeyConstraint fkc; + fkc = new System.Data.ForeignKeyConstraint("Catalog_Contents", new System.Data.DataColumn[] { + this.tableCatalog.Catalog_IdColumn}, new System.Data.DataColumn[] { + this.tableContents.Catalog_IdColumn}); + this.tableContents.Constraints.Add(fkc); + fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; + fkc.DeleteRule = System.Data.Rule.Cascade; + fkc.UpdateRule = System.Data.Rule.Cascade; + fkc = new System.Data.ForeignKeyConstraint("Contents_Movie", new System.Data.DataColumn[] { + this.tableContents.Contents_IdColumn}, new System.Data.DataColumn[] { + this.tableMovie.Contents_IdColumn}); + this.tableMovie.Constraints.Add(fkc); + fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; + fkc.DeleteRule = System.Data.Rule.Cascade; + fkc.UpdateRule = System.Data.Rule.Cascade; + this.relationCatalog_Contents = new System.Data.DataRelation("Catalog_Contents", new System.Data.DataColumn[] { + this.tableCatalog.Catalog_IdColumn}, new System.Data.DataColumn[] { + this.tableContents.Catalog_IdColumn}, false); + this.relationCatalog_Contents.Nested = true; + this.Relations.Add(this.relationCatalog_Contents); + this.relationContents_Movie = new System.Data.DataRelation("Contents_Movie", new System.Data.DataColumn[] { + this.tableContents.Contents_IdColumn}, new System.Data.DataColumn[] { + this.tableMovie.Contents_IdColumn}, false); + this.relationContents_Movie.Nested = true; + this.Relations.Add(this.relationContents_Movie); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeCatalog() { + return false; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeContents() { + return false; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeMovie() { + return false; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) { + if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) { + this.InitVars(); + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs) { + AntMovieCatalog ds = new AntMovieCatalog(); + System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType(); + System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence(); + xs.Add(ds.GetSchemaSerializable()); + System.Xml.Schema.XmlSchemaAny any = new System.Xml.Schema.XmlSchemaAny(); + any.Namespace = ds.Namespace; + sequence.Items.Add(any); + type.Particle = sequence; + return type; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitExpressions() { + this.Movie.DateAddedColumn.Expression = "Convert(Date,\'System.DateTime\')"; + } + + public delegate void CatalogRowChangeEventHandler(object sender, CatalogRowChangeEvent e); + + public delegate void ContentsRowChangeEventHandler(object sender, ContentsRowChangeEvent e); + + public delegate void MovieRowChangeEventHandler(object sender, MovieRowChangeEvent e); + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [System.Serializable()] + [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class CatalogDataTable : System.Data.DataTable, System.Collections.IEnumerable { + + private System.Data.DataColumn columnAntMovieCatalog_Id; + + private System.Data.DataColumn columnProperties; + + private System.Data.DataColumn columnCatalog_Id; + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public CatalogDataTable() { + this.TableName = "Catalog"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal CatalogDataTable(System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected CatalogDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn AntMovieCatalog_IdColumn { + get { + return this.columnAntMovieCatalog_Id; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn PropertiesColumn { + get { + return this.columnProperties; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn Catalog_IdColumn { + get { + return this.columnCatalog_Id; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public CatalogRow this[int index] { + get { + return ((CatalogRow)(this.Rows[index])); + } + } + + public event CatalogRowChangeEventHandler CatalogRowChanging; + + public event CatalogRowChangeEventHandler CatalogRowChanged; + + public event CatalogRowChangeEventHandler CatalogRowDeleting; + + public event CatalogRowChangeEventHandler CatalogRowDeleted; + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddCatalogRow(CatalogRow row) { + this.Rows.Add(row); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public CatalogRow AddCatalogRow(int AntMovieCatalog_Id, string Properties) { + CatalogRow rowCatalogRow = ((CatalogRow)(this.NewRow())); + rowCatalogRow.ItemArray = new object[] { + AntMovieCatalog_Id, + Properties, + null}; + this.Rows.Add(rowCatalogRow); + return rowCatalogRow; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public virtual System.Collections.IEnumerator GetEnumerator() { + return this.Rows.GetEnumerator(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override System.Data.DataTable Clone() { + CatalogDataTable cln = ((CatalogDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Data.DataTable CreateInstance() { + return new CatalogDataTable(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnAntMovieCatalog_Id = base.Columns["AntMovieCatalog_Id"]; + this.columnProperties = base.Columns["Properties"]; + this.columnCatalog_Id = base.Columns["Catalog_Id"]; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnAntMovieCatalog_Id = new System.Data.DataColumn("AntMovieCatalog_Id", typeof(int), null, System.Data.MappingType.Hidden); + base.Columns.Add(this.columnAntMovieCatalog_Id); + this.columnProperties = new System.Data.DataColumn("Properties", typeof(string), null, System.Data.MappingType.Element); + base.Columns.Add(this.columnProperties); + this.columnCatalog_Id = new System.Data.DataColumn("Catalog_Id", typeof(int), null, System.Data.MappingType.Hidden); + base.Columns.Add(this.columnCatalog_Id); + this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] { + this.columnCatalog_Id}, true)); + this.columnAntMovieCatalog_Id.Namespace = ""; + this.columnCatalog_Id.AutoIncrement = true; + this.columnCatalog_Id.AllowDBNull = false; + this.columnCatalog_Id.Unique = true; + this.columnCatalog_Id.Namespace = ""; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public CatalogRow NewCatalogRow() { + return ((CatalogRow)(this.NewRow())); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) { + return new CatalogRow(builder); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Type GetRowType() { + return typeof(CatalogRow); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.CatalogRowChanged != null)) { + this.CatalogRowChanged(this, new CatalogRowChangeEvent(((CatalogRow)(e.Row)), e.Action)); + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.CatalogRowChanging != null)) { + this.CatalogRowChanging(this, new CatalogRowChangeEvent(((CatalogRow)(e.Row)), e.Action)); + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.CatalogRowDeleted != null)) { + this.CatalogRowDeleted(this, new CatalogRowChangeEvent(((CatalogRow)(e.Row)), e.Action)); + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.CatalogRowDeleting != null)) { + this.CatalogRowDeleting(this, new CatalogRowChangeEvent(((CatalogRow)(e.Row)), e.Action)); + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveCatalogRow(CatalogRow row) { + this.Rows.Remove(row); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) { + System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType(); + System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence(); + AntMovieCatalog ds = new AntMovieCatalog(); + xs.Add(ds.GetSchemaSerializable()); + System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "CatalogDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + return type; + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [System.Serializable()] + [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class ContentsDataTable : System.Data.DataTable, System.Collections.IEnumerable { + + private System.Data.DataColumn columnContents_Id; + + private System.Data.DataColumn columnCatalog_Id; + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ContentsDataTable() { + this.TableName = "Contents"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal ContentsDataTable(System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected ContentsDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn Contents_IdColumn { + get { + return this.columnContents_Id; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn Catalog_IdColumn { + get { + return this.columnCatalog_Id; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ContentsRow this[int index] { + get { + return ((ContentsRow)(this.Rows[index])); + } + } + + public event ContentsRowChangeEventHandler ContentsRowChanging; + + public event ContentsRowChangeEventHandler ContentsRowChanged; + + public event ContentsRowChangeEventHandler ContentsRowDeleting; + + public event ContentsRowChangeEventHandler ContentsRowDeleted; + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddContentsRow(ContentsRow row) { + this.Rows.Add(row); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ContentsRow AddContentsRow(CatalogRow parentCatalogRowByCatalog_Contents) { + ContentsRow rowContentsRow = ((ContentsRow)(this.NewRow())); + rowContentsRow.ItemArray = new object[] { + null, + parentCatalogRowByCatalog_Contents[2]}; + this.Rows.Add(rowContentsRow); + return rowContentsRow; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public virtual System.Collections.IEnumerator GetEnumerator() { + return this.Rows.GetEnumerator(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override System.Data.DataTable Clone() { + ContentsDataTable cln = ((ContentsDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Data.DataTable CreateInstance() { + return new ContentsDataTable(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnContents_Id = base.Columns["Contents_Id"]; + this.columnCatalog_Id = base.Columns["Catalog_Id"]; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnContents_Id = new System.Data.DataColumn("Contents_Id", typeof(int), null, System.Data.MappingType.Hidden); + base.Columns.Add(this.columnContents_Id); + this.columnCatalog_Id = new System.Data.DataColumn("Catalog_Id", typeof(int), null, System.Data.MappingType.Hidden); + base.Columns.Add(this.columnCatalog_Id); + this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] { + this.columnContents_Id}, true)); + this.columnContents_Id.AutoIncrement = true; + this.columnContents_Id.AllowDBNull = false; + this.columnContents_Id.Unique = true; + this.columnContents_Id.Namespace = ""; + this.columnCatalog_Id.Namespace = ""; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public ContentsRow NewContentsRow() { + return ((ContentsRow)(this.NewRow())); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) { + return new ContentsRow(builder); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Type GetRowType() { + return typeof(ContentsRow); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.ContentsRowChanged != null)) { + this.ContentsRowChanged(this, new ContentsRowChangeEvent(((ContentsRow)(e.Row)), e.Action)); + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.ContentsRowChanging != null)) { + this.ContentsRowChanging(this, new ContentsRowChangeEvent(((ContentsRow)(e.Row)), e.Action)); + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.ContentsRowDeleted != null)) { + this.ContentsRowDeleted(this, new ContentsRowChangeEvent(((ContentsRow)(e.Row)), e.Action)); + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.ContentsRowDeleting != null)) { + this.ContentsRowDeleting(this, new ContentsRowChangeEvent(((ContentsRow)(e.Row)), e.Action)); + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void RemoveContentsRow(ContentsRow row) { + this.Rows.Remove(row); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) { + System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType(); + System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence(); + AntMovieCatalog ds = new AntMovieCatalog(); + xs.Add(ds.GetSchemaSerializable()); + System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "ContentsDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + return type; + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [System.Serializable()] + [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class MovieDataTable : System.Data.DataTable, System.Collections.IEnumerable { + + private System.Data.DataColumn columnNumber; + + private System.Data.DataColumn columnChecked; + + private System.Data.DataColumn columnMediaLabel; + + private System.Data.DataColumn columnMediaType; + + private System.Data.DataColumn columnSource; + + private System.Data.DataColumn columnDate; + + private System.Data.DataColumn columnBorrower; + + private System.Data.DataColumn columnRating; + + private System.Data.DataColumn columnOriginalTitle; + + private System.Data.DataColumn columnTranslatedTitle; + + private System.Data.DataColumn columnFormattedTitle; + + private System.Data.DataColumn columnDirector; + + private System.Data.DataColumn columnProducer; + + private System.Data.DataColumn columnCountry; + + private System.Data.DataColumn columnCategory; + + private System.Data.DataColumn columnYear; + + private System.Data.DataColumn columnLength; + + private System.Data.DataColumn columnActors; + + private System.Data.DataColumn columnURL; + + private System.Data.DataColumn columnDescription; + + private System.Data.DataColumn columnComments; + + private System.Data.DataColumn columnVideoFormat; + + private System.Data.DataColumn columnVideoBitrate; + + private System.Data.DataColumn columnAudioFormat; + + private System.Data.DataColumn columnAudioBitrate; + + private System.Data.DataColumn columnResolution; + + private System.Data.DataColumn columnFramerate; + + private System.Data.DataColumn columnLanguages; + + private System.Data.DataColumn columnSubtitles; + + private System.Data.DataColumn columnDateAdded; + + private System.Data.DataColumn columnSize; + + private System.Data.DataColumn columnDisks; + + private System.Data.DataColumn columnPicture; + + private System.Data.DataColumn columnContents_Id; + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public MovieDataTable() : + this(false) { + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal MovieDataTable(bool initExpressions) { + this.TableName = "Movie"; + this.BeginInit(); + this.InitClass(); + if ((initExpressions == true)) { + this.InitExpressions(); + } + this.EndInit(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal MovieDataTable(System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected MovieDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn NumberColumn { + get { + return this.columnNumber; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn CheckedColumn { + get { + return this.columnChecked; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn MediaLabelColumn { + get { + return this.columnMediaLabel; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn MediaTypeColumn { + get { + return this.columnMediaType; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn SourceColumn { + get { + return this.columnSource; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn DateColumn { + get { + return this.columnDate; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn BorrowerColumn { + get { + return this.columnBorrower; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn RatingColumn { + get { + return this.columnRating; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn OriginalTitleColumn { + get { + return this.columnOriginalTitle; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn TranslatedTitleColumn { + get { + return this.columnTranslatedTitle; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn FormattedTitleColumn { + get { + return this.columnFormattedTitle; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn DirectorColumn { + get { + return this.columnDirector; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn ProducerColumn { + get { + return this.columnProducer; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn CountryColumn { + get { + return this.columnCountry; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn CategoryColumn { + get { + return this.columnCategory; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn YearColumn { + get { + return this.columnYear; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn LengthColumn { + get { + return this.columnLength; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn ActorsColumn { + get { + return this.columnActors; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn URLColumn { + get { + return this.columnURL; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn DescriptionColumn { + get { + return this.columnDescription; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn CommentsColumn { + get { + return this.columnComments; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn VideoFormatColumn { + get { + return this.columnVideoFormat; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn VideoBitrateColumn { + get { + return this.columnVideoBitrate; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn AudioFormatColumn { + get { + return this.columnAudioFormat; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn AudioBitrateColumn { + get { + return this.columnAudioBitrate; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn ResolutionColumn { + get { + return this.columnResolution; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn FramerateColumn { + get { + return this.columnFramerate; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn LanguagesColumn { + get { + return this.columnLanguages; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn SubtitlesColumn { + get { + return this.columnSubtitles; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn DateAddedColumn { + get { + return this.columnDateAdded; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn SizeColumn { + get { + return this.columnSize; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn DisksColumn { + get { + return this.columnDisks; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn PictureColumn { + get { + return this.columnPicture; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn Contents_IdColumn { + get { + return this.columnContents_Id; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public MovieRow this[int index] { + get { + return ((MovieRow)(this.Rows[index])); + } + } + + public event MovieRowChangeEventHandler MovieRowChanging; + + public event MovieRowChangeEventHandler MovieRowChanged; + + public event MovieRowChangeEventHandler MovieRowDeleting; + + public event MovieRowChangeEventHandler MovieRowDeleted; + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddMovieRow(MovieRow row) { + this.Rows.Add(row); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public MovieRow AddMovieRow( + int Number, + string Checked, + string MediaLabel, + string MediaType, + string Source, + string Date, + string Borrower, + decimal Rating, + string OriginalTitle, + string TranslatedTitle, + string FormattedTitle, + string Director, + string Producer, + string Country, + string Category, + string Year, + string Length, + string Actors, + string URL, + string Description, + string Comments, + string VideoFormat, + string VideoBitrate, + string AudioFormat, + string AudioBitrate, + string Resolution, + string Framerate, + string Languages, + string Subtitles, + System.DateTime DateAdded, + string Size, + string Disks, + string Picture, + ContentsRow parentContentsRowByContents_Movie) { + MovieRow rowMovieRow = ((MovieRow)(this.NewRow())); + rowMovieRow.ItemArray = new object[] { + Number, + Checked, + MediaLabel, + MediaType, + Source, + Date, + Borrower, + Rating, + OriginalTitle, + TranslatedTitle, + FormattedTitle, + Director, + Producer, + Country, + Category, + Year, + Length, + Actors, + URL, + Description, + Comments, + VideoFormat, + VideoBitrate, + AudioFormat, + AudioBitrate, + Resolution, + Framerate, + Languages, + Subtitles, + DateAdded, + Size, + Disks, + Picture, + parentContentsRowByContents_Movie[0]}; + this.Rows.Add(rowMovieRow); + return rowMovieRow; + } + ... [truncated message content] |
From: <sa...@us...> - 2007-01-30 16:49:20
|
Revision: 55 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=55&view=rev Author: saamand Date: 2007-01-30 08:48:31 -0800 (Tue, 30 Jan 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/MyLyrics/LyricsEngine/Wiki.cs trunk/plugins/MyLyrics/My Lyrics/MyLyrics.cs trunk/plugins/MyLyrics/My Lyrics/MyLyrics.csproj trunk/plugins/MyLyrics/My Lyrics/MyLyricsSetup.cs Modified: trunk/plugins/MyLyrics/LyricsEngine/Wiki.cs =================================================================== --- trunk/plugins/MyLyrics/LyricsEngine/Wiki.cs 2007-01-30 04:17:52 UTC (rev 54) +++ trunk/plugins/MyLyrics/LyricsEngine/Wiki.cs 2007-01-30 16:48:31 UTC (rev 55) @@ -33,7 +33,7 @@ IAsyncResult ar = del.BeginInvoke(this.artist, this.title, null, null); - while (noOfTries < 20) + while (noOfTries < 15) { // If the user has aborted stop the search and return (false) if (Abort) @@ -46,7 +46,8 @@ } else { - Thread.Sleep(500); + // if we don't allow this pause of 2 sec the webservice behaves in a strange maneur + Thread.Sleep(2000); } ++noOfTries; } Modified: trunk/plugins/MyLyrics/My Lyrics/MyLyrics.cs =================================================================== --- trunk/plugins/MyLyrics/My Lyrics/MyLyrics.cs 2007-01-30 04:17:52 UTC (rev 54) +++ trunk/plugins/MyLyrics/My Lyrics/MyLyrics.cs 2007-01-30 16:48:31 UTC (rev 55) @@ -152,8 +152,8 @@ startingScrollSpeedVertical = GUIGraphicsContext.ScrollSpeedVertical; GUIGraphicsContext.ScrollSpeedVertical = 1; - //LyricDiagnostics.OpenLog(MediaPortal.Configuration.Config.GetFolder(MediaPortal.Configuration.Config.Dir.Log)); - LyricDiagnostics.OpenLog(@"C:\Program Files\Team Mediaportal\MediaPortal\log"); + LyricDiagnostics.OpenLog(MediaPortal.Configuration.Config.GetFolder(MediaPortal.Configuration.Config.Dir.Log)); + //LyricDiagnostics.OpenLog(MediaPortal.Util.Config.GetFolder(MediaPortal.Util.Config.Dir.Log)); LyricDiagnostics.TraceSource.TraceEvent(TraceEventType.Start, 0, LyricDiagnostics.elapsedTimeString() + "MyLyrics opens"); return true; } Modified: trunk/plugins/MyLyrics/My Lyrics/MyLyrics.csproj =================================================================== --- trunk/plugins/MyLyrics/My Lyrics/MyLyrics.csproj 2007-01-30 04:17:52 UTC (rev 54) +++ trunk/plugins/MyLyrics/My Lyrics/MyLyrics.csproj 2007-01-30 16:48:31 UTC (rev 55) @@ -33,15 +33,15 @@ <WarningLevel>4</WarningLevel> </PropertyGroup> <ItemGroup> - <Reference Include="Core, Version=1.0.2583.1812, Culture=neutral, processorArchitecture=MSIL"> + <Reference Include="Core, Version=1.0.2546.32606, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> <HintPath>..\..\..\..\..\..\..\..\Program Files\Team Mediaportal\MediaPortal\Core.DLL</HintPath> </Reference> - <Reference Include="Databases, Version=1.0.2583.1816, Culture=neutral, processorArchitecture=MSIL"> + <Reference Include="Databases, Version=1.0.2546.32610, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> <HintPath>..\..\..\..\..\..\..\..\Program Files\Team Mediaportal\MediaPortal\Databases.DLL</HintPath> </Reference> - <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> + <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> <HintPath>..\..\..\..\..\..\..\..\Program Files\Team Mediaportal\MediaPortal\Plugins\Windows\Dialogs.DLL</HintPath> </Reference> @@ -50,7 +50,7 @@ <Reference Include="System.Drawing" /> <Reference Include="System.Windows.Forms" /> <Reference Include="System.Xml" /> - <Reference Include="Utils, Version=1.0.2583.1806, Culture=neutral, processorArchitecture=MSIL"> + <Reference Include="Utils, Version=1.0.2546.32604, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> <HintPath>..\..\..\..\..\..\..\..\Program Files\Team Mediaportal\MediaPortal\Utils.DLL</HintPath> </Reference> Modified: trunk/plugins/MyLyrics/My Lyrics/MyLyricsSetup.cs =================================================================== --- trunk/plugins/MyLyrics/My Lyrics/MyLyricsSetup.cs 2007-01-30 04:17:52 UTC (rev 54) +++ trunk/plugins/MyLyrics/My Lyrics/MyLyricsSetup.cs 2007-01-30 16:48:31 UTC (rev 55) @@ -101,7 +101,7 @@ InitializeComponent(); LyricDiagnostics.OpenLog(MediaPortal.Configuration.Config.GetFolder(MediaPortal.Configuration.Config.Dir.Log)); - //LyricDiagnostics.OpenLog(@"C:\Program Files\Team Mediaportal\MediaPortal\log"); + //LyricDiagnostics.OpenLog(MediaPortal.Util.Config.GetFolder(MediaPortal.Util.Config.Dir.Log)); lyricUC = new MyLyricsSetup_LyricsLibrary(this); this.tabPageLyricsDatabase.Controls.Add(lyricUC); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pat...@us...> - 2007-01-30 04:17:55
|
Revision: 54 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=54&view=rev Author: patrick_sf Date: 2007-01-29 20:17:52 -0800 (Mon, 29 Jan 2007) Log Message: ----------- finally think the subchannels are working Modified Paths: -------------- trunk/plugins/DirectTv/TVE 2 DirecTV Plugin/TunerPlugin/TunerPlugin.cs trunk/plugins/DirectTv/TVE 2 DirecTV Plugin/TunerPlugin/TunerPlugin.csproj Modified: trunk/plugins/DirectTv/TVE 2 DirecTV Plugin/TunerPlugin/TunerPlugin.cs =================================================================== --- trunk/plugins/DirectTv/TVE 2 DirecTV Plugin/TunerPlugin/TunerPlugin.cs 2007-01-30 03:10:57 UTC (rev 53) +++ trunk/plugins/DirectTv/TVE 2 DirecTV Plugin/TunerPlugin/TunerPlugin.cs 2007-01-30 04:17:52 UTC (rev 54) @@ -41,6 +41,10 @@ Log.Debug("DirecTV tuner plugin extensive logging enabled"); _serialInterface.DumpConfig(); } + if (_settings.AllowDigitalSubchannels) + { + Log.Debug("DirecTV tuner plugin Allowing Digital Subchannels"); + } _serialInterface.OpenPort(); _settings = null; GUIWindowManager.Receivers += new SendMessageHandler(this.OnThreadMessage); @@ -59,12 +63,10 @@ { if (message.Message == GUIMessage.MessageType.GUI_MSG_TUNE_EXTERNAL_CHANNEL) { - if (message.Label == null) - return; + Log.Debug("DirecTV TUNE Message Recieved: {0}", message.Label); string channelString = message.Label; - - if (_settings.AllowDigitalSubchannels) + if (_serialInterface.AllowDigitalSubchannels) { _serialInterface.TuneToChannel(channelString); } Modified: trunk/plugins/DirectTv/TVE 2 DirecTV Plugin/TunerPlugin/TunerPlugin.csproj =================================================================== --- trunk/plugins/DirectTv/TVE 2 DirecTV Plugin/TunerPlugin/TunerPlugin.csproj 2007-01-30 03:10:57 UTC (rev 53) +++ trunk/plugins/DirectTv/TVE 2 DirecTV Plugin/TunerPlugin/TunerPlugin.csproj 2007-01-30 04:17:52 UTC (rev 54) @@ -60,18 +60,18 @@ </ItemGroup> <ItemGroup> <Reference Include="Accessibility" /> - <Reference Include="Core, Version=1.0.2546.32606, Culture=neutral, processorArchitecture=x86"> + <Reference Include="Core, Version=1.0.2564.35646, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\References-MP-v0.2.2-Release\Core.DLL</HintPath> + <HintPath>..\..\..\..\..\References-MP-SVN\Core.dll</HintPath> </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.2546.32604, Culture=neutral, processorArchitecture=x86"> + <Reference Include="Utils, Version=1.0.2564.35632, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\References-MP-v0.2.2-Release\Utils.DLL</HintPath> + <HintPath>..\..\..\..\..\References-MP-SVN\Utils.dll</HintPath> </Reference> </ItemGroup> <PropertyGroup> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <an...@us...> - 2007-01-30 03:10:59
|
Revision: 53 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=53&view=rev Author: and-81 Date: 2007-01-29 19:10:57 -0800 (Mon, 29 Jan 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/TV3ExtChannelChanger/TV3ExtChannelChanger.csproj Added Paths: ----------- trunk/plugins/TV3ExtChannelChanger/ReadMe.txt Added: trunk/plugins/TV3ExtChannelChanger/ReadMe.txt =================================================================== --- trunk/plugins/TV3ExtChannelChanger/ReadMe.txt (rev 0) +++ trunk/plugins/TV3ExtChannelChanger/ReadMe.txt 2007-01-30 03:10:57 UTC (rev 53) @@ -0,0 +1,33 @@ +TV3 External Channel Changer v1.0.2 +------------------------------------- + +Adds External Channel Changing to the TV Server. +Supports External Programs, Serial communication, Sending Window Messages, +and Simulating Keystrokes. + +Installation: + +1. Copy the contents of the AppData folder to: +C:\Documents and Settings\All Users\Application Data\MediaPortal TV Server + +Your location may vary, just search for the "MediaPortal TV Server" folder +and put it there. + +2. Copy the contents of the plugin folder to: +C:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins + +Again, your location may be different. + +For more information on how to use this plugin, refer to the documentation +from my MCE Replacement Plugin. That's what this plugin is derived from. + +If you find a bug or would like to make a suggestions or would just like some +help with the plugin please go to the MCE Replacement Plugin forum here: +http://forum.team-mediaportal.com/forumdisplay.php?f=165 + +Cheers, + + - Aaron. + + + Modified: trunk/plugins/TV3ExtChannelChanger/TV3ExtChannelChanger.csproj =================================================================== --- trunk/plugins/TV3ExtChannelChanger/TV3ExtChannelChanger.csproj 2007-01-30 02:58:31 UTC (rev 52) +++ trunk/plugins/TV3ExtChannelChanger/TV3ExtChannelChanger.csproj 2007-01-30 03:10:57 UTC (rev 53) @@ -214,10 +214,16 @@ <DependentUpon>PluginSetup.cs</DependentUpon> </EmbeddedResource> </ItemGroup> + <ItemGroup> + <None Include="ReadMe.txt"> + <CopyToOutputDirectory>Always</CopyToOutputDirectory> + </None> + </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <PropertyGroup> <PreBuildEvent> </PreBuildEvent> - <PostBuildEvent>copy "*.*" "C:\MediaPortal Development\Plugin Releases\TV3ExtChannelChanger\Release\"</PostBuildEvent> + <PostBuildEvent>copy "$(TargetPath)" "C:\MediaPortal Development\Plugin Releases\TV3ExtChannelChanger\Release\" +copy "ReadMe.txt" "C:\MediaPortal Development\Plugin Releases\TV3ExtChannelChanger\"</PostBuildEvent> </PropertyGroup> </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. |
From: <an...@us...> - 2007-01-30 02:58:32
|
Revision: 52 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=52&view=rev Author: and-81 Date: 2007-01-29 18:58:31 -0800 (Mon, 29 Jan 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/TV3ExtChannelChanger/TV3ExtChannelChanger.cs trunk/plugins/TV3ExtChannelChanger/TV3ExtChannelChanger.csproj trunk/plugins/TV3MceBlaster/MceIrApi.cs trunk/plugins/TV3MceBlaster/TV3MceBlaster.cs trunk/plugins/TV3MceBlaster/TV3MceBlaster.csproj Added Paths: ----------- trunk/plugins/TV3ExtChannelChanger/Forms/ trunk/plugins/TV3ExtChannelChanger/Forms/ExternalChannels.cs trunk/plugins/TV3ExtChannelChanger/Forms/ExternalChannels.designer.cs trunk/plugins/TV3ExtChannelChanger/Forms/ExternalChannels.resx trunk/plugins/TV3ExtChannelChanger/Forms/ExternalProgram.Designer.cs trunk/plugins/TV3ExtChannelChanger/Forms/ExternalProgram.cs trunk/plugins/TV3ExtChannelChanger/Forms/ExternalProgram.resx trunk/plugins/TV3ExtChannelChanger/Forms/KeysCommand.Designer.cs trunk/plugins/TV3ExtChannelChanger/Forms/KeysCommand.cs trunk/plugins/TV3ExtChannelChanger/Forms/KeysCommand.resx trunk/plugins/TV3ExtChannelChanger/Forms/MessageCommand.Designer.cs trunk/plugins/TV3ExtChannelChanger/Forms/MessageCommand.cs trunk/plugins/TV3ExtChannelChanger/Forms/MessageCommand.resx trunk/plugins/TV3ExtChannelChanger/Forms/PluginSetup.Designer.cs trunk/plugins/TV3ExtChannelChanger/Forms/PluginSetup.cs trunk/plugins/TV3ExtChannelChanger/Forms/PluginSetup.resx trunk/plugins/TV3ExtChannelChanger/Forms/SerialCommand.Designer.cs trunk/plugins/TV3ExtChannelChanger/Forms/SerialCommand.cs trunk/plugins/TV3ExtChannelChanger/Forms/SerialCommand.resx trunk/plugins/TV3ExtChannelChanger/Forms/StbSetup.Designer.cs trunk/plugins/TV3ExtChannelChanger/Forms/StbSetup.cs trunk/plugins/TV3ExtChannelChanger/Forms/StbSetup.resx trunk/plugins/TV3ExtChannelChanger/Win32.cs trunk/plugins/TV3MceBlaster/Forms/ trunk/plugins/TV3MceBlaster/Forms/ExternalChannels.cs trunk/plugins/TV3MceBlaster/Forms/ExternalChannels.designer.cs trunk/plugins/TV3MceBlaster/Forms/ExternalChannels.resx trunk/plugins/TV3MceBlaster/Forms/ExternalProgram.Designer.cs trunk/plugins/TV3MceBlaster/Forms/ExternalProgram.cs trunk/plugins/TV3MceBlaster/Forms/ExternalProgram.resx trunk/plugins/TV3MceBlaster/Forms/KeysCommand.Designer.cs trunk/plugins/TV3MceBlaster/Forms/KeysCommand.cs trunk/plugins/TV3MceBlaster/Forms/KeysCommand.resx trunk/plugins/TV3MceBlaster/Forms/LearnIR.Designer.cs trunk/plugins/TV3MceBlaster/Forms/LearnIR.cs trunk/plugins/TV3MceBlaster/Forms/LearnIR.resx trunk/plugins/TV3MceBlaster/Forms/MacroEditor.Designer.cs trunk/plugins/TV3MceBlaster/Forms/MacroEditor.cs trunk/plugins/TV3MceBlaster/Forms/MacroEditor.resx trunk/plugins/TV3MceBlaster/Forms/MessageCommand.Designer.cs trunk/plugins/TV3MceBlaster/Forms/MessageCommand.cs trunk/plugins/TV3MceBlaster/Forms/MessageCommand.resx trunk/plugins/TV3MceBlaster/Forms/PauseTime.Designer.cs trunk/plugins/TV3MceBlaster/Forms/PauseTime.cs trunk/plugins/TV3MceBlaster/Forms/PauseTime.resx trunk/plugins/TV3MceBlaster/Forms/PluginSetup.Designer.cs trunk/plugins/TV3MceBlaster/Forms/PluginSetup.cs trunk/plugins/TV3MceBlaster/Forms/PluginSetup.resx trunk/plugins/TV3MceBlaster/Forms/SelectBlasterPort.Designer.cs trunk/plugins/TV3MceBlaster/Forms/SelectBlasterPort.cs trunk/plugins/TV3MceBlaster/Forms/SelectBlasterPort.resx trunk/plugins/TV3MceBlaster/Forms/SelectBlasterSpeed.Designer.cs trunk/plugins/TV3MceBlaster/Forms/SelectBlasterSpeed.cs trunk/plugins/TV3MceBlaster/Forms/SelectBlasterSpeed.resx trunk/plugins/TV3MceBlaster/Forms/SerialCommand.Designer.cs trunk/plugins/TV3MceBlaster/Forms/SerialCommand.cs trunk/plugins/TV3MceBlaster/Forms/SerialCommand.resx trunk/plugins/TV3MceBlaster/Forms/StbSetup.Designer.cs trunk/plugins/TV3MceBlaster/Forms/StbSetup.cs trunk/plugins/TV3MceBlaster/Forms/StbSetup.resx trunk/plugins/TV3MceBlaster/Win32.cs Removed Paths: ------------- trunk/plugins/TV3ExtChannelChanger/ExternalChannels.cs trunk/plugins/TV3ExtChannelChanger/ExternalChannels.designer.cs trunk/plugins/TV3ExtChannelChanger/ExternalChannels.resx trunk/plugins/TV3ExtChannelChanger/ExternalProgram.Designer.cs trunk/plugins/TV3ExtChannelChanger/ExternalProgram.cs trunk/plugins/TV3ExtChannelChanger/ExternalProgram.resx trunk/plugins/TV3ExtChannelChanger/PluginSetup.Designer.cs trunk/plugins/TV3ExtChannelChanger/PluginSetup.cs trunk/plugins/TV3ExtChannelChanger/PluginSetup.resx trunk/plugins/TV3ExtChannelChanger/SerialCommand.Designer.cs trunk/plugins/TV3ExtChannelChanger/SerialCommand.cs trunk/plugins/TV3ExtChannelChanger/SerialCommand.resx trunk/plugins/TV3ExtChannelChanger/StbSetup.Designer.cs trunk/plugins/TV3ExtChannelChanger/StbSetup.cs trunk/plugins/TV3ExtChannelChanger/StbSetup.resx trunk/plugins/TV3MceBlaster/ExternalChannels.cs trunk/plugins/TV3MceBlaster/ExternalChannels.designer.cs trunk/plugins/TV3MceBlaster/ExternalChannels.resx trunk/plugins/TV3MceBlaster/ExternalProgram.Designer.cs trunk/plugins/TV3MceBlaster/ExternalProgram.cs trunk/plugins/TV3MceBlaster/ExternalProgram.resx trunk/plugins/TV3MceBlaster/LearnIR.Designer.cs trunk/plugins/TV3MceBlaster/LearnIR.cs trunk/plugins/TV3MceBlaster/LearnIR.resx trunk/plugins/TV3MceBlaster/MacroEditor.Designer.cs trunk/plugins/TV3MceBlaster/MacroEditor.cs trunk/plugins/TV3MceBlaster/MacroEditor.resx trunk/plugins/TV3MceBlaster/PauseTime.Designer.cs trunk/plugins/TV3MceBlaster/PauseTime.cs trunk/plugins/TV3MceBlaster/PauseTime.resx trunk/plugins/TV3MceBlaster/PluginSetup.Designer.cs trunk/plugins/TV3MceBlaster/PluginSetup.cs trunk/plugins/TV3MceBlaster/PluginSetup.resx trunk/plugins/TV3MceBlaster/SelectBlasterPort.Designer.cs trunk/plugins/TV3MceBlaster/SelectBlasterPort.cs trunk/plugins/TV3MceBlaster/SelectBlasterPort.resx trunk/plugins/TV3MceBlaster/SelectBlasterSpeed.Designer.cs trunk/plugins/TV3MceBlaster/SelectBlasterSpeed.cs trunk/plugins/TV3MceBlaster/SelectBlasterSpeed.resx trunk/plugins/TV3MceBlaster/SerialCommand.Designer.cs trunk/plugins/TV3MceBlaster/SerialCommand.cs trunk/plugins/TV3MceBlaster/SerialCommand.resx trunk/plugins/TV3MceBlaster/StbSetup.Designer.cs trunk/plugins/TV3MceBlaster/StbSetup.cs trunk/plugins/TV3MceBlaster/StbSetup.resx Deleted: trunk/plugins/TV3ExtChannelChanger/ExternalChannels.cs =================================================================== --- trunk/plugins/TV3ExtChannelChanger/ExternalChannels.cs 2007-01-30 02:53:54 UTC (rev 51) +++ trunk/plugins/TV3ExtChannelChanger/ExternalChannels.cs 2007-01-30 02:58:31 UTC (rev 52) @@ -1,229 +0,0 @@ -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 - - TabPage[] _tvCardTabs; - StbSetup[] _tvCardStbSetups; - - #endregion Variables - - #region Constructor - - public ExternalChannels() - { - InitializeComponent(); - } - - #endregion Constructor - - private void ExternalChannels_Load(object sender, EventArgs e) - { - int cards = TV3ExtChannelChanger.ExternalChannelConfigs.Length; - string cardName; - string cardNumber; - - _tvCardTabs = new TabPage[cards]; - _tvCardStbSetups = new StbSetup[cards]; - - comboBoxCopyFrom.Items.Clear(); - - for (int index = 0; index < cards; index++) - { - cardNumber = (index + 1).ToString(); - cardName = "TV Card " + cardNumber; - - comboBoxCopyFrom.Items.Add(cardName); - - _tvCardStbSetups[index] = new StbSetup(index); - _tvCardStbSetups[index].Name = "StbSetup" + cardNumber; - _tvCardStbSetups[index].Dock = DockStyle.Fill; - _tvCardStbSetups[index].TabIndex = 0; - - _tvCardTabs[index] = new TabPage(cardName); - _tvCardTabs[index].Controls.Add(_tvCardStbSetups[index]); - - this.tabControlTVCards.TabPages.Add(_tvCardTabs[index]); - } - - comboBoxCopyFrom.SelectedIndex = 0; - - // Setup quick setup combo box - string[] quickSetupFiles = Directory.GetFiles(TV3ExtChannelChanger.AppDataFolder + TV3ExtChannelChanger.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 = TV3ExtChannelChanger.SplitRunCommand(runCommand); - - if (commands == null) - return false; - - commands[2] = commands[2].Replace("%1", currentChannelDigit.ToString()); - commands[2] = commands[2].Replace("%2", fullChannelString); - - return TV3ExtChannelChanger.ProcessRunCommand(commands); - } - - static bool ProcessSerialCommand(string serialCommand, int currentChannelDigit, string fullChannelString) - { - string[] commands = TV3ExtChannelChanger.SplitSerialCommand(serialCommand); - - if (commands == null) - return false; - - commands[0] = commands[0].Replace("%1", currentChannelDigit.ToString()); - commands[0] = commands[0].Replace("%2", fullChannelString); - - return TV3ExtChannelChanger.ProcessSerialCommand(commands); - - } - - #region Buttons - - private void buttonOK_Click(object sender, EventArgs e) - { - foreach (StbSetup setup in _tvCardStbSetups) - setup.Save(); - - foreach (ExternalChannelConfig config in TV3ExtChannelChanger.ExternalChannelConfigs) - config.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) - { - if (setup.PreChangeCommand != "") - { - if (setup.PreChangeCommand.StartsWith(TV3ExtChannelChanger.RunCommandPrefix)) - ProcessExternalChannelProgram(setup.PreChangeCommand.Substring(TV3ExtChannelChanger.RunCommandPrefix.Length), -1, channel); - else if (setup.PreChangeCommand.StartsWith(TV3ExtChannelChanger.SerialCommandPrefix)) - ProcessSerialCommand(setup.PreChangeCommand.Substring(TV3ExtChannelChanger.SerialCommandPrefix.Length), -1, channel); - - if (setup.PauseTime > 0) - Thread.Sleep(setup.PauseTime); - } - } - - foreach (char digit in channel) - { - charVal = digit - 48; - - command = setup.Digits[charVal]; - if (command.StartsWith(TV3ExtChannelChanger.RunCommandPrefix)) - ProcessExternalChannelProgram(command.Substring(TV3ExtChannelChanger.RunCommandPrefix.Length), charVal, channel); - else if (command.StartsWith(TV3ExtChannelChanger.SerialCommandPrefix)) - ProcessSerialCommand(command.Substring(TV3ExtChannelChanger.SerialCommandPrefix.Length), charVal, channel); - - if (setup.PauseTime > 0) - Thread.Sleep(setup.PauseTime); - } - - if (setup.SendSelect) - { - if (setup.SelectCommand.StartsWith(TV3ExtChannelChanger.RunCommandPrefix)) - { - ProcessExternalChannelProgram(setup.SelectCommand.Substring(TV3ExtChannelChanger.RunCommandPrefix.Length), -1, channel); - - if (setup.DoubleChannelSelect) - ProcessExternalChannelProgram(setup.SelectCommand.Substring(TV3ExtChannelChanger.RunCommandPrefix.Length), -1, channel); - } - else if (setup.SelectCommand.StartsWith(TV3ExtChannelChanger.SerialCommandPrefix)) - { - ProcessSerialCommand(setup.SelectCommand.Substring(TV3ExtChannelChanger.SerialCommandPrefix.Length), -1, channel); - - if (setup.DoubleChannelSelect) - ProcessSerialCommand(setup.SelectCommand.Substring(TV3ExtChannelChanger.SerialCommandPrefix.Length), -1, channel); - } - } - } - } - 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 (quickSetup == "") - return; - - _tvCardStbSetups[tabControlTVCards.SelectedIndex].SetToXml(quickSetup); - } - - private void buttonCopyFrom_Click(object sender, EventArgs e) - { - _tvCardStbSetups[tabControlTVCards.SelectedIndex].SetToCard(comboBoxCopyFrom.SelectedIndex); - } - - private void buttonCancel_Click(object sender, EventArgs e) - { - this.DialogResult = DialogResult.Cancel; - this.Close(); - } - - #endregion Buttons - - } - -} Deleted: trunk/plugins/TV3ExtChannelChanger/ExternalChannels.designer.cs =================================================================== --- trunk/plugins/TV3ExtChannelChanger/ExternalChannels.designer.cs 2007-01-30 02:53:54 UTC (rev 51) +++ trunk/plugins/TV3ExtChannelChanger/ExternalChannels.designer.cs 2007-01-30 02:58:31 UTC (rev 52) @@ -1,232 +0,0 @@ -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, 352); - 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, 296); - 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, 296); - 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, 352); - 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, 352); - 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, 280); - 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, 352); - 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, 383); - 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.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 Deleted: trunk/plugins/TV3ExtChannelChanger/ExternalChannels.resx =================================================================== --- trunk/plugins/TV3ExtChannelChanger/ExternalChannels.resx 2007-01-30 02:53:54 UTC (rev 51) +++ trunk/plugins/TV3ExtChannelChanger/ExternalChannels.resx 2007-01-30 02:58:31 UTC (rev 52) @@ -1,120 +0,0 @@ -<?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 Deleted: trunk/plugins/TV3ExtChannelChanger/ExternalProgram.Designer.cs =================================================================== --- trunk/plugins/TV3ExtChannelChanger/ExternalProgram.Designer.cs 2007-01-30 02:53:54 UTC (rev 51) +++ trunk/plugins/TV3ExtChannelChanger/ExternalProgram.Designer.cs 2007-01-30 02:58:31 UTC (rev 52) @@ -1,279 +0,0 @@ -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.labelWindowStyle = new System.Windows.Forms.Label(); - this.comboBoxWindowStyle = new System.Windows.Forms.ComboBox(); - this.buttonParamQuestion = new System.Windows.Forms.Button(); - this.checkBoxShellExecute = new System.Windows.Forms.CheckBox(); - this.checkBoxWaitForExit = new System.Windows.Forms.CheckBox(); - this.buttonTest = new System.Windows.Forms.Button(); - this.checkBoxNoWindow = new System.Windows.Forms.CheckBox(); - this.SuspendLayout(); - // - // textBoxProgram - // - 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.Location = new System.Drawing.Point(8, 8); - this.labelProgram.Name = "labelProgram"; - this.labelProgram.Size = new System.Drawing.Size(288, 16); - this.labelProgram.TabIndex = 0; - this.labelProgram.Text = "Program:"; - this.labelProgram.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // buttonProgam - // - this.buttonProgam.Location = new System.Drawing.Point(304, 24); - this.buttonProgam.Name = "buttonProgam"; - this.buttonProgam.Size = new System.Drawing.Size(24, 20); - this.buttonProgam.TabIndex = 2; - this.buttonProgam.Text = "..."; - this.buttonProgam.UseVisualStyleBackColor = true; - this.buttonProgam.Click += new System.EventHandler(this.buttonProgam_Click); - // - // buttonStartup - // - this.buttonStartup.Location = new System.Drawing.Point(304, 72); - this.buttonStartup.Name = "buttonStartup"; - this.buttonStartup.Size = new System.Drawing.Size(24, 20); - this.buttonStartup.TabIndex = 5; - this.buttonStartup.Text = "..."; - this.buttonStartup.UseVisualStyleBackColor = true; - this.buttonStartup.Click += new System.EventHandler(this.buttonStartup_Click); - // - // labelStartup - // - this.labelStartup.Location = new System.Drawing.Point(8, 56); - this.labelStartup.Name = "labelStartup"; - this.labelStartup.Size = new System.Drawing.Size(288, 16); - this.labelStartup.TabIndex = 3; - this.labelStartup.Text = "Startup Folder:"; - this.labelStartup.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // textBoxStartup - // - this.textBoxStartup.Location = new System.Drawing.Point(8, 72); - this.textBoxStartup.Name = "textBoxStartup"; - this.textBoxStartup.Size = new System.Drawing.Size(288, 20); - this.textBoxStartup.TabIndex = 4; - // - // buttonOK - // - this.buttonOK.Location = new System.Drawing.Point(208, 216); - this.buttonOK.Name = "buttonOK"; - this.buttonOK.Size = new System.Drawing.Size(56, 24); - this.buttonOK.TabIndex = 15; - this.buttonOK.Text = "OK"; - this.buttonOK.UseVisualStyleBackColor = true; - this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); - // - // buttonCancel - // - this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.buttonCancel.Location = new System.Drawing.Point(272, 216); - this.buttonCancel.Name = "buttonCancel"; - this.buttonCancel.Size = new System.Drawing.Size(56, 24); - this.buttonCancel.TabIndex = 16; - this.buttonCancel.Text = "Cancel"; - this.buttonCancel.UseVisualStyleBackColor = true; - this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); - // - // labelParameters - // - this.labelParameters.Location = new System.Drawing.Point(8, 104); - this.labelParameters.Name = "labelParameters"; - this.labelParameters.Size = new System.Drawing.Size(288, 16); - this.labelParameters.TabIndex = 6; - this.labelParameters.Text = "Parameters:"; - this.labelParameters.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // textBoxParameters - // - this.textBoxParameters.Location = new System.Drawing.Point(8, 120); - this.textBoxParameters.Name = "textBoxParameters"; - this.textBoxParameters.Size = new System.Drawing.Size(288, 20); - this.textBoxParameters.TabIndex = 7; - // - // openFileDialog - // - this.openFileDialog.Filter = "All files|*.*"; - this.openFileDialog.Title = "Select Program Executable"; - // - // folderBrowserDialog - // - this.folderBrowserDialog.Description = "Select the startup folder for the program to run from"; - // - // labelWindowStyle - // - this.labelWindowStyle.Location = new System.Drawing.Point(8, 152); - this.labelWindowStyle.Name = "labelWindowStyle"; - this.labelWindowStyle.Size = new System.Drawing.Size(96, 21); - this.labelWindowStyle.TabIndex = 9; - this.labelWindowStyle.Text = "Window Style:"; - this.labelWindowStyle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // comboBoxWindowStyle - // - this.comboBoxWindowStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.comboBoxWindowStyle.FormattingEnabled = true; - this.comboBoxWindowStyle.Location = new System.Drawing.Point(104, 152); - this.comboBoxWindowStyle.MaxDropDownItems = 4; - this.comboBoxWindowStyle.Name = "comboBoxWindowStyle"; - this.comboBoxWindowStyle.Size = new System.Drawing.Size(88, 21); - this.comboBoxWindowStyle.TabIndex = 10; - // - // buttonParamQuestion - // - this.buttonParamQuestion.Location = new System.Drawing.Point(304, 120); - this.buttonParamQuestion.Name = "buttonParamQuestion"; - this.buttonParamQuestion.Size = new System.Drawing.Size(24, 20); - this.buttonParamQuestion.TabIndex = 8; - this.buttonParamQuestion.Text = "?"; - this.buttonParamQuestion.UseVisualStyleBackColor = true; - this.buttonParamQuestion.Click += new System.EventHandler(this.buttonParamQuestion_Click); - // - // checkBoxShellExecute - // - this.checkBoxShellExecute.AutoSize = true; - this.checkBoxShellExecute.Location = new System.Drawing.Point(8, 184); - this.checkBoxShellExecute.Name = "checkBoxShellExecute"; - this.checkBoxShellExecute.Size = new System.Drawing.Size(153, 17); - this.checkBoxShellExecute.TabIndex = 12; - this.checkBoxShellExecute.Text = "Startup using ShellExecute"; - this.checkBoxShellExecute.UseVisualStyleBackColor = true; - // - // checkBoxWaitForExit - // - this.checkBoxWaitForExit.AutoSize = true; - this.checkBoxWaitForExit.Location = new System.Drawing.Point(208, 184); - this.checkBoxWaitForExit.Name = "checkBoxWaitForExit"; - this.checkBoxWaitForExit.Size = new System.Drawing.Size(82, 17); - this.checkBoxWaitForExit.TabIndex = 13; - this.checkBoxWaitForExit.Text = "Wait for exit"; - this.checkBoxWaitForExit.UseVisualStyleBackColor = true; - // - // buttonTest - // - this.buttonTest.Location = new System.Drawing.Point(8, 216); - this.buttonTest.Name = "buttonTest"; - this.buttonTest.Size = new System.Drawing.Size(56, 24); - this.buttonTest.TabIndex = 14; - this.buttonTest.Text = "Test"; - this.buttonTest.UseVisualStyleBackColor = true; - this.buttonTest.Click += new System.EventHandler(this.buttonTest_Click); - // - // checkBoxNoWindow - // - this.checkBoxNoWindow.Location = new System.Drawing.Point(208, 152); - this.checkBoxNoWindow.Name = "checkBoxNoWindow"; - this.checkBoxNoWindow.Size = new System.Drawing.Size(96, 21); - this.checkBoxNoWindow.TabIndex = 11; - this.checkBoxNoWindow.Text = "No window"; - this.checkBoxNoWindow.UseVisualStyleBackColor = true; - // - // ExternalProgram - // - 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(336, 249); - this.ControlBox = false; - this.Controls.Add(this.checkBoxNoWindow); - this.Controls.Add(this.buttonTest); - this.Controls.Add(this.checkBoxWaitForExit); - this.Controls.Add(this.checkBoxShellExecute); - this.Controls.Add(this.buttonParamQuestion); - this.Controls.Add(this.comboBoxWindowStyle); - this.Controls.Add(this.labelWindowStyle); - this.Controls.Add(this.labelParameters); - this.Controls.Add(this.textBoxParameters); - this.Controls.Add(this.buttonCancel); - this.Controls.Add(this.buttonOK); - this.Controls.Add(this.buttonStartup); - this.Controls.Add(this.labelStartup); - this.Controls.Add(this.textBoxStartup); - this.Controls.Add(this.buttonProgam); - this.Controls.Add(this.labelProgram); - this.Controls.Add(this.textBoxProgram); - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "ExternalProgram"; - this.ShowIcon = false; - this.ShowInTaskbar = false; - this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "External Program Details"; - this.Load += new System.EventHandler(this.ExternalProgram_Load); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.TextBox textBoxProgram; - private System.Windows.Forms.Label labelProgram; - private System.Windows.Forms.Button buttonProgam; - private System.Windows.Forms.Button buttonStartup; - private System.Windows.Forms.Label labelStartup; - private System.Windows.Forms.TextBox textBoxStartup; - private System.Windows.Forms.Button buttonOK; - private System.Windows.Forms.Button buttonCancel; - private System.Windows.Forms.Label labelParameters; - private System.Windows.Forms.TextBox textBoxParameters; - private System.Windows.Forms.OpenFileDialog openFileDialog; - private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog; - private System.Windows.Forms.Label labelWindowStyle; - private System.Windows.Forms.ComboBox comboBoxWindowStyle; - private System.Windows.Forms.Button buttonParamQuestion; - private System.Windows.Forms.CheckBox checkBoxShellExecute; - private System.Windows.Forms.CheckBox checkBoxWaitForExit; - private System.Windows.Forms.Button buttonTest; - private System.Windows.Forms.CheckBox checkBoxNoWindow; - } -} \ No newline at end of file Deleted: trunk/plugins/TV3ExtChannelChanger/ExternalProgram.cs =================================================================== --- trunk/plugins/TV3ExtChannelChanger/ExternalProgram.cs 2007-01-30 02:53:54 UTC (rev 51) +++ trunk/plugins/TV3ExtChannelChanger/ExternalProgram.cs 2007-01-30 02:58:31 UTC (rev 52) @@ -1,162 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Diagnostics; -using System.Drawing; -using System.Text; -using System.Windows.Forms; - -using TvLibrary.Log; - -namespace TvEngine -{ - - public partial class ExternalProgram : Form - { - - #region Variables - - string _parametersMessage = ""; - - #endregion Variables - - #region Properties - - public string CommandString - { - get - { - return string.Format("{0}|{1}|{2}|{3}|{4}|{5}|{6}", - textBoxProgram.Text, - textBoxStartup.Text, - textBoxParameters.Text, - (string)comboBoxWindowStyle.SelectedItem, - checkBoxNoWindow.Checked.ToString(), - checkBoxShellExecute.Checked.ToString(), - checkBoxWaitForExit.Checked.ToString()); - } - } - - #endregion Properties - - #region Constructors - - public ExternalProgram() : this(null, "") { } - public ExternalProgram(string parametersMessage) : this(null, parametersMessage) { } - public ExternalProgram(string[] commands) : this(commands, "") { } - public ExternalProgram(string[] commands, string parametersMessage) - { - InitializeComponent(); - - _parametersMessage = parametersMessage; - - comboBoxWindowStyle.Items.Clear(); - comboBoxWindowStyle.Items.AddRange(Enum.GetNames(typeof(ProcessWindowStyle))); - - if (commands != null) - { - textBoxProgram.Text = commands[0]; - textBoxStartup.Text = commands[1]; - textBoxParameters.Text = commands[2]; - - checkBoxNoWindow.Checked = bool.Parse(commands[4]); - checkBoxShellExecute.Checked = bool.Parse(commands[5]); - checkBoxWaitForExit.Checked = bool.Parse(commands[6]); - - comboBoxWindowStyle.SelectedItem = ((ProcessWindowStyle)Enum.Parse(typeof(ProcessWindowStyle), commands[3])).ToString(); - } - else - { - comboBoxWindowStyle.SelectedIndex = 0; - } - } - - #endregion Constructors - - private void ExternalProgram_Load(object sender, EventArgs e) - { - if (_parametersMessage.Trim().Length == 0) - buttonParamQuestion.Visible = false; - } - - - private void buttonProgam_Click(object sender, EventArgs e) - { - if (openFileDialog.ShowDialog(this) == DialogResult.OK) - { - textBoxProgram.Text = openFileDialog.FileName; - - if (textBoxStartup.Text.Trim().Length == 0) - { - textBoxStartup.Text = System.IO.Path.GetDirectoryName(openFileDialog.FileName); - } - } - } - - private void buttonStartup_Click(object sender, EventArgs e) - { - if (folderBrowserDialog.ShowDialog(this) == DialogResult.OK) - { - textBoxProgram.Text = folderBrowserDialog.SelectedPath; - } - } - - private void buttonOK_Click(object sender, EventArgs e) - { - if (textBoxProgram.Text.Trim().Length == 0) - { - MessageBox.Show(this, "You must specify a program to run", "Missing program name", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); - return; - } - - this.DialogResult = DialogResult.OK; - this.Close(); - } - - private void buttonCancel_Click(object sender, EventArgs e) - { - this.DialogResult = DialogResult.Cancel; - this.Close(); - } - - private void buttonParamQuestion_Click(object sender, EventArgs e) - { - MessageBox.Show(this, _parametersMessage, "Parameters", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - - private void buttonTest_Click(object sender, EventArgs e) - { - if (textBoxProgram.Text.Trim().Length == 0) - { - MessageBox.Show(this, "You must specify a program to run", "Missing program name", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); - return; - } - - try - { - Process process = new Process(); - process.StartInfo.FileName = textBoxProgram.Text; - process.StartInfo.WorkingDirectory = textBoxStartup.Text; - process.StartInfo.Arguments = textBoxParameters.Text; - process.StartInfo.WindowStyle = (ProcessWindowStyle)Enum.Parse(typeof(ProcessWindowStyle), (string)comboBoxWindowStyle.SelectedItem); - process.StartInfo.CreateNoWindow = checkBoxNoWindow.Checked; - process.StartInfo.UseShellExecute = checkBoxShellExecute.Checked; - - if (TV3ExtChannelChanger.LogVerbose) - Log.Info("TV3ExtChannelChanger: Launching external program {0}", textBoxProgram.Text); - - process.Start(); - - if (checkBoxWaitForExit.Checked) // Wait for exit - process.WaitForExit(); - } - catch (Exception ex) - { - Log.Error("TV3ExtChannelChanger: {0}", ex.Message); - } - } - - } - -} Deleted: trunk/plugins/TV3ExtChannelChanger/ExternalProgram.resx =================================================================== --- trunk/plugins/TV3ExtChannelChanger/ExternalProgram.resx 2007-01-30 02:53:54 UTC (rev 51) +++ trunk/plugins/TV3ExtChannelChanger/ExternalProgram.resx 2007-01-30 02:58:31 UTC (rev 52) @@ -1,126 +0,0 @@ -<?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> - <metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>17, 17</value> - </metadata> - <metadata name="folderBrowserDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>144, 17</value> - </metadata> -</root> \ No newline at end of file Added: trunk/plugins/TV3ExtChannelChanger/Forms/ExternalChannels.cs =================================================================== --- trunk/plugins/TV3ExtChannelChanger/Forms/ExternalChannels.cs (rev 0) +++ trunk/plugins/TV3ExtChannelChanger/Forms/ExternalChannels.cs 2007-01-30 02:58:31 UTC (rev 52) @@ -0,0 +1,229 @@ +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 + + TabPage[] _tvCardTabs; + StbSetup[] _tvCardStbSetups; + + #endregion Variables + + #region Constructor + + public ExternalChannels() + { + InitializeComponent(); + } + + #endregion Constructor + + private void ExternalChannels_Load(object sender, EventArgs e) + { + int cards = TV3ExtChannelChanger.ExternalChannelConfigs.Length; + string cardName; + string cardNumber; + + _tvCardTabs = new TabPage[cards]; + _tvCardStbSetups = new StbSetup[cards]; + + comboBoxCopyFrom.Items.Clear(); + + for (int index = 0; index < cards; index++) + { + cardNumber = (index + 1).ToString(); + cardName = "TV Card " + cardNumber; + + comboBoxCopyFrom.Items.Add(cardName); + + _tvCardStbSetups[index] = new StbSetup(index); + _tvCardStbSetups[index].Name = "StbSetup" + cardNumber; + _tvCardStbSetups[index].Dock = DockStyle.Fill; + _tvCardStbSetups[index].TabIndex = 0; + + _tvCardTabs[index] = new TabPage(cardName); + _tvCardTabs[index].Controls.Add(_tvCardStbSetups[index]); + + this.tabControlTVCards.TabPages.Add(_tvCardTabs[index]); + } + + comboBoxCopyFrom.SelectedIndex = 0; + + // Setup quick setup combo box + string[] quickSetupFiles = Directory.GetFiles(TV3ExtChannelChanger.AppDataFolder + TV3ExtChannelChanger.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 = TV3ExtChannelChanger.SplitRunCommand(runCommand); + + if (commands == null) + return false; + + commands[2] = commands[2].Replace("%1", currentChannelDigit.ToString()); + commands[2] = commands[2].Replace("%2", fullChannelString); + + return TV3ExtChannelChanger.ProcessRunCommand(commands); + } + + static bool ProcessSerialCommand(string serialCommand, int currentChannelDigit, string fullChannelString) + { + string[] commands = TV3ExtChannelChanger.SplitSerialCommand(serialCommand); + + if (commands == null) + return false; + + commands[0] = commands[0].Replace("%1", currentChannelDigit.ToString()); + commands[0] = commands[0].Replace("%2", fullChannelString); + + return TV3ExtChannelChanger.ProcessSerialCommand(commands); + + } + + #region Buttons + + private void buttonOK_Click(object sender, EventArgs e) + { + foreach (StbSetup setup in _tvCardStbSetups) + setup.Save(); + + foreach (ExternalChannelConfig config in TV3ExtChannelChanger.ExternalChannelConfigs) + config.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 ... [truncated message content] |
From: <an...@us...> - 2007-01-30 02:53:55
|
Revision: 51 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=51&view=rev Author: and-81 Date: 2007-01-29 18:53:54 -0800 (Mon, 29 Jan 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/MCEReplacementTray/MceIrApi.cs Modified: trunk/plugins/MCEReplacementTray/MceIrApi.cs =================================================================== --- trunk/plugins/MCEReplacementTray/MceIrApi.cs 2007-01-30 02:51:49 UTC (rev 50) +++ trunk/plugins/MCEReplacementTray/MceIrApi.cs 2007-01-30 02:53:54 UTC (rev 51) @@ -206,7 +206,9 @@ public static bool PlaybackFromFile(IntPtr fileHandle) { _inUse = true; - return MceIrPlaybackFromFile(fileHandle); + bool returnValue = MceIrPlaybackFromFile(fileHandle); + System.Threading.Thread.Sleep(250); + return returnValue; } [DllImport("MceIr.dll", CharSet = CharSet.Auto)] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <an...@us...> - 2007-01-30 02:51:50
|
Revision: 50 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=50&view=rev Author: and-81 Date: 2007-01-29 18:51:49 -0800 (Mon, 29 Jan 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/MCEReplacement/MCEReplacement.cs trunk/plugins/MCEReplacement/MCEReplacement.csproj trunk/plugins/MCEReplacement/MceIrApi.cs trunk/plugins/MCEReplacement/Win32.cs Added Paths: ----------- trunk/plugins/MCEReplacement/Forms/ trunk/plugins/MCEReplacement/Forms/ExternalChannels.cs trunk/plugins/MCEReplacement/Forms/ExternalChannels.designer.cs trunk/plugins/MCEReplacement/Forms/ExternalChannels.resx trunk/plugins/MCEReplacement/Forms/ExternalProgram.Designer.cs trunk/plugins/MCEReplacement/Forms/ExternalProgram.cs trunk/plugins/MCEReplacement/Forms/ExternalProgram.resx trunk/plugins/MCEReplacement/Forms/GoToScreen.Designer.cs trunk/plugins/MCEReplacement/Forms/GoToScreen.cs trunk/plugins/MCEReplacement/Forms/GoToScreen.resx trunk/plugins/MCEReplacement/Forms/KeysCommand.Designer.cs trunk/plugins/MCEReplacement/Forms/KeysCommand.cs trunk/plugins/MCEReplacement/Forms/KeysCommand.resx trunk/plugins/MCEReplacement/Forms/LearnIR.Designer.cs trunk/plugins/MCEReplacement/Forms/LearnIR.cs trunk/plugins/MCEReplacement/Forms/LearnIR.resx trunk/plugins/MCEReplacement/Forms/MacroEditor.Designer.cs trunk/plugins/MCEReplacement/Forms/MacroEditor.cs trunk/plugins/MCEReplacement/Forms/MacroEditor.resx trunk/plugins/MCEReplacement/Forms/MessageCommand.Designer.cs trunk/plugins/MCEReplacement/Forms/MessageCommand.cs trunk/plugins/MCEReplacement/Forms/MessageCommand.resx trunk/plugins/MCEReplacement/Forms/MultiMapNameBox.Designer.cs trunk/plugins/MCEReplacement/Forms/MultiMapNameBox.cs trunk/plugins/MCEReplacement/Forms/MultiMapNameBox.resx trunk/plugins/MCEReplacement/Forms/PauseTime.Designer.cs trunk/plugins/MCEReplacement/Forms/PauseTime.cs trunk/plugins/MCEReplacement/Forms/PauseTime.resx trunk/plugins/MCEReplacement/Forms/PopupMessage.Designer.cs trunk/plugins/MCEReplacement/Forms/PopupMessage.cs trunk/plugins/MCEReplacement/Forms/PopupMessage.resx trunk/plugins/MCEReplacement/Forms/SelectBlasterPort.Designer.cs trunk/plugins/MCEReplacement/Forms/SelectBlasterPort.cs trunk/plugins/MCEReplacement/Forms/SelectBlasterPort.resx trunk/plugins/MCEReplacement/Forms/SelectBlasterSpeed.Designer.cs trunk/plugins/MCEReplacement/Forms/SelectBlasterSpeed.cs trunk/plugins/MCEReplacement/Forms/SelectBlasterSpeed.resx trunk/plugins/MCEReplacement/Forms/SerialCommand.Designer.cs trunk/plugins/MCEReplacement/Forms/SerialCommand.cs trunk/plugins/MCEReplacement/Forms/SerialCommand.resx trunk/plugins/MCEReplacement/Forms/SetupForm.Designer.cs trunk/plugins/MCEReplacement/Forms/SetupForm.cs trunk/plugins/MCEReplacement/Forms/SetupForm.resx trunk/plugins/MCEReplacement/Forms/StbSetup.Designer.cs trunk/plugins/MCEReplacement/Forms/StbSetup.cs trunk/plugins/MCEReplacement/Forms/StbSetup.resx Removed Paths: ------------- trunk/plugins/MCEReplacement/Configuration/ Added: trunk/plugins/MCEReplacement/Forms/ExternalChannels.cs =================================================================== --- trunk/plugins/MCEReplacement/Forms/ExternalChannels.cs (rev 0) +++ trunk/plugins/MCEReplacement/Forms/ExternalChannels.cs 2007-01-30 02:51:49 UTC (rev 50) @@ -0,0 +1,245 @@ +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; + +using MediaPortal.GUI.Library; +using MediaPortal.Util; + +namespace MediaPortal.Plugins +{ + + public partial class ExternalChannels : Form + { + + #region Variables + + TabPage[] _tvCardTabs; + StbSetup[] _tvCardStbSetups; + + #endregion Variables + + #region Constructor + + public ExternalChannels() + { + InitializeComponent(); + } + + #endregion Constructor + + private void ExternalChannels_Load(object sender, EventArgs e) + { + int cards = MCEReplacement.ExternalChannelConfigs.Length; + string cardName; + string cardNumber; + + _tvCardTabs = new TabPage[cards]; + _tvCardStbSetups = new StbSetup[cards]; + + comboBoxCopyFrom.Items.Clear(); + + for (int index = 0; index < cards; index++) + { + cardNumber = (index + 1).ToString(); + cardName = "TV Card " + cardNumber; + + comboBoxCopyFrom.Items.Add(cardName); + + _tvCardStbSetups[index] = new StbSetup(index); + _tvCardStbSetups[index].Name = "StbSetup" + cardNumber; + _tvCardStbSetups[index].Dock = DockStyle.Fill; + _tvCardStbSetups[index].TabIndex = 0; + + _tvCardTabs[index] = new TabPage(cardName); + _tvCardTabs[index].Controls.Add(_tvCardStbSetups[index]); + + this.tabControlTVCards.TabPages.Add(_tvCardTabs[index]); + } + + comboBoxCopyFrom.SelectedIndex = 0; + + // Setup quick setup combo box + string[] quickSetupFiles = Directory.GetFiles(MCEReplacement.AppDataFolder + MCEReplacement.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, MceIrApi.BlasterPort blasterPort) + { + string[] commands = MCEReplacement.SplitRunCommand(runCommand); + + if (commands == null) + return false; + + commands[2] = commands[2].Replace("%1", currentChannelDigit.ToString()); + commands[2] = commands[2].Replace("%2", fullChannelString); + commands[2] = commands[2].Replace("%3", ((int)blasterPort).ToString()); + + return MCEReplacement.ProcessRunCommand(commands); + } + + static bool ProcessSerialCommand(string serialCommand, int currentChannelDigit, string fullChannelString, MceIrApi.BlasterPort blasterPort) + { + string[] commands = MCEReplacement.SplitSerialCommand(serialCommand); + + if (commands == null) + return false; + + commands[0] = commands[0].Replace("%1", currentChannelDigit.ToString()); + commands[0] = commands[0].Replace("%2", fullChannelString); + commands[0] = commands[0].Replace("%3", ((int)blasterPort).ToString()); + + return MCEReplacement.ProcessSerialCommand(commands); + + } + + #region Buttons + + private void buttonOK_Click(object sender, EventArgs e) + { + foreach (StbSetup setup in _tvCardStbSetups) + setup.Save(); + + foreach (ExternalChannelConfig config in MCEReplacement.ExternalChannelConfigs) + config.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(MCEReplacement.RunCommandPrefix)) + ProcessExternalChannelProgram(setup.PreChangeCommand.Substring(MCEReplacement.RunCommandPrefix.Length), -1, channel, setup.ExtBlastPort); + else if (setup.PreChangeCommand.StartsWith(MCEReplacement.SerialCommandPrefix)) + ProcessSerialCommand(setup.PreChangeCommand.Substring(MCEReplacement.SerialCommandPrefix.Length), -1, channel, setup.ExtBlastPort); + else + MCEReplacement.ProcessCommand(setup.PreChangeCommand, setup.ExtBlastPort, setup.ExtBlastSpeed); + + 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(MCEReplacement.RunCommandPrefix)) + ProcessExternalChannelProgram(command.Substring(MCEReplacement.RunCommandPrefix.Length), charVal, channel, setup.ExtBlastPort); + else if (command.StartsWith(MCEReplacement.SerialCommandPrefix)) + ProcessSerialCommand(command.Substring(MCEReplacement.SerialCommandPrefix.Length), charVal, channel, setup.ExtBlastPort); + else + MCEReplacement.ProcessCommand(command, setup.ExtBlastPort, setup.ExtBlastSpeed); + + if (setup.PauseTime > 0) + Thread.Sleep(setup.PauseTime); + } + } + + if (setup.SendSelect && !String.IsNullOrEmpty(setup.SelectCommand)) + { + if (setup.SelectCommand.StartsWith(MCEReplacement.RunCommandPrefix)) + { + ProcessExternalChannelProgram(setup.SelectCommand.Substring(MCEReplacement.RunCommandPrefix.Length), -1, channel, setup.ExtBlastPort); + + if (setup.DoubleChannelSelect) + ProcessExternalChannelProgram(setup.SelectCommand.Substring(MCEReplacement.RunCommandPrefix.Length), -1, channel, setup.ExtBlastPort); + } + else if (setup.SelectCommand.StartsWith(MCEReplacement.SerialCommandPrefix)) + { + ProcessSerialCommand(setup.SelectCommand.Substring(MCEReplacement.SerialCommandPrefix.Length), -1, channel, setup.ExtBlastPort); + + if (setup.DoubleChannelSelect) + ProcessSerialCommand(setup.SelectCommand.Substring(MCEReplacement.SerialCommandPrefix.Length), -1, channel, setup.ExtBlastPort); + } + else + { + MCEReplacement.ProcessCommand(setup.SelectCommand, setup.ExtBlastPort, setup.ExtBlastSpeed); + + if (setup.DoubleChannelSelect) + MCEReplacement.ProcessCommand(setup.SelectCommand, setup.ExtBlastPort, setup.ExtBlastSpeed); + } + } + } + } + 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 (quickSetup.Length == 0) + return; + + _tvCardStbSetups[tabControlTVCards.SelectedIndex].SetToXml(quickSetup); + } + + private void buttonCopyFrom_Click(object sender, EventArgs e) + { + _tvCardStbSetups[tabControlTVCards.SelectedIndex].SetToCard(comboBoxCopyFrom.SelectedIndex); + } + + private void buttonCancel_Click(object sender, EventArgs e) + { + this.DialogResult = DialogResult.Cancel; + this.Close(); + } + + #endregion Buttons + + } + +} Added: trunk/plugins/MCEReplacement/Forms/ExternalChannels.designer.cs =================================================================== --- trunk/plugins/MCEReplacement/Forms/ExternalChannels.designer.cs (rev 0) +++ trunk/plugins/MCEReplacement/Forms/ExternalChannels.designer.cs 2007-01-30 02:51:49 UTC (rev 50) @@ -0,0 +1,233 @@ +namespace MediaPortal.Plugins +{ + 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, 408); + 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, 352); + 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, 352); + 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, 408); + 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, 408); + 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, 336); + 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, 408); + 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, 439); + 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, 466); + 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/MCEReplacement/Forms/ExternalChannels.resx =================================================================== --- trunk/plugins/MCEReplacement/Forms/ExternalChannels.resx (rev 0) +++ trunk/plugins/MCEReplacement/Forms/ExternalChannels.resx 2007-01-30 02:51:49 UTC (rev 50) @@ -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/MCEReplacement/Forms/ExternalProgram.Designer.cs =================================================================== --- trunk/plugins/MCEReplacement/Forms/ExternalProgram.Designer.cs (rev 0) +++ trunk/plugins/MCEReplacement/Forms/ExternalProgram.Designer.cs 2007-01-30 02:51:49 UTC (rev 50) @@ -0,0 +1,294 @@ +namespace MediaPortal.Plugins +{ + 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.Windows.Forms.AnchorStyles.Right))); + this.labelProgram.Location = new System.Drawing.Point(8, 8); + this.labelProgram.Name = "labelProgram"; + this.labelProgram.Size = new System.Drawing.Size(288, 16); + this.labelProgram.TabIndex = 0; + this.labelProgram.Text = "Program:"; + this.labelProgram.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // buttonProgam + // + this.buttonProgam.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.buttonProgam.Location = new System.Drawing.Point(304, 24); + this.buttonProgam.Name = "buttonProgam"; + this.buttonProgam.Size = new System.Drawing.Size(24, 20); + this.buttonProgam.TabIndex = 2; + this.buttonProgam.Text = "..."; + this.buttonProgam.UseVisualStyleBackColor = true; + this.buttonProgam.Click += new System.EventHandler(this.buttonProgam_Click); + // + // buttonStartup + // + this.buttonStartup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.buttonStartup.Location = new System.Drawing.Point(304, 72); + this.buttonStartup.Name = "buttonStartup"; + this.buttonStartup.Size = new System.Drawing.Size(24, 20); + this.buttonStartup.TabIndex = 5; + this.buttonStartup.Text = "..."; + this.buttonStartup.UseVisualStyleBackColor = true; + this.buttonStartup.Click += new System.EventHandler(this.buttonStartup_Click); + // + // labelStartup + // + this.labelStartup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.labelStartup.Location = new System.Drawing.Point(8, 56); + this.labelStartup.Name = "labelStartup"; + this.labelStartup.Size = new System.Drawing.Size(288, 16); + this.labelStartup.TabIndex = 3; + this.labelStartup.Text = "Startup Folder:"; + this.labelStartup.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // textBoxStartup + // + this.textBoxStartup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBoxStartup.Location = new System.Drawing.Point(8, 72); + this.textBoxStartup.Name = "textBoxStartup"; + this.textBoxStartup.Size = new System.Drawing.Size(288, 20); + this.textBoxStartup.TabIndex = 4; + // + // 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(208, 216); + this.buttonOK.Name = "buttonOK"; + this.buttonOK.Size = new System.Drawing.Size(56, 24); + this.buttonOK.TabIndex = 15; + 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(272, 216); + this.buttonCancel.Name = "buttonCancel"; + this.buttonCancel.Size = new System.Drawing.Size(56, 24); + this.buttonCancel.TabIndex = 16; + this.buttonCancel.Text = "Cancel"; + this.buttonCancel.UseVisualStyleBackColor = true; + this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); + // + // labelParameters + // + this.labelParameters.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.labelParameters.Location = new System.Drawing.Point(8, 104); + this.labelParameters.Name = "labelParameters"; + this.labelParameters.Size = new System.Drawing.Size(288, 16); + this.labelParameters.TabIndex = 6; + this.labelParameters.Text = "Parameters:"; + this.labelParameters.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // textBoxParameters + // + this.textBoxParameters.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBoxParameters.Location = new System.Drawing.Point(8, 120); + this.textBoxParameters.Name = "textBoxParameters"; + this.textBoxParameters.Size = new System.Drawing.Size(288, 20); + this.textBoxParameters.TabIndex = 7; + // + // openFileDialog + // + this.openFileDialog.Filter = "All files|*.*"; + this.openFileDialog.Title = "Select Program Executable"; + // + // folderBrowserDialog + // + this.folderBrowserDialog.Description = "Select the startup folder for the program to run from"; + // + // buttonParamQuestion + // + this.buttonParamQuestion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.buttonParamQuestion.Location = new System.Drawing.Point(304, 120); + this.buttonParamQuestion.Name = "buttonParamQuestion"; + this.buttonParamQuestion.Size = new System.Drawing.Size(24, 20); + this.buttonParamQuestion.TabIndex = 8; + this.buttonParamQuestion.Text = "?"; + this.buttonParamQuestion.UseVisualStyleBackColor = true; + this.buttonParamQuestion.Click += new System.EventHandler(this.buttonParamQuestion_Click); + // + // checkBoxShellExecute + // + this.checkBoxShellExecute.Location = new System.Drawing.Point(8, 184); + this.checkBoxShellExecute.Name = "checkBoxShellExecute"; + this.checkBoxShellExecute.Size = new System.Drawing.Size(184, 21); + this.checkBoxShellExecute.TabIndex = 12; + this.checkBoxShellExecute.Text = "Startup using ShellExecute"; + this.checkBoxShellExecute.UseVisualStyleBackColor = true; + // + // 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, 216); + this.buttonTest.Name = "buttonTest"; + this.buttonTest.Size = new System.Drawing.Size(56, 24); + this.buttonTest.TabIndex = 14; + this.buttonTest.Text = "Test"; + this.buttonTest.UseVisualStyleBackColor = true; + this.buttonTest.Click += new System.EventHandler(this.buttonTest_Click); + // + // checkBoxNoWindow + // + this.checkBoxNoWindow.Location = new System.Drawing.Point(208, 152); + this.checkBoxNoWindow.Name = "checkBoxNoWindow"; + this.checkBoxNoWindow.Size = new System.Drawing.Size(104, 21); + this.checkBoxNoWindow.TabIndex = 11; + this.checkBoxNoWindow.Text = "No window"; + this.checkBoxNoWindow.UseVisualStyleBackColor = true; + // + // checkBoxWaitForExit + // + this.checkBoxWaitForExit.Location = new System.Drawing.Point(208, 184); + this.checkBoxWaitForExit.Name = "checkBoxWaitForExit"; + this.checkBoxWaitForExit.Size = new System.Drawing.Size(104, 21); + this.checkBoxWaitForExit.TabIndex = 13; + this.checkBoxWaitForExit.Text = "Wait for exit"; + this.checkBoxWaitForExit.UseVisualStyleBackColor = true; + // + // comboBoxWindowStyle + // + this.comboBoxWindowStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxWindowStyle.FormattingEnabled = true; + this.comboBoxWindowStyle.Location = new System.Drawing.Point(104, 152); + this.comboBoxWindowStyle.MaxDropDownItems = 4; + this.comboBoxWindowStyle.Name = "comboBoxWindowStyle"; + this.comboBoxWindowStyle.Size = new System.Drawing.Size(88, 21); + this.comboBoxWindowStyle.TabIndex = 10; + // + // labelWindowStyle + // + this.labelWindowStyle.Location = new System.Drawing.Point(8, 152); + this.labelWindowStyle.Name = "labelWindowStyle"; + this.labelWindowStyle.Size = new System.Drawing.Size(96, 21); + this.labelWindowStyle.TabIndex = 9; + this.labelWindowStyle.Text = "Window Style:"; + this.labelWindowStyle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // ExternalProgram + // + 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(336, 249); + this.Controls.Add(this.checkBoxNoWindow); + this.Controls.Add(this.checkBoxWaitForExit); + this.Controls.Add(this.comboBoxWindowStyle); + this.Controls.Add(this.labelWindowStyle); + this.Controls.Add(this.buttonTest); + this.Controls.Add(this.checkBoxShellExecute); + this.Controls.Add(this.buttonParamQuestion); + this.Controls.Add(this.labelParameters); + this.Controls.Add(this.textBoxParameters); + this.Controls.Add(this.buttonCancel); + this.Controls.Add(this.buttonOK); + this.Controls.Add(this.buttonStartup); + this.Controls.Add(this.labelStartup); + this.Controls.Add(this.textBoxStartup); + this.Controls.Add(this.buttonProgam); + this.Controls.Add(this.labelProgram); + this.Controls.Add(this.textBoxProgram); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.MinimumSize = new System.Drawing.Size(344, 276); + this.Name = "ExternalProgram"; + this.ShowIcon = false; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "External Program Details"; + this.Load += new System.EventHandler(this.ExternalProgram_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TextBox textBoxProgram; + private System.Windows.Forms.Label labelProgram; + private System.Windows.Forms.Button buttonProgam; + private System.Windows.Forms.Button buttonStartup; + private System.Windows.Forms.Label labelStartup; + private System.Windows.Forms.TextBox textBoxStartup; + private System.Windows.Forms.Button buttonOK; + private System.Windows.Forms.Button buttonCancel; + private System.Windows.Forms.Label labelParameters; + private System.Windows.Forms.TextBox textBoxParameters; + private System.Windows.Forms.OpenFileDialog openFileDialog; + private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog; + private System.Windows.Forms.Button buttonParamQuestion; + private System.Windows.Forms.CheckBox checkBoxShellExecute; + private System.Windows.Forms.Button buttonTest; + private System.Windows.Forms.CheckBox checkBoxNoWindow; + private System.Windows.Forms.CheckBox checkBoxWaitForExit; + private System.Windows.Forms.ComboBox comboBoxWindowStyle; + private System.Windows.Forms.Label labelWindowStyle; + } +} \ No newline at end of file Added: trunk/plugins/MCEReplacement/Forms/ExternalProgram.cs =================================================================== --- trunk/plugins/MCEReplacement/Forms/ExternalProgram.cs (rev 0) +++ trunk/plugins/MCEReplacement/Forms/ExternalProgram.cs 2007-01-30 02:51:49 UTC (rev 50) @@ -0,0 +1,162 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Diagnostics; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +using MediaPortal.GUI.Library; + +namespace MediaPortal.Plugins +{ + + public partial class ExternalProgram : Form + { + + #region Variables + + string _parametersMessage = ""; + + #endregion Variables + + #region Properties + + public string CommandString + { + get + { + return string.Format("{0}|{1}|{2}|{3}|{4}|{5}|{6}", + textBoxProgram.Text, + textBoxStartup.Text, + textBoxParameters.Text, + (string)comboBoxWindowStyle.SelectedItem, + checkBoxNoWindow.Checked.ToString(), + checkBoxShellExecute.Checked.ToString(), + checkBoxWaitForExit.Checked.ToString()); + } + } + + #endregion Properties + + #region Constructors + + public ExternalProgram() : this(null, "") { } + public ExternalProgram(string parametersMessage) : this(null, parametersMessage) { } + public ExternalProgram(string[] commands) : this(commands, "") { } + public ExternalProgram(string[] commands, string parametersMessage) + { + InitializeComponent(); + + _parametersMessage = parametersMessage; + + comboBoxWindowStyle.Items.Clear(); + comboBoxWindowStyle.Items.AddRange(Enum.GetNames(typeof(ProcessWindowStyle))); + + if (commands != null) + { + textBoxProgram.Text = commands[0]; + textBoxStartup.Text = commands[1]; + textBoxParameters.Text = commands[2]; + + checkBoxNoWindow.Checked = bool.Parse(commands[4]); + checkBoxShellExecute.Checked = bool.Parse(commands[5]); + checkBoxWaitForExit.Checked = bool.Parse(commands[6]); + + comboBoxWindowStyle.SelectedItem = ((ProcessWindowStyle)Enum.Parse(typeof(ProcessWindowStyle), commands[3])).ToString(); + } + else + { + comboBoxWindowStyle.SelectedIndex = 0; + } + } + + #endregion Constructors + + private void ExternalProgram_Load(object sender, EventArgs e) + { + if (_parametersMessage.Trim().Length == 0) + buttonParamQuestion.Visible = false; + } + + + private void buttonProgam_Click(object sender, EventArgs e) + { + if (openFileDialog.ShowDialog(this) == DialogResult.OK) + { + textBoxProgram.Text = openFileDialog.FileName; + + if (textBoxStartup.Text.Trim().Length == 0) + { + textBoxStartup.Text = System.IO.Path.GetDirectoryName(openFileDialog.FileName); + } + } + } + + private void buttonStartup_Click(object sender, EventArgs e) + { + if (folderBrowserDialog.ShowDialog(this) == DialogResult.OK) + { + textBoxProgram.Text = folderBrowserDialog.SelectedPath; + } + } + + private void buttonOK_Click(object sender, EventArgs e) + { + if (textBoxProgram.Text.Trim().Length == 0) + { + MessageBox.Show(this, "You must specify a program to run", "Missing program name", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + return; + } + + this.DialogResult = DialogResult.OK; + this.Close(); + } + + private void buttonCancel_Click(object sender, EventArgs e) + { + this.DialogResult = DialogResult.Cancel; + this.Close(); + } + + private void buttonParamQuestion_Click(object sender, EventArgs e) + { + MessageBox.Show(this, _parametersMessage, "Parameters", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + + private void buttonTest_Click(object sender, EventArgs e) + { + if (textBoxProgram.Text.Trim().Length == 0) + { + MessageBox.Show(this, "You must specify a program to run", "Missing program name", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + return; + } + + try + { + Process process = new Process(); + process.StartInfo.FileName = textBoxProgram.Text; + process.StartInfo.WorkingDirectory = textBoxStartup.Text; + process.StartInfo.Arguments = textBoxParameters.Text; + process.StartInfo.WindowStyle = (ProcessWindowStyle)Enum.Parse(typeof(ProcessWindowStyle), (string)comboBoxWindowStyle.SelectedItem); + process.StartInfo.CreateNoWindow = checkBoxNoWindow.Checked; + process.StartInfo.UseShellExecute = checkBoxShellExecute.Checked; + + if (MCEReplacement.LogVerbose) + Log.Info("MCEReplacement: Launching external program {0}", textBoxProgram.Text); + + process.Start(); + + if (checkBoxWaitForExit.Checked) // Wait for exit + process.WaitForExit(); + } + catch (Exception ex) + { + Log.Error("MCEReplacement: {0}", ex.Message); + } + } + + } + +} Added: trunk/plugins/MCEReplacement/Forms/ExternalProgram.resx =================================================================== --- trunk/plugins/MCEReplacement/Forms/ExternalProgram.resx (rev 0) +++ trunk/plugins/MCEReplacement/Forms/ExternalProgram.resx 2007-01-30 02:51:49 UTC (rev 50) @@ -0,0 +1,126 @@ +<?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> + <metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> + <metadata name="folderBrowserDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>144, 17</value> + </metadata> +</root> \ No newline at end of file Added: trunk/plugins/MCEReplacement/Forms/GoToScreen.Designer.cs =================================================================== --- trunk/plugins/MCEReplacement/Forms/GoToScreen.Designer.cs (rev 0) +++ trunk/plugins/MCEReplacement/Forms/GoToScreen.Designer.cs 2007-01-30 02:51:49 UTC (rev 50) @@ -0,0 +1,111 @@ +namespace MediaPortal.Plugins +{ + partial class GoToScreen + { + /// <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.comboBoxScreen = new System.Windows.Forms.ComboBox(); + this.buttonOK = new System.Windows.Forms.Button(); + this.buttonCancel = new System.Windows.Forms.Button(); + this.labelScreen = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // comboBoxScreen + // + this.comboBoxScreen.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.comboBoxScreen.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxScreen.FormattingEnabled = true; + this.comboBoxScreen.Location = new System.Drawing.Point(8, 24); + this.comboBoxScreen.Name = "comboBoxScreen"; + this.comboBoxScreen.Size = new System.Drawing.Size(280, 21); + this.comboBoxScreen.TabIndex = 0; + // + // 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(152, 56); + this.buttonOK.Name = "buttonOK"; + this.buttonOK.Size = new System.Drawing.Size(64, 24); + this.buttonOK.TabIndex = 1; + 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, 56); + this.buttonCancel.Name = "buttonCancel"; + this.buttonCancel.Size = new System.Drawing.Size(64, 24); + this.buttonCancel.TabIndex = 2; + this.buttonCancel.Text = "Cancel"; + this.buttonCancel.UseVisualStyleBackColor = true; + this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); + // + // labelScreen + // + this.labelScreen.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.labelScreen.Location = new System.Drawing.Point(8, 8); + this.labelScreen.Name = "labelScreen"; + this.labelScreen.Size = new System.Drawing.Size(280, 16); + this.labelScreen.TabIndex = 3; + this.labelScreen.Text = "Screen:"; + // + // GoToScreen + // + 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(296, 89); + this.Controls.Add(this.labelScre... [truncated message content] |
From: <moi...@us...> - 2007-01-30 02:13:07
|
Revision: 49 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=49&view=rev Author: moiristo Date: 2007-01-29 18:13:05 -0800 (Mon, 29 Jan 2007) Log Message: ----------- Version 0.5! Modified Paths: -------------- trunk/plugins/UitzendingGemist/UitGemist/NLGemist.cs trunk/plugins/UitzendingGemist/UitGemist/RTLGemist.cs trunk/plugins/UitzendingGemist/UitGemist/ShowWaitCursor.cs trunk/plugins/UitzendingGemist/UitGemist/UitGemist.csproj trunk/plugins/UitzendingGemist/UitGemist.suo trunk/plugins/UitzendingGemist/skin/[Default Skin]/RtlGemist.xml trunk/plugins/UitzendingGemist/skin/[Default Skin]/UitGemist.xml trunk/plugins/UitzendingGemist/skin/[Default Skin]/UitGemist2.xml trunk/plugins/UitzendingGemist/skin/[Default Skin]/UitGemistMain.xml trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/RtlGemist.xml trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/UitGemist.xml trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/UitGemist2.xml trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/UitGemistMain.xml Modified: trunk/plugins/UitzendingGemist/UitGemist/NLGemist.cs =================================================================== --- trunk/plugins/UitzendingGemist/UitGemist/NLGemist.cs 2007-01-29 23:35:51 UTC (rev 48) +++ trunk/plugins/UitzendingGemist/UitGemist/NLGemist.cs 2007-01-30 02:13:05 UTC (rev 49) @@ -275,11 +275,18 @@ } ShowList(Names); } + public static string GetPlayUrl(string url) { - Match m = Regex.Match(wc.GetUrl(url), @"var\smediaurl\s=\s.(http://.*?).;"); + string page = wc.GetUrl(url, true); + Log.Debug(""+page.Length); + Regex r = new Regex(@"src=.(?<url>.*?\.asf)", RegexOptions.Multiline); + Match m = r.Match(page); + Log.Debug(""+m.Success); url = m.Groups[1].Value; + Log.Debug("url length:" + url.Length); + Log.Debug(url); url = url.Replace(".rm", ".asf"); url = ConvertString(url); return url; Modified: trunk/plugins/UitzendingGemist/UitGemist/RTLGemist.cs =================================================================== --- trunk/plugins/UitzendingGemist/UitGemist/RTLGemist.cs 2007-01-29 23:35:51 UTC (rev 48) +++ trunk/plugins/UitzendingGemist/UitGemist/RTLGemist.cs 2007-01-30 02:13:05 UTC (rev 49) @@ -5,7 +5,7 @@ using System.Text.RegularExpressions; using MediaPortal.GUI.Library; using MediaPortal.Player; -using MediaPortal.Util; +using MediaPortal.Utils; using MediaPortal.Dialogs; using MediaPortal.Playlists; using System.Xml; Modified: trunk/plugins/UitzendingGemist/UitGemist/ShowWaitCursor.cs =================================================================== --- trunk/plugins/UitzendingGemist/UitGemist/ShowWaitCursor.cs 2007-01-29 23:35:51 UTC (rev 48) +++ trunk/plugins/UitzendingGemist/UitGemist/ShowWaitCursor.cs 2007-01-30 02:13:05 UTC (rev 49) @@ -136,6 +136,14 @@ secondRequest.UserAgent = agent; secondRequest.ContentType = postType; secondRequest.CookieContainer = new CookieContainer(); + + Cookie c = new Cookie(); + c.Domain = "player.omroep.nl"; + c.Name = "player_instellingen"; + c.Value = "formaat:wmv&kwaliteit:bb"; + + secondRequest.CookieContainer.Add(c); + CookieCollection cookies = firstResponse.Cookies; secondRequest.CookieContainer.Add(cookies); Modified: trunk/plugins/UitzendingGemist/UitGemist/UitGemist.csproj =================================================================== --- trunk/plugins/UitzendingGemist/UitGemist/UitGemist.csproj 2007-01-29 23:35:51 UTC (rev 48) +++ trunk/plugins/UitzendingGemist/UitGemist/UitGemist.csproj 2007-01-30 02:13:05 UTC (rev 49) @@ -9,6 +9,7 @@ <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>UitGemist</RootNamespace> <AssemblyName>UitGemist</AssemblyName> + <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -30,7 +31,7 @@ <ItemGroup> <Reference Include="Core, Version=1.0.2560.37327, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\trunk\mediaportal\Core\bin\Release\Core.dll</HintPath> + <HintPath>..\..\..\trunk\mediaportal\Core\bin\Release\Core.dll</HintPath> </Reference> <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> @@ -43,7 +44,7 @@ <Reference Include="System.Xml" /> <Reference Include="Utils, Version=1.0.2560.37325, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\trunk\mediaportal\Utils\bin\Release\Utils.dll</HintPath> + <HintPath>..\..\..\trunk\mediaportal\Utils\bin\Release\Utils.dll</HintPath> </Reference> </ItemGroup> <ItemGroup> @@ -75,4 +76,7 @@ <Target Name="AfterBuild"> </Target> --> + <PropertyGroup> + <PostBuildEvent>xcopy $(TargetPath) D:\MediaPortal\trunk\mediaportal\xbmc\bin\Release\plugins\windows\$(TargetFileName) /y</PostBuildEvent> + </PropertyGroup> </Project> \ No newline at end of file Modified: trunk/plugins/UitzendingGemist/UitGemist.suo =================================================================== (Binary files differ) Modified: trunk/plugins/UitzendingGemist/skin/[Default Skin]/RtlGemist.xml =================================================================== --- trunk/plugins/UitzendingGemist/skin/[Default Skin]/RtlGemist.xml 2007-01-29 23:35:51 UTC (rev 48) +++ trunk/plugins/UitzendingGemist/skin/[Default Skin]/RtlGemist.xml 2007-01-30 02:13:05 UTC (rev 49) @@ -8,9 +8,12 @@ <control> <type>group</type> <description>group element</description> - <animation>FlyInFromLeft</animation> + <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> <layout>StackLayout</layout> - <posX>60</posX> + <posX>50</posX> <posY>97</posY> <control> <description>Favorieten</description> Modified: trunk/plugins/UitzendingGemist/skin/[Default Skin]/UitGemist.xml =================================================================== --- trunk/plugins/UitzendingGemist/skin/[Default Skin]/UitGemist.xml 2007-01-29 23:35:51 UTC (rev 48) +++ trunk/plugins/UitzendingGemist/skin/[Default Skin]/UitGemist.xml 2007-01-30 02:13:05 UTC (rev 49) @@ -8,9 +8,12 @@ <control> <type>group</type> <description>group element</description> - <animation>FlyInFromLeft</animation> + <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> <layout>StackLayout</layout> - <posX>60</posX> + <posX>50</posX> <posY>97</posY> <control> <description>Favorieten</description> Modified: trunk/plugins/UitzendingGemist/skin/[Default Skin]/UitGemist2.xml =================================================================== --- trunk/plugins/UitzendingGemist/skin/[Default Skin]/UitGemist2.xml 2007-01-29 23:35:51 UTC (rev 48) +++ trunk/plugins/UitzendingGemist/skin/[Default Skin]/UitGemist2.xml 2007-01-30 02:13:05 UTC (rev 49) @@ -8,12 +8,13 @@ <control> <type>group</type> <description>group element</description> - <animation>FlyInFromTop</animation> + <animation effect="fade" time="250">WindowOpen</animation> + <animation effect="fade" time="500">WindowClose</animation> <control> <type>image</type> <description>Program image</description> <id>3</id> - <posX>60</posX> + <posX>50</posX> <posY>115</posY> <width>100</width> <height>75</height> Modified: trunk/plugins/UitzendingGemist/skin/[Default Skin]/UitGemistMain.xml =================================================================== --- trunk/plugins/UitzendingGemist/skin/[Default Skin]/UitGemistMain.xml 2007-01-29 23:35:51 UTC (rev 48) +++ trunk/plugins/UitzendingGemist/skin/[Default Skin]/UitGemistMain.xml 2007-01-30 02:13:05 UTC (rev 49) @@ -8,23 +8,20 @@ <controls> <import>common.window.xml</import> - <control> - <type>group</type> - <description>group element</description> - <animation>FlyInFromTop</animation> - <layout>StackLayout</layout> - <posX>80</posX> - <posY>120</posY> <!-- topmost item needs an onup with a value of 17 for topbar to work --> <control> <description>UitzendingGemist.nl</description> <type>button</type> <id>2</id> - <width>560</width> - <height>80</height> + <width>575</width> + <height>90</height> + <posX>80</posX> + <posY>120</posY> <textureNoFocus>nlgemist.png</textureNoFocus> <textureFocus>hover_nlgemist.png</textureFocus> + <animation effect="fade" time="250">WindowOpen</animation> + <animation effect="fade" time="500">WindowClose</animation> <onup>17</onup> </control> @@ -33,15 +30,16 @@ <description>RTL Gemist</description> <type>button</type> <id>3</id> - <width>560</width> - <height>80</height> - <textXOff>10</textXOff> - <textYOff>5</textYOff> + <posX>80</posX> + <posY>220</posY> + <width>575</width> + <height>90</height> <textureNoFocus>rtlgemist.png</textureNoFocus> <textureFocus>hover_rtlgemist.png</textureFocus> + <animation effect="fade" time="250">WindowOpen</animation> + <animation effect="fade" time="500">WindowClose</animation> <ondown>2</ondown> </control> - </control> </controls> </window> Modified: trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/RtlGemist.xml =================================================================== --- trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/RtlGemist.xml 2007-01-29 23:35:51 UTC (rev 48) +++ trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/RtlGemist.xml 2007-01-30 02:13:05 UTC (rev 49) @@ -18,7 +18,10 @@ <control> <type>group</type> <description>group element</description> - <animation>FlyInFromLeft</animation> + <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> <layout>StackLayout</layout> <posX>5</posX> <posY>125</posY> Modified: trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/UitGemist.xml =================================================================== --- trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/UitGemist.xml 2007-01-29 23:35:51 UTC (rev 48) +++ trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/UitGemist.xml 2007-01-30 02:13:05 UTC (rev 49) @@ -18,7 +18,10 @@ <control> <type>group</type> <description>group element</description> - <animation>FlyInFromLeft</animation> + <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> <layout>StackLayout</layout> <posX>5</posX> <posY>125</posY> Modified: trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/UitGemist2.xml =================================================================== --- trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/UitGemist2.xml 2007-01-29 23:35:51 UTC (rev 48) +++ trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/UitGemist2.xml 2007-01-30 02:13:05 UTC (rev 49) @@ -18,7 +18,8 @@ <control> <type>group</type> <description>group element</description> - <animation>FlyInFromTop</animation> + <animation effect="fade" time="250">WindowOpen</animation> + <animation effect="fade" time="500">WindowClose</animation> <control> <type>image</type> <description>Program image</description> Modified: trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/UitGemistMain.xml =================================================================== --- trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/UitGemistMain.xml 2007-01-29 23:35:51 UTC (rev 48) +++ trunk/plugins/UitzendingGemist/skin/[Project Mayhem]/UitGemistMain.xml 2007-01-30 02:13:05 UTC (rev 49) @@ -19,7 +19,10 @@ <control> <type>group</type> <description>group element</description> - <animation>FlyInFromTop</animation> + <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> <layout>StackLayout</layout> <posX>80</posX> <posY>120</posY> @@ -29,8 +32,8 @@ <description>UitzendingGemist.nl</description> <type>button</type> <id>2</id> - <width>560</width> - <height>80</height> + <width>575</width> + <height>90</height> <textureNoFocus>nlgemist.png</textureNoFocus> <textureFocus>hover_nlgemist.png</textureFocus> <onup>17</onup> @@ -41,10 +44,8 @@ <description>RTL Gemist</description> <type>button</type> <id>3</id> - <width>560</width> - <height>80</height> - <textXOff>10</textXOff> - <textYOff>5</textYOff> + <width>575</width> + <height>90</height> <textureNoFocus>rtlgemist.png</textureNoFocus> <textureFocus>hover_rtlgemist.png</textureFocus> <ondown>2</ondown> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |