|
From: <du...@us...> - 2007-02-12 18:58:48
|
Revision: 112
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=112&view=rev
Author: dukus
Date: 2007-02-12 09:42:33 -0800 (Mon, 12 Feb 2007)
Log Message:
-----------
Text type added
Modified Paths:
--------------
trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs
trunk/plugins/mpinstaler/MPInstaler/Form1.cs
trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj
trunk/plugins/mpinstaler/MPInstaler/MPinstalerStruct.cs
trunk/plugins/mpinstaler/MPInstaler.suo
Removed Paths:
-------------
trunk/plugins/mpinstaler/MPInstaler/Form2.Designer.cs
trunk/plugins/mpinstaler/MPInstaler/Form2.cs
trunk/plugins/mpinstaler/MPInstaler/Form2.resx
Modified: trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs 2007-02-11 09:17:50 UTC (rev 111)
+++ trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs 2007-02-12 17:42:33 UTC (rev 112)
@@ -52,6 +52,10 @@
this.mediaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fullToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.languageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.textToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.otherToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.textToolStripMenuItem1 = 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();
@@ -66,13 +70,22 @@
this.tabPage_Skin = new System.Windows.Forms.TabPage();
this.tabPage_Plugin = new System.Windows.Forms.TabPage();
this.tabControl1 = new System.Windows.Forms.TabControl();
- this.tabPage_Other = new System.Windows.Forms.TabPage();
+ this.tabPage_Text = new System.Windows.Forms.TabPage();
+ this.textt_comboBox1 = new System.Windows.Forms.ComboBox();
+ this.label1 = new System.Windows.Forms.Label();
this.tabPage_Language = new System.Windows.Forms.TabPage();
this.tabPage_Proiect = new System.Windows.Forms.TabPage();
- this.textToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.label2 = new System.Windows.Forms.Label();
+ this.proiectt_textBox1 = new System.Windows.Forms.TextBox();
+ this.label3 = new System.Windows.Forms.Label();
+ this.proiectt_textBox2 = new System.Windows.Forms.TextBox();
+ this.label4 = new System.Windows.Forms.Label();
+ this.proiectt_textBox3 = new System.Windows.Forms.TextBox();
this.menuStrip1.SuspendLayout();
this.contextMenuStrip1.SuspendLayout();
this.tabControl1.SuspendLayout();
+ this.tabPage_Text.SuspendLayout();
+ this.tabPage_Proiect.SuspendLayout();
this.SuspendLayout();
//
// menuStrip1
@@ -166,7 +179,10 @@
this.windowPluginToolStripMenuItem,
this.skinToolStripMenuItem,
this.languageToolStripMenuItem,
- this.textToolStripMenuItem});
+ this.textToolStripMenuItem,
+ this.otherToolStripMenuItem,
+ this.settingsToolStripMenuItem,
+ this.textToolStripMenuItem1});
this.addToolStripMenuItem.Name = "addToolStripMenuItem";
this.addToolStripMenuItem.Size = new System.Drawing.Size(38, 20);
this.addToolStripMenuItem.Text = "Add";
@@ -180,7 +196,7 @@
this.tagReadersToolStripMenuItem,
this.externalPlayersToolStripMenuItem});
this.windowPluginToolStripMenuItem.Name = "windowPluginToolStripMenuItem";
- this.windowPluginToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.windowPluginToolStripMenuItem.Size = new System.Drawing.Size(132, 22);
this.windowPluginToolStripMenuItem.Text = "Plugin";
//
// windowToolStripMenuItem
@@ -225,43 +241,69 @@
this.mediaToolStripMenuItem,
this.fullToolStripMenuItem});
this.skinToolStripMenuItem.Name = "skinToolStripMenuItem";
- this.skinToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ 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(152, 22);
+ 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(152, 22);
+ 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.Enabled = false;
this.fullToolStripMenuItem.Name = "fullToolStripMenuItem";
- this.fullToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ 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(152, 22);
+ this.languageToolStripMenuItem.Size = new System.Drawing.Size(132, 22);
this.languageToolStripMenuItem.Text = "Language";
this.languageToolStripMenuItem.Click += new System.EventHandler(this.languageToolStripMenuItem_Click);
//
+ // textToolStripMenuItem
+ //
+ this.textToolStripMenuItem.Name = "textToolStripMenuItem";
+ this.textToolStripMenuItem.Size = new System.Drawing.Size(132, 22);
+ this.textToolStripMenuItem.Text = "Text";
+ this.textToolStripMenuItem.Click += new System.EventHandler(this.textToolStripMenuItem_Click);
+ //
+ // otherToolStripMenuItem
+ //
+ this.otherToolStripMenuItem.Name = "otherToolStripMenuItem";
+ this.otherToolStripMenuItem.Size = new System.Drawing.Size(132, 22);
+ this.otherToolStripMenuItem.Text = "Other";
+ //
+ // settingsToolStripMenuItem
+ //
+ this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
+ this.settingsToolStripMenuItem.Size = new System.Drawing.Size(132, 22);
+ this.settingsToolStripMenuItem.Text = "Settings";
+ //
+ // textToolStripMenuItem1
+ //
+ this.textToolStripMenuItem1.Name = "textToolStripMenuItem1";
+ this.textToolStripMenuItem1.Size = new System.Drawing.Size(132, 22);
+ this.textToolStripMenuItem1.Text = "Text";
+ this.textToolStripMenuItem1.Click += new System.EventHandler(this.textToolStripMenuItem1_Click);
+ //
// bossview
//
this.bossview.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.bossview.CheckBoxes = true;
this.bossview.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,
this.columnHeader2,
@@ -272,6 +314,7 @@
this.bossview.ContextMenuStrip = this.contextMenuStrip1;
this.bossview.FullRowSelect = true;
this.bossview.GridLines = true;
+ this.bossview.HideSelection = false;
this.bossview.Location = new System.Drawing.Point(12, 40);
this.bossview.Name = "bossview";
this.bossview.Size = new System.Drawing.Size(651, 227);
@@ -340,7 +383,7 @@
this.tabPage_Skin.Padding = new System.Windows.Forms.Padding(3);
this.tabPage_Skin.Size = new System.Drawing.Size(643, 120);
this.tabPage_Skin.TabIndex = 1;
- this.tabPage_Skin.Text = "Properties";
+ this.tabPage_Skin.Text = "Skin Properties";
this.tabPage_Skin.UseVisualStyleBackColor = true;
//
// tabPage_Plugin
@@ -350,7 +393,7 @@
this.tabPage_Plugin.Padding = new System.Windows.Forms.Padding(3);
this.tabPage_Plugin.Size = new System.Drawing.Size(643, 120);
this.tabPage_Plugin.TabIndex = 0;
- this.tabPage_Plugin.Text = "Properties";
+ this.tabPage_Plugin.Text = "Plugin Properties";
this.tabPage_Plugin.UseVisualStyleBackColor = true;
//
// tabControl1
@@ -359,7 +402,7 @@
| System.Windows.Forms.AnchorStyles.Right)));
this.tabControl1.Controls.Add(this.tabPage_Plugin);
this.tabControl1.Controls.Add(this.tabPage_Skin);
- this.tabControl1.Controls.Add(this.tabPage_Other);
+ this.tabControl1.Controls.Add(this.tabPage_Text);
this.tabControl1.Controls.Add(this.tabPage_Language);
this.tabControl1.Controls.Add(this.tabPage_Proiect);
this.tabControl1.Location = new System.Drawing.Point(12, 273);
@@ -368,15 +411,40 @@
this.tabControl1.Size = new System.Drawing.Size(651, 146);
this.tabControl1.TabIndex = 3;
//
- // tabPage_Other
+ // tabPage_Text
//
- this.tabPage_Other.Location = new System.Drawing.Point(4, 22);
- this.tabPage_Other.Name = "tabPage_Other";
- this.tabPage_Other.Size = new System.Drawing.Size(643, 120);
- this.tabPage_Other.TabIndex = 2;
- this.tabPage_Other.Text = "Properties";
- this.tabPage_Other.UseVisualStyleBackColor = true;
+ this.tabPage_Text.Controls.Add(this.textt_comboBox1);
+ this.tabPage_Text.Controls.Add(this.label1);
+ this.tabPage_Text.Location = new System.Drawing.Point(4, 22);
+ this.tabPage_Text.Name = "tabPage_Text";
+ this.tabPage_Text.Size = new System.Drawing.Size(643, 120);
+ this.tabPage_Text.TabIndex = 2;
+ this.tabPage_Text.Text = "Text Properties";
+ this.tabPage_Text.UseVisualStyleBackColor = true;
//
+ // textt_comboBox1
+ //
+ this.textt_comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.textt_comboBox1.FormattingEnabled = true;
+ this.textt_comboBox1.Items.AddRange(new object[] {
+ "LOG",
+ "EULA",
+ "READ ME"});
+ this.textt_comboBox1.Location = new System.Drawing.Point(43, 18);
+ this.textt_comboBox1.Name = "textt_comboBox1";
+ this.textt_comboBox1.Size = new System.Drawing.Size(111, 21);
+ this.textt_comboBox1.TabIndex = 1;
+ this.textt_comboBox1.TextChanged += new System.EventHandler(this.tab_text_change);
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(3, 21);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(34, 13);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "Type:";
+ //
// tabPage_Language
//
this.tabPage_Language.Location = new System.Drawing.Point(4, 22);
@@ -388,6 +456,12 @@
//
// tabPage_Proiect
//
+ this.tabPage_Proiect.Controls.Add(this.proiectt_textBox3);
+ this.tabPage_Proiect.Controls.Add(this.label4);
+ this.tabPage_Proiect.Controls.Add(this.proiectt_textBox2);
+ this.tabPage_Proiect.Controls.Add(this.label3);
+ this.tabPage_Proiect.Controls.Add(this.proiectt_textBox1);
+ this.tabPage_Proiect.Controls.Add(this.label2);
this.tabPage_Proiect.Location = new System.Drawing.Point(4, 22);
this.tabPage_Proiect.Name = "tabPage_Proiect";
this.tabPage_Proiect.Size = new System.Drawing.Size(643, 120);
@@ -395,12 +469,55 @@
this.tabPage_Proiect.Text = "Proiect Properties";
this.tabPage_Proiect.UseVisualStyleBackColor = true;
//
- // textToolStripMenuItem
+ // label2
//
- this.textToolStripMenuItem.Name = "textToolStripMenuItem";
- this.textToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
- this.textToolStripMenuItem.Text = "Text";
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(3, 12);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(41, 13);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "Name :";
//
+ // proiectt_textBox1
+ //
+ this.proiectt_textBox1.Location = new System.Drawing.Point(94, 5);
+ this.proiectt_textBox1.Name = "proiectt_textBox1";
+ this.proiectt_textBox1.Size = new System.Drawing.Size(298, 20);
+ this.proiectt_textBox1.TabIndex = 1;
+ this.proiectt_textBox1.TextChanged += new System.EventHandler(this.proiectt_textBox1_TextChanged);
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(3, 40);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(44, 13);
+ this.label3.TabIndex = 2;
+ this.label3.Text = "Author :";
+ //
+ // proiectt_textBox2
+ //
+ this.proiectt_textBox2.Location = new System.Drawing.Point(94, 33);
+ this.proiectt_textBox2.Name = "proiectt_textBox2";
+ this.proiectt_textBox2.Size = new System.Drawing.Size(298, 20);
+ this.proiectt_textBox2.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(3, 66);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(73, 13);
+ this.label4.TabIndex = 4;
+ this.label4.Text = "Update URL :";
+ //
+ // proiectt_textBox3
+ //
+ this.proiectt_textBox3.Location = new System.Drawing.Point(94, 59);
+ this.proiectt_textBox3.Name = "proiectt_textBox3";
+ this.proiectt_textBox3.Size = new System.Drawing.Size(298, 20);
+ this.proiectt_textBox3.TabIndex = 5;
+ //
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -417,6 +534,10 @@
this.menuStrip1.PerformLayout();
this.contextMenuStrip1.ResumeLayout(false);
this.tabControl1.ResumeLayout(false);
+ this.tabPage_Text.ResumeLayout(false);
+ this.tabPage_Text.PerformLayout();
+ this.tabPage_Proiect.ResumeLayout(false);
+ this.tabPage_Proiect.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@@ -460,11 +581,22 @@
private System.Windows.Forms.TabPage tabPage_Skin;
private System.Windows.Forms.TabPage tabPage_Plugin;
private System.Windows.Forms.TabControl tabControl1;
- private System.Windows.Forms.TabPage tabPage_Other;
+ private System.Windows.Forms.TabPage tabPage_Text;
private System.Windows.Forms.TabPage tabPage_Language;
private System.Windows.Forms.TabPage tabPage_Proiect;
private System.Windows.Forms.ColumnHeader columnHeader6;
private System.Windows.Forms.ToolStripMenuItem textToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem otherToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem textToolStripMenuItem1;
+ private System.Windows.Forms.ComboBox textt_comboBox1;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.TextBox proiectt_textBox1;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.TextBox proiectt_textBox2;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.TextBox proiectt_textBox3;
+ private System.Windows.Forms.Label label4;
}
}
Modified: trunk/plugins/mpinstaler/MPInstaler/Form1.cs
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/Form1.cs 2007-02-11 09:17:50 UTC (rev 111)
+++ trunk/plugins/mpinstaler/MPInstaler/Form1.cs 2007-02-12 17:42:33 UTC (rev 112)
@@ -79,7 +79,18 @@
}
}
}
-
+ private void addtext()
+ {
+ openFileDialog1.Filter = "txt files|*.txt|All files|*.*";
+ openFileDialog1.Multiselect = true;
+ if (openFileDialog1.ShowDialog(this) == DialogResult.OK)
+ {
+ foreach (string fil in openFileDialog1.FileNames)
+ {
+ addrow(Path.GetFileName(fil), MPinstalerStruct.TEXT_TYPE, MPinstalerStruct.TEXT_LOG_TYPE, Path.GetFullPath(fil), "03010", "");
+ }
+ }
+}
private void addskin(int type)
{
// string fil;
@@ -147,6 +158,7 @@
if (openFileDialog1.ShowDialog(this) == DialogResult.OK)
{
fil = openFileDialog1.FileName;
+ proiect_file_name = fil;
XmlDocument doc = new XmlDocument();
doc.Load(fil);
XmlNode ver = doc.DocumentElement.SelectSingleNode("/MPinstaler");
@@ -161,14 +173,21 @@
nodefile.SelectSingleNode("Id").InnerText);
}
_struct.BuildFileName = ver.SelectSingleNode("Option/BuildFileName").InnerText;
+ _struct.Name = ver.SelectSingleNode("Option/ProiectName").InnerText;
+ _struct.Author = ver.SelectSingleNode("Option/Author").InnerText;
+ _struct.UpdateURL = ver.SelectSingleNode("Option/UpdateURL").InnerText;
_struct.ProiectdFileName = fil;
}
_struct.AddFileList(bossview);
+ proiectt_textBox1.Text = _struct.Name;
+ proiectt_textBox2.Text = _struct.Author;
+ proiectt_textBox2.Text = _struct.UpdateURL;
}
private void languageToolStripMenuItem_Click(object sender, EventArgs e)
{
Form2 StrForm = new Form2();
+ //StrForm.baseDir = "D:\\Program Files\\Team MediaPortal\\MediaPortal\\" ;
StrForm.ShowDialog();
}
@@ -246,6 +265,9 @@
writer.WriteStartElement("Option");
writer.WriteElementString("BuildFileName", _struct.BuildFileName);
writer.WriteElementString("ProiectFileName", Path.GetFullPath(_struct.ProiectdFileName));
+ writer.WriteElementString("ProiectName", _struct.Name);
+ writer.WriteElementString("Author", _struct.Author);
+ writer.WriteElementString("UpdateURL", _struct.UpdateURL);
writer.WriteEndElement();
writer.WriteEndElement();
writer.Flush();
@@ -280,6 +302,10 @@
{
tabControl1.Controls.Clear();
tabControl1.Controls.Add(tabPage_Proiect);
+ textt_comboBox1.Items.Clear();
+ textt_comboBox1.Items.Add(MPinstalerStruct.TEXT_LOG_TYPE);
+ textt_comboBox1.Items.Add(MPinstalerStruct.TEXT_README_TYPE);
+ textt_comboBox1.Items.Add(MPinstalerStruct.TEXT_EULA_TYPE);
}
private void bossview_SelectedIndexChanged(object sender, EventArgs e)
@@ -298,6 +324,14 @@
tabControl1.Controls.Add(tabPage_Skin);
tabControl1.Controls.Add(tabPage_Proiect);
}
+ if (bossview.SelectedItems[0].SubItems[1].Text == MPinstalerStruct.TEXT_TYPE)
+ {
+ tabControl1.Controls.Clear();
+ tabControl1.Controls.Add(tabPage_Text);
+ tabControl1.Controls.Add(tabPage_Proiect);
+ textt_comboBox1.Text = bossview.SelectedItems[0].SubItems[2].Text;
+ }
+
}
else
{
@@ -307,5 +341,29 @@
}
+ private void textToolStripMenuItem1_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void textToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ addtext();
+ }
+
+ private void tab_text_change(object sender, EventArgs e)
+ {
+ if (bossview.SelectedItems.Count > 0)
+ {
+ bossview.SelectedItems[0].SubItems[2].Text = textt_comboBox1.Text;
+ }
+ }
+
+ private void proiectt_textBox1_TextChanged(object sender, EventArgs e)
+ {
+ _struct.Name = proiectt_textBox1.Text;
+ }
+
+
}
}
\ No newline at end of file
Deleted: trunk/plugins/mpinstaler/MPInstaler/Form2.Designer.cs
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/Form2.Designer.cs 2007-02-11 09:17:50 UTC (rev 111)
+++ trunk/plugins/mpinstaler/MPInstaler/Form2.Designer.cs 2007-02-12 17:42:33 UTC (rev 112)
@@ -1,137 +0,0 @@
-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.languageComboBox = 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);
- //
- // languageComboBox
- //
- this.languageComboBox.FormattingEnabled = true;
- this.languageComboBox.Location = new System.Drawing.Point(12, 22);
- this.languageComboBox.Name = "languageComboBox";
- this.languageComboBox.Size = new System.Drawing.Size(372, 21);
- this.languageComboBox.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 = new System.Drawing.Size(304, 20);
- this.textBox2.TabIndex = 5;
- //
- // Form2
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(396, 333);
- this.Controls.Add(this.textBox2);
- this.Controls.Add(this.textBox1);
- this.Controls.Add(this.listView1);
- this.Controls.Add(this.languageComboBox);
- this.Controls.Add(this.button2);
- this.Controls.Add(this.button1);
- this.Name = "Form2";
- this.Text = "String Editor";
- this.Load += new System.EventHandler(this.Form2_Load);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.Button button2;
- private System.Windows.Forms.ComboBox languageComboBox;
- private System.Windows.Forms.ListView listView1;
- private System.Windows.Forms.ColumnHeader columnHeader1;
- private System.Windows.Forms.ColumnHeader columnHeader2;
- private System.Windows.Forms.TextBox textBox1;
- private System.Windows.Forms.TextBox textBox2;
- }
-}
\ No newline at end of file
Deleted: trunk/plugins/mpinstaler/MPInstaler/Form2.cs
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/Form2.cs 2007-02-11 09:17:50 UTC (rev 111)
+++ trunk/plugins/mpinstaler/MPInstaler/Form2.cs 2007-02-12 17:42:33 UTC (rev 112)
@@ -1,66 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Text;
-using System.Windows.Forms;
-using System.IO;
-
-namespace MPInstaler
-{
- public partial class Form2 : Form
- {
- string LanguageDirectory = "";
- public Form2()
- {
- InitializeComponent();
- }
-
- private void button1_Click(object sender, EventArgs e)
- {
- ListViewItem item1 = new ListViewItem(textBox1.Text, 0);
- item1.SubItems.Add(textBox2.Text);
- listView1.Items.AddRange(new ListViewItem[] { item1 });
-
- }
-
- private void listView1_SelectedIndexChanged(object sender, EventArgs e)
- {
-
- }
-
- private void button2_Click(object sender, EventArgs e)
- {
- foreach (int index in listView1.SelectedIndices)
- {
- listView1.Items.RemoveAt(index);
- }
- }
-
- private void Form2_Load(object sender, EventArgs e)
- {
- if (Directory.Exists(LanguageDirectory))
- {
- string[] folders = Directory.GetDirectories(LanguageDirectory, "*.*");
-
- foreach (string folder in folders)
- {
- string fileName = folder.Substring(folder.LastIndexOf(@"\") + 1);
-
- //
- // Exclude cvs folder
- //
- if (fileName.ToLower() != "cvs")
- {
- if (fileName.Length > 0)
- {
- fileName = fileName.Substring(0, 1).ToUpper() + fileName.Substring(1);
- languageComboBox.Items.Add(fileName);
- }
- }
- }
- }
- }
- }
-}
\ No newline at end of file
Deleted: trunk/plugins/mpinstaler/MPInstaler/Form2.resx
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/Form2.resx 2007-02-11 09:17:50 UTC (rev 111)
+++ trunk/plugins/mpinstaler/MPInstaler/Form2.resx 2007-02-12 17:42:33 UTC (rev 112)
@@ -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
Modified: trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj 2007-02-11 09:17:50 UTC (rev 111)
+++ trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj 2007-02-12 17:42:33 UTC (rev 112)
@@ -60,6 +60,10 @@
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
+ <Reference Include="Utils, Version=1.0.2595.36012, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>D:\Program Files\Team MediaPortal\MediaPortal\Utils.DLL</HintPath>
+ </Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Build dialog.cs">
@@ -75,11 +79,11 @@
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
- <Compile Include="Form2.cs">
+ <Compile Include="Language dialog.cs">
<SubType>Form</SubType>
</Compile>
- <Compile Include="Form2.Designer.cs">
- <DependentUpon>Form2.cs</DependentUpon>
+ <Compile Include="Language dialog.Designer.cs">
+ <DependentUpon>Language dialog.cs</DependentUpon>
</Compile>
<Compile Include="OptionForm.cs">
<SubType>Form</SubType>
@@ -97,9 +101,9 @@
<SubType>Designer</SubType>
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
- <EmbeddedResource Include="Form2.resx">
+ <EmbeddedResource Include="Language dialog.resx">
<SubType>Designer</SubType>
- <DependentUpon>Form2.cs</DependentUpon>
+ <DependentUpon>Language dialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OptionForm.resx">
<SubType>Designer</SubType>
Modified: trunk/plugins/mpinstaler/MPInstaler/MPinstalerStruct.cs
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/MPinstalerStruct.cs 2007-02-11 09:17:50 UTC (rev 111)
+++ trunk/plugins/mpinstaler/MPInstaler/MPinstalerStruct.cs 2007-02-12 17:42:33 UTC (rev 112)
@@ -24,14 +24,42 @@
public const string SKIN_TYPE = "Skin";
public const string SKIN_MEDIA_TYPE = "Media";
public const string SKIN_XML_SUBTYPE = "Genskin";
+ public const string TEXT_TYPE = "Text";
+ public const string TEXT_EULA_TYPE = "EULA";
+ public const string TEXT_LOG_TYPE = "Log";
+ public const string TEXT_README_TYPE = "Ream_me";
string _builFileName = string.Empty;
string _proiectFileName = string.Empty;
+ string _author = string.Empty;
+ string _update = string.Empty;
+ string _name = string.Empty;
public ArrayList FileList = new ArrayList();
public MPinstalerStruct()
{
}
+ public string UpdateURL
+ {
+ get { return _update; }
+ set
+ {
+ if (value == null) _update = ""; else _update = value;
+ }
+ }
+ public string Author
+ {
+ get { return _author; }
+ set
+ {
+ if (value ==null) _author = "";else _author = value;
+ }
+ }
+ public string Name
+ {
+ get { return _name; }
+ set { _name = value; }
+ }
public string BuildFileName
{
get { return _builFileName; }
Modified: trunk/plugins/mpinstaler/MPInstaler.suo
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|