|
From: <nic...@us...> - 2013-11-14 19:01:39
|
Revision: 4678
http://sourceforge.net/p/mp-plugins/code/4678
Author: nicsergio
Date: 2013-11-14 19:01:37 +0000 (Thu, 14 Nov 2013)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/XmlFiles/PopularSkinLinks.xml
trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.Designer.cs
trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.cs
trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.resx
trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/Resources/Images/UpdateNotify.png
trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/Resources/XmlFiles/DefaultMenu.xml
trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/Resources/XmlFiles/FanartList.xml
trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/XtremeMenuEditor.csproj
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/XmlFiles/PopularSkinLinks.xml
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/XmlFiles/PopularSkinLinks.xml 2013-11-12 22:22:29 UTC (rev 4677)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/XmlFiles/PopularSkinLinks.xml 2013-11-14 19:01:37 UTC (rev 4678)
@@ -210,7 +210,7 @@
<LoadParameter></LoadParameter>
<BackgroundImage></BackgroundImage>
<BackgroundFolder></BackgroundFolder>
- <FanartHandler>#fanarthandler.movie.scraper</FanartHandler>
+ <FanartHandler>fh.movie.scraper</FanartHandler>
<Icon></Icon>
<Overlay></Overlay>
<IconList>Movies.png</IconList>
@@ -224,7 +224,7 @@
<LoadParameter></LoadParameter>
<BackgroundImage></BackgroundImage>
<BackgroundFolder></BackgroundFolder>
- <FanartHandler>#fanarthandler.movie.userdef</FanartHandler>
+ <FanartHandler>fh.movie.userdef</FanartHandler>
<Icon></Icon>
<Overlay></Overlay>
<IconList>DVD.png</IconList>
@@ -238,7 +238,7 @@
<LoadParameter></LoadParameter>
<BackgroundImage></BackgroundImage>
<BackgroundFolder></BackgroundFolder>
- <FanartHandler>#fanarthandler.movie.userdef</FanartHandler>
+ <FanartHandler>fh.movie.userdef</FanartHandler>
<Icon></Icon>
<Overlay></Overlay>
<IconList>BD.png</IconList>
@@ -250,8 +250,8 @@
<XmlFile>ShowTimesGUI</XmlFile>
<WindowID>7111992</WindowID>
<LoadParameter></LoadParameter>
- <BackgroundImage>Film</BackgroundImage>
- <BackgroundFolder></BackgroundFolder>
+ <BackgroundImage></BackgroundImage>
+ <BackgroundFolder>Film</BackgroundFolder>
<FanartHandler></FanartHandler>
<Icon></Icon>
<Overlay></Overlay>
@@ -325,7 +325,7 @@
<LoadParameter></LoadParameter>
<BackgroundImage></BackgroundImage>
<BackgroundFolder></BackgroundFolder>
- <FanartHandler>#fanarthandler.music.userdef</FanartHandler>
+ <FanartHandler>fh.music.userdef</FanartHandler>
<Icon></Icon>
<Overlay></Overlay>
<IconList>MusicPlaylists.png</IconList>
@@ -367,7 +367,7 @@
<LoadParameter></LoadParameter>
<BackgroundImage></BackgroundImage>
<BackgroundFolder></BackgroundFolder>
- <FanartHandler>#fanarthandler.music.scraper</FanartHandler>
+ <FanartHandler>fh.music.scraper</FanartHandler>
<Icon></Icon>
<Overlay></Overlay>
<IconList>Music.png</IconList>
@@ -395,7 +395,7 @@
<LoadParameter></LoadParameter>
<BackgroundImage></BackgroundImage>
<BackgroundFolder></BackgroundFolder>
- <FanartHandler>#fanarthandler.music.userdef</FanartHandler>
+ <FanartHandler>fh.movie.userdef</FanartHandler>
<Icon></Icon>
<Overlay></Overlay>
<IconList>LastFM.png</IconList>
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.Designer.cs 2013-11-12 22:22:29 UTC (rev 4677)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.Designer.cs 2013-11-14 19:01:37 UTC (rev 4678)
@@ -40,6 +40,7 @@
this.propertiesPanel = new System.Windows.Forms.Panel();
this.propertiesGroupBox = new System.Windows.Forms.GroupBox();
this.iconGroupBox = new System.Windows.Forms.GroupBox();
+ this.iconPictureBox = new System.Windows.Forms.PictureBox();
this.iconComboBox = new System.Windows.Forms.ComboBox();
this.iconBrowseButton = new System.Windows.Forms.Button();
this.loadParameterTextBox = new System.Windows.Forms.TextBox();
@@ -47,6 +48,8 @@
this.skinFileShowLabel = new System.Windows.Forms.Label();
this.captionTextBox = new System.Windows.Forms.TextBox();
this.backgroundGroupBox = new System.Windows.Forms.GroupBox();
+ this.fanartHandlerPictureBox = new System.Windows.Forms.PictureBox();
+ this.backgroundPictureBox = new System.Windows.Forms.PictureBox();
this.fanartComboBox = new System.Windows.Forms.ComboBox();
this.multiImageComboBox = new System.Windows.Forms.ComboBox();
this.fanartRadioButton = new System.Windows.Forms.RadioButton();
@@ -79,22 +82,20 @@
this.backgroundAnimatedCheckBox = new System.Windows.Forms.CheckBox();
this.showRssCheckBox = new System.Windows.Forms.CheckBox();
this.subMenuGroupBox = new System.Windows.Forms.GroupBox();
- this.subMenuListBox = new System.Windows.Forms.ListBox();
- this.menuGroupBox = new System.Windows.Forms.GroupBox();
- this.menuListBox = new System.Windows.Forms.ListBox();
- this.backgroundImageTimer = new System.Windows.Forms.Timer(this.components);
- this.iconOpenFileDialog = new System.Windows.Forms.OpenFileDialog();
- this.toolTip = new System.Windows.Forms.ToolTip(this.components);
this.subMenuRowRemoveButton = new System.Windows.Forms.Button();
this.subMenuRowDownButton = new System.Windows.Forms.Button();
this.subMenuRowUpButton = new System.Windows.Forms.Button();
+ this.subMenuListBox = new System.Windows.Forms.ListBox();
+ this.menuGroupBox = new System.Windows.Forms.GroupBox();
this.menuRowRemoveButton = new System.Windows.Forms.Button();
this.menuRowDownButton = new System.Windows.Forms.Button();
this.menuRowUpButton = new System.Windows.Forms.Button();
+ this.menuListBox = new System.Windows.Forms.ListBox();
this.subMenuArrowPictureBox = new System.Windows.Forms.PictureBox();
- this.iconPictureBox = new System.Windows.Forms.PictureBox();
- this.fanartHandlerPictureBox = new System.Windows.Forms.PictureBox();
- this.backgroundPictureBox = new System.Windows.Forms.PictureBox();
+ this.backgroundImageTimer = new System.Windows.Forms.Timer(this.components);
+ this.iconOpenFileDialog = new System.Windows.Forms.OpenFileDialog();
+ this.toolTip = new System.Windows.Forms.ToolTip(this.components);
+ this.updateNotifyTimer = new System.Windows.Forms.Timer(this.components);
this.infoPictureBox = new System.Windows.Forms.PictureBox();
this.subMenuRowAddButton = new System.Windows.Forms.Button();
this.menuRowAddButton = new System.Windows.Forms.Button();
@@ -103,16 +104,18 @@
this.menuRowEditButton = new System.Windows.Forms.Button();
this.subMenuRowEditButton = new System.Windows.Forms.Button();
this.updateNotifyMenuPictureBox = new System.Windows.Forms.PictureBox();
+ this.updateNotifySubMenuPictureBox = new System.Windows.Forms.PictureBox();
this.arrowsPictureBox = new System.Windows.Forms.PictureBox();
- this.updateNotifySubMenuPictureBox = new System.Windows.Forms.PictureBox();
- this.updateNotifyTimer = new System.Windows.Forms.Timer(this.components);
this.itemsTabControl.SuspendLayout();
this.linksTabPage.SuspendLayout();
this.skinTabPage.SuspendLayout();
this.propertiesPanel.SuspendLayout();
this.propertiesGroupBox.SuspendLayout();
this.iconGroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.iconPictureBox)).BeginInit();
this.backgroundGroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.fanartHandlerPictureBox)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.backgroundPictureBox)).BeginInit();
this.overlayGroupBox.SuspendLayout();
this.menuPanel.SuspendLayout();
this.creationGroupBox.SuspendLayout();
@@ -123,15 +126,12 @@
this.subMenuGroupBox.SuspendLayout();
this.menuGroupBox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.subMenuArrowPictureBox)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.iconPictureBox)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.fanartHandlerPictureBox)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.backgroundPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.propRightPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.updateNotifyMenuPictureBox)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.updateNotifySubMenuPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.arrowsPictureBox)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.updateNotifySubMenuPictureBox)).BeginInit();
this.SuspendLayout();
//
// itemsTabControl
@@ -244,10 +244,21 @@
this.iconGroupBox.Location = new System.Drawing.Point(6, 394);
this.iconGroupBox.Name = "iconGroupBox";
this.iconGroupBox.Size = new System.Drawing.Size(324, 94);
- this.iconGroupBox.TabIndex = 15;
+ this.iconGroupBox.TabIndex = 14;
this.iconGroupBox.TabStop = false;
this.iconGroupBox.Text = "Icon";
//
+ // iconPictureBox
+ //
+ this.iconPictureBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(220)))), ((int)(((byte)(227)))));
+ this.iconPictureBox.ErrorImage = global::ProcessPlugins.XtremeMenuEditor.Properties.Resources.IconError;
+ this.iconPictureBox.Location = new System.Drawing.Point(21, 22);
+ this.iconPictureBox.Name = "iconPictureBox";
+ this.iconPictureBox.Size = new System.Drawing.Size(64, 64);
+ this.iconPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.iconPictureBox.TabIndex = 32;
+ this.iconPictureBox.TabStop = false;
+ //
// iconComboBox
//
this.iconComboBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
@@ -255,7 +266,7 @@
this.iconComboBox.Location = new System.Drawing.Point(97, 44);
this.iconComboBox.Name = "iconComboBox";
this.iconComboBox.Size = new System.Drawing.Size(164, 21);
- this.iconComboBox.TabIndex = 17;
+ this.iconComboBox.TabIndex = 16;
this.iconComboBox.TextChanged += new System.EventHandler(this.iconComboBox_TextChanged);
//
// iconBrowseButton
@@ -264,7 +275,7 @@
this.iconBrowseButton.Location = new System.Drawing.Point(267, 43);
this.iconBrowseButton.Name = "iconBrowseButton";
this.iconBrowseButton.Size = new System.Drawing.Size(51, 23);
- this.iconBrowseButton.TabIndex = 16;
+ this.iconBrowseButton.TabIndex = 17;
this.iconBrowseButton.Text = "Browse";
this.iconBrowseButton.UseVisualStyleBackColor = true;
this.iconBrowseButton.Click += new System.EventHandler(this.iconBrowseButton_Click);
@@ -277,6 +288,7 @@
this.loadParameterTextBox.Size = new System.Drawing.Size(214, 20);
this.loadParameterTextBox.TabIndex = 4;
this.loadParameterTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.loadParameterTextBox.TextChanged += new System.EventHandler(this.loadParameterTextBox_TextChanged);
//
// windowIdShowLabel
//
@@ -305,6 +317,7 @@
this.captionTextBox.Size = new System.Drawing.Size(158, 21);
this.captionTextBox.TabIndex = 3;
this.captionTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.captionTextBox.TextChanged += new System.EventHandler(this.captionTextBox_TextChanged);
//
// backgroundGroupBox
//
@@ -313,11 +326,11 @@
this.backgroundGroupBox.Controls.Add(this.fanartComboBox);
this.backgroundGroupBox.Controls.Add(this.multiImageComboBox);
this.backgroundGroupBox.Controls.Add(this.fanartRadioButton);
- this.backgroundGroupBox.Controls.Add(this.multiImageRadioButton);
- this.backgroundGroupBox.Controls.Add(this.singleImageRadioButton);
this.backgroundGroupBox.Controls.Add(this.singleImageComboBox);
this.backgroundGroupBox.Controls.Add(this.multiImageBrowseButton);
this.backgroundGroupBox.Controls.Add(this.singleImageBrowseButton);
+ this.backgroundGroupBox.Controls.Add(this.singleImageRadioButton);
+ this.backgroundGroupBox.Controls.Add(this.multiImageRadioButton);
this.backgroundGroupBox.Location = new System.Drawing.Point(6, 156);
this.backgroundGroupBox.Name = "backgroundGroupBox";
this.backgroundGroupBox.Size = new System.Drawing.Size(324, 232);
@@ -325,6 +338,29 @@
this.backgroundGroupBox.TabStop = false;
this.backgroundGroupBox.Text = "Background image(s)";
//
+ // fanartHandlerPictureBox
+ //
+ this.fanartHandlerPictureBox.BackColor = System.Drawing.Color.Transparent;
+ this.fanartHandlerPictureBox.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+ this.fanartHandlerPictureBox.Image = global::ProcessPlugins.XtremeMenuEditor.Properties.Resources.FanartHandler;
+ this.fanartHandlerPictureBox.Location = new System.Drawing.Point(234, 93);
+ this.fanartHandlerPictureBox.Name = "fanartHandlerPictureBox";
+ this.fanartHandlerPictureBox.Size = new System.Drawing.Size(48, 48);
+ this.fanartHandlerPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.fanartHandlerPictureBox.TabIndex = 31;
+ this.fanartHandlerPictureBox.TabStop = false;
+ this.fanartHandlerPictureBox.Visible = false;
+ //
+ // backgroundPictureBox
+ //
+ this.backgroundPictureBox.ErrorImage = global::ProcessPlugins.XtremeMenuEditor.Properties.Resources.BackgroundError;
+ this.backgroundPictureBox.Location = new System.Drawing.Point(42, 93);
+ this.backgroundPictureBox.Name = "backgroundPictureBox";
+ this.backgroundPictureBox.Size = new System.Drawing.Size(240, 135);
+ this.backgroundPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.backgroundPictureBox.TabIndex = 14;
+ this.backgroundPictureBox.TabStop = false;
+ //
// fanartComboBox
//
this.fanartComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
@@ -348,41 +384,42 @@
//
// fanartRadioButton
//
- this.fanartRadioButton.AutoSize = true;
+ this.fanartRadioButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(220)))), ((int)(((byte)(227)))));
this.fanartRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.fanartRadioButton.Location = new System.Drawing.Point(6, 68);
+ this.fanartRadioButton.Location = new System.Drawing.Point(6, 65);
this.fanartRadioButton.Name = "fanartRadioButton";
- this.fanartRadioButton.Size = new System.Drawing.Size(95, 17);
+ this.fanartRadioButton.Size = new System.Drawing.Size(314, 23);
this.fanartRadioButton.TabIndex = 12;
this.fanartRadioButton.TabStop = true;
this.fanartRadioButton.Text = "Fanart Handler";
- this.fanartRadioButton.UseVisualStyleBackColor = true;
+ this.fanartRadioButton.UseVisualStyleBackColor = false;
this.fanartRadioButton.CheckedChanged += new System.EventHandler(this.fanartRadioButton_CheckedChanged);
//
// multiImageRadioButton
//
- this.multiImageRadioButton.AutoSize = true;
+ this.multiImageRadioButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(220)))), ((int)(((byte)(227)))));
this.multiImageRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.multiImageRadioButton.Location = new System.Drawing.Point(6, 44);
+ this.multiImageRadioButton.Location = new System.Drawing.Point(6, 41);
this.multiImageRadioButton.Name = "multiImageRadioButton";
- this.multiImageRadioButton.Size = new System.Drawing.Size(79, 17);
+ this.multiImageRadioButton.Size = new System.Drawing.Size(314, 23);
this.multiImageRadioButton.TabIndex = 9;
this.multiImageRadioButton.TabStop = true;
this.multiImageRadioButton.Text = "Multi Image";
- this.multiImageRadioButton.UseVisualStyleBackColor = true;
+ this.multiImageRadioButton.UseVisualStyleBackColor = false;
this.multiImageRadioButton.CheckedChanged += new System.EventHandler(this.multiImageRadioButton_CheckedChanged);
//
// singleImageRadioButton
//
- this.singleImageRadioButton.AutoSize = true;
+ this.singleImageRadioButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(220)))), ((int)(((byte)(227)))));
this.singleImageRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.singleImageRadioButton.Location = new System.Drawing.Point(6, 20);
+ this.singleImageRadioButton.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.singleImageRadioButton.Location = new System.Drawing.Point(6, 17);
this.singleImageRadioButton.Name = "singleImageRadioButton";
- this.singleImageRadioButton.Size = new System.Drawing.Size(86, 17);
+ this.singleImageRadioButton.Size = new System.Drawing.Size(314, 23);
this.singleImageRadioButton.TabIndex = 6;
this.singleImageRadioButton.TabStop = true;
this.singleImageRadioButton.Text = "Single Image";
- this.singleImageRadioButton.UseVisualStyleBackColor = true;
+ this.singleImageRadioButton.UseVisualStyleBackColor = false;
this.singleImageRadioButton.CheckedChanged += new System.EventHandler(this.singleImageRadioButton_CheckedChanged);
//
// singleImageComboBox
@@ -398,9 +435,9 @@
// multiImageBrowseButton
//
this.multiImageBrowseButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.multiImageBrowseButton.Location = new System.Drawing.Point(268, 41);
+ this.multiImageBrowseButton.Location = new System.Drawing.Point(268, 42);
this.multiImageBrowseButton.Name = "multiImageBrowseButton";
- this.multiImageBrowseButton.Size = new System.Drawing.Size(51, 23);
+ this.multiImageBrowseButton.Size = new System.Drawing.Size(51, 21);
this.multiImageBrowseButton.TabIndex = 11;
this.multiImageBrowseButton.Text = "Browse";
this.multiImageBrowseButton.UseVisualStyleBackColor = true;
@@ -409,9 +446,9 @@
// singleImageBrowseButton
//
this.singleImageBrowseButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.singleImageBrowseButton.Location = new System.Drawing.Point(268, 17);
+ this.singleImageBrowseButton.Location = new System.Drawing.Point(268, 18);
this.singleImageBrowseButton.Name = "singleImageBrowseButton";
- this.singleImageBrowseButton.Size = new System.Drawing.Size(51, 23);
+ this.singleImageBrowseButton.Size = new System.Drawing.Size(51, 21);
this.singleImageBrowseButton.TabIndex = 8;
this.singleImageBrowseButton.Text = "Browse";
this.singleImageBrowseButton.UseVisualStyleBackColor = true;
@@ -424,7 +461,7 @@
this.overlayGroupBox.Location = new System.Drawing.Point(6, 494);
this.overlayGroupBox.Name = "overlayGroupBox";
this.overlayGroupBox.Size = new System.Drawing.Size(324, 60);
- this.overlayGroupBox.TabIndex = 14;
+ this.overlayGroupBox.TabIndex = 15;
this.overlayGroupBox.TabStop = false;
this.overlayGroupBox.Text = "Overlay";
//
@@ -446,7 +483,8 @@
this.overlayComboBox.Location = new System.Drawing.Point(98, 30);
this.overlayComboBox.Name = "overlayComboBox";
this.overlayComboBox.Size = new System.Drawing.Size(220, 21);
- this.overlayComboBox.TabIndex = 15;
+ this.overlayComboBox.TabIndex = 18;
+ this.overlayComboBox.TextChanged += new System.EventHandler(this.overlayComboBox_TextChanged);
//
// labelTextBox
//
@@ -457,6 +495,7 @@
this.labelTextBox.Size = new System.Drawing.Size(158, 20);
this.labelTextBox.TabIndex = 2;
this.labelTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ this.labelTextBox.TextChanged += new System.EventHandler(this.labelTextBox_TextChanged);
//
// loadParameterLabel
//
@@ -601,7 +640,7 @@
this.multiImageTimeGroupBox.Size = new System.Drawing.Size(310, 66);
this.multiImageTimeGroupBox.TabIndex = 5;
this.multiImageTimeGroupBox.TabStop = false;
- this.multiImageTimeGroupBox.Text = "Multi-Image time interval";
+ this.multiImageTimeGroupBox.Text = "Multi Image time interval";
//
// multiIMageTimeLabel
//
@@ -696,57 +735,6 @@
this.subMenuGroupBox.TabStop = false;
this.subMenuGroupBox.Text = "Sub Menu";
//
- // subMenuListBox
- //
- this.subMenuListBox.BackColor = System.Drawing.Color.White;
- this.subMenuListBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.subMenuListBox.FormattingEnabled = true;
- this.subMenuListBox.Location = new System.Drawing.Point(6, 25);
- this.subMenuListBox.Name = "subMenuListBox";
- this.subMenuListBox.Size = new System.Drawing.Size(138, 134);
- this.subMenuListBox.TabIndex = 22;
- this.subMenuListBox.SelectedIndexChanged += new System.EventHandler(this.subMenuListBox_SelectedIndexChanged);
- this.subMenuListBox.Enter += new System.EventHandler(this.subMenuListBox_Enter);
- //
- // menuGroupBox
- //
- this.menuGroupBox.Controls.Add(this.menuRowRemoveButton);
- this.menuGroupBox.Controls.Add(this.menuRowDownButton);
- this.menuGroupBox.Controls.Add(this.menuRowUpButton);
- this.menuGroupBox.Controls.Add(this.menuListBox);
- this.menuGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.menuGroupBox.Location = new System.Drawing.Point(3, 3);
- this.menuGroupBox.Name = "menuGroupBox";
- this.menuGroupBox.Size = new System.Drawing.Size(150, 221);
- this.menuGroupBox.TabIndex = 21;
- this.menuGroupBox.TabStop = false;
- this.menuGroupBox.Text = "Menu";
- //
- // menuListBox
- //
- this.menuListBox.BackColor = System.Drawing.Color.White;
- this.menuListBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.menuListBox.FormattingEnabled = true;
- this.menuListBox.Location = new System.Drawing.Point(6, 25);
- this.menuListBox.Name = "menuListBox";
- this.menuListBox.Size = new System.Drawing.Size(138, 134);
- this.menuListBox.TabIndex = 18;
- this.menuListBox.SelectedIndexChanged += new System.EventHandler(this.menuListBox_SelectedIndexChanged);
- this.menuListBox.Enter += new System.EventHandler(this.menuListBox_Enter);
- //
- // backgroundImageTimer
- //
- this.backgroundImageTimer.Interval = 2500;
- this.backgroundImageTimer.Tick += new System.EventHandler(this.backgroundImageTimer_Tick);
- //
- // iconOpenFileDialog
- //
- this.iconOpenFileDialog.Filter = "Image Files |*.png;*.jpg;*.bmp;*.gif";
- //
- // toolTip
- //
- this.toolTip.ShowAlways = true;
- //
// subMenuRowRemoveButton
//
this.subMenuRowRemoveButton.AutoSize = true;
@@ -783,6 +771,32 @@
this.subMenuRowUpButton.UseVisualStyleBackColor = true;
this.subMenuRowUpButton.Click += new System.EventHandler(this.subMenuRowUpButton_Click);
//
+ // subMenuListBox
+ //
+ this.subMenuListBox.BackColor = System.Drawing.Color.White;
+ this.subMenuListBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.subMenuListBox.FormattingEnabled = true;
+ this.subMenuListBox.Location = new System.Drawing.Point(6, 25);
+ this.subMenuListBox.Name = "subMenuListBox";
+ this.subMenuListBox.Size = new System.Drawing.Size(138, 134);
+ this.subMenuListBox.TabIndex = 22;
+ this.subMenuListBox.SelectedIndexChanged += new System.EventHandler(this.subMenuListBox_SelectedIndexChanged);
+ this.subMenuListBox.Enter += new System.EventHandler(this.subMenuListBox_Enter);
+ //
+ // menuGroupBox
+ //
+ this.menuGroupBox.Controls.Add(this.menuRowRemoveButton);
+ this.menuGroupBox.Controls.Add(this.menuRowDownButton);
+ this.menuGroupBox.Controls.Add(this.menuRowUpButton);
+ this.menuGroupBox.Controls.Add(this.menuListBox);
+ this.menuGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.menuGroupBox.Location = new System.Drawing.Point(3, 3);
+ this.menuGroupBox.Name = "menuGroupBox";
+ this.menuGroupBox.Size = new System.Drawing.Size(150, 221);
+ this.menuGroupBox.TabIndex = 21;
+ this.menuGroupBox.TabStop = false;
+ this.menuGroupBox.Text = "Menu";
+ //
// menuRowRemoveButton
//
this.menuRowRemoveButton.AutoSize = true;
@@ -819,6 +833,18 @@
this.menuRowUpButton.UseVisualStyleBackColor = true;
this.menuRowUpButton.Click += new System.EventHandler(this.menuRowUpButton_Click);
//
+ // menuListBox
+ //
+ this.menuListBox.BackColor = System.Drawing.Color.White;
+ this.menuListBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.menuListBox.FormattingEnabled = true;
+ this.menuListBox.Location = new System.Drawing.Point(6, 25);
+ this.menuListBox.Name = "menuListBox";
+ this.menuListBox.Size = new System.Drawing.Size(138, 134);
+ this.menuListBox.TabIndex = 18;
+ this.menuListBox.SelectedIndexChanged += new System.EventHandler(this.menuListBox_SelectedIndexChanged);
+ this.menuListBox.Enter += new System.EventHandler(this.menuListBox_Enter);
+ //
// subMenuArrowPictureBox
//
this.subMenuArrowPictureBox.Image = global::ProcessPlugins.XtremeMenuEditor.Properties.Resources.MiniArrowRight;
@@ -829,40 +855,24 @@
this.subMenuArrowPictureBox.TabIndex = 26;
this.subMenuArrowPictureBox.TabStop = false;
//
- // iconPictureBox
+ // backgroundImageTimer
//
- this.iconPictureBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(220)))), ((int)(((byte)(227)))));
- this.iconPictureBox.ErrorImage = global::ProcessPlugins.XtremeMenuEditor.Properties.Resources.IconError;
- this.iconPictureBox.Location = new System.Drawing.Point(21, 22);
- this.iconPictureBox.Name = "iconPictureBox";
- this.iconPictureBox.Size = new System.Drawing.Size(64, 64);
- this.iconPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.iconPictureBox.TabIndex = 32;
- this.iconPictureBox.TabStop = false;
+ this.backgroundImageTimer.Interval = 2500;
+ this.backgroundImageTimer.Tick += new System.EventHandler(this.backgroundImageTimer_Tick);
//
- // fanartHandlerPictureBox
+ // iconOpenFileDialog
//
- this.fanartHandlerPictureBox.BackColor = System.Drawing.Color.Transparent;
- this.fanartHandlerPictureBox.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
- this.fanartHandlerPictureBox.Image = global::ProcessPlugins.XtremeMenuEditor.Properties.Resources.FanartHandler;
- this.fanartHandlerPictureBox.Location = new System.Drawing.Point(234, 93);
- this.fanartHandlerPictureBox.Name = "fanartHandlerPictureBox";
- this.fanartHandlerPictureBox.Size = new System.Drawing.Size(48, 48);
- this.fanartHandlerPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
- this.fanartHandlerPictureBox.TabIndex = 31;
- this.fanartHandlerPictureBox.TabStop = false;
- this.fanartHandlerPictureBox.Visible = false;
+ this.iconOpenFileDialog.Filter = "Image Files |*.png;*.jpg;*.bmp;*.gif";
//
- // backgroundPictureBox
+ // toolTip
//
- this.backgroundPictureBox.ErrorImage = global::ProcessPlugins.XtremeMenuEditor.Properties.Resources.BackgroundError;
- this.backgroundPictureBox.Location = new System.Drawing.Point(42, 93);
- this.backgroundPictureBox.Name = "backgroundPictureBox";
- this.backgroundPictureBox.Size = new System.Drawing.Size(240, 135);
- this.backgroundPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.backgroundPictureBox.TabIndex = 14;
- this.backgroundPictureBox.TabStop = false;
+ this.toolTip.ShowAlways = true;
//
+ // updateNotifyTimer
+ //
+ this.updateNotifyTimer.Interval = 1250;
+ this.updateNotifyTimer.Tick += new System.EventHandler(this.updateNotifyTimer_Tick);
+ //
// infoPictureBox
//
this.infoPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("infoPictureBox.Image")));
@@ -932,6 +942,7 @@
this.menuRowEditButton.Size = new System.Drawing.Size(38, 38);
this.menuRowEditButton.TabIndex = 18;
this.menuRowEditButton.UseVisualStyleBackColor = true;
+ this.menuRowEditButton.VisibleChanged += new System.EventHandler(this.menuRowEditButton_VisibleChanged);
this.menuRowEditButton.Click += new System.EventHandler(this.menuRowEditButton_Click);
//
// subMenuRowEditButton
@@ -944,6 +955,7 @@
this.subMenuRowEditButton.Size = new System.Drawing.Size(38, 38);
this.subMenuRowEditButton.TabIndex = 19;
this.subMenuRowEditButton.UseVisualStyleBackColor = true;
+ this.subMenuRowEditButton.VisibleChanged += new System.EventHandler(this.subMenuRowEditButton_VisibleChanged);
this.subMenuRowEditButton.Click += new System.EventHandler(this.subMenuRowEditButton_Click);
//
// updateNotifyMenuPictureBox
@@ -957,17 +969,6 @@
this.updateNotifyMenuPictureBox.TabStop = false;
this.updateNotifyMenuPictureBox.Visible = false;
//
- // arrowsPictureBox
- //
- this.arrowsPictureBox.ErrorImage = null;
- this.arrowsPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("arrowsPictureBox.Image")));
- this.arrowsPictureBox.Location = new System.Drawing.Point(592, 9);
- this.arrowsPictureBox.Name = "arrowsPictureBox";
- this.arrowsPictureBox.Size = new System.Drawing.Size(358, 90);
- this.arrowsPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.arrowsPictureBox.TabIndex = 26;
- this.arrowsPictureBox.TabStop = false;
- //
// updateNotifySubMenuPictureBox
//
this.updateNotifySubMenuPictureBox.Image = global::ProcessPlugins.XtremeMenuEditor.Properties.Resources.UpdateNotify;
@@ -979,10 +980,16 @@
this.updateNotifySubMenuPictureBox.TabStop = false;
this.updateNotifySubMenuPictureBox.Visible = false;
//
- // updateNotifyTimer
+ // arrowsPictureBox
//
- this.updateNotifyTimer.Interval = 1500;
- this.updateNotifyTimer.Tick += new System.EventHandler(this.updateNotifyTimer_Tick);
+ this.arrowsPictureBox.ErrorImage = null;
+ this.arrowsPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("arrowsPictureBox.Image")));
+ this.arrowsPictureBox.Location = new System.Drawing.Point(592, 9);
+ this.arrowsPictureBox.Name = "arrowsPictureBox";
+ this.arrowsPictureBox.Size = new System.Drawing.Size(358, 90);
+ this.arrowsPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.arrowsPictureBox.TabIndex = 26;
+ this.arrowsPictureBox.TabStop = false;
//
// BHEditorForm
//
@@ -1019,8 +1026,11 @@
this.propertiesGroupBox.ResumeLayout(false);
this.propertiesGroupBox.PerformLayout();
this.iconGroupBox.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.iconPictureBox)).EndInit();
this.backgroundGroupBox.ResumeLayout(false);
this.backgroundGroupBox.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.fanartHandlerPictureBox)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.backgroundPictureBox)).EndInit();
this.overlayGroupBox.ResumeLayout(false);
this.overlayGroupBox.PerformLayout();
this.menuPanel.ResumeLayout(false);
@@ -1037,15 +1047,12 @@
this.menuGroupBox.ResumeLayout(false);
this.menuGroupBox.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.subMenuArrowPictureBox)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.iconPictureBox)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.fanartHandlerPictureBox)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.backgroundPictureBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.propRightPictureBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.updateNotifyMenuPictureBox)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.updateNotifySubMenuPictureBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.arrowsPictureBox)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.updateNotifySubMenuPictureBox)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.cs 2013-11-12 22:22:29 UTC (rev 4677)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.cs 2013-11-14 19:01:37 UTC (rev 4678)
@@ -23,9 +23,10 @@
private MediaPortal myMediaPortal; //Istanza classe Mediaportal (dati relativi all'installazione ed alla skin)
private MenuItems myMenu; //Istanza classe MenuItems (dati relativi al menu per BasicHome)
private bool unsavedChanges; //Presenza modifiche da salvare
+ private bool showingProperties; //Visualizzazione proprietà elemento in corso
+ private bool movingItem; //Spostamento elemento di menu o sotto-menu in corso
private bool falseRemMenuItem; //Rimozione virtuale elemento di menu (usata per editazione e spostamento)
private bool falseAddMenuItem; //Aggiunta virtuale elemento di menu (usata per editazione)
- private bool showingProperties; //Visualizzazione proprietà elemento in corso
private string[] bgImages = new string[50]; //Array immagini di background da visualizzare (multi-immagine)
private int bgImageIndex = 0; //Indice immagine di background visualizzata (multi-immagine)
#endregion
@@ -128,6 +129,10 @@
subMenuRowAddButton.Visible = true;
menuRowEditButton.Visible = false;
subMenuRowEditButton.Visible = false;
+ skinFilesListBox.BackColor = Color.Aquamarine;
+ skinLinksTreeView.BackColor = Color.FromArgb(213,220,227);
+ menuListBox.BackColor = Color.White;
+ subMenuListBox.BackColor = Color.White;
break;
case "skinLinksTreeView": //Lista links predefiniti della skin
@@ -171,6 +176,10 @@
subMenuRowAddButton.Visible = true;
menuRowEditButton.Visible = false;
subMenuRowEditButton.Visible = false;
+ skinLinksTreeView.BackColor = Color.Aquamarine;
+ skinFilesListBox.BackColor = Color.FromArgb(213, 220, 227);
+ menuListBox.BackColor = Color.White;
+ subMenuListBox.BackColor = Color.White;
break;
case "menuListBox": //Lista elementi di menu
@@ -214,6 +223,10 @@
subMenuRowAddButton.Visible = true;
menuRowEditButton.Visible = true;
subMenuRowEditButton.Visible = false;
+ menuListBox.BackColor = Color.Aquamarine;
+ subMenuListBox.BackColor = Color.White;
+ skinLinksTreeView.BackColor = Color.FromArgb(213, 220, 227);
+ skinFilesListBox.BackColor = Color.FromArgb(213, 220, 227);
break;
case "subMenuListBox": //Lista elementi di sotto-menu
@@ -241,6 +254,10 @@
subMenuRowAddButton.Visible = false;
menuRowEditButton.Visible = false;
subMenuRowEditButton.Visible = true;
+ subMenuListBox.BackColor = Color.Aquamarine;
+ menuListBox.BackColor = Color.White;
+ skinLinksTreeView.BackColor = Color.FromArgb(213, 220, 227);
+ skinFilesListBox.BackColor = Color.FromArgb(213, 220, 227);
break;
}
@@ -250,11 +267,14 @@
}
private void RefreshImageRadioButton() //Aggiornamento abilitazione controlli legati ai pulsanti opzione per l'immagine di background
{
- singleImageComboBox.Enabled = singleImageRadioButton.Checked;
- singleImageBrowseButton.Enabled = singleImageRadioButton.Checked;
- multiImageComboBox.Enabled = multiImageRadioButton.Checked;
- multiImageBrowseButton.Enabled = multiImageRadioButton.Checked;
- fanartComboBox.Enabled = fanartRadioButton.Checked;
+ singleImageComboBox.Enabled = singleImageRadioButton.Checked;
+ singleImageBrowseButton.Enabled = singleImageRadioButton.Checked;
+ multiImageComboBox.Enabled = multiImageRadioButton.Checked;
+ multiImageBrowseButton.Enabled = multiImageRadioButton.Checked;
+ fanartComboBox.Enabled = fanartRadioButton.Checked;
+ singleImageRadioButton.BackColor = (singleImageRadioButton.Checked ? Color.LightGoldenrodYellow : Color.FromArgb(213, 220, 227));
+ multiImageRadioButton.BackColor = (multiImageRadioButton.Checked ? Color.LightGoldenrodYellow : Color.FromArgb(213, 220, 227));
+ fanartRadioButton.BackColor = (fanartRadioButton.Checked ? Color.LightGoldenrodYellow : Color.FromArgb(213, 220, 227));
}
private void ShowBackgroundImage() //Visualizzazione immagine(i) di sfondo selezionata per l'elemento
{
@@ -325,6 +345,7 @@
}
private void MoveMenuItemList(bool dirUp) //Spostamento elemento di menu
{
+ movingItem = true;
int index = menuListBox.SelectedIndex;
MenuItem mItem = myMenu.Items[index];
falseRemMenuItem = true;
@@ -336,10 +357,12 @@
index++;
myMenu.Items.Insert(index, mItem);
menuListBox.SelectedIndex = index;
+ movingItem = false;
}
private void MoveSubMenuItemList(bool dirUp) //Spostamento elemento di sotto-menu
{
- unsavedChanges = true;
+ unsavedChanges = true;
+ movingItem = true;
int index = subMenuListBox.SelectedIndex;
SubMenuItem smItem = myMenu.Items[menuListBox.SelectedIndex].SubMenuItems[index];
myMenu.Items[menuListBox.SelectedIndex].SubMenuItems.RemoveAt(index);
@@ -349,6 +372,7 @@
index++;
myMenu.Items[menuListBox.SelectedIndex].SubMenuItems.Insert(index, smItem);
subMenuListBox.SelectedIndex = index;
+ movingItem = false;
}
private void ModifyMenuListButtonsEnable() //Abilitazione/disabilitazione pulsanti di modifica menu
{
@@ -401,9 +425,13 @@
mItem.SubMenuItems = myMenu.Items[index].SubMenuItems;
falseRemMenuItem = true;
myMenu.Items.RemoveAt(index);
+ falseRemMenuItem = false;
+ falseAddMenuItem = true;
myMenu.Items.Insert(index, mItem);
falseAddMenuItem = false;
menuListBox.SelectedIndex = index;
+ updateNotifyTimer.Enabled = false;
+ updateNotifyMenuPictureBox.Visible = false;
}
else //Caso di aggiunta elemento
{
@@ -441,6 +469,8 @@
myMenu.Items[menuListBox.SelectedIndex].SubMenuItems.RemoveAt(index);
myMenu.Items[menuListBox.SelectedIndex].SubMenuItems.Insert(index, smItem);
subMenuListBox.SelectedIndex = index;
+ updateNotifyTimer.Enabled = false;
+ updateNotifySubMenuPictureBox.Visible = false;
}
else //Caso di aggiunta elemento
{
@@ -464,10 +494,6 @@
//Se elemento non trovato, viene selezionato il primo
defaultMenuItemComboBox.SelectedIndex = (defaultItemIndex < 0) ? 0 : defaultItemIndex;
}
- private void UpdateNotify()
- {
-
- }
private void SaveMenu() //Salvataggio impostazioni e creazione menu
{
myMenu.GeneralDefaultItemIndex = defaultMenuItemComboBox.SelectedIndex;
@@ -574,6 +600,8 @@
return;
RefreshImageRadioButton();
ShowBackgroundImage();
+ if (menuRowEditButton.Visible || subMenuRowEditButton.Visible)
+ updateNotifyTimer.Enabled = true;
}
private void multiImageRadioButton_CheckedChanged(object sender, EventArgs e)
{
@@ -581,6 +609,8 @@
return;
RefreshImageRadioButton();
ShowBackgroundImage();
+ if (menuRowEditButton.Visible || subMenuRowEditButton.Visible)
+ updateNotifyTimer.Enabled = true;
}
private void fanartRadioButton_CheckedChanged(object sender, EventArgs e)
{
@@ -588,6 +618,8 @@
return;
RefreshImageRadioButton();
ShowBackgroundImage();
+ if (menuRowEditButton.Visible || subMenuRowEditButton.Visible)
+ updateNotifyTimer.Enabled = true;
}
private void singleImageBrowseButton_Click(object sender, EventArgs e)
{
@@ -635,18 +667,24 @@
if (showingProperties)
return;
ShowBackgroundImage();
+ if (menuRowEditButton.Visible || subMenuRowEditButton.Visible)
+ updateNotifyTimer.Enabled = true;
}
private void multiImageComboBox_TextChanged(object sender, EventArgs e)
{
if (showingProperties)
return;
ShowBackgroundImage();
+ if (menuRowEditButton.Visible || subMenuRowEditButton.Visible)
+ updateNotifyTimer.Enabled = true;
}
private void fanartComboBox_TextChanged(object sender, EventArgs e)
{
if (showingProperties)
return;
ShowBackgroundImage();
+ if (menuRowEditButton.Visible || subMenuRowEditButton.Visible)
+ updateNotifyTimer.Enabled = true;
}
private void backgroundImageTimer_Tick(object sender, EventArgs e)
{
@@ -676,14 +714,44 @@
}
else
iconPictureBox.Image = ProcessPlugins.XtremeMenuEditor.Properties.Resources.IconEmpty;
+
+ if (!showingProperties && (menuRowEditButton.Visible || subMenuRowEditButton.Visible))
+ updateNotifyTimer.Enabled = true;
}
#endregion
+ #region Eventi Modifica Altre Proprietà Elemento
+ private void labelTextBox_TextChanged(object sender, EventArgs e)
+ {
+ if (!showingProperties && (menuRowEditButton.Visible || subMenuRowEditButton.Visible))
+ updateNotifyTimer.Enabled = true;
+ }
+ private void captionTextBox_TextChanged(object sender, EventArgs e)
+ {
+ if (!showingProperties && (menuRowEditButton.Visible || subMenuRowEditButton.Visible))
+ updateNotifyTimer.Enabled = true;
+ }
+ private void loadParameterTextBox_TextChanged(object sender, EventArgs e)
+ {
+ if (!showingProperties && (menuRowEditButton.Visible || subMenuRowEditButton.Visible))
+ updateNotifyTimer.Enabled = true;
+ }
+ private void overlayComboBox_TextChanged(object sender, EventArgs e)
+ {
+ if (!showingProperties && (menuRowEditButton.Visible || subMenuRowEditButton.Visible))
+ updateNotifyTimer.Enabled = true;
+ }
+ #endregion
#region Eventi Liste Menu & Sotto-Menu
private void menuListBox_SelectedIndexChanged(object sender, EventArgs e)
{
subMenuArrowPictureBox.Top = 22 + ((menuListBox.SelectedIndex >= 0) ? menuListBox.SelectedIndex : 0) * menuListBox.ItemHeight;
ModifyMenuListButtonsEnable();
ShowItemProperties(sender);
+ if (!movingItem)
+ {
+ updateNotifyTimer.Enabled = false;
+ updateNotifyMenuPictureBox.Visible = false;
+ }
}
private void menuListBox_Enter(object sender, EventArgs e)
{
@@ -693,13 +761,45 @@
{
ModifyMenuListButtonsEnable();
ShowItemProperties(sender);
+ if (!movingItem)
+ {
+ updateNotifyTimer.Enabled = false;
+ updateNotifySubMenuPictureBox.Visible = false;
+ }
}
private void subMenuListBox_Enter(object sender, EventArgs e)
{
ShowItemProperties(sender);
}
#endregion
- #region Eventi Modifica Menu
+ #region Eventi Modifica Impostazioni Generali Menu
+ private void defaultMenuItemComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ unsavedChanges = true;
+ }
+ private void showRssCheckBox_CheckedChanged(object sender, EventArgs e)
+ {
+ unsavedChanges = true;
+ }
+ private void backgroundAnimatedCheckBox_CheckedChanged(object sender, EventArgs e)
+ {
+ unsavedChanges = true;
+ }
+ private void multiImageTimeTrackBar_ValueChanged(object sender, EventArgs e)
+ {
+ unsavedChanges = true;
+ multiIMageTimeLabel.Text = multiImageTimeTrackBar.Value.ToString();
+ }
+ private void clearCacheCheckBox_CheckedChanged(object sender, EventArgs e)
+ {
+ unsavedChanges = true;
+ }
+ private void createBackupCheckBox_CheckedChanged(object sender, EventArgs e)
+ {
+ unsavedChanges = true;
+ }
+ #endregion
+ #region Eventi Modifica Lista Elementi Menu
private void menuRowRemoveButton_Click(object sender, EventArgs e)
{
int index = menuListBox.SelectedIndex;
@@ -708,6 +808,8 @@
menuListBox.SelectedIndex = ((index < myMenu.Items.Count) ? index : index-1);
ShowItemProperties(menuListBox);
ModifyMenuListButtonsEnable();
+ updateNotifyTimer.Enabled = false;
+ updateNotifyMenuPictureBox.Visible = false;
}
private void menuRowAddButton_Click(object sender, EventArgs e)
{
@@ -731,33 +833,8 @@
if (!falseRemMenuItem && myMenu.Items.Count > 0)
DefaultMenuItemRefresh();
}
- private void defaultMenuItemComboBox_SelectedIndexChanged(object sender, EventArgs e)
- {
- unsavedChanges = true;
- }
- private void showRssCheckBox_CheckedChanged(object sender, EventArgs e)
- {
- unsavedChanges = true;
- }
- private void backgroundAnimatedCheckBox_CheckedChanged(object sender, EventArgs e)
- {
- unsavedChanges = true;
- }
- private void multiImageTimeTrackBar_ValueChanged(object sender, EventArgs e)
- {
- unsavedChanges = true;
- multiIMageTimeLabel.Text = multiImageTimeTrackBar.Value.ToString();
- }
- private void clearCacheCheckBox_CheckedChanged(object sender, EventArgs e)
- {
- unsavedChanges = true;
- }
- private void createBackupCheckBox_CheckedChanged(object sender, EventArgs e)
- {
- unsavedChanges = true;
- }
#endregion
- #region Eventi Modifica Sotto-Menu
+ #region Eventi Modifica Lista Elementi Sotto-Menu
private void subMenuRowRemoveButton_Click(object sender, EventArgs e)
{
unsavedChanges = true;
@@ -772,6 +849,8 @@
subMenuRowAddButton.Visible = true;
subMenuRowEditButton.Visible = false;
}
+ updateNotifyTimer.Enabled = false;
+ updateNotifySubMenuPictureBox.Visible = false;
}
private void subMenuRowAddButton_Click(object sender, EventArgs e)
{
@@ -790,6 +869,32 @@
MoveSubMenuItemList(false);
}
#endregion
+ #region Eventi Notifica Elemento Non Aggiornato
+ private void updateNotifyTimer_Tick(object sender, EventArgs e)
+ {
+ if (menuRowEditButton.Visible)
+ updateNotifyMenuPictureBox.Visible = !updateNotifyMenuPictureBox.Visible;
+ else
+ if (subMenuRowEditButton.Visible)
+ updateNotifySubMenuPictureBox.Visible = !updateNotifySubMenuPictureBox.Visible;
+ }
+ private void menuRowEditButton_VisibleChanged(object sender, EventArgs e)
+ {
+ if (!menuRowEditButton.Visible)
+ {
+ updateNotifyTimer.Enabled = false;
+ updateNotifyMenuPictureBox.Visible = false;
+ }
+ }
+ private void subMenuRowEditButton_VisibleChanged(object sender, EventArgs e)
+ {
+ if (!subMenuRowEditButton.Visible)
+ {
+ updateNotifyTimer.Enabled = false;
+ updateNotifySubMenuPictureBox.Visible = false;
+ }
+ }
+ #endregion
private void saveButton_Click(object sender, EventArgs e)
{
SaveMenu();
@@ -842,14 +947,5 @@
return false;
}
#endregion
-
- private void updateNotifyTimer_Tick(object sender, EventArgs e)
- {
- if (menuRowEditButton.Visible)
- updateNotifyMenuPictureBox.Visible = !updateNotifyMenuPictureBox.Visible;
- else
- if (subMenuRowEditButton.Visible)
- updateNotifySubMenuPictureBox.Visible = !updateNotifySubMenuPictureBox.Visible;
- }
}
}
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.resx
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.resx 2013-11-12 22:22:29 UTC (rev 4677)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.resx 2013-11-14 19:01:37 UTC (rev 4678)
@@ -156,51 +156,9 @@
<metadata name="propertiesGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
- <metadata name="propertiesGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
<metadata name="iconGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
- <metadata name="loadParameterTextBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="windowIdShowLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="skinFileShowLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="captionTextBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="backgroundGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="overlayGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="labelTextBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="loadParameterLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="windowIdLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="skinFileLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="captionLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>T...
[truncated message content] |