From: <nic...@us...> - 2015-01-08 17:51:22
|
Revision: 4909 http://sourceforge.net/p/mp-plugins/code/4909 Author: nicsergio Date: 2015-01-08 17:51:06 +0000 (Thu, 08 Jan 2015) Log Message: ----------- Modified Paths: -------------- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/ShortCuterConfig.Designer.cs trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/Skin.cs trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.Designer.cs trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.cs trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.resx trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditor.Designer.cs Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/ShortCuterConfig.Designer.cs =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/ShortCuterConfig.Designer.cs 2015-01-07 16:50:03 UTC (rev 4908) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/ShortCuterConfig.Designer.cs 2015-01-08 17:51:06 UTC (rev 4909) @@ -193,7 +193,7 @@ 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.TabIndex = 11; this.updateButton.Text = "Save and Close"; this.updateButton.UseVisualStyleBackColor = false; this.updateButton.Click += new System.EventHandler(this.updateButton_Click); @@ -203,7 +203,7 @@ 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.TabIndex = 9; this.resetButton.Text = "Reset Configuration"; this.resetButton.UseVisualStyleBackColor = true; this.resetButton.Click += new System.EventHandler(this.resetButton_Click); @@ -216,7 +216,7 @@ this.rowDownButton.Location = new System.Drawing.Point(226, 264); this.rowDownButton.Name = "rowDownButton"; this.rowDownButton.Size = new System.Drawing.Size(38, 38); - this.rowDownButton.TabIndex = 35; + this.rowDownButton.TabIndex = 6; this.rowDownButton.UseVisualStyleBackColor = true; this.rowDownButton.Click += new System.EventHandler(this.rowDownButton_Click); // @@ -228,7 +228,7 @@ this.rowUpButton.Location = new System.Drawing.Point(186, 264); this.rowUpButton.Name = "rowUpButton"; this.rowUpButton.Size = new System.Drawing.Size(38, 38); - this.rowUpButton.TabIndex = 34; + this.rowUpButton.TabIndex = 5; this.rowUpButton.UseVisualStyleBackColor = true; this.rowUpButton.Click += new System.EventHandler(this.rowUpButton_Click); // @@ -251,7 +251,7 @@ this.rowRemoveButton.Location = new System.Drawing.Point(46, 264); this.rowRemoveButton.Name = "rowRemoveButton"; this.rowRemoveButton.Size = new System.Drawing.Size(38, 38); - this.rowRemoveButton.TabIndex = 26; + this.rowRemoveButton.TabIndex = 2; this.rowRemoveButton.UseVisualStyleBackColor = true; this.rowRemoveButton.Click += new System.EventHandler(this.rowRemoveButton_Click); // @@ -263,7 +263,7 @@ 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.TabIndex = 1; this.rowAddButton.UseVisualStyleBackColor = true; this.rowAddButton.Click += new System.EventHandler(this.rowAddButton_Click); // @@ -284,7 +284,7 @@ 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.TabIndex = 10; this.saveButton.Text = "Save Configuration"; this.saveButton.UseVisualStyleBackColor = true; this.saveButton.Click += new System.EventHandler(this.saveButton_Click); @@ -297,7 +297,7 @@ 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.TabIndex = 12; this.overridesGroupBox.TabStop = false; this.overridesGroupBox.Text = "Overrides at Start-Up"; // @@ -308,7 +308,7 @@ 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.TabIndex = 13; this.numLockGroupBox.TabStop = false; this.numLockGroupBox.Text = "Num-Lock Forcing:"; // @@ -319,7 +319,7 @@ 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; + this.numLockComboBox.TabIndex = 13; // // capsLockGroupBox // @@ -328,7 +328,7 @@ 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.TabIndex = 12; this.capsLockGroupBox.TabStop = false; this.capsLockGroupBox.Text = "Caps-Lock Forcing:"; // @@ -339,7 +339,7 @@ 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; + this.capsLockComboBox.TabIndex = 12; // // rowCopyButton // @@ -349,7 +349,7 @@ this.rowCopyButton.Location = new System.Drawing.Point(96, 264); this.rowCopyButton.Name = "rowCopyButton"; this.rowCopyButton.Size = new System.Drawing.Size(38, 38); - this.rowCopyButton.TabIndex = 38; + this.rowCopyButton.TabIndex = 3; this.rowCopyButton.UseVisualStyleBackColor = true; this.rowCopyButton.Click += new System.EventHandler(this.rowCopyButton_Click); // @@ -361,7 +361,7 @@ this.skinNavAddButton.Location = new System.Drawing.Point(136, 264); this.skinNavAddButton.Name = "skinNavAddButton"; this.skinNavAddButton.Size = new System.Drawing.Size(38, 38); - this.skinNavAddButton.TabIndex = 40; + this.skinNavAddButton.TabIndex = 4; this.skinNavAddButton.UseVisualStyleBackColor = true; this.skinNavAddButton.Click += new System.EventHandler(this.skinNavAddButton_Click); // @@ -372,7 +372,7 @@ this.skinNavConfigButton.Location = new System.Drawing.Point(726, 220); this.skinNavConfigButton.Name = "skinNavConfigButton"; this.skinNavConfigButton.Size = new System.Drawing.Size(70, 70); - this.skinNavConfigButton.TabIndex = 41; + this.skinNavConfigButton.TabIndex = 7; this.skinNavConfigButton.UseVisualStyleBackColor = true; this.skinNavConfigButton.Click += new System.EventHandler(this.skinNavConfigButton_Click); // @@ -383,7 +383,7 @@ this.skinItems.SelectedIndex = -1; this.skinItems.SelectedTab = My.Common.SkinItems.SkinItemsType.Links; this.skinItems.Size = new System.Drawing.Size(330, 260); - this.skinItems.TabIndex = 39; + this.skinItems.TabIndex = 8; this.skinItems.Enter += new System.EventHandler(this.skinItems_Enter); this.skinItems.DoubleClick += new System.EventHandler(this.skinItems_DoubleClick); this.skinItems.SelectedIndexChanged += new System.EventHandler(this.skinItems_SelectedIndexChanged); Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/Skin.cs =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/Skin.cs 2015-01-07 16:50:03 UTC (rev 4908) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/Skin.cs 2015-01-08 17:51:06 UTC (rev 4909) @@ -70,6 +70,24 @@ } #endregion + #region Metodi Pubblici + public string GetIconPath(string iconFile) //Ottenimento path (completo o parziale) icona + { + if (iconFile.Length == 0) + return string.Empty; + else + return (Path.IsPathRooted(iconFile) ? iconFile : @"ShortCuter\" + iconFile); + } + public string GetIconFile(string iconPath) //Ottenimento nome file icona + { + try + { + return (Path.IsPathRooted(iconPath) ? iconPath : iconPath.Remove(0, @"ShortCuter\".Length)); + } + catch { return string.Empty; } + } + #endregion + #region Proprietà public List<string> SkinSounds { get { return this._skinSounds; } } public List<string> SkinIcons { get { return this._skinIcons; } } Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.Designer.cs =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.Designer.cs 2015-01-07 16:50:03 UTC (rev 4908) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.Designer.cs 2015-01-08 17:51:06 UTC (rev 4909) @@ -50,16 +50,21 @@ this.windowUpButton = new System.Windows.Forms.Button(); this.windowRemoveButton = new System.Windows.Forms.Button(); this.windowsListBox = new System.Windows.Forms.ListBox(); - this.availableDestinationsGroupBox = new System.Windows.Forms.GroupBox(); + this.destinationsGroupBox = new System.Windows.Forms.GroupBox(); + this.destinationForceCheckBox = new System.Windows.Forms.CheckBox(); + this.destinationLoadParameterGroupBox = new System.Windows.Forms.GroupBox(); + this.destinationLoadParameterTextBox = new System.Windows.Forms.TextBox(); + this.destinationWindowIdGroupBox = new System.Windows.Forms.GroupBox(); + this.destinationWindowIdTextBox = new System.Windows.Forms.TextBox(); this.destinationLabelGroupBox = new System.Windows.Forms.GroupBox(); this.destinationTextBox = new System.Windows.Forms.TextBox(); this.destinationIconGroupBox = new System.Windows.Forms.GroupBox(); this.destinationIconPictureBox = new System.Windows.Forms.PictureBox(); this.destinationIconComboBox = new System.Windows.Forms.ComboBox(); this.destinationIconBrowseButton = new System.Windows.Forms.Button(); - this.button5 = new System.Windows.Forms.Button(); - this.button6 = new System.Windows.Forms.Button(); - this.button7 = new System.Windows.Forms.Button(); + this.destinationDownButton = new System.Windows.Forms.Button(); + this.destinationUpButton = new System.Windows.Forms.Button(); + this.destinationRemoveButton = new System.Windows.Forms.Button(); this.destinationsListBox = new System.Windows.Forms.ListBox(); this.shapeContainer1 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer(); this.groupPropertiesShape = new Microsoft.VisualBasic.PowerPacks.RectangleShape(); @@ -68,6 +73,14 @@ this.destinationAddPictureBox = new System.Windows.Forms.PictureBox(); this.groupTextBox = new System.Windows.Forms.TextBox(); this.groupLabel = new System.Windows.Forms.Label(); + 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.iconOpenFileDialog = new System.Windows.Forms.OpenFileDialog(); this.skinItems = new My.Common.SkinItems(); this.generalGroupBox.SuspendLayout(); this.headerGroupBox.SuspendLayout(); @@ -75,11 +88,17 @@ this.navigationGroupsGroupBox.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.windowAddPictureBox)).BeginInit(); this.windowsGroupBox.SuspendLayout(); - this.availableDestinationsGroupBox.SuspendLayout(); + this.destinationsGroupBox.SuspendLayout(); + this.destinationLoadParameterGroupBox.SuspendLayout(); + this.destinationWindowIdGroupBox.SuspendLayout(); this.destinationLabelGroupBox.SuspendLayout(); this.destinationIconGroupBox.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.destinationIconPictureBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.destinationAddPictureBox)).BeginInit(); + this.linkPropertiesGroupBox.SuspendLayout(); + this.loadParameterGroupBox.SuspendLayout(); + this.windowIdGroupBox.SuspendLayout(); + this.skinFileGroupBox.SuspendLayout(); this.SuspendLayout(); // // generalGroupBox @@ -93,7 +112,7 @@ this.generalGroupBox.Location = new System.Drawing.Point(18, 109); this.generalGroupBox.Name = "generalGroupBox"; this.generalGroupBox.Size = new System.Drawing.Size(213, 205); - this.generalGroupBox.TabIndex = 24; + this.generalGroupBox.TabIndex = 0; this.generalGroupBox.TabStop = false; this.generalGroupBox.Text = "General Properties"; // @@ -104,7 +123,7 @@ this.headerGroupBox.Location = new System.Drawing.Point(6, 20); this.headerGroupBox.Name = "headerGroupBox"; this.headerGroupBox.Size = new System.Drawing.Size(158, 51); - this.headerGroupBox.TabIndex = 9; + this.headerGroupBox.TabIndex = 0; this.headerGroupBox.TabStop = false; this.headerGroupBox.Text = "Header title"; // @@ -115,8 +134,9 @@ this.headerTextBox.Location = new System.Drawing.Point(6, 25); this.headerTextBox.Name = "headerTextBox"; this.headerTextBox.Size = new System.Drawing.Size(146, 20); - this.headerTextBox.TabIndex = 9; + this.headerTextBox.TabIndex = 0; this.headerTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.headerTextBox.TextChanged += new System.EventHandler(this.headerTextBox_TextChanged); // // showNumbersCheckBox // @@ -125,9 +145,10 @@ this.showNumbersCheckBox.Location = new System.Drawing.Point(12, 98); this.showNumbersCheckBox.Name = "showNumbersCheckBox"; this.showNumbersCheckBox.Size = new System.Drawing.Size(96, 17); - this.showNumbersCheckBox.TabIndex = 7; + this.showNumbersCheckBox.TabIndex = 2; this.showNumbersCheckBox.Text = "Show numbers"; this.showNumbersCheckBox.UseVisualStyleBackColor = true; + this.showNumbersCheckBox.CheckedChanged += new System.EventHandler(this.showNumbersCheckBox_CheckedChanged); // // dialogTypeGroupBox // @@ -136,7 +157,7 @@ this.dialogTypeGroupBox.Location = new System.Drawing.Point(6, 143); this.dialogTypeGroupBox.Name = "dialogTypeGroupBox"; this.dialogTypeGroupBox.Size = new System.Drawing.Size(201, 56); - this.dialogTypeGroupBox.TabIndex = 5; + this.dialogTypeGroupBox.TabIndex = 4; this.dialogTypeGroupBox.TabStop = false; this.dialogTypeGroupBox.Text = "Window dialog type"; // @@ -148,7 +169,8 @@ this.dialogTypeComboBox.Location = new System.Drawing.Point(6, 29); this.dialogTypeComboBox.Name = "dialogTypeComboBox"; this.dialogTypeComboBox.Size = new System.Drawing.Size(189, 21); - this.dialogTypeComboBox.TabIndex = 1; + this.dialogTypeComboBox.TabIndex = 4; + this.dialogTypeComboBox.SelectedIndexChanged += new System.EventHandler(this.dialogTypeComboBox_SelectedIndexChanged); // // showSeparatorCheckBox // @@ -160,6 +182,7 @@ this.showSeparatorCheckBox.TabIndex = 1; this.showSeparatorCheckBox.Text = "Show separator"; this.showSeparatorCheckBox.UseVisualStyleBackColor = true; + this.showSeparatorCheckBox.CheckedChanged += new System.EventHandler(this.showSeparatorCheckBox_CheckedChanged); // // removeDuplicatesCheckBox // @@ -168,9 +191,10 @@ this.removeDuplicatesCheckBox.Location = new System.Drawing.Point(12, 119); this.removeDuplicatesCheckBox.Name = "removeDuplicatesCheckBox"; this.removeDuplicatesCheckBox.Size = new System.Drawing.Size(117, 17); - this.removeDuplicatesCheckBox.TabIndex = 2; + this.removeDuplicatesCheckBox.TabIndex = 3; this.removeDuplicatesCheckBox.Text = "Remove duplicates"; this.removeDuplicatesCheckBox.UseVisualStyleBackColor = true; + this.removeDuplicatesCheckBox.CheckedChanged += new System.EventHandler(this.removeDuplicatesCheckBox_CheckedChanged); // // navigationGroupsGroupBox // @@ -183,7 +207,7 @@ this.navigationGroupsGroupBox.Location = new System.Drawing.Point(21, 389); this.navigationGroupsGroupBox.Name = "navigationGroupsGroupBox"; this.navigationGroupsGroupBox.Size = new System.Drawing.Size(210, 288); - this.navigationGroupsGroupBox.TabIndex = 21; + this.navigationGroupsGroupBox.TabIndex = 5; this.navigationGroupsGroupBox.TabStop = false; this.navigationGroupsGroupBox.Text = "Navigation Groups"; // @@ -195,7 +219,7 @@ this.groupDownButton.Location = new System.Drawing.Point(166, 244); this.groupDownButton.Name = "groupDownButton"; this.groupDownButton.Size = new System.Drawing.Size(38, 38); - this.groupDownButton.TabIndex = 39; + this.groupDownButton.TabIndex = 9; this.groupDownButton.UseVisualStyleBackColor = true; // // groupUpButton @@ -206,7 +230,7 @@ this.groupUpButton.Location = new System.Drawing.Point(126, 244); this.groupUpButton.Name = "groupUpButton"; this.groupUpButton.Size = new System.Drawing.Size(38, 38); - this.groupUpButton.TabIndex = 38; + this.groupUpButton.TabIndex = 8; this.groupUpButton.UseVisualStyleBackColor = true; // // groupRemoveButton @@ -217,7 +241,7 @@ this.groupRemoveButton.Location = new System.Drawing.Point(46, 243); this.groupRemoveButton.Name = "groupRemoveButton"; this.groupRemoveButton.Size = new System.Drawing.Size(38, 38); - this.groupRemoveButton.TabIndex = 37; + this.groupRemoveButton.TabIndex = 7; this.groupRemoveButton.UseVisualStyleBackColor = true; // // groupAddButton @@ -228,7 +252,7 @@ this.groupAddButton.Location = new System.Drawing.Point(6, 243); this.groupAddButton.Name = "groupAddButton"; this.groupAddButton.Size = new System.Drawing.Size(38, 38); - this.groupAddButton.TabIndex = 36; + this.groupAddButton.TabIndex = 6; this.groupAddButton.UseVisualStyleBackColor = true; // // groupsListBox @@ -239,7 +263,10 @@ this.groupsListBox.Location = new System.Drawing.Point(6, 25); this.groupsListBox.Name = "groupsListBox"; this.groupsListBox.Size = new System.Drawing.Size(198, 212); - this.groupsListBox.TabIndex = 18; + this.groupsListBox.TabIndex = 5; + this.groupsListBox.SelectedIndexChanged += new System.EventHandler(this.groupsListBox_SelectedIndexChanged); + this.groupsListBox.Enter += new System.EventHandler(this.groupsListBox_Enter); + this.groupsListBox.Leave += new System.EventHandler(this.groupsListBox_Leave); // // windowAddPictureBox // @@ -261,7 +288,7 @@ this.windowAddButton.Location = new System.Drawing.Point(346, 320); this.windowAddButton.Name = "windowAddButton"; this.windowAddButton.Size = new System.Drawing.Size(38, 38); - this.windowAddButton.TabIndex = 37; + this.windowAddButton.TabIndex = 11; this.windowAddButton.UseVisualStyleBackColor = false; // // windowsGroupBox @@ -275,7 +302,7 @@ this.windowsGroupBox.Name = "windowsGroupBox"; this.windowsGroupBox.RightToLeft = System.Windows.Forms.RightToLeft.No; this.windowsGroupBox.Size = new System.Drawing.Size(170, 288); - this.windowsGroupBox.TabIndex = 44; + this.windowsGroupBox.TabIndex = 13; this.windowsGroupBox.TabStop = false; this.windowsGroupBox.Text = "Conditional windows"; // @@ -287,7 +314,7 @@ this.windowDownButton.Location = new System.Drawing.Point(126, 243); this.windowDownButton.Name = "windowDownButton"; this.windowDownButton.Size = new System.Drawing.Size(38, 38); - this.windowDownButton.TabIndex = 39; + this.windowDownButton.TabIndex = 16; this.windowDownButton.UseVisualStyleBackColor = true; // // windowUpButton @@ -298,7 +325,7 @@ this.windowUpButton.Location = new System.Drawing.Point(86, 243); this.windowUpButton.Name = "windowUpButton"; this.windowUpButton.Size = new System.Drawing.Size(38, 38); - this.windowUpButton.TabIndex = 38; + this.windowUpButton.TabIndex = 15; this.windowUpButton.UseVisualStyleBackColor = true; // // windowRemoveButton @@ -309,7 +336,7 @@ this.windowRemoveButton.Location = new System.Drawing.Point(6, 243); this.windowRemoveButton.Name = "windowRemoveButton"; this.windowRemoveButton.Size = new System.Drawing.Size(38, 38); - this.windowRemoveButton.TabIndex = 37; + this.windowRemoveButton.TabIndex = 14; this.windowRemoveButton.UseVisualStyleBackColor = true; // // windowsListBox @@ -320,43 +347,101 @@ this.windowsListBox.Location = new System.Drawing.Point(6, 25); this.windowsListBox.Name = "windowsListBox"; this.windowsListBox.Size = new System.Drawing.Size(158, 212); - this.windowsListBox.TabIndex = 18; + this.windowsListBox.TabIndex = 13; + this.windowsListBox.SelectedIndexChanged += new System.EventHandler(this.windowsListBox_SelectedIndexChanged); + this.windowsListBox.Enter += new System.EventHandler(this.windowsListBox_Enter); + this.windowsListBox.Leave += new System.EventHandler(this.windowsListBox_Leave); // - // availableDestinationsGroupBox + // destinationsGroupBox // - this.availableDestinationsGroupBox.Controls.Add(this.destinationLabelGroupBox); - this.availableDestinationsGroupBox.Controls.Add(this.destinationIconGroupBox); - this.availableDestinationsGroupBox.Controls.Add(this.button5); - this.availableDestinationsGroupBox.Controls.Add(this.button6); - this.availableDestinationsGroupBox.Controls.Add(this.button7); - this.availableDestinationsGroupBox.Controls.Add(this.destinationsListBox); - this.availableDestinationsGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold); - this.availableDestinationsGroupBox.Location = new System.Drawing.Point(490, 389); - this.availableDestinationsGroupBox.Name = "availableDestinationsGroupBox"; - this.availableDestinationsGroupBox.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.availableDestinationsGroupBox.Size = new System.Drawing.Size(480, 288); - this.availableDestinationsGroupBox.TabIndex = 45; - this.availableDestinationsGroupBox.TabStop = false; - this.availableDestinationsGroupBox.Text = "Available destinations"; + this.destinationsGroupBox.Controls.Add(this.destinationForceCheckBox); + this.destinationsGroupBox.Controls.Add(this.destinationLoadParameterGroupBox); + this.destinationsGroupBox.Controls.Add(this.destinationWindowIdGroupBox); + this.destinationsGroupBox.Controls.Add(this.destinationLabelGroupBox); + this.destinationsGroupBox.Controls.Add(this.destinationIconGroupBox); + this.destinationsGroupBox.Controls.Add(this.destinationDownButton); + this.destinationsGroupBox.Controls.Add(this.destinationUpButton); + this.destinationsGroupBox.Controls.Add(this.destinationRemoveButton); + this.destinationsGroupBox.Controls.Add(this.destinationsListBox); + this.destinationsGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold); + this.destinationsGroupBox.Location = new System.Drawing.Point(490, 389); + this.destinationsGroupBox.Name = "destinationsGroupBox"; + this.destinationsGroupBox.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.destinationsGroupBox.Size = new System.Drawing.Size(480, 288); + this.destinationsGroupBox.TabIndex = 17; + this.destinationsGroupBox.TabStop = false; + this.destinationsGroupBox.Text = "Available destinations"; // + // destinationForceCheckBox + // + this.destinationForceCheckBox.AutoSize = true; + this.destinationForceCheckBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.destinationForceCheckBox.Location = new System.Drawing.Point(360, 106); + this.destinationForceCheckBox.Name = "destinationForceCheckBox"; + this.destinationForceCheckBox.Size = new System.Drawing.Size(107, 17); + this.destinationForceCheckBox.TabIndex = 23; + this.destinationForceCheckBox.Text = "Force destination"; + this.destinationForceCheckBox.UseVisualStyleBackColor = true; + // + // destinationLoadParameterGroupBox + // + this.destinationLoadParameterGroupBox.Controls.Add(this.destinationLoadParameterTextBox); + this.destinationLoadParameterGroupBox.Location = new System.Drawing.Point(172, 133); + this.destinationLoadParameterGroupBox.Name = "destinationLoadParameterGroupBox"; + this.destinationLoadParameterGroupBox.Size = new System.Drawing.Size(302, 51); + this.destinationLoadParameterGroupBox.TabIndex = 24; + this.destinationLoadParameterGroupBox.TabStop = false; + this.destinationLoadParameterGroupBox.Text = "Load parameter"; + // + // destinationLoadParameterTextBox + // + this.destinationLoadParameterTextBox.BackColor = System.Drawing.SystemColors.Window; + this.destinationLoadParameterTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.destinationLoadParameterTextBox.Location = new System.Drawing.Point(6, 25); + this.destinationLoadParameterTextBox.Name = "destinationLoadParameterTextBox"; + this.destinationLoadParameterTextBox.Size = new System.Drawing.Size(289, 20); + this.destinationLoadParameterTextBox.TabIndex = 24; + this.destinationLoadParameterTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // destinationWindowIdGroupBox + // + this.destinationWindowIdGroupBox.Controls.Add(this.destinationWindowIdTextBox); + this.destinationWindowIdGroupBox.Location = new System.Drawing.Point(172, 79); + this.destinationWindowIdGroupBox.Name = "destinationWindowIdGroupBox"; + this.destinationWindowIdGroupBox.Size = new System.Drawing.Size(144, 51); + this.destinationWindowIdGroupBox.TabIndex = 22; + this.destinationWindowIdGroupBox.TabStop = false; + this.destinationWindowIdGroupBox.Text = "Window ID"; + // + // destinationWindowIdTextBox + // + this.destinationWindowIdTextBox.BackColor = System.Drawing.SystemColors.Window; + this.destinationWindowIdTextBox.Enabled = false; + this.destinationWindowIdTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.destinationWindowIdTextBox.Location = new System.Drawing.Point(6, 25); + this.destinationWindowIdTextBox.Name = "destinationWindowIdTextBox"; + this.destinationWindowIdTextBox.Size = new System.Drawing.Size(131, 20); + this.destinationWindowIdTextBox.TabIndex = 22; + this.destinationWindowIdTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // // destinationLabelGroupBox // this.destinationLabelGroupBox.Controls.Add(this.destinationTextBox); this.destinationLabelGroupBox.Location = new System.Drawing.Point(172, 25); this.destinationLabelGroupBox.Name = "destinationLabelGroupBox"; - this.destinationLabelGroupBox.Size = new System.Drawing.Size(302, 94); - this.destinationLabelGroupBox.TabIndex = 54; + this.destinationLabelGroupBox.Size = new System.Drawing.Size(302, 51); + this.destinationLabelGroupBox.TabIndex = 21; this.destinationLabelGroupBox.TabStop = false; - this.destinationLabelGroupBox.Text = "Destination label"; + this.destinationLabelGroupBox.Text = "Label"; // // destinationTextBox // this.destinationTextBox.BackColor = System.Drawing.SystemColors.Window; this.destinationTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.destinationTextBox.Location = new System.Drawing.Point(6, 47); + this.destinationTextBox.Location = new System.Drawing.Point(6, 25); this.destinationTextBox.Name = "destinationTextBox"; this.destinationTextBox.Size = new System.Drawing.Size(289, 20); - this.destinationTextBox.TabIndex = 53; + this.destinationTextBox.TabIndex = 21; this.destinationTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // destinationIconGroupBox @@ -364,12 +449,12 @@ this.destinationIconGroupBox.Controls.Add(this.destinationIconPictureBox); this.destinationIconGroupBox.Controls.Add(this.destinationIconComboBox); this.destinationIconGroupBox.Controls.Add(this.destinationIconBrowseButton); - this.destinationIconGroupBox.Location = new System.Drawing.Point(170, 143); + this.destinationIconGroupBox.Location = new System.Drawing.Point(170, 187); this.destinationIconGroupBox.Name = "destinationIconGroupBox"; this.destinationIconGroupBox.Size = new System.Drawing.Size(302, 94); - this.destinationIconGroupBox.TabIndex = 40; + this.destinationIconGroupBox.TabIndex = 25; this.destinationIconGroupBox.TabStop = false; - this.destinationIconGroupBox.Text = "Destination icon"; + this.destinationIconGroupBox.Text = "Icon"; // // destinationIconPictureBox // @@ -390,7 +475,8 @@ this.destinationIconComboBox.Location = new System.Drawing.Point(76, 47); this.destinationIconComboBox.Name = "destinationIconComboBox"; this.destinationIconComboBox.Size = new System.Drawing.Size(164, 21); - this.destinationIconComboBox.TabIndex = 16; + this.destinationIconComboBox.TabIndex = 25; + this.destinationIconComboBox.TextChanged += new System.EventHandler(this.destinationIconComboBox_TextChanged); // // destinationIconBrowseButton // @@ -398,42 +484,43 @@ this.destinationIconBrowseButton.Location = new System.Drawing.Point(246, 46); this.destinationIconBrowseButton.Name = "destinationIconBrowseButton"; this.destinationIconBrowseButton.Size = new System.Drawing.Size(51, 23); - this.destinationIconBrowseButton.TabIndex = 17; + this.destinationIconBrowseButton.TabIndex = 26; this.destinationIconBrowseButton.Text = "Browse"; this.destinationIconBrowseButton.UseVisualStyleBackColor = true; + this.destinationIconBrowseButton.Click += new System.EventHandler(this.destinationIconBrowseButton_Click); // - // button5 + // destinationDownButton // - this.button5.AutoSize = true; - this.button5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.button5.Image = global::ShortCuter.Properties.Resources.SubRowDown; - this.button5.Location = new System.Drawing.Point(126, 243); - this.button5.Name = "button5"; - this.button5.Size = new System.Drawing.Size(38, 38); - this.button5.TabIndex = 39; - this.button5.UseVisualStyleBackColor = true; + this.destinationDownButton.AutoSize = true; + this.destinationDownButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.destinationDownButton.Image = global::ShortCuter.Properties.Resources.SubRowDown; + this.destinationDownButton.Location = new System.Drawing.Point(126, 243); + this.destinationDownButton.Name = "destinationDownButton"; + this.destinationDownButton.Size = new System.Drawing.Size(38, 38); + this.destinationDownButton.TabIndex = 20; + this.destinationDownButton.UseVisualStyleBackColor = true; // - // button6 + // destinationUpButton // - this.button6.AutoSize = true; - this.button6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.button6.Image = global::ShortCuter.Properties.Resources.SubRowUp; - this.button6.Location = new System.Drawing.Point(86, 243); - this.button6.Name = "button6"; - this.button6.Size = new System.Drawing.Size(38, 38); - this.button6.TabIndex = 38; - this.button6.UseVisualStyleBackColor = true; + this.destinationUpButton.AutoSize = true; + this.destinationUpButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.destinationUpButton.Image = global::ShortCuter.Properties.Resources.SubRowUp; + this.destinationUpButton.Location = new System.Drawing.Point(86, 243); + this.destinationUpButton.Name = "destinationUpButton"; + this.destinationUpButton.Size = new System.Drawing.Size(38, 38); + this.destinationUpButton.TabIndex = 19; + this.destinationUpButton.UseVisualStyleBackColor = true; // - // button7 + // destinationRemoveButton // - this.button7.AutoSize = true; - this.button7.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.button7.Image = global::ShortCuter.Properties.Resources.SubRowRemove; - this.button7.Location = new System.Drawing.Point(6, 243); - this.button7.Name = "button7"; - this.button7.Size = new System.Drawing.Size(38, 38); - this.button7.TabIndex = 37; - this.button7.UseVisualStyleBackColor = true; + this.destinationRemoveButton.AutoSize = true; + this.destinationRemoveButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.destinationRemoveButton.Image = global::ShortCuter.Properties.Resources.SubRowRemove; + this.destinationRemoveButton.Location = new System.Drawing.Point(6, 243); + this.destinationRemoveButton.Name = "destinationRemoveButton"; + this.destinationRemoveButton.Size = new System.Drawing.Size(38, 38); + this.destinationRemoveButton.TabIndex = 18; + this.destinationRemoveButton.UseVisualStyleBackColor = true; // // destinationsListBox // @@ -443,7 +530,10 @@ this.destinationsListBox.Location = new System.Drawing.Point(6, 25); this.destinationsListBox.Name = "destinationsListBox"; this.destinationsListBox.Size = new System.Drawing.Size(158, 212); - this.destinationsListBox.TabIndex = 18; + this.destinationsListBox.TabIndex = 17; + this.destinationsListBox.SelectedIndexChanged += new System.EventHandler(this.destinationsListBox_SelectedIndexChanged); + this.destinationsListBox.Enter += new System.EventHandler(this.destinationsListBox_Enter); + this.destinationsListBox.Leave += new System.EventHandler(this.destinationsListBox_Leave); // // shapeContainer1 // @@ -460,6 +550,7 @@ // this.groupPropertiesShape.BorderColor = System.Drawing.SystemColors.AppWorkspace; this.groupPropertiesShape.CornerRadius = 4; + this.groupPropertiesShape.Enabled = false; this.groupPropertiesShape.FillColor = System.Drawing.SystemColors.ControlLight; this.groupPropertiesShape.Location = new System.Drawing.Point(253, 380); this.groupPropertiesShape.Name = "groupPropertiesShape"; @@ -473,7 +564,7 @@ this.groupPropertiesLabel.Location = new System.Drawing.Point(851, 371); this.groupPropertiesLabel.Name = "groupPropertiesLabel"; this.groupPropertiesLabel.Size = new System.Drawing.Size(119, 15); - this.groupPropertiesLabel.TabIndex = 47; + this.groupPropertiesLabel.TabIndex = 40; this.groupPropertiesLabel.Text = "Group properties:"; this.groupPropertiesLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // @@ -486,7 +577,7 @@ this.destinationAddButton.Location = new System.Drawing.Point(556, 320); this.destinationAddButton.Name = "destinationAddButton"; this.destinationAddButton.Size = new System.Drawing.Size(38, 38); - this.destinationAddButton.TabIndex = 49; + this.destinationAddButton.TabIndex = 12; this.destinationAddButton.UseVisualStyleBackColor = false; // // destinationAddPictureBox @@ -507,8 +598,9 @@ this.groupTextBox.Location = new System.Drawing.Point(380, 687); this.groupTextBox.Name = "groupTextBox"; this.groupTextBox.Size = new System.Drawing.Size(274, 20); - this.groupTextBox.TabIndex = 51; + this.groupTextBox.TabIndex = 27; this.groupTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.groupTextBox.TextChanged += new System.EventHandler(this.groupTextBox_TextChanged); // // groupLabel // @@ -517,28 +609,117 @@ this.groupLabel.Location = new System.Drawing.Point(283, 690); this.groupLabel.Name = "groupLabel"; this.groupLabel.Size = new System.Drawing.Size(86, 15); - this.groupLabel.TabIndex = 50; + this.groupLabel.TabIndex = 27; this.groupLabel.Text = "Group label:"; this.groupLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // + // 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(679, 28); + this.linkPropertiesGroupBox.Name = "linkPropertiesGroupBox"; + this.linkPropertiesGroupBox.Size = new System.Drawing.Size(320, 175); + this.linkPropertiesGroupBox.TabIndex = 40; + 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 = 40; + 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 = 40; + 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 = 40; + 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 = 40; + 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 = 40; + 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 = 40; + this.skinFileLabel.Text = "-"; + this.skinFileLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // iconOpenFileDialog + // + this.iconOpenFileDialog.Filter = "Image Files |*.png;*.jpg;*.bmp;*.gif"; + // // skinItems // - this.skinItems.Location = new System.Drawing.Point(253, 12); + this.skinItems.Location = new System.Drawing.Point(269, 12); this.skinItems.Name = "skinItems"; this.skinItems.SelectedIndex = -1; this.skinItems.SelectedTab = My.Common.SkinItems.SkinItemsType.Links; - this.skinItems.Size = new System.Drawing.Size(440, 302); - this.skinItems.TabIndex = 0; + this.skinItems.Size = new System.Drawing.Size(404, 302); + this.skinItems.TabIndex = 10; this.skinItems.Enter += new System.EventHandler(this.skinItems_Enter); + this.skinItems.SelectedIndexChanged += new System.EventHandler(this.skinItems_SelectedIndexChanged); + this.skinItems.Leave += new System.EventHandler(this.skinItems_Leave); // // SkinNavigatorConfig // 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.linkPropertiesGroupBox); this.Controls.Add(this.groupTextBox); this.Controls.Add(this.groupLabel); - this.Controls.Add(this.availableDestinationsGroupBox); + this.Controls.Add(this.destinationsGroupBox); this.Controls.Add(this.skinItems); this.Controls.Add(this.destinationAddButton); this.Controls.Add(this.destinationAddPictureBox); @@ -566,13 +747,22 @@ ((System.ComponentModel.ISupportInitialize)(this.windowAddPictureBox)).EndInit(); this.windowsGroupBox.ResumeLayout(false); this.windowsGroupBox.PerformLayout(); - this.availableDestinationsGroupBox.ResumeLayout(false); - this.availableDestinationsGroupBox.PerformLayout(); + this.destinationsGroupBox.ResumeLayout(false); + this.destinationsGroupBox.PerformLayout(); + this.destinationLoadParameterGroupBox.ResumeLayout(false); + this.destinationLoadParameterGroupBox.PerformLayout(); + this.destinationWindowIdGroupBox.ResumeLayout(false); + this.destinationWindowIdGroupBox.PerformLayout(); this.destinationLabelGroupBox.ResumeLayout(false); this.destinationLabelGroupBox.PerformLayout(); this.destinationIconGroupBox.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.destinationIconPictureBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.destinationAddPictureBox)).EndInit(); + this.linkPropertiesGroupBox.ResumeLayout(false); + this.loadParameterGroupBox.ResumeLayout(false); + this.loadParameterGroupBox.PerformLayout(); + this.windowIdGroupBox.ResumeLayout(false); + this.skinFileGroupBox.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); @@ -602,14 +792,14 @@ private System.Windows.Forms.Button windowUpButton; private System.Windows.Forms.Button windowRemoveButton; private System.Windows.Forms.ListBox windowsListBox; - private System.Windows.Forms.GroupBox availableDestinationsGroupBox; + private System.Windows.Forms.GroupBox destinationsGroupBox; private System.Windows.Forms.GroupBox destinationIconGroupBox; private System.Windows.Forms.PictureBox destinationIconPictureBox; private System.Windows.Forms.ComboBox destinationIconComboBox; private System.Windows.Forms.Button destinationIconBrowseButton; - private System.Windows.Forms.Button button5; - private System.Windows.Forms.Button button6; - private System.Windows.Forms.Button button7; + private System.Windows.Forms.Button destinationDownButton; + private System.Windows.Forms.Button destinationUpButton; + private System.Windows.Forms.Button destinationRemoveButton; private System.Windows.Forms.ListBox destinationsListBox; private Microsoft.VisualBasic.PowerPacks.ShapeContainer shapeContainer1; private Microsoft.VisualBasic.PowerPacks.RectangleShape groupPropertiesShape; @@ -620,5 +810,18 @@ private System.Windows.Forms.Label groupLabel; private System.Windows.Forms.GroupBox destinationLabelGroupBox; private System.Windows.Forms.TextBox destinationTextBox; + private System.Windows.Forms.GroupBox destinationLoadParameterGroupBox; + private System.Windows.Forms.TextBox destinationLoadParameterTextBox; + private System.Windows.Forms.GroupBox destinationWindowIdGroupBox; + private System.Windows.Forms.TextBox destinationWindowIdTextBox; + private System.Windows.Forms.CheckBox destinationForceCheckBox; + private System.Windows.Forms.GroupBox linkPropertiesGroupBox; + private System.Windows.Forms.GroupBox loadParameterGroupBox; + private System.Windows.Forms.TextBox loadParameterTextBox; + 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.OpenFileDialog iconOpenFileDialog; } } \ No newline at end of file Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.cs =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.cs 2015-01-07 16:50:03 UTC (rev 4908) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.cs 2015-01-08 17:51:06 UTC (rev 4909) @@ -1,6 +1,7 @@ using System.Windows.Forms; using System.Drawing; using My.Common; +using System.IO; namespace ShortCuter.Configuration { @@ -9,55 +10,253 @@ #region Dati private SkinNavigator mySkinNavigator; //Istanza classe SkinNavigator (gestione configurazione) private Skin mySkin; //Istanza classe Skin (dati relativi alla skin di MediaPortal) + private bool modEventsEnable = false; //Abilitazione agli eventi di modifica + private bool groupEditing = false; //Fase di editazione gruppo #endregion #region Costruttore internal SkinNavigatorConfig(SkinNavigator navigator, Skin skin) { InitializeComponent(); - mySkinNavigator = navigator; - mySkin = skin; + mySkinNavigator = navigator; //Assegnazione classe SkinNavigator + mySkin = skin; //Assegnazione classe Skin } #endregion #region Metodi Privati - #endregion - - #region Consumazione Eventi - #region Eventi Form - private void SkinNavigatorConfig_Load(object sender, System.EventArgs e) + private void InitializeGUI() //Inizializzazione interfaccia { skinItems.Populate(mySkin.SkinFiles, mySkin.SkinLinks, true, false); + destinationIconComboBox.DataSource = mySkin.SkinIcons; - headerTextBox.Text = mySkinNavigator.General.MenuHeader; - showSeparatorCheckBox.Checked = mySkinNavigator.General.ShowSeparator; - showNumbersCheckBox.Checked = mySkinNavigator.General.ShowNumbers; + headerTextBox.Text = mySkinNavigator.General.MenuHeader; + showSeparatorCheckBox.Checked = mySkinNavigator.General.ShowSeparator; + showNumbersCheckBox.Checked = mySkinNavigator.General.ShowNumbers; removeDuplicatesCheckBox.Checked = mySkinNavigator.General.RemoveDuplicates; - dialogTypeComboBox.DataSource = EnumHelper.GetEnumDescriptions(typeof(SkinNavigator.DialogTypes)); - dialogTypeComboBox.SelectedItem = EnumHelper.GetEnumDescription(mySkinNavigator.General.DialogType); + dialogTypeComboBox.DataSource = EnumHelper.GetEnumDescriptions(typeof(SkinNavigator.DialogTypes)); + dialogTypeComboBox.SelectedItem = EnumHelper.GetEnumDescription(mySkinNavigator.General.DialogType); groupsListBox.DataSource = mySkinNavigator.Items; groupsListBox.SelectedIndex = 0; + modEventsEnable = true; + //toolTip.SetToolTip(skinItems, "Double click to set the link's parameter to shortcut"); - //toolTip.SetToolTip(skinItems, "Double click to set the link's parameter to shortcut"); } + private void ShowLinkProperties() //Visualizzazione proprietà link + { + if (skinItems.SelectedIndex < 0) //Se indice invalido --> reset proprietà + { + skinFileLabel.Text = "-"; + windowIdLabel.Text = "-"; + loadParameterTextBox.Text = "-"; + } + else //Visualizzazione proprietà elemento selezionato + { + switch (skinItems.SelectedTab) + { + case SkinItems.SkinItemsType.Files: //Lista files della skin + skinFileLabel.Text = mySkin.SkinFiles[skinItems.SelectedIndex].Name; + windowIdLabel.Text = mySkin.SkinFiles[skinItems.SelectedIndex].Id.ToString(); + loadParameterTextBox.Text = "-"; + break; + + case SkinItems.SkinItemsType.Links: //Lista links predefiniti della skin + skinFileLabel.Text = mySkin.SkinLinks[skinItems.SelectedIndex].XmlFile; + windowIdLabel.Text = mySkin.SkinLinks[skinItems.SelectedIndex].WindowID.ToString(); + loadParameterTextBox.Text = mySkin.SkinLinks[skinItems.SelectedIndex].LoadParameter; + break; + } + } + } + private void RefreshNavigationListsControls() //Aggiornamento controlli legati alle liste di navigazione + { + modEventsEnable = false; + groupRemoveButton.Enabled = (mySkinNavigator.Items.Count > 0); + groupUpButton.Enabled = (groupsListBox.SelectedIndex > 0); + groupDownButton.Enabled = (groupsListBox.SelectedIndex < mySkinNavigator.Items.Count - 1); + if ((groupsListBox.SelectedIndex < 0) || (groupsListBox.SelectedIndex > mySkinNavigator.Items.Count - 1)) + { + windowRemoveButton.Enabled = false; + windowAddButton.Enabled = false; + windowUpButton.Enabled = false; + windowDownButton.Enabled = false; + destinationRemoveButton.Enabled = false; + destinationAddButton.Enabled = false; + destinationUpButton.Enabled = false; + destinationDownButton.Enabled = false; + } + else + { + groupTextBox.Text = mySkinNavigator.Items[groupsListBox.SelectedIndex].Caption; + windowsListBox.DataSource = mySkinNavigator.Items[groupsListBox.SelectedIndex].Windows; + windowRemoveButton.Enabled = (mySkinNavigator.Items[groupsListBox.SelectedIndex].Windows.Count > 0); ; + windowAddButton.Enabled = true; + windowUpButton.Enabled = (windowsListBox.SelectedIndex > 0); + windowDownButton.Enabled = (windowsListBox.SelectedIndex < mySkin... [truncated message content] |