From: <nic...@us...> - 2014-01-13 16:51:28
|
Revision: 4725 http://sourceforge.net/p/mp-plugins/code/4725 Author: nicsergio Date: 2014-01-13 16:51:24 +0000 (Mon, 13 Jan 2014) Log Message: ----------- Removed Paths: ------------- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx Deleted: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs 2014-01-13 16:51:01 UTC (rev 4724) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs 2014-01-13 16:51:24 UTC (rev 4725) @@ -1,484 +0,0 @@ -namespace ProcessPlugins.ShortCuter -{ - partial class ShortCuterForm - { - /// <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(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ShortCuterForm)); - this.shortCutsDataGridView = new System.Windows.Forms.DataGridView(); - this.itemsTabControl = new System.Windows.Forms.TabControl(); - this.linksTabPage = new System.Windows.Forms.TabPage(); - this.skinLinksTreeView = new System.Windows.Forms.TreeView(); - this.skinTabPage = new System.Windows.Forms.TabPage(); - this.skinFilesListBox = new System.Windows.Forms.ListBox(); - this.linkPropertiesGroupBox = new System.Windows.Forms.GroupBox(); - this.loadParameterGroupBox = new System.Windows.Forms.GroupBox(); - this.loadParameterTextBox = new System.Windows.Forms.TextBox(); - this.windowIdGroupBox = new System.Windows.Forms.GroupBox(); - this.windowIdLabel = new System.Windows.Forms.Label(); - this.skinFileGroupBox = new System.Windows.Forms.GroupBox(); - this.skinFileLabel = new System.Windows.Forms.Label(); - this.toolTip = new System.Windows.Forms.ToolTip(this.components); - this.updateButton = new System.Windows.Forms.Button(); - this.resetButton = new System.Windows.Forms.Button(); - this.rowDownButton = new System.Windows.Forms.Button(); - this.rowUpButton = new System.Windows.Forms.Button(); - this.infoPictureBox = new System.Windows.Forms.PictureBox(); - this.rowRemoveButton = new System.Windows.Forms.Button(); - this.rowAddButton = new System.Windows.Forms.Button(); - this.propLeftPictureBox = new System.Windows.Forms.PictureBox(); - this.saveButton = new System.Windows.Forms.Button(); - this.overridesGroupBox = new System.Windows.Forms.GroupBox(); - this.numLockGroupBox = new System.Windows.Forms.GroupBox(); - this.numLockComboBox = new System.Windows.Forms.ComboBox(); - this.capsLockGroupBox = new System.Windows.Forms.GroupBox(); - this.capsLockComboBox = new System.Windows.Forms.ComboBox(); - ((System.ComponentModel.ISupportInitialize)(this.shortCutsDataGridView)).BeginInit(); - this.itemsTabControl.SuspendLayout(); - this.linksTabPage.SuspendLayout(); - this.skinTabPage.SuspendLayout(); - this.linkPropertiesGroupBox.SuspendLayout(); - this.loadParameterGroupBox.SuspendLayout(); - this.windowIdGroupBox.SuspendLayout(); - this.skinFileGroupBox.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).BeginInit(); - this.overridesGroupBox.SuspendLayout(); - this.numLockGroupBox.SuspendLayout(); - this.capsLockGroupBox.SuspendLayout(); - this.SuspendLayout(); - // - // shortCutsDataGridView - // - this.shortCutsDataGridView.AllowUserToAddRows = false; - this.shortCutsDataGridView.AllowUserToDeleteRows = false; - this.shortCutsDataGridView.AllowUserToResizeRows = false; - this.shortCutsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(220)))), ((int)(((byte)(227))))); - dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.shortCutsDataGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; - this.shortCutsDataGridView.ColumnHeadersHeight = 30; - this.shortCutsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - this.shortCutsDataGridView.Location = new System.Drawing.Point(6, 304); - this.shortCutsDataGridView.MultiSelect = false; - this.shortCutsDataGridView.Name = "shortCutsDataGridView"; - this.shortCutsDataGridView.RowHeadersWidth = 20; - this.shortCutsDataGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; - this.shortCutsDataGridView.Size = new System.Drawing.Size(1006, 429); - this.shortCutsDataGridView.TabIndex = 0; - this.shortCutsDataGridView.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.shortCutsDataGridView_CellEndEdit); - this.shortCutsDataGridView.CurrentCellChanged += new System.EventHandler(this.shortCutsDataGridView_CurrentCellChanged); - this.shortCutsDataGridView.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.shortCutsDataGridView_DataError); - this.shortCutsDataGridView.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.shortCutsDataGridView_EditingControlShowing); - this.shortCutsDataGridView.Enter += new System.EventHandler(this.shortCutsDataGridView_Enter); - // - // itemsTabControl - // - this.itemsTabControl.Controls.Add(this.linksTabPage); - this.itemsTabControl.Controls.Add(this.skinTabPage); - this.itemsTabControl.ItemSize = new System.Drawing.Size(74, 18); - this.itemsTabControl.Location = new System.Drawing.Point(266, 8); - this.itemsTabControl.Name = "itemsTabControl"; - this.itemsTabControl.SelectedIndex = 0; - this.itemsTabControl.Size = new System.Drawing.Size(330, 260); - this.itemsTabControl.TabIndex = 1; - this.itemsTabControl.SelectedIndexChanged += new System.EventHandler(this.itemsTabControl_SelectedIndexChanged); - this.itemsTabControl.Click += new System.EventHandler(this.itemsTabControl_Click); - // - // linksTabPage - // - this.linksTabPage.Controls.Add(this.skinLinksTreeView); - this.linksTabPage.Location = new System.Drawing.Point(4, 22); - this.linksTabPage.Name = "linksTabPage"; - this.linksTabPage.Padding = new System.Windows.Forms.Padding(3); - this.linksTabPage.Size = new System.Drawing.Size(322, 234); - this.linksTabPage.TabIndex = 0; - this.linksTabPage.Text = "Default Links"; - this.linksTabPage.UseVisualStyleBackColor = true; - // - // skinLinksTreeView - // - this.skinLinksTreeView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(220)))), ((int)(((byte)(227))))); - this.skinLinksTreeView.FullRowSelect = true; - this.skinLinksTreeView.HideSelection = false; - this.skinLinksTreeView.Location = new System.Drawing.Point(1, 5); - this.skinLinksTreeView.Name = "skinLinksTreeView"; - this.skinLinksTreeView.Size = new System.Drawing.Size(318, 225); - this.skinLinksTreeView.TabIndex = 2; - this.skinLinksTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.skinLinksTreeView_AfterSelect); - this.skinLinksTreeView.DoubleClick += new System.EventHandler(this.skinLinksTreeView_DoubleClick); - this.skinLinksTreeView.Enter += new System.EventHandler(this.skinLinksTreeView_Enter); - // - // skinTabPage - // - this.skinTabPage.Controls.Add(this.skinFilesListBox); - this.skinTabPage.Location = new System.Drawing.Point(4, 22); - this.skinTabPage.Name = "skinTabPage"; - this.skinTabPage.Padding = new System.Windows.Forms.Padding(3); - this.skinTabPage.Size = new System.Drawing.Size(322, 234); - this.skinTabPage.TabIndex = 1; - this.skinTabPage.Text = "Skin Files"; - this.skinTabPage.UseVisualStyleBackColor = true; - // - // skinFilesListBox - // - this.skinFilesListBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(220)))), ((int)(((byte)(227))))); - this.skinFilesListBox.FormattingEnabled = true; - this.skinFilesListBox.Location = new System.Drawing.Point(1, 5); - this.skinFilesListBox.Name = "skinFilesListBox"; - this.skinFilesListBox.Size = new System.Drawing.Size(318, 225); - this.skinFilesListBox.TabIndex = 0; - this.skinFilesListBox.SelectedIndexChanged += new System.EventHandler(this.skinFilesListBox_SelectedIndexChanged); - this.skinFilesListBox.DoubleClick += new System.EventHandler(this.skinFilesListBox_DoubleClick); - this.skinFilesListBox.Enter += new System.EventHandler(this.skinFilesListBox_Enter); - // - // linkPropertiesGroupBox - // - this.linkPropertiesGroupBox.Controls.Add(this.loadParameterGroupBox); - this.linkPropertiesGroupBox.Controls.Add(this.windowIdGroupBox); - this.linkPropertiesGroupBox.Controls.Add(this.skinFileGroupBox); - this.linkPropertiesGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.linkPropertiesGroupBox.Location = new System.Drawing.Point(602, 30); - this.linkPropertiesGroupBox.Name = "linkPropertiesGroupBox"; - this.linkPropertiesGroupBox.Size = new System.Drawing.Size(320, 175); - this.linkPropertiesGroupBox.TabIndex = 31; - this.linkPropertiesGroupBox.TabStop = false; - this.linkPropertiesGroupBox.Text = "Link Properties"; - // - // loadParameterGroupBox - // - this.loadParameterGroupBox.Controls.Add(this.loadParameterTextBox); - this.loadParameterGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.loadParameterGroupBox.Location = new System.Drawing.Point(4, 103); - this.loadParameterGroupBox.Name = "loadParameterGroupBox"; - this.loadParameterGroupBox.Size = new System.Drawing.Size(312, 68); - this.loadParameterGroupBox.TabIndex = 37; - this.loadParameterGroupBox.TabStop = false; - this.loadParameterGroupBox.Text = "Load Parameter:"; - // - // loadParameterTextBox - // - this.loadParameterTextBox.BackColor = System.Drawing.SystemColors.Control; - this.loadParameterTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.loadParameterTextBox.ForeColor = System.Drawing.Color.Blue; - this.loadParameterTextBox.Location = new System.Drawing.Point(6, 19); - this.loadParameterTextBox.Multiline = true; - this.loadParameterTextBox.Name = "loadParameterTextBox"; - this.loadParameterTextBox.ReadOnly = true; - this.loadParameterTextBox.Size = new System.Drawing.Size(300, 43); - this.loadParameterTextBox.TabIndex = 39; - this.loadParameterTextBox.Text = "-"; - this.loadParameterTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - // - // windowIdGroupBox - // - this.windowIdGroupBox.Controls.Add(this.windowIdLabel); - this.windowIdGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.windowIdGroupBox.Location = new System.Drawing.Point(4, 63); - this.windowIdGroupBox.Name = "windowIdGroupBox"; - this.windowIdGroupBox.Size = new System.Drawing.Size(312, 34); - this.windowIdGroupBox.TabIndex = 36; - this.windowIdGroupBox.TabStop = false; - this.windowIdGroupBox.Text = "Window ID:"; - // - // windowIdLabel - // - this.windowIdLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.windowIdLabel.ForeColor = System.Drawing.Color.Blue; - this.windowIdLabel.Location = new System.Drawing.Point(6, 16); - this.windowIdLabel.Name = "windowIdLabel"; - this.windowIdLabel.Size = new System.Drawing.Size(300, 13); - this.windowIdLabel.TabIndex = 6; - this.windowIdLabel.Text = "-"; - this.windowIdLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // skinFileGroupBox - // - this.skinFileGroupBox.Controls.Add(this.skinFileLabel); - this.skinFileGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.skinFileGroupBox.Location = new System.Drawing.Point(4, 23); - this.skinFileGroupBox.Name = "skinFileGroupBox"; - this.skinFileGroupBox.Size = new System.Drawing.Size(312, 34); - this.skinFileGroupBox.TabIndex = 6; - this.skinFileGroupBox.TabStop = false; - this.skinFileGroupBox.Text = "Skin File:"; - // - // skinFileLabel - // - this.skinFileLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.skinFileLabel.ForeColor = System.Drawing.Color.Blue; - this.skinFileLabel.Location = new System.Drawing.Point(6, 16); - this.skinFileLabel.Name = "skinFileLabel"; - this.skinFileLabel.Size = new System.Drawing.Size(300, 13); - this.skinFileLabel.TabIndex = 2; - this.skinFileLabel.Text = "-"; - this.skinFileLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // toolTip - // - this.toolTip.ShowAlways = true; - // - // updateButton - // - this.updateButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); - this.updateButton.Location = new System.Drawing.Point(67, 84); - this.updateButton.Name = "updateButton"; - this.updateButton.Size = new System.Drawing.Size(135, 38); - this.updateButton.TabIndex = 32; - this.updateButton.Text = "Save and Close"; - this.updateButton.UseVisualStyleBackColor = false; - this.updateButton.Click += new System.EventHandler(this.updateButton_Click); - // - // resetButton - // - this.resetButton.Location = new System.Drawing.Point(67, 8); - this.resetButton.Name = "resetButton"; - this.resetButton.Size = new System.Drawing.Size(133, 23); - this.resetButton.TabIndex = 33; - this.resetButton.Text = "Reset Configuration"; - this.resetButton.UseVisualStyleBackColor = true; - this.resetButton.Click += new System.EventHandler(this.resetButton_Click); - // - // rowDownButton - // - this.rowDownButton.AutoSize = true; - this.rowDownButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.rowDownButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowDown; - this.rowDownButton.Location = new System.Drawing.Point(221, 264); - this.rowDownButton.Name = "rowDownButton"; - this.rowDownButton.Size = new System.Drawing.Size(38, 38); - this.rowDownButton.TabIndex = 35; - this.rowDownButton.UseVisualStyleBackColor = true; - this.rowDownButton.Click += new System.EventHandler(this.rowDownButton_Click); - // - // rowUpButton - // - this.rowUpButton.AutoSize = true; - this.rowUpButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.rowUpButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowUp; - this.rowUpButton.Location = new System.Drawing.Point(177, 264); - this.rowUpButton.Name = "rowUpButton"; - this.rowUpButton.Size = new System.Drawing.Size(38, 38); - this.rowUpButton.TabIndex = 34; - this.rowUpButton.UseVisualStyleBackColor = true; - this.rowUpButton.Click += new System.EventHandler(this.rowUpButton_Click); - // - // infoPictureBox - // - this.infoPictureBox.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.Info; - this.infoPictureBox.Location = new System.Drawing.Point(990, 5); - this.infoPictureBox.Name = "infoPictureBox"; - this.infoPictureBox.Size = new System.Drawing.Size(24, 24); - this.infoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; - this.infoPictureBox.TabIndex = 30; - this.infoPictureBox.TabStop = false; - this.infoPictureBox.Click += new System.EventHandler(this.infoPictureBox_Click); - // - // rowRemoveButton - // - this.rowRemoveButton.AutoSize = true; - this.rowRemoveButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.rowRemoveButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowRemove; - this.rowRemoveButton.Location = new System.Drawing.Point(50, 264); - this.rowRemoveButton.Name = "rowRemoveButton"; - this.rowRemoveButton.Size = new System.Drawing.Size(38, 38); - this.rowRemoveButton.TabIndex = 26; - this.rowRemoveButton.UseVisualStyleBackColor = true; - this.rowRemoveButton.Click += new System.EventHandler(this.rowRemoveButton_Click); - // - // rowAddButton - // - this.rowAddButton.AutoSize = true; - this.rowAddButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.rowAddButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowAdd; - this.rowAddButton.Location = new System.Drawing.Point(6, 264); - this.rowAddButton.Name = "rowAddButton"; - this.rowAddButton.Size = new System.Drawing.Size(38, 38); - this.rowAddButton.TabIndex = 25; - this.rowAddButton.UseVisualStyleBackColor = true; - this.rowAddButton.Click += new System.EventHandler(this.rowAddButton_Click); - // - // propLeftPictureBox - // - this.propLeftPictureBox.Enabled = false; - this.propLeftPictureBox.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.ArrowDown; - this.propLeftPictureBox.Location = new System.Drawing.Point(360, 257); - this.propLeftPictureBox.Name = "propLeftPictureBox"; - this.propLeftPictureBox.Size = new System.Drawing.Size(131, 56); - this.propLeftPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; - this.propLeftPictureBox.TabIndex = 23; - this.propLeftPictureBox.TabStop = false; - this.propLeftPictureBox.Visible = false; - // - // saveButton - // - this.saveButton.Location = new System.Drawing.Point(67, 35); - this.saveButton.Name = "saveButton"; - this.saveButton.Size = new System.Drawing.Size(133, 23); - this.saveButton.TabIndex = 36; - this.saveButton.Text = "Save Configuration"; - this.saveButton.UseVisualStyleBackColor = true; - this.saveButton.Click += new System.EventHandler(this.saveButton_Click); - // - // overridesGroupBox - // - this.overridesGroupBox.Controls.Add(this.numLockGroupBox); - this.overridesGroupBox.Controls.Add(this.capsLockGroupBox); - this.overridesGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.overridesGroupBox.Location = new System.Drawing.Point(50, 133); - this.overridesGroupBox.Name = "overridesGroupBox"; - this.overridesGroupBox.Size = new System.Drawing.Size(165, 111); - this.overridesGroupBox.TabIndex = 37; - this.overridesGroupBox.TabStop = false; - this.overridesGroupBox.Text = "Overrides at Start-Up"; - // - // numLockGroupBox - // - this.numLockGroupBox.Controls.Add(this.numLockComboBox); - this.numLockGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.numLockGroupBox.Location = new System.Drawing.Point(6, 63); - this.numLockGroupBox.Name = "numLockGroupBox"; - this.numLockGroupBox.Size = new System.Drawing.Size(152, 42); - this.numLockGroupBox.TabIndex = 38; - this.numLockGroupBox.TabStop = false; - this.numLockGroupBox.Text = "Num-Lock Forcing:"; - // - // numLockComboBox - // - this.numLockComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.numLockComboBox.FormattingEnabled = true; - this.numLockComboBox.Location = new System.Drawing.Point(9, 15); - this.numLockComboBox.Name = "numLockComboBox"; - this.numLockComboBox.Size = new System.Drawing.Size(133, 21); - this.numLockComboBox.TabIndex = 1; - // - // capsLockGroupBox - // - this.capsLockGroupBox.Controls.Add(this.capsLockComboBox); - this.capsLockGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.capsLockGroupBox.Location = new System.Drawing.Point(6, 15); - this.capsLockGroupBox.Name = "capsLockGroupBox"; - this.capsLockGroupBox.Size = new System.Drawing.Size(152, 42); - this.capsLockGroupBox.TabIndex = 37; - this.capsLockGroupBox.TabStop = false; - this.capsLockGroupBox.Text = "Caps-Lock Forcing:"; - // - // capsLockComboBox - // - this.capsLockComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.capsLockComboBox.FormattingEnabled = true; - this.capsLockComboBox.Location = new System.Drawing.Point(9, 15); - this.capsLockComboBox.Name = "capsLockComboBox"; - this.capsLockComboBox.Size = new System.Drawing.Size(133, 21); - this.capsLockComboBox.TabIndex = 0; - // - // ShortCuterForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1018, 740); - this.Controls.Add(this.overridesGroupBox); - this.Controls.Add(this.saveButton); - this.Controls.Add(this.rowDownButton); - this.Controls.Add(this.linkPropertiesGroupBox); - this.Controls.Add(this.rowUpButton); - this.Controls.Add(this.resetButton); - this.Controls.Add(this.updateButton); - this.Controls.Add(this.infoPictureBox); - this.Controls.Add(this.rowRemoveButton); - this.Controls.Add(this.rowAddButton); - this.Controls.Add(this.itemsTabControl); - this.Controls.Add(this.shortCutsDataGridView); - this.Controls.Add(this.propLeftPictureBox); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.MaximizeBox = false; - this.Name = "ShortCuterForm"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "ShortCut\'er Plugin Configuration"; - this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ShortCuterForm_FormClosing); - this.Load += new System.EventHandler(this.ShortCuterForm_Load); - this.Shown += new System.EventHandler(this.ShortCuterForm_Shown); - ((System.ComponentModel.ISupportInitialize)(this.shortCutsDataGridView)).EndInit(); - this.itemsTabControl.ResumeLayout(false); - this.linksTabPage.ResumeLayout(false); - this.skinTabPage.ResumeLayout(false); - this.linkPropertiesGroupBox.ResumeLayout(false); - this.loadParameterGroupBox.ResumeLayout(false); - this.loadParameterGroupBox.PerformLayout(); - this.windowIdGroupBox.ResumeLayout(false); - this.skinFileGroupBox.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).EndInit(); - this.overridesGroupBox.ResumeLayout(false); - this.numLockGroupBox.ResumeLayout(false); - this.capsLockGroupBox.ResumeLayout(false); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.DataGridView shortCutsDataGridView; - private System.Windows.Forms.TabControl itemsTabControl; - private System.Windows.Forms.TabPage linksTabPage; - private System.Windows.Forms.TabPage skinTabPage; - private System.Windows.Forms.ListBox skinFilesListBox; - private System.Windows.Forms.PictureBox propLeftPictureBox; - private System.Windows.Forms.Button rowAddButton; - private System.Windows.Forms.Button rowRemoveButton; - private System.Windows.Forms.PictureBox infoPictureBox; - private System.Windows.Forms.GroupBox linkPropertiesGroupBox; - private System.Windows.Forms.ToolTip toolTip; - private System.Windows.Forms.Button updateButton; - private System.Windows.Forms.Button resetButton; - private System.Windows.Forms.Button rowDownButton; - private System.Windows.Forms.Button rowUpButton; - private System.Windows.Forms.GroupBox windowIdGroupBox; - private System.Windows.Forms.Label windowIdLabel; - private System.Windows.Forms.GroupBox skinFileGroupBox; - private System.Windows.Forms.Label skinFileLabel; - private System.Windows.Forms.GroupBox loadParameterGroupBox; - private System.Windows.Forms.TreeView skinLinksTreeView; - private System.Windows.Forms.Button saveButton; - private System.Windows.Forms.TextBox loadParameterTextBox; - private System.Windows.Forms.GroupBox overridesGroupBox; - private System.Windows.Forms.GroupBox capsLockGroupBox; - private System.Windows.Forms.GroupBox numLockGroupBox; - private System.Windows.Forms.ComboBox capsLockComboBox; - private System.Windows.Forms.ComboBox numLockComboBox; - - } -} \ No newline at end of file Deleted: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs 2014-01-13 16:51:01 UTC (rev 4724) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs 2014-01-13 16:51:24 UTC (rev 4725) @@ -1,541 +0,0 @@ -using System; -using System.ComponentModel; -using System.Drawing; -using System.Windows.Forms; -using MediaPortal.Configuration; -using MediaPortal.GUI.Library; -using MediaPortal.Profile; -using My.Common; - -namespace ProcessPlugins.ShortCuter -{ - [PluginIcons("ProcessPlugins.ShortCuter.Resources.Images.ShortCuterEnable.png", "ProcessPlugins.ShortCuter.Resources.Images.ShortCuterDisable.png")] - public partial class ShortCuterForm : Form, ISetupForm //Form per la configurazione del plugin, con implementazione interfaccia ISetupForm (per lancio da configurazione MediaPortal) - { - #region Dati - private Skin mySkin; //Istanza classe Skin (dati relativi alla skin di MediaPortal) - private ShortCuts myShortCuts; //Istanza classe ShortCuts (dati relativi ai shortcuts configurati) - private KeyboardHookWorker myHookWorker; //Istanza classe HookWorker (gestione hook di tastiera per immissione tasto [KeyCode] associato allo shortcut) - private bool unsavedChanges; //Presenza modifiche da salvare - private bool forceCell; //Azione di forzatura valore cella WindowID dello shortcut - #endregion - - #region Costruttore - public ShortCuterForm() - { - InitializeComponent(); - } - #endregion - - #region Metodi Privati - private void InitializeGUI() //Inizializzazione interfaccia - { - skinFilesListBox.DataSource = mySkin.SkinFiles; - skinFilesListBox.SelectedIndex = -1; - mySkin.FillTreeViewSkinLinks(skinLinksTreeView); - skinLinksTreeView.CollapseAll(); - FormatShortCutsGrid(); - - capsLockComboBox.DataSource = Enum.GetNames(typeof(LockKeys.LockKeyActions)); - capsLockComboBox.SelectedItem = Enum.GetName(typeof(LockKeys.LockKeyActions), myShortCuts.GeneralForcingCapsLock); - numLockComboBox.DataSource = Enum.GetNames(typeof(LockKeys.LockKeyActions)); - numLockComboBox.SelectedItem = Enum.GetName(typeof(LockKeys.LockKeyActions), myShortCuts.GeneralForcingNumLock); - - toolTip.SetToolTip(skinFilesListBox, "Double click to set the link's parameter to shortcut"); - toolTip.SetToolTip(skinLinksTreeView, "Double click to set the link's parameter to shortcut"); - toolTip.SetToolTip(rowAddButton, "Add shortcut to list"); - toolTip.SetToolTip(rowRemoveButton, "Remove selected shortcut from list"); - toolTip.SetToolTip(rowUpButton, "Move up selected shortcut in list"); - toolTip.SetToolTip(rowDownButton, "Move down selected shortcut in list"); - toolTip.SetToolTip(infoPictureBox, "Version information"); - - unsavedChanges = false; //--> necessario a fine aggiornamento controlli grafici - } - private void FormatShortCutsGrid() //Formattazione (e popolazione) tabella shortcuts - { - shortCutsDataGridView.AutoGenerateColumns = false; - - DataGridViewTextBoxColumn captionColumn = new DataGridViewTextBoxColumn(); - captionColumn.DataPropertyName = "Caption"; - captionColumn.HeaderText = "Caption"; - captionColumn.Width = 155; - captionColumn.MaxInputLength = 32; - captionColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; - captionColumn.DefaultCellStyle.Font = new Font("Microsoft Sans Serif", 8, FontStyle.Bold); - captionColumn.ToolTipText = "Shortcut's title"; - - DataGridViewTextBoxColumn keyColumn = new DataGridViewTextBoxColumn(); - keyColumn.DataPropertyName = "Key"; - keyColumn.HeaderText = "Key [KeyCode]"; - keyColumn.Width = 120; - keyColumn.MaxInputLength = 24; - keyColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; - keyColumn.DefaultCellStyle.Font = new Font("Microsoft Sans Serif", 8, FontStyle.Bold); - keyColumn.DefaultCellStyle.BackColor = Color.Yellow; - keyColumn.ToolTipText = "Key assigned to the shortcut"; - - DataGridViewCheckBoxColumn ctrlColumn = new DataGridViewCheckBoxColumn(); - ctrlColumn.DataPropertyName = "Ctrl"; - ctrlColumn.HeaderText = "Ctrl"; - ctrlColumn.Width = 30; - ctrlColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; - ctrlColumn.DefaultCellStyle.BackColor = Color.LightCyan; - ctrlColumn.ToolTipText = "Use CTRL modifier + Key assigned"; - - DataGridViewCheckBoxColumn altColumn = new DataGridViewCheckBoxColumn(); - altColumn.DataPropertyName = "Alt"; - altColumn.HeaderText = "Alt"; - altColumn.Width = 30; - altColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; - altColumn.DefaultCellStyle.BackColor = Color.LightCyan; - altColumn.ToolTipText = "Use ALT modifier + Key assigned"; - - DataGridViewCheckBoxColumn shiftColumn = new DataGridViewCheckBoxColumn(); - shiftColumn.DataPropertyName = "Shift"; - shiftColumn.HeaderText = "Shift"; - shiftColumn.Width = 30; - shiftColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; - shiftColumn.DefaultCellStyle.BackColor = Color.LightCyan; - shiftColumn.ToolTipText = "Use SHIFT modifier + Key assigned"; - - DataGridViewTextBoxColumn windowIdColumn = new DataGridViewTextBoxColumn(); - windowIdColumn.DataPropertyName = "WindowID"; - windowIdColumn.HeaderText = "Window ID"; - windowIdColumn.Width = 70; - windowIdColumn.MaxInputLength = 10; - windowIdColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; - windowIdColumn.ToolTipText = "MediaPorta window ID for the shortcut's destination"; - - DataGridViewTextBoxColumn loadParameterColumn = new DataGridViewTextBoxColumn(); - loadParameterColumn.DataPropertyName = "LoadParameter"; - loadParameterColumn.HeaderText = "Load Parameter"; - loadParameterColumn.Width = 358; - loadParameterColumn.MaxInputLength = 300; - loadParameterColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; - loadParameterColumn.ToolTipText = "Any parameter for load window (see destination plugin's documentation)"; - - DataGridViewCheckBoxColumn returnColumn = new DataGridViewCheckBoxColumn(); - returnColumn.DataPropertyName = "Return"; - returnColumn.HeaderText = "Return"; - returnColumn.Width = 50; - returnColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; - returnColumn.ToolTipText = "If you're already on the window ID, another activation of the shortcut will display the previous window"; - - DataGridViewComboBoxColumn soundEffectColumn = new DataGridViewComboBoxColumn(); - soundEffectColumn.DataPropertyName = "SoundEffect"; - soundEffectColumn.HeaderText = "Sound Effect"; - soundEffectColumn.Width = 140; - soundEffectColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; - soundEffectColumn.FlatStyle = FlatStyle.Flat; //--> necessario con Win7 per aggiornare il colore di sfondo se selezionato - soundEffectColumn.DataSource = mySkin.SkinSounds; - soundEffectColumn.ToolTipText = "Sound effect played on the shortcut"; - - shortCutsDataGridView.Columns.Add(captionColumn); - shortCutsDataGridView.Columns.Add(keyColumn); - shortCutsDataGridView.Columns.Add(ctrlColumn); - shortCutsDataGridView.Columns.Add(altColumn); - shortCutsDataGridView.Columns.Add(shiftColumn); - shortCutsDataGridView.Columns.Add(windowIdColumn); - shortCutsDataGridView.Columns.Add(loadParameterColumn); - shortCutsDataGridView.Columns.Add(returnColumn); - shortCutsDataGridView.Columns.Add(soundEffectColumn); - - shortCutsDataGridView.DataSource = myShortCuts.Items; - } - private void ShowLinkProperties(object listControl) //Visualizzazione proprietà link - { - Control itemsList = (Control)listControl; //Casting sender -> Control - int selectedIndex; //Indice eventuale elemento selezionato - - if (itemsList is ListBox) - { - ListBox listBox = (ListBox)itemsList; //Casting Control -> ListBox - selectedIndex = listBox.SelectedIndex; //<-- indice lista selezionato - } - else - { - TreeView treeView = (TreeView)itemsList; //Casting Control -> TreeView - selectedIndex= mySkin.GetSkinLinkIndex(treeView); //<-- indice nodo selezionato - } - - if (selectedIndex < 0) //Se indice invalido --> reset proprietà - { - skinFileLabel.Text = "-"; - windowIdLabel.Text = "-"; - loadParameterTextBox.Text = "-"; - } - else //Visualizzazione proprietà elemento selezionato - { - switch (itemsList.Name) - { - case "skinFilesListBox": //Lista files della skin - skinFileLabel.Text = mySkin.SkinFiles[selectedIndex].Name; - windowIdLabel.Text = mySkin.SkinFiles[selectedIndex].Id.ToString(); - loadParameterTextBox.Text = "-"; - break; - - case "skinLinksTreeView": //Lista links predefiniti della skin - skinFileLabel.Text = mySkin.SkinLinks[selectedIndex].XmlFile; - windowIdLabel.Text = mySkin.SkinLinks[selectedIndex].WindowID.ToString(); - loadParameterTextBox.Text = mySkin.SkinLinks[selectedIndex].LoadParameter; - break; - } - } - } - private void ShowLinkItem() //Visualizzazione link corrispondente allo shortcut - { - if (shortCutsDataGridView.CurrentCell != null) - { - if (!forceCell) //Non nel caso di forzatura valore cella WindowID (doppio click da lista links) - { - int showIndex; - int windowID = Convert.ToInt32(shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[5].Value); - if (itemsTabControl.SelectedIndex == 0) - { - string loadParameter = Convert.ToString(shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[6].Value); - showIndex = mySkin.SkinLinks.FindIndex(x => x.WindowID == windowID && x.LoadParameter == loadParameter); - mySkin.SetSkinLinkIndex(skinLinksTreeView, showIndex); //--> selezione eventuale link corrispondente a WindowID & LoadParameter - } - else - { - showIndex = mySkin.SkinFiles.FindLastIndex(x => x.Id == windowID); - skinFilesListBox.SelectedIndex = showIndex; //--> selezione eventuale file corrispondente a WindowID - } - } - } - } - private void MoveItemList(bool dirUp) //Spostamento shortcut - { - if (shortCutsDataGridView.CurrentCell != null) - { - forceCell = true; - int index = shortCutsDataGridView.CurrentRow.Index; - shortCutsDataGridView.CurrentCell = shortCutsDataGridView[0, index]; //Importante cambiare la colonna prima di muovere la riga se posizionati su KeyCode (Hook attivo) - ShortCut sc = myShortCuts.Items[index]; - myShortCuts.Items.RemoveAt(index); - if (dirUp) - index--; - else - index++; - myShortCuts.Items.Insert(index, sc); - shortCutsDataGridView.CurrentCell = shortCutsDataGridView[0, index]; - shortCutsDataGridView.Rows[index].Selected = true; - shortCutsDataGridView.Focus(); - forceCell = false; - } - } - private void MoveItemsListButtonsEnable() //Abilitazione/disabilitazione pulsanti di spostamento shortcuts - { - if (shortCutsDataGridView.CurrentCell != null) - { - rowUpButton.Enabled = (shortCutsDataGridView.CurrentRow.Index > 0); - rowDownButton.Enabled = (shortCutsDataGridView.CurrentRow.Index < myShortCuts.Items.Count - 1); - } - else - { - rowUpButton.Enabled = false; - rowDownButton.Enabled = false; - } - } - private bool Save() //Salvataggio configurazione plugin - { - myShortCuts.GeneralForcingCapsLock = (LockKeys.LockKeyActions)Enum.Parse(typeof(LockKeys.LockKeyActions), capsLockComboBox.SelectedItem.ToString()); - myShortCuts.GeneralForcingNumLock = (LockKeys.LockKeyActions)Enum.Parse(typeof(LockKeys.LockKeyActions), numLockComboBox.SelectedItem.ToString()); - return myShortCuts.SaveConfig(); - } - #endregion - - #region Consumazione Eventi - #region Eventi Form - private void ShortCuterForm_Load(object sender, EventArgs e) - { - using (Settings confReader = new MPSettings()) - { - //Raccolta dati relativi alla skin - mySkin = new Skin(confReader.GetValueAsString("skin", "name", "DefaultWide"), Config.GetFolder(Config.Dir.Skin) + @"\", Config.GetFolder(Config.Dir.Cache) + @"\"); - } - if (mySkin.Initialized) - { - string settingsFile = Config.GetFile(Config.Dir.Config, Tools.MyAssembly.Name + ".xml"); - //Lettura impostazioni e gestione shorcuts - myShortCuts = new ShortCuts(settingsFile, true); - if (myShortCuts.Initialized) - { - //Sottoscrizione evento di modifica lista shortcuts - myShortCuts.Items.ListChanged += new ListChangedEventHandler(myShortCutsItems_ListChanged); - - //Predisposizione hook di tastiera per immissione tasto (KeyCode) associato allo shortcut - myHookWorker = new KeyboardHookWorker(new KeyboardHookWorker.HookKeyDownDelegate(hook_KeyDown)); - - //Inizializzazione interfaccia grafica - InitializeGUI(); - } - } - //Se inizializzazione classi non completata - if (!mySkin.Initialized || !myShortCuts.Initialized) - { - this.Close(); - this.Dispose(); - } - } - private void ShortCuterForm_Shown(object sender, EventArgs e) - { - shortCutsDataGridView.Focus(); - } - private void ShortCuterForm_FormClosing(object sender, FormClosingEventArgs e) - { - if (unsavedChanges) //Se presenti modifiche non salvate - { //Richiesta conferma per chiusura applicazione - if (!Tools.QuestionMessage("Unsaved changes will be lost...\nDo you want to proceed?")) - { - e.Cancel = true; //--> annullamento chiusura form - return; - } - } - if (myHookWorker != null) - myHookWorker.Stop(); //--> disattivazione hook di tastiera - } - #endregion - #region Eventi Modifica Griglia - private void shortCutsDataGridView_Enter(object sender, EventArgs e) - { - propLeftPictureBox.Visible = true; //--> il link è collegato allo shortcut selezionato - ShowLinkItem(); - MoveItemsListButtonsEnable(); - } - private void shortCutsDataGridView_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) - { - e.Control.KeyPress -= keyTextBox_KeyPress; - e.Control.KeyPress -= idTextBox_KeyPress; - - if (e.Control is TextBox) - { - if ((int)(((DataGridView)(sender)).CurrentCell.ColumnIndex) == 1) - { - e.Control.KeyPress += new KeyPressEventHandler(keyTextBox_KeyPress); //--> sottoscrizione evento KeyPress per la cella Key - //((TextBox)e.Control).CharacterCasing = CharacterCasing.Lower; //--> tasto associato allo shortcut: input minuscolo - } - if ((int)(((DataGridView)(sender)).CurrentCell.ColumnIndex) == 5) - e.Control.KeyPress += new KeyPressEventHandler(idTextBox_KeyPress); //--> sottoscrizione evento KeyPress per la cella WindowID - } - } - void keyTextBox_KeyPress(object sender, KeyPressEventArgs e) - { - e.Handled = true; //--> carattere inputato da ignorare (per trattare la TextBox come una Label) --> azione svolta dall'hook di tastiera (necessario se l'hook fallisse) - } - void idTextBox_KeyPress(object sender, KeyPressEventArgs e) - { - if (!(char.IsDigit(e.KeyChar))) //Filtro per input numerico per la cella WindowID - { - Keys key = (Keys)e.KeyChar; - if (!(key == Keys.Back || key == Keys.Delete)) - { - e.Handled = true; //--> carattere inputato da ignorare - } - } - } - private void shortCutsDataGridView_CellEndEdit(object sender, DataGridViewCellEventArgs e) - { - ShowLinkItem(); - } - private void shortCutsDataGridView_CurrentCellChanged(object sender, EventArgs e) - { - ShowLinkItem(); - MoveItemsListButtonsEnable(); - - if (shortCutsDataGridView.CurrentCell != null && shortCutsDataGridView.CurrentCell.ColumnIndex == 1) - myHookWorker.Start(); //Nel caso di colonna corrispondente a Key --> attivazione hook di tastiera per immissione KeyCode - else - myHookWorker.Stop(); //Nel caso di colonna non corrispondente a Key --> disattivazione hook di tastiera - } - private void shortCutsDataGridView_DataError(object sender, DataGridViewDataErrorEventArgs e) - { - //Gestione evento per evitare messaggi di errore (esempio se file effetto sonoro non disponibile nella skin) - } - #endregion - #region Eventi Modifica Impostazioni Plugin & Shortcuts - private void myShortCutsItems_ListChanged(object sender, EventArgs e) - { - unsavedChanges = true; - rowRemoveButton.Enabled = (myShortCuts.Items.Count > 0); - MoveItemsListButtonsEnable(); - } - private void rowAddButton_Click(object sender, EventArgs e) - { - ShortCut sc = new ShortCut(); - myShortCuts.Items.Add(sc); - shortCutsDataGridView.CurrentCell = shortCutsDataGridView[0, shortCutsDataGridView.RowCount - 1]; - shortCutsDataGridView.Rows[shortCutsDataGridView.RowCount - 1].Selected = true; - } - private void rowRemoveButton_Click(object sender, EventArgs e) - { - if (myShortCuts.Items.Count > 0) - { - myShortCuts.Items.RemoveAt(shortCutsDataGridView.CurrentRow.Index); - if (shortCutsDataGridView.RowCount > 0) - shortCutsDataGridView.CurrentCell = shortCutsDataGridView[0, 0]; - } - } - private void rowUpButton_Click(object sender, EventArgs e) - { - MoveItemList(true); - } - private void rowDownButton_Click(object sender, EventArgs e) - { - MoveItemList(false); - } - private void resetCapsLockCheckBox_CheckedChanged(object sender, EventArgs e) - { - unsavedChanges = true; - } - private void resetNumLockCheckBox_CheckedChanged(object sender, EventArgs e) - { - unsavedChanges = true; - } - #endregion - #region Eventi Liste Files & Links Skin - private void itemsTabControl_SelectedIndexChanged(object sender, EventArgs e) - { - if(itemsTabControl.SelectedIndex == 0) - skinLinksTreeView.Focus(); - else - skinFilesListBox.Focus(); - } - private void itemsTabControl_Click(object sender, EventArgs e) - { - if (itemsTabControl.SelectedIndex == 0) - skinLinksTreeView.Focus(); - else - skinFilesListBox.Focus(); - } - private void skinFilesListBox_SelectedIndexChanged(object sender, EventArgs e) - { - ShowLinkProperties(sender); - } - private void skinFilesListBox_Enter(object sender, EventArgs e) - { - propLeftPictureBox.Visible = false; //--> il link non è collegato allo shortcut selezionato - ShowLinkProperties(sender); - } - private void skinFilesListBox_DoubleClick(object sender, EventArgs e) - { - if (shortCutsDataGridView.CurrentRow != null && shortCutsDataGridView.RowCount > 0) - { - shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[5].Value = mySkin.SkinFiles[skinFilesListBox.SelectedIndex].Id.ToString(); - shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[6].Value = ""; - forceCell = true; - shortCutsDataGridView.CurrentCell = shortCutsDataGridView[5, shortCutsDataGridView.CurrentRow.Index]; - forceCell = false; - } - } - private void skinLinksTreeView_AfterSelect(object sender, TreeViewEventArgs e) - { - ShowLinkProperties(sender); - } - private void skinLinksTreeView_Enter(object sender, EventArgs e) - { - propLeftPictureBox.Visible = false; //--> il link non è collegato allo shortcut selezionato - ShowLinkProperties(sender); - } - private void skinLinksTreeView_DoubleClick(object sender, EventArgs e) - { - int skinLinkIndex = mySkin.GetSkinLinkIndex(skinLinksTreeView); - if (shortCutsDataGridView.CurrentRow != null && shortCutsDataGridView.RowCount > 0 && skinLinkIndex >= 0) - { - shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[5].Value = mySkin.SkinLinks[skinLinkIndex].WindowID.ToString(); - shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[6].Value = mySkin.SkinLinks[skinLinkIndex].LoadParameter; - forceCell = true; - shortCutsDataGridView.CurrentCell = shortCutsDataGridView[5, shortCutsDataGridView.CurrentRow.Index]; - forceCell = false; - } - } - #endregion - private bool hook_KeyDown(Keys keyCode) - { - if (ShortCut.ModifierKeys.Contains(keyCode)) - return true; //Se il tasto premuto corrisponde ad un modificatore, viene ignorato - - if (this.InvokeRequired) //Gestione dell'invocazione sul thread principale - { - this.BeginInvoke(new KeyboardHookWorker.HookKeyDownDelegate(hook_KeyDown), new object[] { keyCode }); - return true; //--> qualunque pressione viene ignorata dal resto del sistema - } - - if (shortCutsDataGridView.CurrentCell != null && shortCutsDataGridView.CurrentCell.ColumnIndex == 1) - //Valorizzazione della cella Key con la stringa corrispondente al KeyCode del tasto premuto - shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[1].Value = keyCode.ToString(); - return true; - } - private void saveButton_Click(object sender, EventArgs e) - { - if (Save()) - unsavedChanges = false; - } - private void updateButton_Click(object sender, EventArgs e) - { - if (Save()) - { - unsavedChanges = false; - this.Close(); - this.Dispose(); - } - } - private void resetButton_Click(object sender, EventArgs e) - { - if (Tools.QuestionMessage("Configuration data will be overwritten...\nDo you want to proceed?")) - { - myShortCuts.LoadConfig(true); - } - } - private void infoPictureBox_Click(object sender, EventArgs e) - { - VersionInfo.ShowInfo(ProcessPlugins.ShortCuter.Properties.Resources.ShortCuter, "...a big thank to MoPath for old version of this plugin!", - "http://forum.team-mediaportal.com/threads/shortcuter-plugin-v2.121721/", - "http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/17_Extensions/3_Plugins/ShortCut'er"); - } - #endregion - - #region Implementazione ISetupForm - public string PluginName() - { - return Tools.MyAssembly.Title; - } - public string Description() - { - return Tools.MyAssembly.Description; - } - public string Author() - { - return Tools.MyAssembly.Author; - } - public void ShowPlugin() - { - new ShortCuterForm().ShowDialog(); - } - public bool CanEnable() - { - return true; - } - public int GetWindowId() - { - return -1; - } - public bool DefaultEnabled() - { - return false; - } - public bool HasSetup() - { - return true; - } - public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage) - { - strButtonText = String.Empty; - strButtonImage = String.Empty; - strButtonImageFocus = String.Empty; - strPictureImage = String.Empty; - return false; - } - #endregion - } -} Deleted: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx 2014-01-13 16:51:01 UTC (rev 4724) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx 2014-01-13 16:51:24 UTC (rev 4725) @@ -1,287 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<root> - <!-- - Microsoft ResX Schema - - Ver... [truncated message content] |