|
From: <nic...@us...> - 2015-01-09 11:37:00
|
Revision: 4910
http://sourceforge.net/p/mp-plugins/code/4910
Author: nicsergio
Date: 2015-01-09 11:36:56 +0000 (Fri, 09 Jan 2015)
Log Message:
-----------
Modified Paths:
--------------
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
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/Skin.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/Skin.cs 2015-01-08 17:51:06 UTC (rev 4909)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/Skin.cs 2015-01-09 11:36:56 UTC (rev 4910)
@@ -78,7 +78,7 @@
else
return (Path.IsPathRooted(iconFile) ? iconFile : @"ShortCuter\" + iconFile);
}
- public string GetIconFile(string iconPath) //Ottenimento nome file icona
+ public string GetIconFile(string iconPath) //Ottenimento nome file icona
{
try
{
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.Designer.cs 2015-01-08 17:51:06 UTC (rev 4909)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.Designer.cs 2015-01-09 11:36:56 UTC (rev 4910)
@@ -28,6 +28,7 @@
/// </summary>
private void InitializeComponent()
{
+ this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SkinNavigatorConfig));
this.generalGroupBox = new System.Windows.Forms.GroupBox();
this.headerGroupBox = new System.Windows.Forms.GroupBox();
@@ -46,6 +47,7 @@
this.windowAddPictureBox = new System.Windows.Forms.PictureBox();
this.windowAddButton = new System.Windows.Forms.Button();
this.windowsGroupBox = new System.Windows.Forms.GroupBox();
+ this.alwaysVisibleLabel = new System.Windows.Forms.Label();
this.windowDownButton = new System.Windows.Forms.Button();
this.windowUpButton = new System.Windows.Forms.Button();
this.windowRemoveButton = new System.Windows.Forms.Button();
@@ -81,7 +83,9 @@
this.skinFileGroupBox = new System.Windows.Forms.GroupBox();
this.skinFileLabel = new System.Windows.Forms.Label();
this.iconOpenFileDialog = new System.Windows.Forms.OpenFileDialog();
+ this.resetButton = new System.Windows.Forms.Button();
this.skinItems = new My.Common.SkinItems();
+ this.toolTip = new System.Windows.Forms.ToolTip(this.components);
this.generalGroupBox.SuspendLayout();
this.headerGroupBox.SuspendLayout();
this.dialogTypeGroupBox.SuspendLayout();
@@ -221,6 +225,7 @@
this.groupDownButton.Size = new System.Drawing.Size(38, 38);
this.groupDownButton.TabIndex = 9;
this.groupDownButton.UseVisualStyleBackColor = true;
+ this.groupDownButton.Click += new System.EventHandler(this.groupDownButton_Click);
//
// groupUpButton
//
@@ -232,6 +237,7 @@
this.groupUpButton.Size = new System.Drawing.Size(38, 38);
this.groupUpButton.TabIndex = 8;
this.groupUpButton.UseVisualStyleBackColor = true;
+ this.groupUpButton.Click += new System.EventHandler(this.groupUpButton_Click);
//
// groupRemoveButton
//
@@ -243,6 +249,7 @@
this.groupRemoveButton.Size = new System.Drawing.Size(38, 38);
this.groupRemoveButton.TabIndex = 7;
this.groupRemoveButton.UseVisualStyleBackColor = true;
+ this.groupRemoveButton.Click += new System.EventHandler(this.groupRemoveButton_Click);
//
// groupAddButton
//
@@ -254,6 +261,7 @@
this.groupAddButton.Size = new System.Drawing.Size(38, 38);
this.groupAddButton.TabIndex = 6;
this.groupAddButton.UseVisualStyleBackColor = true;
+ this.groupAddButton.Click += new System.EventHandler(this.groupAddButton_Click);
//
// groupsListBox
//
@@ -290,9 +298,11 @@
this.windowAddButton.Size = new System.Drawing.Size(38, 38);
this.windowAddButton.TabIndex = 11;
this.windowAddButton.UseVisualStyleBackColor = false;
+ this.windowAddButton.Click += new System.EventHandler(this.windowAddButton_Click);
//
// windowsGroupBox
//
+ this.windowsGroupBox.Controls.Add(this.alwaysVisibleLabel);
this.windowsGroupBox.Controls.Add(this.windowDownButton);
this.windowsGroupBox.Controls.Add(this.windowUpButton);
this.windowsGroupBox.Controls.Add(this.windowRemoveButton);
@@ -306,6 +316,21 @@
this.windowsGroupBox.TabStop = false;
this.windowsGroupBox.Text = "Conditional windows";
//
+ // alwaysVisibleLabel
+ //
+ this.alwaysVisibleLabel.AutoSize = true;
+ this.alwaysVisibleLabel.BackColor = System.Drawing.Color.Transparent;
+ this.alwaysVisibleLabel.FlatStyle = System.Windows.Forms.FlatStyle.System;
+ this.alwaysVisibleLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.alwaysVisibleLabel.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.alwaysVisibleLabel.Location = new System.Drawing.Point(26, 55);
+ this.alwaysVisibleLabel.Name = "alwaysVisibleLabel";
+ this.alwaysVisibleLabel.Size = new System.Drawing.Size(115, 15);
+ this.alwaysVisibleLabel.TabIndex = 41;
+ this.alwaysVisibleLabel.Text = "ALWAYS VISIBLE";
+ this.alwaysVisibleLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.alwaysVisibleLabel.Visible = false;
+ //
// windowDownButton
//
this.windowDownButton.AutoSize = true;
@@ -316,6 +341,7 @@
this.windowDownButton.Size = new System.Drawing.Size(38, 38);
this.windowDownButton.TabIndex = 16;
this.windowDownButton.UseVisualStyleBackColor = true;
+ this.windowDownButton.Click += new System.EventHandler(this.windowDownButton_Click);
//
// windowUpButton
//
@@ -327,6 +353,7 @@
this.windowUpButton.Size = new System.Drawing.Size(38, 38);
this.windowUpButton.TabIndex = 15;
this.windowUpButton.UseVisualStyleBackColor = true;
+ this.windowUpButton.Click += new System.EventHandler(this.windowUpButton_Click);
//
// windowRemoveButton
//
@@ -338,6 +365,7 @@
this.windowRemoveButton.Size = new System.Drawing.Size(38, 38);
this.windowRemoveButton.TabIndex = 14;
this.windowRemoveButton.UseVisualStyleBackColor = true;
+ this.windowRemoveButton.Click += new System.EventHandler(this.windowRemoveButton_Click);
//
// windowsListBox
//
@@ -382,6 +410,7 @@
this.destinationForceCheckBox.TabIndex = 23;
this.destinationForceCheckBox.Text = "Force destination";
this.destinationForceCheckBox.UseVisualStyleBackColor = true;
+ this.destinationForceCheckBox.CheckedChanged += new System.EventHandler(this.destinationForceCheckBox_CheckedChanged);
//
// destinationLoadParameterGroupBox
//
@@ -402,6 +431,7 @@
this.destinationLoadParameterTextBox.Size = new System.Drawing.Size(289, 20);
this.destinationLoadParameterTextBox.TabIndex = 24;
this.destinationLoadParameterTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.destinationLoadParameterTextBox.TextChanged += new System.EventHandler(this.destinationLoadParameterTextBox_TextChanged);
//
// destinationWindowIdGroupBox
//
@@ -443,6 +473,7 @@
this.destinationTextBox.Size = new System.Drawing.Size(289, 20);
this.destinationTextBox.TabIndex = 21;
this.destinationTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.destinationTextBox.TextChanged += new System.EventHandler(this.destinationTextBox_TextChanged);
//
// destinationIconGroupBox
//
@@ -499,6 +530,7 @@
this.destinationDownButton.Size = new System.Drawing.Size(38, 38);
this.destinationDownButton.TabIndex = 20;
this.destinationDownButton.UseVisualStyleBackColor = true;
+ this.destinationDownButton.Click += new System.EventHandler(this.destinationDownButton_Click);
//
// destinationUpButton
//
@@ -510,6 +542,7 @@
this.destinationUpButton.Size = new System.Drawing.Size(38, 38);
this.destinationUpButton.TabIndex = 19;
this.destinationUpButton.UseVisualStyleBackColor = true;
+ this.destinationUpButton.Click += new System.EventHandler(this.destinationUpButton_Click);
//
// destinationRemoveButton
//
@@ -521,6 +554,7 @@
this.destinationRemoveButton.Size = new System.Drawing.Size(38, 38);
this.destinationRemoveButton.TabIndex = 18;
this.destinationRemoveButton.UseVisualStyleBackColor = true;
+ this.destinationRemoveButton.Click += new System.EventHandler(this.destinationRemoveButton_Click);
//
// destinationsListBox
//
@@ -579,6 +613,7 @@
this.destinationAddButton.Size = new System.Drawing.Size(38, 38);
this.destinationAddButton.TabIndex = 12;
this.destinationAddButton.UseVisualStyleBackColor = false;
+ this.destinationAddButton.Click += new System.EventHandler(this.destinationAddButton_Click);
//
// destinationAddPictureBox
//
@@ -699,6 +734,16 @@
//
this.iconOpenFileDialog.Filter = "Image Files |*.png;*.jpg;*.bmp;*.gif";
//
+ // resetButton
+ //
+ this.resetButton.Location = new System.Drawing.Point(30, 28);
+ this.resetButton.Name = "resetButton";
+ this.resetButton.Size = new System.Drawing.Size(189, 23);
+ this.resetButton.TabIndex = 28;
+ this.resetButton.Text = "Load Default Configuration";
+ this.resetButton.UseVisualStyleBackColor = true;
+ this.resetButton.Click += new System.EventHandler(this.resetButton_Click);
+ //
// skinItems
//
this.skinItems.Location = new System.Drawing.Point(269, 12);
@@ -711,11 +756,16 @@
this.skinItems.SelectedIndexChanged += new System.EventHandler(this.skinItems_SelectedIndexChanged);
this.skinItems.Leave += new System.EventHandler(this.skinItems_Leave);
//
+ // toolTip
+ //
+ this.toolTip.ShowAlways = true;
+ //
// 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.resetButton);
this.Controls.Add(this.linkPropertiesGroupBox);
this.Controls.Add(this.groupTextBox);
this.Controls.Add(this.groupLabel);
@@ -823,5 +873,8 @@
private System.Windows.Forms.GroupBox skinFileGroupBox;
private System.Windows.Forms.Label skinFileLabel;
private System.Windows.Forms.OpenFileDialog iconOpenFileDialog;
+ private System.Windows.Forms.Button resetButton;
+ private System.Windows.Forms.Label alwaysVisibleLabel;
+ private System.Windows.Forms.ToolTip toolTip;
}
}
\ 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-08 17:51:06 UTC (rev 4909)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.cs 2015-01-09 11:36:56 UTC (rev 4910)
@@ -5,13 +5,14 @@
namespace ShortCuter.Configuration
{
- internal partial class SkinNavigatorConfig : Form
+ internal partial class SkinNavigatorConfig : Form //Form per la configurazione della funzionalità SkinNavigator
{
#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
+ private bool ctrlInitializing = false; //Fase di inizializzazione controlli grafici
+ private bool propWriting = false; //Fase di scrittura proprietà nei controlli grafici
+ private bool listEditing = false; //Fase di editazione liste
#endregion
#region Costruttore
@@ -26,23 +27,77 @@
#region Metodi Privati
private void InitializeGUI() //Inizializzazione interfaccia
{
+ ctrlInitializing= true;
skinItems.Populate(mySkin.SkinFiles, mySkin.SkinLinks, true, false);
destinationIconComboBox.DataSource = mySkin.SkinIcons;
+ dialogTypeComboBox.DataSource = EnumHelper.GetEnumDescriptions(typeof(SkinNavigator.DialogTypes));
+ ctrlInitializing = false;
- headerTextBox.Text = mySkinNavigator.General.MenuHeader;
+ propWriting = true;
+ 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);
+ groupsListBox.SelectedIndex = -1;
groupsListBox.DataSource = mySkinNavigator.Items;
groupsListBox.SelectedIndex = 0;
+ propWriting = false;
- modEventsEnable = true;
+ toolTip.SetToolTip(skinItems, "Browse links and files of actual skin");
+ toolTip.SetToolTip(resetButton, "Reset actual SkinNavigator settings and load the default configuration");
- //toolTip.SetToolTip(skinItems, "Double click to set the link's parameter to shortcut");
+
+
+
+
+ /*
+ headerTextBox
+ showSeparatorCheckBox
+ showNumbersCheckBox
+ removeDuplicatesCheckBox
+ dialogTypeComboBox
+ groupsListBox
+ groupAddButton
+ groupRemoveButton
+ groupUpButton
+ groupDownButton
+ groupTextBox
+ windowsListBox
+ windowAddButton
+ windowRemoveButton
+ windowUpButton
+ windowDownButton
+ destinationsListBox
+ destinationAddButton
+ destinationRemoveButton
+ destinationUpButton
+ destinationDownButton
+ destinationTextBox
+ destinationWindowIdTextBox
+ destinationForceCheckBox
+ destinationLoadParameterTextBox
+ destinationIconComboBox
+ destinationIconBrowseButton
+
+ toolTip.SetToolTip(skinItems, "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(rowCopyButton, "Copy selected shortcut to list");
+ toolTip.SetToolTip(skinNavAddButton, "Add a shortcut to Skin Navigator in list");
+ toolTip.SetToolTip(rowUpButton, "Move up selected shortcut in list");
+ toolTip.SetToolTip(rowDownButton, "Move down selected shortcut in list");
+ toolTip.SetToolTip(resetButton, "Reset actual settings and load the default configuration");
+ toolTip.SetToolTip(saveButton, "Save actual settings");
+ toolTip.SetToolTip(updateButton, "Save actual setting and close the application");
+ toolTip.SetToolTip(capsLockComboBox, "Set forcing for Caps-Lock when MediaPortal starts (OFF is recommended)");
+ toolTip.SetToolTip(numLockComboBox, "Set forcing for Num-Lock when MediaPortal starts");
+ toolTip.SetToolTip(skinNavConfigButton, "Configure Skin Navigator");
+ toolTip.SetToolTip(infoPictureBox, "Version information");
+ */
+
}
private void ShowLinkProperties() //Visualizzazione proprietà link
{
@@ -72,7 +127,7 @@
}
private void RefreshNavigationListsControls() //Aggiornamento controlli legati alle liste di navigazione
{
- modEventsEnable = false;
+ propWriting = true;
groupRemoveButton.Enabled = (mySkinNavigator.Items.Count > 0);
groupUpButton.Enabled = (groupsListBox.SelectedIndex > 0);
groupDownButton.Enabled = (groupsListBox.SelectedIndex < mySkinNavigator.Items.Count - 1);
@@ -95,6 +150,7 @@
windowAddButton.Enabled = true;
windowUpButton.Enabled = (windowsListBox.SelectedIndex > 0);
windowDownButton.Enabled = (windowsListBox.SelectedIndex < mySkinNavigator.Items[groupsListBox.SelectedIndex].Windows.Count - 1);
+ alwaysVisibleLabel.Visible = ((mySkinNavigator.Items[groupsListBox.SelectedIndex].Windows.Count > 0) ? false : true);
destinationsListBox.DataSource = mySkinNavigator.Items[groupsListBox.SelectedIndex].Destinations;
destinationRemoveButton.Enabled = (mySkinNavigator.Items[groupsListBox.SelectedIndex].Destinations.Count > 0);
destinationAddButton.Enabled = true;
@@ -109,7 +165,7 @@
destinationIconComboBox.Text = mySkin.GetIconFile(mySkinNavigator.Items[groupsListBox.SelectedIndex].Destinations[destinationsListBox.SelectedIndex].Icon);
}
}
- modEventsEnable = true;
+ propWriting = false;
}
#endregion
@@ -146,7 +202,7 @@
}
private void groupsListBox_SelectedIndexChanged(object sender, System.EventArgs e)
{
- if (!groupEditing)
+ if (!listEditing)
RefreshNavigationListsControls();
}
#endregion
@@ -161,7 +217,8 @@
}
private void windowsListBox_SelectedIndexChanged(object sender, System.EventArgs e)
{
- RefreshNavigationListsControls();
+ if (!listEditing)
+ RefreshNavigationListsControls();
}
private void destinationsListBox_Enter(object sender, System.EventArgs e)
{
@@ -173,10 +230,94 @@
}
private void destinationsListBox_SelectedIndexChanged(object sender, System.EventArgs e)
{
- RefreshNavigationListsControls();
+ if (!listEditing)
+ RefreshNavigationListsControls();
}
+ #endregion
+ #region Eventi Modifica Proprietà Generali
+ private void headerTextBox_TextChanged(object sender, System.EventArgs e)
+ {
+ if (!propWriting)
+ mySkinNavigator.General.MenuHeader = headerTextBox.Text;
+ }
+ private void showSeparatorCheckBox_CheckedChanged(object sender, System.EventArgs e)
+ {
+ if (!propWriting)
+ mySkinNavigator.General.ShowSeparator = showSeparatorCheckBox.Checked;
+ }
+ private void showNumbersCheckBox_CheckedChanged(object sender, System.EventArgs e)
+ {
+ if (!propWriting)
+ mySkinNavigator.General.ShowNumbers = showNumbersCheckBox.Checked;
+ }
+ private void removeDuplicatesCheckBox_CheckedChanged(object sender, System.EventArgs e)
+ {
+ if (!propWriting)
+ mySkinNavigator.General.RemoveDuplicates = removeDuplicatesCheckBox.Checked;
+ }
+ private void dialogTypeComboBox_SelectedIndexChanged(object sender, System.EventArgs e)
+ {
+ if (!ctrlInitializing && !propWriting)
+ mySkinNavigator.General.DialogType = (SkinNavigator.DialogTypes)EnumHelper.GetEnumFromDescription<SkinNavigator.DialogTypes>(dialogTypeComboBox.SelectedItem.ToString());
+ }
+ #endregion
+ #region Eventi Modifica Proprietà Gruppo
+ private void groupTextBox_TextChanged(object sender, System.EventArgs e)
+ {
+ if (!propWriting && (groupsListBox.SelectedIndex >= 0) && (groupsListBox.SelectedIndex < mySkinNavigator.Items.Count))
+ {
+ mySkinNavigator.Items[groupsListBox.SelectedIndex].Caption = groupTextBox.Text;
+
+ SkinNavigator.Item nItem = new SkinNavigator.Item();
+ nItem = mySkinNavigator.Items[groupsListBox.SelectedIndex];
+ listEditing = true;
+ int index = groupsListBox.SelectedIndex;
+ mySkinNavigator.Items.RemoveAt(index);
+ mySkinNavigator.Items.Insert(index, nItem);
+ groupsListBox.SelectedIndex = index;
+ listEditing = false;
+ }
+ }
+ #endregion
+ #region Eventi Modifica Proprietà Destinazione
+ private void destinationTextBox_TextChanged(object sender, System.EventArgs e)
+ {
+ if (!propWriting && (groupsListBox.SelectedIndex >= 0) && (groupsListBox.SelectedIndex < mySkinNavigator.Items.Count) &&
+ (destinationsListBox.SelectedIndex >= 0) && (destinationsListBox.SelectedIndex < mySkinNavigator.Items[groupsListBox.SelectedIndex].Destinations.Count))
+ {
+ mySkinNavigator.Items[groupsListBox.SelectedIndex].Destinations[destinationsListBox.SelectedIndex].Caption = destinationTextBox.Text;
+
+ SkinNavigator.Item.Destination nDest = new SkinNavigator.Item.Destination();
+ nDest = mySkinNavigator.Items[groupsListBox.SelectedIndex].Destinations[destinationsListBox.SelectedIndex];
+ listEditing = true;
+ int index = destinationsListBox.SelectedIndex;
+ mySkinNavigator.Items[groupsListBox.SelectedIndex].Destinations.RemoveAt(index);
+ mySkinNavigator.Items[groupsListBox.SelectedIndex].Destinations.Insert(index, nDest);
+ destinationsListBox.SelectedIndex = index;
+ listEditing = false;
+ }
+ }
+ private void destinationForceCheckBox_CheckedChanged(object sender, System.EventArgs e)
+ {
+ if (!propWriting && (groupsListBox.SelectedIndex >= 0) && (groupsListBox.SelectedIndex < mySkinNavigator.Items.Count) &&
+ (destinationsListBox.SelectedIndex >= 0) && (destinationsListBox.SelectedIndex < mySkinNavigator.Items[groupsListBox.SelectedIndex].Destinations.Count))
+ mySkinNavigator.Items[groupsListBox.SelectedIndex].Destinations[destinationsListBox.SelectedIndex].Force = destinationForceCheckBox.Checked;
+ }
+ private void destinationLoadParameterTextBox_TextChanged(object sender, System.EventArgs e)
+ {
+ if (!propWriting && (groupsListBox.SelectedIndex >= 0) && (groupsListBox.SelectedIndex < mySkinNavigator.Items.Count) &&
+ (destinationsListBox.SelectedIndex >= 0) && (destinationsListBox.SelectedIndex < mySkinNavigator.Items[groupsListBox.SelectedIndex].Destinations.Count))
+ mySkinNavigator.Items[groupsListBox.SelectedIndex].Destinations[destinationsListBox.SelectedIndex].LoadParameter = destinationLoadParameterTextBox.Text;
+ }
private void destinationIconComboBox_TextChanged(object sender, System.EventArgs e)
{
+ if (ctrlInitializing)
+ return;
+
+ if (!propWriting && (groupsListBox.SelectedIndex >= 0) && (groupsListBox.SelectedIndex < mySkinNavigator.Items.Count) &&
+ (destinationsListBox.SelectedIndex >= 0) && (destinationsListBox.SelectedIndex < mySkinNavigator.Items[groupsListBox.SelectedIndex].Destinations.Count))
+ mySkinNavigator.Items[groupsListBox.SelectedIndex].Destinations[destinationsListBox.SelectedIndex].Icon = mySkin.GetIconPath(destinationIconComboBox.Text);
+
if (destinationIconComboBox.Text.Length > 0)
{
string iconName = Path.Combine(mySkin.IconsPath, destinationIconComboBox.Text);
@@ -205,58 +346,68 @@
}
}
#endregion
- #region Eventi Modifica Proprietà Generali
- private void headerTextBox_TextChanged(object sender, System.EventArgs e)
+ #region Eventi Modifica Lista Gruppi di Navigazione
+ private void groupAddButton_Click(object sender, System.EventArgs e)
{
- if (modEventsEnable)
- mySkinNavigator.General.MenuHeader = headerTextBox.Text;
+
}
- private void showSeparatorCheckBox_CheckedChanged(object sender, System.EventArgs e)
+ private void groupRemoveButton_Click(object sender, System.EventArgs e)
{
- if (modEventsEnable)
- mySkinNavigator.General.ShowSeparator = showSeparatorCheckBox.Checked;
+
}
- private void showNumbersCheckBox_CheckedChanged(object sender, System.EventArgs e)
+ private void groupUpButton_Click(object sender, System.EventArgs e)
{
- if (modEventsEnable)
- mySkinNavigator.General.ShowNumbers = showNumbersCheckBox.Checked;
+
}
- private void removeDuplicatesCheckBox_CheckedChanged(object sender, System.EventArgs e)
+ private void groupDownButton_Click(object sender, System.EventArgs e)
{
- if (modEventsEnable)
- mySkinNavigator.General.RemoveDuplicates = removeDuplicatesCheckBox.Checked;
+
}
- private void dialogTypeComboBox_SelectedIndexChanged(object sender, System.EventArgs e)
+ #endregion
+ #region Eventi Modifica Lista Finestre Gruppo di Navigazione
+ private void windowAddButton_Click(object sender, System.EventArgs e)
{
- if (modEventsEnable)
- mySkinNavigator.General.DialogType = (SkinNavigator.DialogTypes)EnumHelper.GetEnumFromDescription<SkinNavigator.DialogTypes>(dialogTypeComboBox.SelectedItem.ToString());
+
}
- #endregion
- #region Eventi Modifica Proprietà Gruppo
- private void groupTextBox_TextChanged(object sender, System.EventArgs e)
+ private void windowRemoveButton_Click(object sender, System.EventArgs e)
{
- if (modEventsEnable && (groupsListBox.SelectedIndex >= 0) && (groupsListBox.SelectedIndex < mySkinNavigator.Items.Count))
- {
- mySkinNavigator.Items[groupsListBox.SelectedIndex].Caption = groupTextBox.Text;
-
- SkinNavigator.Item nItem = new SkinNavigator.Item();
- nItem = mySkinNavigator.Items[groupsListBox.SelectedIndex];
- groupEditing = true;
- int index = groupsListBox.SelectedIndex;
- mySkinNavigator.Items.RemoveAt(index);
- mySkinNavigator.Items.Insert(index, nItem);
- groupsListBox.SelectedIndex = index;
- groupEditing = false;
- }
+
}
+ private void windowUpButton_Click(object sender, System.EventArgs e)
+ {
+
+ }
+ private void windowDownButton_Click(object sender, System.EventArgs e)
+ {
+
+ }
#endregion
- #region Eventi Modifica Proprietà Destinazione
+ #region Eventi Modifica Lista Destinazioni Gruppo di Navigazione
+ private void destinationAddButton_Click(object sender, System.EventArgs e)
+ {
+ }
+ private void destinationRemoveButton_Click(object sender, System.EventArgs e)
+ {
+ }
+ private void destinationUpButton_Click(object sender, System.EventArgs e)
+ {
+ }
+ private void destinationDownButton_Click(object sender, System.EventArgs e)
+ {
+
+ }
#endregion
+ private void resetButton_Click(object sender, System.EventArgs e)
+ {
+ if (DialogHelper.Question("Skin Navigator configuration data will be overwritten...\nDo you want to proceed?"))
+ {
+ mySkinNavigator.LoadDefaults();
+ InitializeGUI();
+ }
+ }
#endregion
-
-
}
}
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.resx
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.resx 2015-01-08 17:51:06 UTC (rev 4909)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Configuration/SkinNavigatorConfig.resx 2015-01-09 11:36:56 UTC (rev 4910)
@@ -168,6 +168,9 @@
<metadata name="windowsGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
+ <metadata name="alwaysVisibleLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
<metadata name="windowDownButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -270,9 +273,15 @@
<metadata name="iconOpenFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>15, 2</value>
</metadata>
+ <metadata name="resetButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
<metadata name="skinItems.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
+ <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>169, 2</value>
+ </metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|