You can subscribe to this list here.
| 2007 |
Jan
(36) |
Feb
(79) |
Mar
(123) |
Apr
(95) |
May
(119) |
Jun
(172) |
Jul
(124) |
Aug
(100) |
Sep
(83) |
Oct
(52) |
Nov
(97) |
Dec
(87) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(131) |
Feb
(80) |
Mar
(163) |
Apr
(178) |
May
(73) |
Jun
(54) |
Jul
(106) |
Aug
(118) |
Sep
(50) |
Oct
(125) |
Nov
(100) |
Dec
(99) |
| 2009 |
Jan
(104) |
Feb
(99) |
Mar
(68) |
Apr
(81) |
May
(52) |
Jun
(87) |
Jul
(67) |
Aug
(33) |
Sep
(27) |
Oct
(37) |
Nov
(60) |
Dec
(116) |
| 2010 |
Jan
(82) |
Feb
(79) |
Mar
(38) |
Apr
(50) |
May
(45) |
Jun
(53) |
Jul
(23) |
Aug
(86) |
Sep
(22) |
Oct
(96) |
Nov
(97) |
Dec
(73) |
| 2011 |
Jan
(24) |
Feb
(45) |
Mar
(28) |
Apr
(31) |
May
(42) |
Jun
(25) |
Jul
|
Aug
(12) |
Sep
(28) |
Oct
(13) |
Nov
(43) |
Dec
(13) |
| 2012 |
Jan
(62) |
Feb
(28) |
Mar
(6) |
Apr
(16) |
May
(7) |
Jun
|
Jul
(16) |
Aug
(2) |
Sep
(1) |
Oct
(4) |
Nov
(1) |
Dec
(3) |
| 2013 |
Jan
(5) |
Feb
|
Mar
(34) |
Apr
(9) |
May
(6) |
Jun
(10) |
Jul
(32) |
Aug
(8) |
Sep
(11) |
Oct
(35) |
Nov
(24) |
Dec
(22) |
| 2014 |
Jan
(44) |
Feb
(9) |
Mar
(9) |
Apr
(15) |
May
(25) |
Jun
(34) |
Jul
(16) |
Aug
(11) |
Sep
(7) |
Oct
(6) |
Nov
(1) |
Dec
(12) |
| 2015 |
Jan
(33) |
Feb
(19) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(5) |
|
From: <nic...@us...> - 2014-01-18 16:35:40
|
Revision: 4740
http://sourceforge.net/p/mp-plugins/code/4740
Author: nicsergio
Date: 2014-01-18 16:35:35 +0000 (Sat, 18 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/Common/My.Common.csproj
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.Designer.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.resx
Added Paths:
-----------
trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/Error.png
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/Common/My.Common.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/Common/My.Common.csproj 2014-01-17 13:15:18 UTC (rev 4739)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/Common/My.Common.csproj 2014-01-18 16:35:35 UTC (rev 4740)
@@ -55,6 +55,7 @@
<Content Include="Resources\Images\ArrowLeft.png" />
<Content Include="Resources\Images\ArrowRight.png" />
<Content Include="Resources\Images\ArrowUp.png" />
+ <Content Include="Resources\Images\Error.png" />
<Content Include="Resources\Images\Info.png" />
<Content Include="Resources\Images\Internet.png" />
<Content Include="Resources\Images\Ok.png" />
Added: trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/Error.png
===================================================================
(Binary files differ)
Index: trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/Error.png
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/Error.png 2014-01-17 13:15:18 UTC (rev 4739)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/Error.png 2014-01-18 16:35:35 UTC (rev 4740)
Property changes on: trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/Error.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs 2014-01-17 13:15:18 UTC (rev 4739)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs 2014-01-18 16:35:35 UTC (rev 4740)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Il codice è stato generato da uno strumento.
-// Versione runtime:4.0.30319.18052
+// Versione runtime:4.0.30319.17929
//
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
// il codice viene rigenerato.
@@ -73,6 +73,16 @@
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
+ internal static System.Drawing.Bitmap Error {
+ get {
+ object obj = ResourceManager.GetObject("Error", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
internal static System.Drawing.Bitmap Info {
get {
object obj = ResourceManager.GetObject("Info", resourceCulture);
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx 2014-01-17 13:15:18 UTC (rev 4739)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx 2014-01-18 16:35:35 UTC (rev 4740)
@@ -142,8 +142,11 @@
<data name="ShortCuter" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\images\shortcuterenable.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
- <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="RowCopy" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\common\resources\images\rowcopy.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
+ <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+ <data name="Error" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\..\common\resources\images\error.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
</root>
\ No newline at end of file
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-17 13:15:18 UTC (rev 4739)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-18 16:35:35 UTC (rev 4740)
@@ -156,6 +156,9 @@
<Content Include="..\Common\Resources\Images\ArrowDown.png">
<Link>Resources\Images\ArrowDown.png</Link>
</Content>
+ <Content Include="..\Common\Resources\Images\Error.png">
+ <Link>Resources\Images\Error.png</Link>
+ </Content>
<Content Include="..\Common\Resources\Images\Info.png">
<Link>Resources\Images\Info.png</Link>
</Content>
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.Designer.cs 2014-01-17 13:15:18 UTC (rev 4739)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.Designer.cs 2014-01-18 16:35:35 UTC (rev 4740)
@@ -28,9 +28,11 @@
/// </summary>
private void InitializeComponent()
{
+ this.components = new System.ComponentModel.Container();
this.keyGroupBox = new System.Windows.Forms.GroupBox();
this.keyLabel = new System.Windows.Forms.Label();
this.okPictureBox = new System.Windows.Forms.PictureBox();
+ this.errorImageTimer = new System.Windows.Forms.Timer(this.components);
this.keyGroupBox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.okPictureBox)).BeginInit();
this.SuspendLayout();
@@ -66,6 +68,11 @@
this.okPictureBox.TabStop = false;
this.okPictureBox.Click += new System.EventHandler(this.okPictureBox_Click);
//
+ // errorImageTimer
+ //
+ this.errorImageTimer.Interval = 500;
+ this.errorImageTimer.Tick += new System.EventHandler(this.errorImageTimer_Tick);
+ //
// ShortCuterKeyConfig
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -94,5 +101,6 @@
private System.Windows.Forms.GroupBox keyGroupBox;
private System.Windows.Forms.Label keyLabel;
private System.Windows.Forms.PictureBox okPictureBox;
+ private System.Windows.Forms.Timer errorImageTimer;
}
}
\ No newline at end of file
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs 2014-01-17 13:15:18 UTC (rev 4739)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs 2014-01-18 16:35:35 UTC (rev 4740)
@@ -39,10 +39,21 @@
mySc.Key = keyLabel.Text; //--> memorizzazione tasto assegnato allo shortcut
this.Close(); //--> chiusura form
}
+ private void errorImageTimer_Tick(object sender, EventArgs e)
+ {
+ okPictureBox.Image = ProcessPlugins.ShortCuter.Properties.Resources.Ok; //--> ripristino immagine "ok"
+ errorImageTimer.Enabled = false;
+ }
private void keyboardHook_KeyDown(object sender, KeyEventArgs e) //Evento KeyDown intercettato dall'hook
{
- if (!ShortCut.ModifierKeys.Contains(e.KeyCode))
+ if (ShortCut.ModifierKeys.Contains(e.KeyCode)) //Se premuto un modificatore
+ {
+ okPictureBox.Image = ProcessPlugins.ShortCuter.Properties.Resources.Error; //--> visualizzazione temporanea immagine "error"
+ errorImageTimer.Enabled = true; //--> attivazione timer per ripristino immagine
+ }
+ else
keyLabel.Text = e.KeyCode.ToString(); //--> visualizzazione tasto premuto, se non corrisponde ad un modificatore
+
e.Handled = true; //--> il tasto premuto viene ignorato
}
#endregion
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.resx
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.resx 2014-01-17 13:15:18 UTC (rev 4739)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.resx 2014-01-18 16:35:35 UTC (rev 4740)
@@ -123,13 +123,16 @@
<metadata name="keyLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
- <metadata name="keyLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
<metadata name="okPictureBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
+ <metadata name="errorImageTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>9, 6</value>
+ </metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
+ <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>36</value>
+ </metadata>
</root>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-17 13:15:21
|
Revision: 4739
http://sourceforge.net/p/mp-plugins/code/4739
Author: nicsergio
Date: 2014-01-17 13:15:18 +0000 (Fri, 17 Jan 2014)
Log Message:
-----------
Added Paths:
-----------
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/Overrides.png
Added: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/Overrides.png
===================================================================
(Binary files differ)
Index: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/Overrides.png
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/Overrides.png 2014-01-17 12:58:21 UTC (rev 4738)
+++ trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/Overrides.png 2014-01-17 13:15:18 UTC (rev 4739)
Property changes on: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/Overrides.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-17 12:58:23
|
Revision: 4738
http://sourceforge.net/p/mp-plugins/code/4738
Author: nicsergio
Date: 2014-01-17 12:58:21 +0000 (Fri, 17 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
Added Paths:
-----------
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/CyclicShortcut.png
Added: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/CyclicShortcut.png
===================================================================
(Binary files differ)
Index: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/CyclicShortcut.png
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/CyclicShortcut.png 2014-01-17 12:40:40 UTC (rev 4737)
+++ trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/CyclicShortcut.png 2014-01-17 12:58:21 UTC (rev 4738)
Property changes on: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/CyclicShortcut.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-17 12:40:40 UTC (rev 4737)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-17 12:58:21 UTC (rev 4738)
@@ -6,7 +6,7 @@
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{20CEBE32-A39E-4A61-B2BD-90BF16E2AEE8}</ProjectGuid>
- <OutputType>Library</OutputType>
+ <OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ProcessPlugins.ShortCuter</RootNamespace>
<AssemblyName>ShortCuter</AssemblyName>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-17 12:40:44
|
Revision: 4737
http://sourceforge.net/p/mp-plugins/code/4737
Author: nicsergio
Date: 2014-01-17 12:40:40 +0000 (Fri, 17 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.ChangeLog.txt
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.Update.xml
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2 2014-01-17 12:35:21 UTC (rev 4736)
+++ trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2 2014-01-17 12:40:40 UTC (rev 4737)
@@ -287,7 +287,7 @@
For each shortcut you can define a keystroke combination such as:
<CTRL> + <ALT> + <SHIFT> + <KEY></ExtensionDescription>
- <VersionDescription> - completely overrides at start-up (reset CapsLock & NumLock)
+ <VersionDescription> - completely overrides at start-up (CapsLock & NumLock)
- improving the shortcut key assignment
- management cyclical destinations for shotcuts
- management go to previous window
@@ -342,21 +342,21 @@
<Param1 />
<UpdateOption>OverwriteIfOlder</UpdateOption>
<LocalFileName>ShortCuterInstall.png</LocalFileName>
- <ZipFileName>Installer{CopyFile}\{abb8d9cc-8dc1-40e7-9af1-c6f5cdbe6710}-ShortCuterInstall.png</ZipFileName>
+ <ZipFileName>Installer{CopyFile}\{9a4a4d91-1a96-4d07-ab92-2640a64bca5c}-ShortCuterInstall.png</ZipFileName>
<DestinationFilename />
</FileItem>
<FileItem InstallType="CopyFile" SystemFile="true" Modified="true">
<Param1 />
<UpdateOption>OverwriteIfOlder</UpdateOption>
<LocalFileName>ShortCuterProgress.png</LocalFileName>
- <ZipFileName>Installer{CopyFile}\{de774024-363a-417d-95dc-2f4f91369f97}-ShortCuterProgress.png</ZipFileName>
+ <ZipFileName>Installer{CopyFile}\{cbef1ee3-ec4f-42df-a664-7cabb778ae44}-ShortCuterProgress.png</ZipFileName>
<DestinationFilename />
</FileItem>
<FileItem InstallType="CopyFile" SystemFile="true" Modified="true">
<Param1 />
<UpdateOption>OverwriteIfOlder</UpdateOption>
<LocalFileName>ShortCuter.png</LocalFileName>
- <ZipFileName>Installer{CopyFile}\{cb688d53-3055-4fdd-8e3e-deadab5c15c6}-ShortCuter.png</ZipFileName>
+ <ZipFileName>Installer{CopyFile}\{70c2c404-054d-42ef-967c-78ac3fc41ec7}-ShortCuter.png</ZipFileName>
<DestinationFilename />
</FileItem>
</Items>
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.ChangeLog.txt
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.ChangeLog.txt 2014-01-17 12:35:21 UTC (rev 4736)
+++ trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.ChangeLog.txt 2014-01-17 12:40:40 UTC (rev 4737)
@@ -1,6 +1,6 @@
- V2.0.6 (01/17/2014)
- > completely overrides at start-up (reset CapsLock & NumLock)
+ > completely overrides at start-up (CapsLock & NumLock)
> improving the shortcut key assignment
> management cyclical destinations for shotcuts
> management go to previous window
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.Update.xml
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.Update.xml 2014-01-17 12:35:21 UTC (rev 4736)
+++ trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.Update.xml 2014-01-17 12:40:40 UTC (rev 4737)
@@ -762,7 +762,21 @@
</Items>
</Dependencies>
<PluginDependencies>
- <Items />
+ <Items>
+ <PluginDependencyItem AssemblyName="ShortCuter.dll">
+ <CompatibleVersion>
+ <Items>
+ <CompatibleVersionItem>
+ <MinRequiredVersion>1.1.6.27644</MinRequiredVersion>
+ <DesignedForVersion>1.1.6.27644</DesignedForVersion>
+ </CompatibleVersionItem>
+ </Items>
+ </CompatibleVersion>
+ <SubSystemsUsed>
+ <Items />
+ </SubSystemsUsed>
+ </PluginDependencyItem>
+ </Items>
</PluginDependencies>
<GeneralInfo>
<Name>ShortCut'er</Name>
@@ -782,7 +796,7 @@
For each shortcut you can define a keystroke combination such as:
<CTRL> + <ALT> + <SHIFT> + <KEY></ExtensionDescription>
- <VersionDescription> - completely overrides at start-up (reset CapsLock & NumLock)
+ <VersionDescription> - completely overrides at start-up (CapsLock & NumLock)
- improving the shortcut key assignment
- management cyclical destinations for shotcuts
- management go to previous window
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-17 12:35:25
|
Revision: 4736
http://sourceforge.net/p/mp-plugins/code/4736
Author: nicsergio
Date: 2014-01-17 12:35:21 +0000 (Fri, 17 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/Config.png
Added Paths:
-----------
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/KeyAssign.png
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/Config.png
===================================================================
(Binary files differ)
Added: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/KeyAssign.png
===================================================================
(Binary files differ)
Index: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/KeyAssign.png
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/KeyAssign.png 2014-01-17 10:56:34 UTC (rev 4735)
+++ trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/KeyAssign.png 2014-01-17 12:35:21 UTC (rev 4736)
Property changes on: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/KeyAssign.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-17 10:56:38
|
Revision: 4735
http://sourceforge.net/p/mp-plugins/code/4735
Author: nicsergio
Date: 2014-01-17 10:56:34 +0000 (Fri, 17 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/Common/My.Common.csproj
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHook.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/XmlFiles/DefaultConfig.xml
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs
Added Paths:
-----------
trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/RowCopy.png
Removed Paths:
-------------
trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/RowsCopy.png
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/Common/My.Common.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/Common/My.Common.csproj 2014-01-17 10:55:53 UTC (rev 4734)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/Common/My.Common.csproj 2014-01-17 10:56:34 UTC (rev 4735)
@@ -63,7 +63,7 @@
<Content Include="Resources\Images\RowEdit.png" />
<Content Include="Resources\Images\RowRemove.png" />
<Content Include="Resources\Images\Rows.png" />
- <Content Include="Resources\Images\RowsCopy.png" />
+ <Content Include="Resources\Images\RowCopy.png" />
<Content Include="Resources\Images\RowUp.png" />
<Content Include="Resources\Images\TreeViewIcons\BasicHome.png" />
<Content Include="Resources\Images\TreeViewIcons\BD.png" />
Added: trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/RowCopy.png
===================================================================
(Binary files differ)
Index: trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/RowCopy.png
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/RowCopy.png 2014-01-17 10:55:53 UTC (rev 4734)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/RowCopy.png 2014-01-17 10:56:34 UTC (rev 4735)
Property changes on: trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/RowCopy.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Deleted: trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/RowsCopy.png
===================================================================
(Binary files differ)
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHook.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHook.cs 2014-01-17 10:55:53 UTC (rev 4734)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHook.cs 2014-01-17 10:56:34 UTC (rev 4735)
@@ -37,6 +37,7 @@
public List<Keys> HookedKeys = new List<Keys>(); //Eventuale lista dei tasti da monitorare/intercettare
private IntPtr hHook = IntPtr.Zero; //Handle dell'hook
private IntPtr hInstance = IntPtr.Zero; //Handle dell'istanza della libreria esterna
+ private bool _hooked = false; //Hook attivato
#endregion
#region Costruttore/Distruttore
@@ -78,12 +79,17 @@
#region Metodi Pubblici
public void hook() //Installazione dell'hook di sistema
{
- hHook = SetWindowsHookEx(WH_KEYBOARD_LL, hookProc, hInstance, 0);
+ unhook(); //--> eventuale disinstallazione hook
+ hHook = SetWindowsHookEx(WH_KEYBOARD_LL, hookProc, hInstance, 0); //--> installazione hook
+ _hooked = true; //--> memorizzazione hook attivo
}
public void unhook() //Disinstallazione dell'hook di sistema
{
- try { UnhookWindowsHookEx(hHook); }
- catch { }
+ if (_hooked) //Se hook attivo
+ {
+ UnhookWindowsHookEx(hHook); //--> disinstallazione hook
+ _hooked = false; //--> memorizzazione hook disattivo
+ }
}
#endregion
@@ -92,7 +98,11 @@
public event KeyEventHandler KeyUp; //Evento di rilascio di uno dei tasti da monitorare
#endregion
- #region Importazione DLL
+ #region Propriet\xE0
+ public bool Hooked { get { return this._hooked; } }
+ #endregion
+
+ #region Importazione DLL
//Installazione dell'hook, esecuzione dell'evento desiderato [uno dei parametri hInstance o threadId deve essere valorizzato]
[DllImport("user32.dll")]
static extern IntPtr SetWindowsHookEx(int idHook, HookProc callback, IntPtr hInstance, uint threadId);
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs 2014-01-17 10:55:53 UTC (rev 4734)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs 2014-01-17 10:56:34 UTC (rev 4735)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Il codice è stato generato da uno strumento.
-// Versione runtime:4.0.30319.17929
+// Versione runtime:4.0.30319.18052
//
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
// il codice viene rigenerato.
@@ -103,9 +103,9 @@
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
- internal static System.Drawing.Bitmap RowDown {
+ internal static System.Drawing.Bitmap RowCopy {
get {
- object obj = ResourceManager.GetObject("RowDown", resourceCulture);
+ object obj = ResourceManager.GetObject("RowCopy", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
@@ -113,9 +113,9 @@
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
- internal static System.Drawing.Bitmap RowRemove {
+ internal static System.Drawing.Bitmap RowDown {
get {
- object obj = ResourceManager.GetObject("RowRemove", resourceCulture);
+ object obj = ResourceManager.GetObject("RowDown", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
@@ -123,9 +123,9 @@
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
- internal static System.Drawing.Bitmap RowsCopy {
+ internal static System.Drawing.Bitmap RowRemove {
get {
- object obj = ResourceManager.GetObject("RowsCopy", resourceCulture);
+ object obj = ResourceManager.GetObject("RowRemove", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx 2014-01-17 10:55:53 UTC (rev 4734)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx 2014-01-17 10:56:34 UTC (rev 4735)
@@ -136,14 +136,14 @@
<data name="RowRemove" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\common\resources\images\rowremove.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
- <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <data name="RowsCopy" type="System.Resources.ResXFileRef, System.Windows.Forms">
- <value>..\..\common\resources\images\rowscopy.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
- </data>
<data name="RowUp" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\common\resources\images\rowup.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ShortCuter" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\images\shortcuterenable.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
+ <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+ <data name="RowCopy" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\..\common\resources\images\rowcopy.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
</root>
\ No newline at end of file
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/XmlFiles/DefaultConfig.xml
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/XmlFiles/DefaultConfig.xml 2014-01-17 10:55:53 UTC (rev 4734)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/XmlFiles/DefaultConfig.xml 2014-01-17 10:56:34 UTC (rev 4735)
@@ -11,8 +11,8 @@
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>35</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>35</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>back.wav</SoundEffect>
</Item>
@@ -22,8 +22,8 @@
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>0</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>0</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>back.wav</SoundEffect>
</Item>
@@ -33,30 +33,30 @@
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>1</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>1</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
<Item>
<Caption>TV Fullscreen</Caption>
- <Key>L</Key>
+ <Key>T</Key>
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>602</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>602</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
<Item>
<Caption>TV Guide</Caption>
- <Key>G</Key>
+ <Key>T</Key>
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>600</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>600</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
@@ -66,8 +66,8 @@
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>7700</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>7700</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
@@ -77,8 +77,8 @@
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>7701</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>7701</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
@@ -88,8 +88,8 @@
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>6</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>6</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
@@ -99,8 +99,8 @@
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>2005</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>2005</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
@@ -110,8 +110,8 @@
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>30</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>30</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
@@ -121,8 +121,8 @@
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>501</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>501</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
@@ -132,8 +132,8 @@
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>2</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>2</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
@@ -143,8 +143,8 @@
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>7977</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>7977</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
@@ -154,8 +154,8 @@
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>9811</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>9811</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
@@ -165,8 +165,8 @@
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>96742</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>96742</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
@@ -176,8 +176,8 @@
<Ctrl>1</Ctrl>
<Alt>0</Alt>
<Shift>1</Shift>
- <Hyperlink>3001</Hyperlink>
- <HyperlinkParameter />
+ <WindowID>3001</WindowID>
+ <LoadParameter />
<Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-17 10:55:53 UTC (rev 4734)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-17 10:56:34 UTC (rev 4735)
@@ -165,15 +165,15 @@
<Content Include="..\Common\Resources\Images\RowAdd.png">
<Link>Resources\Images\RowAdd.png</Link>
</Content>
+ <Content Include="..\Common\Resources\Images\RowCopy.png">
+ <Link>Resources\Images\RowCopy.png</Link>
+ </Content>
<Content Include="..\Common\Resources\Images\RowDown.png">
<Link>Resources\Images\RowDown.png</Link>
</Content>
<Content Include="..\Common\Resources\Images\RowRemove.png">
<Link>Resources\Images\RowRemove.png</Link>
</Content>
- <Content Include="..\Common\Resources\Images\RowsCopy.png">
- <Link>Resources\Images\RowsCopy.png</Link>
- </Content>
<Content Include="..\Common\Resources\Images\RowUp.png">
<Link>Resources\Images\RowUp.png</Link>
</Content>
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs 2014-01-17 10:55:53 UTC (rev 4734)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs 2014-01-17 10:56:34 UTC (rev 4735)
@@ -410,7 +410,7 @@
//
this.rowCopyButton.AutoSize = true;
this.rowCopyButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.rowCopyButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowsCopy;
+ this.rowCopyButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowCopy;
this.rowCopyButton.Location = new System.Drawing.Point(94, 264);
this.rowCopyButton.Name = "rowCopyButton";
this.rowCopyButton.Size = new System.Drawing.Size(38, 38);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-17 10:55:58
|
Revision: 4734
http://sourceforge.net/p/mp-plugins/code/4734
Author: nicsergio
Date: 2014-01-17 10:55:53 +0000 (Fri, 17 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/Files/ShortCuter.dll
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.ChangeLog.txt
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.Update.xml
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1
Added Paths:
-----------
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/RowCopy.png
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/Files/ShortCuter.dll
===================================================================
(Binary files differ)
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2 2014-01-16 18:19:44 UTC (rev 4733)
+++ trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2 2014-01-17 10:55:53 UTC (rev 4734)
@@ -253,7 +253,21 @@
</Items>
</Dependencies>
<PluginDependencies>
- <Items />
+ <Items>
+ <PluginDependencyItem AssemblyName="ShortCuter.dll">
+ <CompatibleVersion>
+ <Items>
+ <CompatibleVersionItem>
+ <MinRequiredVersion>1.1.6.27644</MinRequiredVersion>
+ <DesignedForVersion>1.1.6.27644</DesignedForVersion>
+ </CompatibleVersionItem>
+ </Items>
+ </CompatibleVersion>
+ <SubSystemsUsed>
+ <Items />
+ </SubSystemsUsed>
+ </PluginDependencyItem>
+ </Items>
</PluginDependencies>
<GeneralInfo>
<Name>ShortCut'er</Name>
@@ -280,7 +294,7 @@
- add clone shortcut command</VersionDescription>
<DevelopmentStatus>Stable</DevelopmentStatus>
<OnlineLocation>https://svn.code.sf.net/p/mp-plugins/code/trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1</OnlineLocation>
- <ReleaseDate>2013-12-06T23:10:13</ReleaseDate>
+ <ReleaseDate>2014-01-17T23:10:13</ReleaseDate>
<Tags>shortcut,keys,keyboard,imon,remote</Tags>
<Location>..\ShortCuter.mpe1</Location>
<Params>
@@ -328,21 +342,21 @@
<Param1 />
<UpdateOption>OverwriteIfOlder</UpdateOption>
<LocalFileName>ShortCuterInstall.png</LocalFileName>
- <ZipFileName>Installer{CopyFile}\{28d32543-566e-4f69-add5-460fb239b61e}-ShortCuterInstall.png</ZipFileName>
+ <ZipFileName>Installer{CopyFile}\{abb8d9cc-8dc1-40e7-9af1-c6f5cdbe6710}-ShortCuterInstall.png</ZipFileName>
<DestinationFilename />
</FileItem>
<FileItem InstallType="CopyFile" SystemFile="true" Modified="true">
<Param1 />
<UpdateOption>OverwriteIfOlder</UpdateOption>
<LocalFileName>ShortCuterProgress.png</LocalFileName>
- <ZipFileName>Installer{CopyFile}\{39363550-6810-4aa6-b982-57016ded130e}-ShortCuterProgress.png</ZipFileName>
+ <ZipFileName>Installer{CopyFile}\{de774024-363a-417d-95dc-2f4f91369f97}-ShortCuterProgress.png</ZipFileName>
<DestinationFilename />
</FileItem>
<FileItem InstallType="CopyFile" SystemFile="true" Modified="true">
<Param1 />
<UpdateOption>OverwriteIfOlder</UpdateOption>
<LocalFileName>ShortCuter.png</LocalFileName>
- <ZipFileName>Installer{CopyFile}\{05c09032-0533-4512-8750-6e6385f43d65}-ShortCuter.png</ZipFileName>
+ <ZipFileName>Installer{CopyFile}\{cb688d53-3055-4fdd-8e3e-deadab5c15c6}-ShortCuter.png</ZipFileName>
<DestinationFilename />
</FileItem>
</Items>
Added: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/RowCopy.png
===================================================================
(Binary files differ)
Index: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/RowCopy.png
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/RowCopy.png 2014-01-16 18:19:44 UTC (rev 4733)
+++ trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/RowCopy.png 2014-01-17 10:55:53 UTC (rev 4734)
Property changes on: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/RowCopy.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.ChangeLog.txt
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.ChangeLog.txt 2014-01-16 18:19:44 UTC (rev 4733)
+++ trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.ChangeLog.txt 2014-01-17 10:55:53 UTC (rev 4734)
@@ -1,4 +1,4 @@
-- V2.0.6 (01/16/2014)
+- V2.0.6 (01/17/2014)
> completely overrides at start-up (reset CapsLock & NumLock)
> improving the shortcut key assignment
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.Update.xml
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.Update.xml 2014-01-16 18:19:44 UTC (rev 4733)
+++ trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.Update.xml 2014-01-17 10:55:53 UTC (rev 4734)
@@ -789,7 +789,7 @@
- add clone shortcut command</VersionDescription>
<DevelopmentStatus>Stable</DevelopmentStatus>
<OnlineLocation>https://svn.code.sf.net/p/mp-plugins/code/trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1</OnlineLocation>
- <ReleaseDate>2013-12-06T23:10:13</ReleaseDate>
+ <ReleaseDate>2014-01-17T23:10:13</ReleaseDate>
<Tags>shortcut,keys,keyboard,imon,remote</Tags>
<Location>..\ShortCuter.mpe1</Location>
<Params>
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-16 18:19:48
|
Revision: 4733
http://sourceforge.net/p/mp-plugins/code/4733
Author: nicsergio
Date: 2014-01-16 18:19:44 +0000 (Thu, 16 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.Update.xml
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2 2014-01-16 18:03:40 UTC (rev 4732)
+++ trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2 2014-01-16 18:19:44 UTC (rev 4733)
@@ -268,16 +268,16 @@
<Build>6</Build>
<Revision>0</Revision>
</Version>
- <ExtensionDescription>ShortCut'er let you create keyboard shortcuts to any MP screen, like TV, Videos, Music, etc..
-
-For each shortcut you can define a keystroke combination such as:
-
+ <ExtensionDescription>ShortCut'er let you create keyboard shortcuts to any MP screen, like TV, Videos, Music, etc..
+
+For each shortcut you can define a keystroke combination such as:
+
<CTRL> + <ALT> + <SHIFT> + <KEY></ExtensionDescription>
- <VersionDescription> > completely overrides at start-up (reset CapsLock & NumLock)
- > improving the shortcut key assignment
- > management cyclical destinations for shotcuts
- > management go to previous window
- > add clone shortcut command</VersionDescription>
+ <VersionDescription> - completely overrides at start-up (reset CapsLock & NumLock)
+ - improving the shortcut key assignment
+ - management cyclical destinations for shotcuts
+ - management go to previous window
+ - add clone shortcut command</VersionDescription>
<DevelopmentStatus>Stable</DevelopmentStatus>
<OnlineLocation>https://svn.code.sf.net/p/mp-plugins/code/trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1</OnlineLocation>
<ReleaseDate>2013-12-06T23:10:13</ReleaseDate>
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.Update.xml
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.Update.xml 2014-01-16 18:03:40 UTC (rev 4732)
+++ trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.Update.xml 2014-01-16 18:19:44 UTC (rev 4733)
@@ -76,7 +76,7 @@
For each shortcut you can define a keystroke combination such as:
<CTRL> + <ALT> + <SHIFT> + <KEY></ExtensionDescription>
- <VersionDescription>This is a remake of the great process plugin ShortCut'er.</VersionDescription>
+ <VersionDescription>Initial release: the old plugin has been completely rewritten</VersionDescription>
<DevelopmentStatus>Stable</DevelopmentStatus>
<OnlineLocation>https://svn.code.sf.net/p/mp-plugins/code/trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1</OnlineLocation>
<ReleaseDate>2013-09-24T23:10:13.1876942+02:00</ReleaseDate>
@@ -192,7 +192,13 @@
For each shortcut you can define a keystroke combination such as:
<CTRL> + <ALT> + <SHIFT> + <KEY></ExtensionDescription>
- <VersionDescription>This is a remake of the great process plugin ShortCut'er.</VersionDescription>
+ <VersionDescription> - inserted skin links treeview display, to facilitate the search of the elements
+ - fixed bug in moving lines with hook active
+ - added button to save settings without exiting the page
+ - implemented control unsaved settings when closing form
+ - request confirmation with reset configuration
+ - improved display changes in the gridview
+ - automatic backup configuration file during installation</VersionDescription>
<DevelopmentStatus>Stable</DevelopmentStatus>
<OnlineLocation>https://svn.code.sf.net/p/mp-plugins/code/trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1</OnlineLocation>
<ReleaseDate>2013-10-22T23:10:13</ReleaseDate>
@@ -308,7 +314,7 @@
For each shortcut you can define a keystroke combination such as:
<CTRL> + <ALT> + <SHIFT> + <KEY></ExtensionDescription>
- <VersionDescription>This is a remake of the great process plugin ShortCut'er.</VersionDescription>
+ <VersionDescription> - enabled shortcut without modifiers</VersionDescription>
<DevelopmentStatus>Stable</DevelopmentStatus>
<OnlineLocation>https://svn.code.sf.net/p/mp-plugins/code/trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1</OnlineLocation>
<ReleaseDate>2013-10-22T23:10:13</ReleaseDate>
@@ -424,7 +430,9 @@
For each shortcut you can define a keystroke combination such as:
<CTRL> + <ALT> + <SHIFT> + <KEY></ExtensionDescription>
- <VersionDescription>This is a remake of the great process plugin ShortCut'er.</VersionDescription>
+ <VersionDescription> - implemented GuiProperties read and replace them with its value in Load Parameter
+ - support for the new Trailers plugin released by ltfearme
+ - add Trailer for selected item section in treeview of the most popular links</VersionDescription>
<DevelopmentStatus>Stable</DevelopmentStatus>
<OnlineLocation>https://svn.code.sf.net/p/mp-plugins/code/trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1</OnlineLocation>
<ReleaseDate>2013-10-22T23:10:13</ReleaseDate>
@@ -540,7 +548,7 @@
For each shortcut you can define a keystroke combination such as:
<CTRL> + <ALT> + <SHIFT> + <KEY></ExtensionDescription>
- <VersionDescription>This is a remake of the great process plugin ShortCut'er.</VersionDescription>
+ <VersionDescription> - correct internet browser link in treeview</VersionDescription>
<DevelopmentStatus>Stable</DevelopmentStatus>
<OnlineLocation>https://svn.code.sf.net/p/mp-plugins/code/trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1</OnlineLocation>
<ReleaseDate>2013-10-22T23:10:13</ReleaseDate>
@@ -664,7 +672,7 @@
For each shortcut you can define a keystroke combination such as:
<CTRL> + <ALT> + <SHIFT> + <KEY></ExtensionDescription>
- <VersionDescription>This is a remake of the great process plugin ShortCut'er.</VersionDescription>
+ <VersionDescription> - add overrides at start-up (reset CapsLock & NumLock)</VersionDescription>
<DevelopmentStatus>Stable</DevelopmentStatus>
<OnlineLocation>https://svn.code.sf.net/p/mp-plugins/code/trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1</OnlineLocation>
<ReleaseDate>2013-12-06T23:10:13</ReleaseDate>
@@ -705,5 +713,119 @@
</ProjectSettings>
<IsSkin>false</IsSkin>
</PackageClass>
+ <PackageClass>
+ <Version>2.0</Version>
+ <Groups>
+ <Items>
+ <GroupItem Name="Binaries">
+ <DisplayName>Binaries</DisplayName>
+ <DefaulChecked>true</DefaulChecked>
+ <Description>Binaries</Description>
+ <Files>
+ <Items />
+ </Files>
+ </GroupItem>
+ <GroupItem Name="Configuration">
+ <DisplayName>Configuration</DisplayName>
+ <DefaulChecked>true</DefaulChecked>
+ <Description>Configuration</Description>
+ <Files>
+ <Items />
+ </Files>
+ </GroupItem>
+ </Items>
+ </Groups>
+ <Sections>
+ <Items />
+ </Sections>
+ <Dependencies>
+ <Items>
+ <DependencyItem>
+ <Type>MediaPortal</Type>
+ <Id />
+ <MinVersion>
+ <Major>1</Major>
+ <Minor>1</Minor>
+ <Build>6</Build>
+ <Revision>27644</Revision>
+ </MinVersion>
+ <MaxVersion>
+ <Major>1</Major>
+ <Minor>1</Minor>
+ <Build>6</Build>
+ <Revision>27644</Revision>
+ </MaxVersion>
+ <WarnOnly>false</WarnOnly>
+ <Message>requires MediaPortal version 1.1.6.27644 to 1.1.6.27644.</Message>
+ <Name>MediaPortal</Name>
+ </DependencyItem>
+ </Items>
+ </Dependencies>
+ <PluginDependencies>
+ <Items />
+ </PluginDependencies>
+ <GeneralInfo>
+ <Name>ShortCut'er</Name>
+ <Id>8f7a9dd8-c238-4d3d-b50d-20b7ca8d296e</Id>
+ <Author>nicsergio</Author>
+ <HomePage>http://www.team-mediaportal.com/extensions/input-output/shortcuter</HomePage>
+ <ForumPage>http://forum.team-mediaportal.com/threads/shortcuter-plugin-v2.121721/</ForumPage>
+ <UpdateUrl>https://svn.code.sf.net/p/mp-plugins/code/trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.Update.xml</UpdateUrl>
+ <Version>
+ <Major>2</Major>
+ <Minor>0</Minor>
+ <Build>6</Build>
+ <Revision>0</Revision>
+ </Version>
+ <ExtensionDescription>ShortCut'er let you create keyboard shortcuts to any MP screen, like TV, Videos, Music, etc..
+
+For each shortcut you can define a keystroke combination such as:
+
+<CTRL> + <ALT> + <SHIFT> + <KEY></ExtensionDescription>
+ <VersionDescription> - completely overrides at start-up (reset CapsLock & NumLock)
+ - improving the shortcut key assignment
+ - management cyclical destinations for shotcuts
+ - management go to previous window
+ - add clone shortcut command</VersionDescription>
+ <DevelopmentStatus>Stable</DevelopmentStatus>
+ <OnlineLocation>https://svn.code.sf.net/p/mp-plugins/code/trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1</OnlineLocation>
+ <ReleaseDate>2013-12-06T23:10:13</ReleaseDate>
+ <Tags>shortcut,keys,keyboard,imon,remote</Tags>
+ <Location>..\ShortCuter.mpe1</Location>
+ <Params>
+ <Items>
+ <SectionParam Name="Online Icon">
+ <Value>https://svn.code.sf.net/p/mp-plugins/code/trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.png</Value>
+ <ValueType>String</ValueType>
+ <Description>The icon file of the package stored online (jpg,png,bmp)</Description>
+ </SectionParam>
+ <SectionParam Name="Configuration file">
+ <Value>%Plugins%\process\ShortCuter.dll</Value>
+ <ValueType>Template</ValueType>
+ <Description>The file used to configure the extension.
+ If it has .exe extension the will be executed.
+ If it has .dll extension it's started like MP plugin configuration.</Description>
+ </SectionParam>
+ <SectionParam Name="Online Screenshots">
+ <Value>https://svn.code.sf.net/p/mp-plugins/code/trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/Screenshots/Config.png</Value>
+ <ValueType>String</ValueType>
+ <Description>Online stored screenshot urls separated by ; </Description>
+ </SectionParam>
+ <SectionParam Name="Force to uninstall on update">
+ <Value>YES</Value>
+ <ValueType>Bool</ValueType>
+ <Description>Show dialog and force to uninstall previous version when updating an extension. Should only be disabled if you are using an NSIS/MSI installer.</Description>
+ </SectionParam>
+ </Items>
+ </Params>
+ </GeneralInfo>
+ <UniqueFileList>
+ <Items />
+ </UniqueFileList>
+ <ProjectSettings>
+ <FolderGroups />
+ </ProjectSettings>
+ <IsSkin>false</IsSkin>
+ </PackageClass>
</Items>
</ExtensionCollection>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-16 18:03:43
|
Revision: 4732
http://sourceforge.net/p/mp-plugins/code/4732
Author: nicsergio
Date: 2014-01-16 18:03:40 +0000 (Thu, 16 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/Files/ShortCuter.dll
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.ChangeLog.txt
trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/Files/ShortCuter.dll
===================================================================
(Binary files differ)
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2 2014-01-16 13:19:41 UTC (rev 4731)
+++ trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/MpeProject/ShortCuter.xmp2 2014-01-16 18:03:40 UTC (rev 4732)
@@ -253,21 +253,7 @@
</Items>
</Dependencies>
<PluginDependencies>
- <Items>
- <PluginDependencyItem AssemblyName="ShortCuter.dll">
- <CompatibleVersion>
- <Items>
- <CompatibleVersionItem>
- <MinRequiredVersion>1.1.6.27644</MinRequiredVersion>
- <DesignedForVersion>1.1.6.27644</DesignedForVersion>
- </CompatibleVersionItem>
- </Items>
- </CompatibleVersion>
- <SubSystemsUsed>
- <Items />
- </SubSystemsUsed>
- </PluginDependencyItem>
- </Items>
+ <Items />
</PluginDependencies>
<GeneralInfo>
<Name>ShortCut'er</Name>
@@ -279,7 +265,7 @@
<Version>
<Major>2</Major>
<Minor>0</Minor>
- <Build>5</Build>
+ <Build>6</Build>
<Revision>0</Revision>
</Version>
<ExtensionDescription>ShortCut'er let you create keyboard shortcuts to any MP screen, like TV, Videos, Music, etc..
@@ -287,7 +273,11 @@
For each shortcut you can define a keystroke combination such as:
<CTRL> + <ALT> + <SHIFT> + <KEY></ExtensionDescription>
- <VersionDescription>This is a remake of the great process plugin ShortCut'er.</VersionDescription>
+ <VersionDescription> > completely overrides at start-up (reset CapsLock & NumLock)
+ > improving the shortcut key assignment
+ > management cyclical destinations for shotcuts
+ > management go to previous window
+ > add clone shortcut command</VersionDescription>
<DevelopmentStatus>Stable</DevelopmentStatus>
<OnlineLocation>https://svn.code.sf.net/p/mp-plugins/code/trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1</OnlineLocation>
<ReleaseDate>2013-12-06T23:10:13</ReleaseDate>
@@ -338,21 +328,21 @@
<Param1 />
<UpdateOption>OverwriteIfOlder</UpdateOption>
<LocalFileName>ShortCuterInstall.png</LocalFileName>
- <ZipFileName>Installer{CopyFile}\{2f56d85c-297e-40b6-86cf-2116f94b3814}-ShortCuterInstall.png</ZipFileName>
+ <ZipFileName>Installer{CopyFile}\{28d32543-566e-4f69-add5-460fb239b61e}-ShortCuterInstall.png</ZipFileName>
<DestinationFilename />
</FileItem>
<FileItem InstallType="CopyFile" SystemFile="true" Modified="true">
<Param1 />
<UpdateOption>OverwriteIfOlder</UpdateOption>
<LocalFileName>ShortCuterProgress.png</LocalFileName>
- <ZipFileName>Installer{CopyFile}\{4d3abb33-1e7a-4a72-bb34-2b1262d12f6a}-ShortCuterProgress.png</ZipFileName>
+ <ZipFileName>Installer{CopyFile}\{39363550-6810-4aa6-b982-57016ded130e}-ShortCuterProgress.png</ZipFileName>
<DestinationFilename />
</FileItem>
<FileItem InstallType="CopyFile" SystemFile="true" Modified="true">
<Param1 />
<UpdateOption>OverwriteIfOlder</UpdateOption>
<LocalFileName>ShortCuter.png</LocalFileName>
- <ZipFileName>Installer{CopyFile}\{3cb71e01-858f-4e36-981b-4461f70c06bd}-ShortCuter.png</ZipFileName>
+ <ZipFileName>Installer{CopyFile}\{05c09032-0533-4512-8750-6e6385f43d65}-ShortCuter.png</ZipFileName>
<DestinationFilename />
</FileItem>
</Items>
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.ChangeLog.txt
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.ChangeLog.txt 2014-01-16 13:19:41 UTC (rev 4731)
+++ trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.ChangeLog.txt 2014-01-16 18:03:40 UTC (rev 4732)
@@ -1,3 +1,12 @@
+- V2.0.6 (01/16/2014)
+
+ > completely overrides at start-up (reset CapsLock & NumLock)
+ > improving the shortcut key assignment
+ > management cyclical destinations for shotcuts
+ > management go to previous window
+ > add clone shortcut command
+
+
- V2.0.5 (12/06/2013)
> add overrides at start-up (reset CapsLock & NumLock)
Modified: trunk/plugins/ShortCuter&SkinEditor/Release/ShortCuter/ShortCuter.mpe1
===================================================================
(Binary files differ)
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-16 13:19:41 UTC (rev 4731)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-16 18:03:40 UTC (rev 4732)
@@ -6,7 +6,7 @@
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{20CEBE32-A39E-4A61-B2BD-90BF16E2AEE8}</ProjectGuid>
- <OutputType>WinExe</OutputType>
+ <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ProcessPlugins.ShortCuter</RootNamespace>
<AssemblyName>ShortCuter</AssemblyName>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-16 13:19:47
|
Revision: 4731
http://sourceforge.net/p/mp-plugins/code/4731
Author: nicsergio
Date: 2014-01-16 13:19:41 +0000 (Thu, 16 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHook.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHook.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHook.cs 2014-01-15 21:09:04 UTC (rev 4730)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHook.cs 2014-01-16 13:19:41 UTC (rev 4731)
@@ -35,30 +35,22 @@
#endregion
public List<Keys> HookedKeys = new List<Keys>(); //Eventuale lista dei tasti da monitorare/intercettare
- private IntPtr hHook = IntPtr.Zero; //Handle dell'hook
- #endregion
+ private IntPtr hHook = IntPtr.Zero; //Handle dell'hook
+ private IntPtr hInstance = IntPtr.Zero; //Handle dell'istanza della libreria esterna
+ #endregion
#region Costruttore/Distruttore
public KeyboardHook()
{
- hook(); //--> installazione dell'hook di sistema
+ hInstance = LoadLibrary("User32"); //--> caricamento libreria esterna e memorizzazione handle
}
~KeyboardHook()
{
- unhook(); //--> disinstallazione dell'hook di sistema
+ unhook(); //--> eventuale disinstallazione dell'hook di sistema
}
#endregion
#region Metodi Privati
- private void hook() //Installazione dell'hook di sistema
- {
- IntPtr hInstance = LoadLibrary("User32");
- hHook = SetWindowsHookEx(WH_KEYBOARD_LL, hookProc, hInstance, 0);
- }
- public void unhook() //Disinstallazione dell'hook di sistema
- {
- UnhookWindowsHookEx(hHook);
- }
private int hookProc(int code, int wParam, ref HookStruct lParam) //Metodo richiamato per l'hook di tastiera
{
if (code >= 0) //Se codice hook valorizzato
@@ -83,8 +75,20 @@
}
#endregion
- #region Eventi
- public event KeyEventHandler KeyDown; //Evento di pressione di uno dei tasti da monitorare
+ #region Metodi Pubblici
+ public void hook() //Installazione dell'hook di sistema
+ {
+ hHook = SetWindowsHookEx(WH_KEYBOARD_LL, hookProc, hInstance, 0);
+ }
+ public void unhook() //Disinstallazione dell'hook di sistema
+ {
+ try { UnhookWindowsHookEx(hHook); }
+ catch { }
+ }
+ #endregion
+
+ #region Eventi
+ public event KeyEventHandler KeyDown; //Evento di pressione di uno dei tasti da monitorare
public event KeyEventHandler KeyUp; //Evento di rilascio di uno dei tasti da monitorare
#endregion
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs 2014-01-15 21:09:04 UTC (rev 4730)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs 2014-01-16 13:19:41 UTC (rev 4731)
@@ -100,6 +100,7 @@
this.shortCutsDataGridView.TabIndex = 0;
this.shortCutsDataGridView.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.shortCutsDataGridView_CellDoubleClick);
this.shortCutsDataGridView.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.shortCutsDataGridView_CellEndEdit);
+ this.shortCutsDataGridView.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.shortCutsDataGridView_CellFormatting);
this.shortCutsDataGridView.CurrentCellChanged += new System.EventHandler(this.shortCutsDataGridView_CurrentCellChanged);
this.shortCutsDataGridView.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.shortCutsDataGridView_DataError);
this.shortCutsDataGridView.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.shortCutsDataGridView_EditingControlShowing);
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs 2014-01-15 21:09:04 UTC (rev 4730)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs 2014-01-16 13:19:41 UTC (rev 4731)
@@ -335,6 +335,10 @@
ShowLinkItem();
MoveItemsListButtonsEnable();
}
+ private void shortCutsDataGridView_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
+ {
+ shortCutsDataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = shortCutsDataGridView.Columns[e.ColumnIndex].ToolTipText;
+ }
private void shortCutsDataGridView_DataError(object sender, DataGridViewDataErrorEventArgs e)
{
//Gestione evento per evitare messaggi di errore (esempio se file effetto sonoro non disponibile nella skin)
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs 2014-01-15 21:09:04 UTC (rev 4730)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs 2014-01-16 13:19:41 UTC (rev 4731)
@@ -19,24 +19,24 @@
mySc = currentShortCut; //--> impostazione riferimento a shortcut corrente
Text = "'" + mySc.Caption + "' ShortCut"; //--> titolo della finestra corrispondente a nome shorcut
keyLabel.Text = mySc.Key; //--> visualizzazione tasto correntemente assegnato
+
+ keyboardHook = new KeyboardHook(); //--> creazione oggetto per gestione hook di tastiera
+ keyboardHook.KeyDown += new KeyEventHandler(keyboardHook_KeyDown); //--> sottoscrizione evento di KeyDown
}
#endregion
#region Consumazione Eventi
private void ShortCuterKeyConfig_Load(object sender, EventArgs e)
{
- keyboardHook = new KeyboardHook(); //--> creazione hook di tastiera
- keyboardHook.KeyDown += new KeyEventHandler(keyboardHook_KeyDown); //--> sottoscrizione evento di KeyDown
+ keyboardHook.hook(); //--> attivazione hook di tastiera
}
private void ShortCuterKeyConfig_FormClosing(object sender, FormClosingEventArgs e)
{
- if (keyboardHook != null)
- keyboardHook = null; //--> distruzione hook
+ keyboardHook.unhook(); //--> disattivazione hook di tastiera
}
private void okPictureBox_Click(object sender, EventArgs e)
{
mySc.Key = keyLabel.Text; //--> memorizzazione tasto assegnato allo shortcut
- keyboardHook.unhook();
this.Close(); //--> chiusura form
}
private void keyboardHook_KeyDown(object sender, KeyEventArgs e) //Evento KeyDown intercettato dall'hook
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-15 21:09:06
|
Revision: 4730
http://sourceforge.net/p/mp-plugins/code/4730
Author: nicsergio
Date: 2014-01-15 21:09:04 +0000 (Wed, 15 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHook.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHook.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHook.cs 2014-01-14 21:31:50 UTC (rev 4729)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHook.cs 2014-01-15 21:09:04 UTC (rev 4730)
@@ -55,7 +55,7 @@
IntPtr hInstance = LoadLibrary("User32");
hHook = SetWindowsHookEx(WH_KEYBOARD_LL, hookProc, hInstance, 0);
}
- private void unhook() //Disinstallazione dell'hook di sistema
+ public void unhook() //Disinstallazione dell'hook di sistema
{
UnhookWindowsHookEx(hHook);
}
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs 2014-01-14 21:31:50 UTC (rev 4729)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs 2014-01-15 21:09:04 UTC (rev 4730)
@@ -367,7 +367,10 @@
private void rowCopyButton_Click(object sender, EventArgs e)
{
if (myShortCuts.Items.Count > 0)
+ {
myShortCuts.Items.Insert(shortCutsDataGridView.CurrentRow.Index, myShortCuts.Items[shortCutsDataGridView.CurrentRow.Index].Clone());
+ shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Selected = true;
+ }
}
private void rowUpButton_Click(object sender, EventArgs e)
{
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs 2014-01-14 21:31:50 UTC (rev 4729)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs 2014-01-15 21:09:04 UTC (rev 4730)
@@ -36,6 +36,7 @@
private void okPictureBox_Click(object sender, EventArgs e)
{
mySc.Key = keyLabel.Text; //--> memorizzazione tasto assegnato allo shortcut
+ keyboardHook.unhook();
this.Close(); //--> chiusura form
}
private void keyboardHook_KeyDown(object sender, KeyEventArgs e) //Evento KeyDown intercettato dall'hook
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-14 21:31:54
|
Revision: 4729
http://sourceforge.net/p/mp-plugins/code/4729
Author: nicsergio
Date: 2014-01-14 21:31:50 +0000 (Tue, 14 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/Common/My.Common.csproj
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.resx
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs
Added Paths:
-----------
trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/RowsCopy.png
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/Common/My.Common.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/Common/My.Common.csproj 2014-01-14 20:55:15 UTC (rev 4728)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/Common/My.Common.csproj 2014-01-14 21:31:50 UTC (rev 4729)
@@ -63,6 +63,7 @@
<Content Include="Resources\Images\RowEdit.png" />
<Content Include="Resources\Images\RowRemove.png" />
<Content Include="Resources\Images\Rows.png" />
+ <Content Include="Resources\Images\RowsCopy.png" />
<Content Include="Resources\Images\RowUp.png" />
<Content Include="Resources\Images\TreeViewIcons\BasicHome.png" />
<Content Include="Resources\Images\TreeViewIcons\BD.png" />
Added: trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/RowsCopy.png
===================================================================
(Binary files differ)
Index: trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/RowsCopy.png
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/RowsCopy.png 2014-01-14 20:55:15 UTC (rev 4728)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/RowsCopy.png 2014-01-14 21:31:50 UTC (rev 4729)
Property changes on: trunk/plugins/ShortCuter&SkinEditor/Source/Common/Resources/Images/RowsCopy.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs 2014-01-14 20:55:15 UTC (rev 4728)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs 2014-01-14 21:31:50 UTC (rev 4729)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Il codice è stato generato da uno strumento.
-// Versione runtime:4.0.30319.18052
+// Versione runtime:4.0.30319.17929
//
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
// il codice viene rigenerato.
@@ -123,6 +123,16 @@
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
+ internal static System.Drawing.Bitmap RowsCopy {
+ get {
+ object obj = ResourceManager.GetObject("RowsCopy", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
internal static System.Drawing.Bitmap RowUp {
get {
object obj = ResourceManager.GetObject("RowUp", resourceCulture);
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx 2014-01-14 20:55:15 UTC (rev 4728)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx 2014-01-14 21:31:50 UTC (rev 4729)
@@ -124,7 +124,6 @@
<data name="Info" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\common\resources\images\info.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
- <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="Ok" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\common\resources\images\ok.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
@@ -137,6 +136,10 @@
<data name="RowRemove" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\common\resources\images\rowremove.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
+ <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+ <data name="RowsCopy" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\..\common\resources\images\rowscopy.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
<data name="RowUp" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\common\resources\images\rowup.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-14 20:55:15 UTC (rev 4728)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-14 21:31:50 UTC (rev 4729)
@@ -6,7 +6,7 @@
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{20CEBE32-A39E-4A61-B2BD-90BF16E2AEE8}</ProjectGuid>
- <OutputType>Library</OutputType>
+ <OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ProcessPlugins.ShortCuter</RootNamespace>
<AssemblyName>ShortCuter</AssemblyName>
@@ -171,6 +171,9 @@
<Content Include="..\Common\Resources\Images\RowRemove.png">
<Link>Resources\Images\RowRemove.png</Link>
</Content>
+ <Content Include="..\Common\Resources\Images\RowsCopy.png">
+ <Link>Resources\Images\RowsCopy.png</Link>
+ </Content>
<Content Include="..\Common\Resources\Images\RowUp.png">
<Link>Resources\Images\RowUp.png</Link>
</Content>
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs 2014-01-14 20:55:15 UTC (rev 4728)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs 2014-01-14 21:31:50 UTC (rev 4729)
@@ -59,6 +59,7 @@
this.numLockComboBox = new System.Windows.Forms.ComboBox();
this.capsLockGroupBox = new System.Windows.Forms.GroupBox();
this.capsLockComboBox = new System.Windows.Forms.ComboBox();
+ this.rowCopyButton = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.shortCutsDataGridView)).BeginInit();
this.itemsTabControl.SuspendLayout();
this.linksTabPage.SuspendLayout();
@@ -404,11 +405,24 @@
this.capsLockComboBox.Size = new System.Drawing.Size(133, 21);
this.capsLockComboBox.TabIndex = 0;
//
+ // rowCopyButton
+ //
+ this.rowCopyButton.AutoSize = true;
+ this.rowCopyButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.rowCopyButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowsCopy;
+ this.rowCopyButton.Location = new System.Drawing.Point(94, 264);
+ this.rowCopyButton.Name = "rowCopyButton";
+ this.rowCopyButton.Size = new System.Drawing.Size(38, 38);
+ this.rowCopyButton.TabIndex = 38;
+ this.rowCopyButton.UseVisualStyleBackColor = true;
+ this.rowCopyButton.Click += new System.EventHandler(this.rowCopyButton_Click);
+ //
// ShortCuterConfig
//
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.rowCopyButton);
this.Controls.Add(this.overridesGroupBox);
this.Controls.Add(this.saveButton);
this.Controls.Add(this.rowDownButton);
@@ -480,6 +494,7 @@
private System.Windows.Forms.GroupBox numLockGroupBox;
private System.Windows.Forms.ComboBox capsLockComboBox;
private System.Windows.Forms.ComboBox numLockComboBox;
+ private System.Windows.Forms.Button rowCopyButton;
}
}
\ No newline at end of file
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs 2014-01-14 20:55:15 UTC (rev 4728)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs 2014-01-14 21:31:50 UTC (rev 4729)
@@ -44,6 +44,7 @@
toolTip.SetToolTip(skinLinksTreeView, "Double click to set the link's parameter to shortcut");
toolTip.SetToolTip(rowAddButton, "Add shortcut to list");
toolTip.SetToolTip(rowRemoveButton, "Remove selected shortcut from list");
+ toolTip.SetToolTip(rowCopyButton, "Copy selected shortcut to 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");
@@ -77,7 +78,7 @@
keyColumn.DefaultCellStyle.Font = new Font("Microsoft Sans Serif", 8, FontStyle.Bold);
keyColumn.DefaultCellStyle.BackColor = Color.Yellow;
keyColumn.ReadOnly = true;
- keyColumn.ToolTipText = "Key assigned to the shortcut";
+ keyColumn.ToolTipText = "Key assigned to the shortcut (double click on the cell)";
DataGridViewCheckBoxColumn ctrlColumn = new DataGridViewCheckBoxColumn();
ctrlColumn.DataPropertyName = "Ctrl";
@@ -344,6 +345,7 @@
{
unsavedChanges = true;
rowRemoveButton.Enabled = (myShortCuts.Items.Count > 0);
+ rowCopyButton.Enabled = (myShortCuts.Items.Count > 0);
MoveItemsListButtonsEnable();
}
private void rowAddButton_Click(object sender, EventArgs e)
@@ -362,6 +364,11 @@
shortCutsDataGridView.CurrentCell = shortCutsDataGridView[0, 0];
}
}
+ private void rowCopyButton_Click(object sender, EventArgs e)
+ {
+ if (myShortCuts.Items.Count > 0)
+ myShortCuts.Items.Insert(shortCutsDataGridView.CurrentRow.Index, myShortCuts.Items[shortCutsDataGridView.CurrentRow.Index].Clone());
+ }
private void rowUpButton_Click(object sender, EventArgs e)
{
MoveItemList(true);
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.resx
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.resx 2014-01-14 20:55:15 UTC (rev 4728)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.resx 2014-01-14 21:31:50 UTC (rev 4729)
@@ -201,6 +201,9 @@
<metadata name="capsLockComboBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
+ <metadata name="rowCopyButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs 2014-01-14 20:55:15 UTC (rev 4728)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs 2014-01-14 21:31:50 UTC (rev 4729)
@@ -77,6 +77,20 @@
else
return false;
}
+ public ShortCut Clone() //Clonazione shortcut
+ {
+ ShortCut sc = new ShortCut();
+ sc.Caption = _caption;
+ sc.Key = _key;
+ sc.Ctrl = _ctrl;
+ sc.Alt = _alt;
+ sc.Shift = _shift;
+ sc.WindowID = _windowID;
+ sc.LoadParameter = _loadParameter;
+ sc.Return = _return;
+ sc.SoundEffect = _soundEffect;
+ return sc;
+ }
public override string ToString() //Override metodo ToString per stampare le proprietà dello shortcut
{
string ret;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-14 20:55:18
|
Revision: 4728
http://sourceforge.net/p/mp-plugins/code/4728
Author: nicsergio
Date: 2014-01-14 20:55:15 +0000 (Tue, 14 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs
Removed Paths:
-------------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHookWorker.cs
Deleted: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHookWorker.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHookWorker.cs 2014-01-14 15:44:20 UTC (rev 4727)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/KeyboardHookWorker.cs 2014-01-14 20:55:15 UTC (rev 4728)
@@ -1,91 +0,0 @@
-using System.Collections.Generic;
-using System.Threading;
-using System.Windows.Forms;
-
-namespace ProcessPlugins.ShortCuter
-{
- internal class KeyboardHookWorker //Classe per gestione hook di tastiera su thread separato (problemi con timeout di Windows)
- {
- #region Delegati/Classi
- public delegate bool HookKeyDownDelegate(Keys KeyCode); //Dichiarazione delegato per gestione evento di KeyDown
- private class HiddenForm : Form //Classe form nascosta (per attivazione su thread separato)
- {
- public HiddenForm()
- {
- Visible = false;
- SetTopLevel(false);
- }
- }
- #endregion
-
- #region Dati
- private readonly HookKeyDownDelegate HookKeyDown; //Delegato per gestione evento di KeyDown (passato dal chiamante)
- private Thread hookThread; //Thread di attivazione hook
- private Form hookForm; //Form del thread per attivazione hook
- private KeyboardHook keyboardHook; //Istanza classe KeyboardHook (gestione hook di tastiera)
- #endregion
-
- #region Costruttore
- public KeyboardHookWorker(HookKeyDownDelegate hookKeyDown)
- {
- HookKeyDown = hookKeyDown; //--> assegnazione delegato per gestione evento KeyDown
- }
- #endregion
-
- #region Metodi Privati
- protected virtual List<Keys> AddHookedKeys() //Metodo virtuale per implementare una lista di tasti da controllare
- { //[esecuzione su thread secondario]
- return new List<Keys>(); //--> lista vuota (tutti i tasti vengono monitorati)
- }
- private void Run() //Procedura di avvio thread secondario
- { //[esecuzione su thread secondario]
- keyboardHook = new KeyboardHook(); //--> creazione hook di tastiera
- keyboardHook.HookedKeys = AddHookedKeys(); //--> aggiunta eventuale lista di tasti da monitorare
- keyboardHook.KeyDown += new KeyEventHandler(keyboardHook_KeyDown); //--> sottoscrizione evento di KeyDown
- hookForm = new HiddenForm(); //--> creazione forma nascosta
- Application.Run(hookForm); //--> avvio applicazione con form nascosta
- }
- #endregion
-
- #region Metodi Pubblici
- public void Start() //Avvio (o ri-avvio) thread di hook
- {
- Stop(); //--> eventuale stop thread
- hookThread = new Thread(Run); //--> creazione thread
- hookThread.Priority = ThreadPriority.Highest; //--> impostazione alta priorità (problemi di timeout con Win7)
- hookThread.Name = "HookWorker"; //--> impostazione nome
- hookThread.Start(); //--> avvio thread
- }
- public void Stop() //Stop thread di hook
- {
- if (hookThread != null)
- {
- if (hookThread.IsAlive)
- {
- try
- {
- if (hookForm != null)
- hookForm.Invoke((MethodInvoker)delegate //--> invocazione (sul thread secondario) del delegato per stoppare il thread
- {
- if (keyboardHook != null)
- keyboardHook = null; //--> distruzione hook
- Application.ExitThread(); //--> terminazione thread secondario
- });
- hookThread.Join(); //--> attesa sul thread principale della terminazione del thread secondario
- }
- catch { }
- }
- hookThread = null;
- }
- }
- #endregion
-
- #region Consumazione Eventi
- private void keyboardHook_KeyDown(object sender, KeyEventArgs e) //Evento KeyDown intercettato dall'hook
- { //[esecuzione su thread secondario]
- if (HookKeyDown != null) //Se delegato di gestione evento assegnato
- e.Handled = HookKeyDown(e.KeyCode); //--> richiamo del delegato (ritorna true se evento gestito: tasto da non passare al sistema)
- }
- #endregion
- }
-}
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-14 15:44:20 UTC (rev 4727)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-14 20:55:15 UTC (rev 4728)
@@ -6,7 +6,7 @@
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{20CEBE32-A39E-4A61-B2BD-90BF16E2AEE8}</ProjectGuid>
- <OutputType>WinExe</OutputType>
+ <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ProcessPlugins.ShortCuter</RootNamespace>
<AssemblyName>ShortCuter</AssemblyName>
@@ -81,7 +81,6 @@
<Link>VersionInfo.designer.cs</Link>
<DependentUpon>VersionInfo.cs</DependentUpon>
</Compile>
- <Compile Include="KeyboardHookWorker.cs" />
<Compile Include="KeyboardHook.cs" />
<Compile Include="LockKeys.cs" />
<Compile Include="Program.cs" />
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs 2014-01-14 15:44:20 UTC (rev 4727)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs 2014-01-14 20:55:15 UTC (rev 4728)
@@ -1,65 +1,49 @@
using System;
+using System.Drawing;
using System.Windows.Forms;
-using System.Drawing;
namespace ProcessPlugins.ShortCuter
{
public partial class ShortCuterKeyConfig : Form //Form per assegnazione key allo shortcut corrente
{
#region Dati
- private ShortCut mySc;
-
+ private ShortCut mySc; //Istanza classe ShortCut per gestione shorcut corrente
private KeyboardHook keyboardHook; //Istanza classe KeyboardHook (gestione hook di tastiera)
-
#endregion
#region Costruttore
public ShortCuterKeyConfig(ShortCut currentShortCut, Point startLocation)
{
InitializeComponent();
- Location = startLocation;
- mySc = currentShortCut;
- Text = "'" + mySc.Caption + "' ShortCut";
- keyLabel.Text = mySc.Key;
-
- keyboardHook = new KeyboardHook(); //--> creazione hook di tastiera
- keyboardHook.KeyDown += new KeyEventHandler(keyboardHook_KeyDown); //--> sottoscrizione evento di KeyDown
-
-
+ Location = startLocation; //--> impostazione posizione form
+ mySc = currentShortCut; //--> impostazione riferimento a shortcut corrente
+ Text = "'" + mySc.Caption + "' ShortCut"; //--> titolo della finestra corrispondente a nome shorcut
+ keyLabel.Text = mySc.Key; //--> visualizzazione tasto correntemente assegnato
}
#endregion
#region Consumazione Eventi
- private void okPictureBox_Click(object sender, EventArgs e)
- {
- mySc.Key = keyLabel.Text;
- this.Close();
- }
-
- private void keyboardHook_KeyDown(object sender, KeyEventArgs e) //Evento KeyDown intercettato dall'hook
- { //[esecuzione su thread secondario]
- if (ShortCut.ModifierKeys.Contains(e.KeyCode))
- e.Handled = true; //Se il tasto premuto corrisponde ad un modificatore, viene ignorato
- else
- {
- keyLabel.Text = e.KeyCode.ToString();
- e.Handled = true;
- }
-
- }
- #endregion
-
private void ShortCuterKeyConfig_Load(object sender, EventArgs e)
{
-
+ keyboardHook = new KeyboardHook(); //--> creazione hook di tastiera
+ keyboardHook.KeyDown += new KeyEventHandler(keyboardHook_KeyDown); //--> sottoscrizione evento di KeyDown
}
-
private void ShortCuterKeyConfig_FormClosing(object sender, FormClosingEventArgs e)
{
if (keyboardHook != null)
- keyboardHook = null;
+ keyboardHook = null; //--> distruzione hook
}
-
-
+ private void okPictureBox_Click(object sender, EventArgs e)
+ {
+ mySc.Key = keyLabel.Text; //--> memorizzazione tasto assegnato allo shortcut
+ this.Close(); //--> chiusura form
+ }
+ private void keyboardHook_KeyDown(object sender, KeyEventArgs e) //Evento KeyDown intercettato dall'hook
+ {
+ if (!ShortCut.ModifierKeys.Contains(e.KeyCode))
+ keyLabel.Text = e.KeyCode.ToString(); //--> visualizzazione tasto premuto, se non corrisponde ad un modificatore
+ e.Handled = true; //--> il tasto premuto viene ignorato
+ }
+ #endregion
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-14 15:44:22
|
Revision: 4727
http://sourceforge.net/p/mp-plugins/code/4727
Author: nicsergio
Date: 2014-01-14 15:44:20 +0000 (Tue, 14 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.Designer.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.resx
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-13 19:33:33 UTC (rev 4726)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-14 15:44:20 UTC (rev 4727)
@@ -6,7 +6,7 @@
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{20CEBE32-A39E-4A61-B2BD-90BF16E2AEE8}</ProjectGuid>
- <OutputType>Library</OutputType>
+ <OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ProcessPlugins.ShortCuter</RootNamespace>
<AssemblyName>ShortCuter</AssemblyName>
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.Designer.cs 2014-01-13 19:33:33 UTC (rev 4726)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.Designer.cs 2014-01-14 15:44:20 UTC (rev 4727)
@@ -52,7 +52,7 @@
this.keyLabel.Name = "keyLabel";
this.keyLabel.Size = new System.Drawing.Size(163, 23);
this.keyLabel.TabIndex = 0;
- this.keyLabel.Text = "W";
+ this.keyLabel.Text = "?";
this.keyLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// okPictureBox
@@ -81,6 +81,8 @@
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "ShortCut\'s Key";
+ this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ShortCuterKeyConfig_FormClosing);
+ this.Load += new System.EventHandler(this.ShortCuterKeyConfig_Load);
this.keyGroupBox.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.okPictureBox)).EndInit();
this.ResumeLayout(false);
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs 2014-01-13 19:33:33 UTC (rev 4726)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs 2014-01-14 15:44:20 UTC (rev 4727)
@@ -8,6 +8,9 @@
{
#region Dati
private ShortCut mySc;
+
+ private KeyboardHook keyboardHook; //Istanza classe KeyboardHook (gestione hook di tastiera)
+
#endregion
#region Costruttore
@@ -18,17 +21,45 @@
mySc = currentShortCut;
Text = "'" + mySc.Caption + "' ShortCut";
keyLabel.Text = mySc.Key;
+
+ keyboardHook = new KeyboardHook(); //--> creazione hook di tastiera
+ keyboardHook.KeyDown += new KeyEventHandler(keyboardHook_KeyDown); //--> sottoscrizione evento di KeyDown
+
+
}
#endregion
#region Consumazione Eventi
private void okPictureBox_Click(object sender, EventArgs e)
{
- mySc.Key = "X";
+ mySc.Key = keyLabel.Text;
this.Close();
}
+
+ private void keyboardHook_KeyDown(object sender, KeyEventArgs e) //Evento KeyDown intercettato dall'hook
+ { //[esecuzione su thread secondario]
+ if (ShortCut.ModifierKeys.Contains(e.KeyCode))
+ e.Handled = true; //Se il tasto premuto corrisponde ad un modificatore, viene ignorato
+ else
+ {
+ keyLabel.Text = e.KeyCode.ToString();
+ e.Handled = true;
+ }
+
+ }
#endregion
+ private void ShortCuterKeyConfig_Load(object sender, EventArgs e)
+ {
+ }
+
+ private void ShortCuterKeyConfig_FormClosing(object sender, FormClosingEventArgs e)
+ {
+ if (keyboardHook != null)
+ keyboardHook = null;
+ }
+
+
}
}
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.resx
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.resx 2014-01-13 19:33:33 UTC (rev 4726)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.resx 2014-01-14 15:44:20 UTC (rev 4727)
@@ -123,6 +123,9 @@
<metadata name="keyLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
+ <metadata name="keyLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
<metadata name="okPictureBox.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.
|
|
From: <nic...@us...> - 2014-01-13 19:33:36
|
Revision: 4726
http://sourceforge.net/p/mp-plugins/code/4726
Author: nicsergio
Date: 2014-01-13 19:33:33 +0000 (Mon, 13 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-13 16:51:24 UTC (rev 4725)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-13 19:33:33 UTC (rev 4726)
@@ -6,7 +6,7 @@
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{20CEBE32-A39E-4A61-B2BD-90BF16E2AEE8}</ProjectGuid>
- <OutputType>WinExe</OutputType>
+ <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ProcessPlugins.ShortCuter</RootNamespace>
<AssemblyName>ShortCuter</AssemblyName>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-13 16:51:28
|
Revision: 4725
http://sourceforge.net/p/mp-plugins/code/4725
Author: nicsergio
Date: 2014-01-13 16:51:24 +0000 (Mon, 13 Jan 2014)
Log Message:
-----------
Removed Paths:
-------------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx
Deleted: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs 2014-01-13 16:51:01 UTC (rev 4724)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs 2014-01-13 16:51:24 UTC (rev 4725)
@@ -1,484 +0,0 @@
-namespace ProcessPlugins.ShortCuter
-{
- partial class ShortCuterForm
- {
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.IContainer components = null;
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ShortCuterForm));
- this.shortCutsDataGridView = new System.Windows.Forms.DataGridView();
- this.itemsTabControl = new System.Windows.Forms.TabControl();
- this.linksTabPage = new System.Windows.Forms.TabPage();
- this.skinLinksTreeView = new System.Windows.Forms.TreeView();
- this.skinTabPage = new System.Windows.Forms.TabPage();
- this.skinFilesListBox = new System.Windows.Forms.ListBox();
- this.linkPropertiesGroupBox = new System.Windows.Forms.GroupBox();
- this.loadParameterGroupBox = new System.Windows.Forms.GroupBox();
- this.loadParameterTextBox = new System.Windows.Forms.TextBox();
- this.windowIdGroupBox = new System.Windows.Forms.GroupBox();
- this.windowIdLabel = new System.Windows.Forms.Label();
- this.skinFileGroupBox = new System.Windows.Forms.GroupBox();
- this.skinFileLabel = new System.Windows.Forms.Label();
- this.toolTip = new System.Windows.Forms.ToolTip(this.components);
- this.updateButton = new System.Windows.Forms.Button();
- this.resetButton = new System.Windows.Forms.Button();
- this.rowDownButton = new System.Windows.Forms.Button();
- this.rowUpButton = new System.Windows.Forms.Button();
- this.infoPictureBox = new System.Windows.Forms.PictureBox();
- this.rowRemoveButton = new System.Windows.Forms.Button();
- this.rowAddButton = new System.Windows.Forms.Button();
- this.propLeftPictureBox = new System.Windows.Forms.PictureBox();
- this.saveButton = new System.Windows.Forms.Button();
- this.overridesGroupBox = new System.Windows.Forms.GroupBox();
- this.numLockGroupBox = new System.Windows.Forms.GroupBox();
- this.numLockComboBox = new System.Windows.Forms.ComboBox();
- this.capsLockGroupBox = new System.Windows.Forms.GroupBox();
- this.capsLockComboBox = new System.Windows.Forms.ComboBox();
- ((System.ComponentModel.ISupportInitialize)(this.shortCutsDataGridView)).BeginInit();
- this.itemsTabControl.SuspendLayout();
- this.linksTabPage.SuspendLayout();
- this.skinTabPage.SuspendLayout();
- this.linkPropertiesGroupBox.SuspendLayout();
- this.loadParameterGroupBox.SuspendLayout();
- this.windowIdGroupBox.SuspendLayout();
- this.skinFileGroupBox.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).BeginInit();
- this.overridesGroupBox.SuspendLayout();
- this.numLockGroupBox.SuspendLayout();
- this.capsLockGroupBox.SuspendLayout();
- this.SuspendLayout();
- //
- // shortCutsDataGridView
- //
- this.shortCutsDataGridView.AllowUserToAddRows = false;
- this.shortCutsDataGridView.AllowUserToDeleteRows = false;
- this.shortCutsDataGridView.AllowUserToResizeRows = false;
- this.shortCutsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(220)))), ((int)(((byte)(227)))));
- dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.shortCutsDataGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
- this.shortCutsDataGridView.ColumnHeadersHeight = 30;
- this.shortCutsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
- this.shortCutsDataGridView.Location = new System.Drawing.Point(6, 304);
- this.shortCutsDataGridView.MultiSelect = false;
- this.shortCutsDataGridView.Name = "shortCutsDataGridView";
- this.shortCutsDataGridView.RowHeadersWidth = 20;
- this.shortCutsDataGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
- this.shortCutsDataGridView.Size = new System.Drawing.Size(1006, 429);
- this.shortCutsDataGridView.TabIndex = 0;
- this.shortCutsDataGridView.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.shortCutsDataGridView_CellEndEdit);
- this.shortCutsDataGridView.CurrentCellChanged += new System.EventHandler(this.shortCutsDataGridView_CurrentCellChanged);
- this.shortCutsDataGridView.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.shortCutsDataGridView_DataError);
- this.shortCutsDataGridView.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.shortCutsDataGridView_EditingControlShowing);
- this.shortCutsDataGridView.Enter += new System.EventHandler(this.shortCutsDataGridView_Enter);
- //
- // itemsTabControl
- //
- this.itemsTabControl.Controls.Add(this.linksTabPage);
- this.itemsTabControl.Controls.Add(this.skinTabPage);
- this.itemsTabControl.ItemSize = new System.Drawing.Size(74, 18);
- this.itemsTabControl.Location = new System.Drawing.Point(266, 8);
- this.itemsTabControl.Name = "itemsTabControl";
- this.itemsTabControl.SelectedIndex = 0;
- this.itemsTabControl.Size = new System.Drawing.Size(330, 260);
- this.itemsTabControl.TabIndex = 1;
- this.itemsTabControl.SelectedIndexChanged += new System.EventHandler(this.itemsTabControl_SelectedIndexChanged);
- this.itemsTabControl.Click += new System.EventHandler(this.itemsTabControl_Click);
- //
- // linksTabPage
- //
- this.linksTabPage.Controls.Add(this.skinLinksTreeView);
- this.linksTabPage.Location = new System.Drawing.Point(4, 22);
- this.linksTabPage.Name = "linksTabPage";
- this.linksTabPage.Padding = new System.Windows.Forms.Padding(3);
- this.linksTabPage.Size = new System.Drawing.Size(322, 234);
- this.linksTabPage.TabIndex = 0;
- this.linksTabPage.Text = "Default Links";
- this.linksTabPage.UseVisualStyleBackColor = true;
- //
- // skinLinksTreeView
- //
- this.skinLinksTreeView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(220)))), ((int)(((byte)(227)))));
- this.skinLinksTreeView.FullRowSelect = true;
- this.skinLinksTreeView.HideSelection = false;
- this.skinLinksTreeView.Location = new System.Drawing.Point(1, 5);
- this.skinLinksTreeView.Name = "skinLinksTreeView";
- this.skinLinksTreeView.Size = new System.Drawing.Size(318, 225);
- this.skinLinksTreeView.TabIndex = 2;
- this.skinLinksTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.skinLinksTreeView_AfterSelect);
- this.skinLinksTreeView.DoubleClick += new System.EventHandler(this.skinLinksTreeView_DoubleClick);
- this.skinLinksTreeView.Enter += new System.EventHandler(this.skinLinksTreeView_Enter);
- //
- // skinTabPage
- //
- this.skinTabPage.Controls.Add(this.skinFilesListBox);
- this.skinTabPage.Location = new System.Drawing.Point(4, 22);
- this.skinTabPage.Name = "skinTabPage";
- this.skinTabPage.Padding = new System.Windows.Forms.Padding(3);
- this.skinTabPage.Size = new System.Drawing.Size(322, 234);
- this.skinTabPage.TabIndex = 1;
- this.skinTabPage.Text = "Skin Files";
- this.skinTabPage.UseVisualStyleBackColor = true;
- //
- // skinFilesListBox
- //
- this.skinFilesListBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(220)))), ((int)(((byte)(227)))));
- this.skinFilesListBox.FormattingEnabled = true;
- this.skinFilesListBox.Location = new System.Drawing.Point(1, 5);
- this.skinFilesListBox.Name = "skinFilesListBox";
- this.skinFilesListBox.Size = new System.Drawing.Size(318, 225);
- this.skinFilesListBox.TabIndex = 0;
- this.skinFilesListBox.SelectedIndexChanged += new System.EventHandler(this.skinFilesListBox_SelectedIndexChanged);
- this.skinFilesListBox.DoubleClick += new System.EventHandler(this.skinFilesListBox_DoubleClick);
- this.skinFilesListBox.Enter += new System.EventHandler(this.skinFilesListBox_Enter);
- //
- // linkPropertiesGroupBox
- //
- this.linkPropertiesGroupBox.Controls.Add(this.loadParameterGroupBox);
- this.linkPropertiesGroupBox.Controls.Add(this.windowIdGroupBox);
- this.linkPropertiesGroupBox.Controls.Add(this.skinFileGroupBox);
- this.linkPropertiesGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.linkPropertiesGroupBox.Location = new System.Drawing.Point(602, 30);
- this.linkPropertiesGroupBox.Name = "linkPropertiesGroupBox";
- this.linkPropertiesGroupBox.Size = new System.Drawing.Size(320, 175);
- this.linkPropertiesGroupBox.TabIndex = 31;
- this.linkPropertiesGroupBox.TabStop = false;
- this.linkPropertiesGroupBox.Text = "Link Properties";
- //
- // loadParameterGroupBox
- //
- this.loadParameterGroupBox.Controls.Add(this.loadParameterTextBox);
- this.loadParameterGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.loadParameterGroupBox.Location = new System.Drawing.Point(4, 103);
- this.loadParameterGroupBox.Name = "loadParameterGroupBox";
- this.loadParameterGroupBox.Size = new System.Drawing.Size(312, 68);
- this.loadParameterGroupBox.TabIndex = 37;
- this.loadParameterGroupBox.TabStop = false;
- this.loadParameterGroupBox.Text = "Load Parameter:";
- //
- // loadParameterTextBox
- //
- this.loadParameterTextBox.BackColor = System.Drawing.SystemColors.Control;
- this.loadParameterTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
- this.loadParameterTextBox.ForeColor = System.Drawing.Color.Blue;
- this.loadParameterTextBox.Location = new System.Drawing.Point(6, 19);
- this.loadParameterTextBox.Multiline = true;
- this.loadParameterTextBox.Name = "loadParameterTextBox";
- this.loadParameterTextBox.ReadOnly = true;
- this.loadParameterTextBox.Size = new System.Drawing.Size(300, 43);
- this.loadParameterTextBox.TabIndex = 39;
- this.loadParameterTextBox.Text = "-";
- this.loadParameterTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // windowIdGroupBox
- //
- this.windowIdGroupBox.Controls.Add(this.windowIdLabel);
- this.windowIdGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.windowIdGroupBox.Location = new System.Drawing.Point(4, 63);
- this.windowIdGroupBox.Name = "windowIdGroupBox";
- this.windowIdGroupBox.Size = new System.Drawing.Size(312, 34);
- this.windowIdGroupBox.TabIndex = 36;
- this.windowIdGroupBox.TabStop = false;
- this.windowIdGroupBox.Text = "Window ID:";
- //
- // windowIdLabel
- //
- this.windowIdLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.windowIdLabel.ForeColor = System.Drawing.Color.Blue;
- this.windowIdLabel.Location = new System.Drawing.Point(6, 16);
- this.windowIdLabel.Name = "windowIdLabel";
- this.windowIdLabel.Size = new System.Drawing.Size(300, 13);
- this.windowIdLabel.TabIndex = 6;
- this.windowIdLabel.Text = "-";
- this.windowIdLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // skinFileGroupBox
- //
- this.skinFileGroupBox.Controls.Add(this.skinFileLabel);
- this.skinFileGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.skinFileGroupBox.Location = new System.Drawing.Point(4, 23);
- this.skinFileGroupBox.Name = "skinFileGroupBox";
- this.skinFileGroupBox.Size = new System.Drawing.Size(312, 34);
- this.skinFileGroupBox.TabIndex = 6;
- this.skinFileGroupBox.TabStop = false;
- this.skinFileGroupBox.Text = "Skin File:";
- //
- // skinFileLabel
- //
- this.skinFileLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.skinFileLabel.ForeColor = System.Drawing.Color.Blue;
- this.skinFileLabel.Location = new System.Drawing.Point(6, 16);
- this.skinFileLabel.Name = "skinFileLabel";
- this.skinFileLabel.Size = new System.Drawing.Size(300, 13);
- this.skinFileLabel.TabIndex = 2;
- this.skinFileLabel.Text = "-";
- this.skinFileLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // toolTip
- //
- this.toolTip.ShowAlways = true;
- //
- // updateButton
- //
- this.updateButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
- this.updateButton.Location = new System.Drawing.Point(67, 84);
- this.updateButton.Name = "updateButton";
- this.updateButton.Size = new System.Drawing.Size(135, 38);
- this.updateButton.TabIndex = 32;
- this.updateButton.Text = "Save and Close";
- this.updateButton.UseVisualStyleBackColor = false;
- this.updateButton.Click += new System.EventHandler(this.updateButton_Click);
- //
- // resetButton
- //
- this.resetButton.Location = new System.Drawing.Point(67, 8);
- this.resetButton.Name = "resetButton";
- this.resetButton.Size = new System.Drawing.Size(133, 23);
- this.resetButton.TabIndex = 33;
- this.resetButton.Text = "Reset Configuration";
- this.resetButton.UseVisualStyleBackColor = true;
- this.resetButton.Click += new System.EventHandler(this.resetButton_Click);
- //
- // rowDownButton
- //
- this.rowDownButton.AutoSize = true;
- this.rowDownButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.rowDownButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowDown;
- this.rowDownButton.Location = new System.Drawing.Point(221, 264);
- this.rowDownButton.Name = "rowDownButton";
- this.rowDownButton.Size = new System.Drawing.Size(38, 38);
- this.rowDownButton.TabIndex = 35;
- this.rowDownButton.UseVisualStyleBackColor = true;
- this.rowDownButton.Click += new System.EventHandler(this.rowDownButton_Click);
- //
- // rowUpButton
- //
- this.rowUpButton.AutoSize = true;
- this.rowUpButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.rowUpButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowUp;
- this.rowUpButton.Location = new System.Drawing.Point(177, 264);
- this.rowUpButton.Name = "rowUpButton";
- this.rowUpButton.Size = new System.Drawing.Size(38, 38);
- this.rowUpButton.TabIndex = 34;
- this.rowUpButton.UseVisualStyleBackColor = true;
- this.rowUpButton.Click += new System.EventHandler(this.rowUpButton_Click);
- //
- // infoPictureBox
- //
- this.infoPictureBox.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.Info;
- this.infoPictureBox.Location = new System.Drawing.Point(990, 5);
- this.infoPictureBox.Name = "infoPictureBox";
- this.infoPictureBox.Size = new System.Drawing.Size(24, 24);
- this.infoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.infoPictureBox.TabIndex = 30;
- this.infoPictureBox.TabStop = false;
- this.infoPictureBox.Click += new System.EventHandler(this.infoPictureBox_Click);
- //
- // rowRemoveButton
- //
- this.rowRemoveButton.AutoSize = true;
- this.rowRemoveButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.rowRemoveButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowRemove;
- this.rowRemoveButton.Location = new System.Drawing.Point(50, 264);
- this.rowRemoveButton.Name = "rowRemoveButton";
- this.rowRemoveButton.Size = new System.Drawing.Size(38, 38);
- this.rowRemoveButton.TabIndex = 26;
- this.rowRemoveButton.UseVisualStyleBackColor = true;
- this.rowRemoveButton.Click += new System.EventHandler(this.rowRemoveButton_Click);
- //
- // rowAddButton
- //
- this.rowAddButton.AutoSize = true;
- this.rowAddButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
- this.rowAddButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowAdd;
- this.rowAddButton.Location = new System.Drawing.Point(6, 264);
- this.rowAddButton.Name = "rowAddButton";
- this.rowAddButton.Size = new System.Drawing.Size(38, 38);
- this.rowAddButton.TabIndex = 25;
- this.rowAddButton.UseVisualStyleBackColor = true;
- this.rowAddButton.Click += new System.EventHandler(this.rowAddButton_Click);
- //
- // propLeftPictureBox
- //
- this.propLeftPictureBox.Enabled = false;
- this.propLeftPictureBox.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.ArrowDown;
- this.propLeftPictureBox.Location = new System.Drawing.Point(360, 257);
- this.propLeftPictureBox.Name = "propLeftPictureBox";
- this.propLeftPictureBox.Size = new System.Drawing.Size(131, 56);
- this.propLeftPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.propLeftPictureBox.TabIndex = 23;
- this.propLeftPictureBox.TabStop = false;
- this.propLeftPictureBox.Visible = false;
- //
- // saveButton
- //
- this.saveButton.Location = new System.Drawing.Point(67, 35);
- this.saveButton.Name = "saveButton";
- this.saveButton.Size = new System.Drawing.Size(133, 23);
- this.saveButton.TabIndex = 36;
- this.saveButton.Text = "Save Configuration";
- this.saveButton.UseVisualStyleBackColor = true;
- this.saveButton.Click += new System.EventHandler(this.saveButton_Click);
- //
- // overridesGroupBox
- //
- this.overridesGroupBox.Controls.Add(this.numLockGroupBox);
- this.overridesGroupBox.Controls.Add(this.capsLockGroupBox);
- this.overridesGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.overridesGroupBox.Location = new System.Drawing.Point(50, 133);
- this.overridesGroupBox.Name = "overridesGroupBox";
- this.overridesGroupBox.Size = new System.Drawing.Size(165, 111);
- this.overridesGroupBox.TabIndex = 37;
- this.overridesGroupBox.TabStop = false;
- this.overridesGroupBox.Text = "Overrides at Start-Up";
- //
- // numLockGroupBox
- //
- this.numLockGroupBox.Controls.Add(this.numLockComboBox);
- this.numLockGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.numLockGroupBox.Location = new System.Drawing.Point(6, 63);
- this.numLockGroupBox.Name = "numLockGroupBox";
- this.numLockGroupBox.Size = new System.Drawing.Size(152, 42);
- this.numLockGroupBox.TabIndex = 38;
- this.numLockGroupBox.TabStop = false;
- this.numLockGroupBox.Text = "Num-Lock Forcing:";
- //
- // numLockComboBox
- //
- this.numLockComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.numLockComboBox.FormattingEnabled = true;
- this.numLockComboBox.Location = new System.Drawing.Point(9, 15);
- this.numLockComboBox.Name = "numLockComboBox";
- this.numLockComboBox.Size = new System.Drawing.Size(133, 21);
- this.numLockComboBox.TabIndex = 1;
- //
- // capsLockGroupBox
- //
- this.capsLockGroupBox.Controls.Add(this.capsLockComboBox);
- this.capsLockGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.capsLockGroupBox.Location = new System.Drawing.Point(6, 15);
- this.capsLockGroupBox.Name = "capsLockGroupBox";
- this.capsLockGroupBox.Size = new System.Drawing.Size(152, 42);
- this.capsLockGroupBox.TabIndex = 37;
- this.capsLockGroupBox.TabStop = false;
- this.capsLockGroupBox.Text = "Caps-Lock Forcing:";
- //
- // capsLockComboBox
- //
- this.capsLockComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.capsLockComboBox.FormattingEnabled = true;
- this.capsLockComboBox.Location = new System.Drawing.Point(9, 15);
- this.capsLockComboBox.Name = "capsLockComboBox";
- this.capsLockComboBox.Size = new System.Drawing.Size(133, 21);
- this.capsLockComboBox.TabIndex = 0;
- //
- // ShortCuterForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1018, 740);
- this.Controls.Add(this.overridesGroupBox);
- this.Controls.Add(this.saveButton);
- this.Controls.Add(this.rowDownButton);
- this.Controls.Add(this.linkPropertiesGroupBox);
- this.Controls.Add(this.rowUpButton);
- this.Controls.Add(this.resetButton);
- this.Controls.Add(this.updateButton);
- this.Controls.Add(this.infoPictureBox);
- this.Controls.Add(this.rowRemoveButton);
- this.Controls.Add(this.rowAddButton);
- this.Controls.Add(this.itemsTabControl);
- this.Controls.Add(this.shortCutsDataGridView);
- this.Controls.Add(this.propLeftPictureBox);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
- this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.MaximizeBox = false;
- this.Name = "ShortCuterForm";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "ShortCut\'er Plugin Configuration";
- this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ShortCuterForm_FormClosing);
- this.Load += new System.EventHandler(this.ShortCuterForm_Load);
- this.Shown += new System.EventHandler(this.ShortCuterForm_Shown);
- ((System.ComponentModel.ISupportInitialize)(this.shortCutsDataGridView)).EndInit();
- this.itemsTabControl.ResumeLayout(false);
- this.linksTabPage.ResumeLayout(false);
- this.skinTabPage.ResumeLayout(false);
- this.linkPropertiesGroupBox.ResumeLayout(false);
- this.loadParameterGroupBox.ResumeLayout(false);
- this.loadParameterGroupBox.PerformLayout();
- this.windowIdGroupBox.ResumeLayout(false);
- this.skinFileGroupBox.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).EndInit();
- this.overridesGroupBox.ResumeLayout(false);
- this.numLockGroupBox.ResumeLayout(false);
- this.capsLockGroupBox.ResumeLayout(false);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.DataGridView shortCutsDataGridView;
- private System.Windows.Forms.TabControl itemsTabControl;
- private System.Windows.Forms.TabPage linksTabPage;
- private System.Windows.Forms.TabPage skinTabPage;
- private System.Windows.Forms.ListBox skinFilesListBox;
- private System.Windows.Forms.PictureBox propLeftPictureBox;
- private System.Windows.Forms.Button rowAddButton;
- private System.Windows.Forms.Button rowRemoveButton;
- private System.Windows.Forms.PictureBox infoPictureBox;
- private System.Windows.Forms.GroupBox linkPropertiesGroupBox;
- private System.Windows.Forms.ToolTip toolTip;
- private System.Windows.Forms.Button updateButton;
- private System.Windows.Forms.Button resetButton;
- private System.Windows.Forms.Button rowDownButton;
- private System.Windows.Forms.Button rowUpButton;
- private System.Windows.Forms.GroupBox windowIdGroupBox;
- private System.Windows.Forms.Label windowIdLabel;
- private System.Windows.Forms.GroupBox skinFileGroupBox;
- private System.Windows.Forms.Label skinFileLabel;
- private System.Windows.Forms.GroupBox loadParameterGroupBox;
- private System.Windows.Forms.TreeView skinLinksTreeView;
- private System.Windows.Forms.Button saveButton;
- private System.Windows.Forms.TextBox loadParameterTextBox;
- private System.Windows.Forms.GroupBox overridesGroupBox;
- private System.Windows.Forms.GroupBox capsLockGroupBox;
- private System.Windows.Forms.GroupBox numLockGroupBox;
- private System.Windows.Forms.ComboBox capsLockComboBox;
- private System.Windows.Forms.ComboBox numLockComboBox;
-
- }
-}
\ No newline at end of file
Deleted: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs 2014-01-13 16:51:01 UTC (rev 4724)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs 2014-01-13 16:51:24 UTC (rev 4725)
@@ -1,541 +0,0 @@
-using System;
-using System.ComponentModel;
-using System.Drawing;
-using System.Windows.Forms;
-using MediaPortal.Configuration;
-using MediaPortal.GUI.Library;
-using MediaPortal.Profile;
-using My.Common;
-
-namespace ProcessPlugins.ShortCuter
-{
- [PluginIcons("ProcessPlugins.ShortCuter.Resources.Images.ShortCuterEnable.png", "ProcessPlugins.ShortCuter.Resources.Images.ShortCuterDisable.png")]
- public partial class ShortCuterForm : Form, ISetupForm //Form per la configurazione del plugin, con implementazione interfaccia ISetupForm (per lancio da configurazione MediaPortal)
- {
- #region Dati
- private Skin mySkin; //Istanza classe Skin (dati relativi alla skin di MediaPortal)
- private ShortCuts myShortCuts; //Istanza classe ShortCuts (dati relativi ai shortcuts configurati)
- private KeyboardHookWorker myHookWorker; //Istanza classe HookWorker (gestione hook di tastiera per immissione tasto [KeyCode] associato allo shortcut)
- private bool unsavedChanges; //Presenza modifiche da salvare
- private bool forceCell; //Azione di forzatura valore cella WindowID dello shortcut
- #endregion
-
- #region Costruttore
- public ShortCuterForm()
- {
- InitializeComponent();
- }
- #endregion
-
- #region Metodi Privati
- private void InitializeGUI() //Inizializzazione interfaccia
- {
- skinFilesListBox.DataSource = mySkin.SkinFiles;
- skinFilesListBox.SelectedIndex = -1;
- mySkin.FillTreeViewSkinLinks(skinLinksTreeView);
- skinLinksTreeView.CollapseAll();
- FormatShortCutsGrid();
-
- capsLockComboBox.DataSource = Enum.GetNames(typeof(LockKeys.LockKeyActions));
- capsLockComboBox.SelectedItem = Enum.GetName(typeof(LockKeys.LockKeyActions), myShortCuts.GeneralForcingCapsLock);
- numLockComboBox.DataSource = Enum.GetNames(typeof(LockKeys.LockKeyActions));
- numLockComboBox.SelectedItem = Enum.GetName(typeof(LockKeys.LockKeyActions), myShortCuts.GeneralForcingNumLock);
-
- toolTip.SetToolTip(skinFilesListBox, "Double click to set the link's parameter to shortcut");
- toolTip.SetToolTip(skinLinksTreeView, "Double click to set the link's parameter to shortcut");
- toolTip.SetToolTip(rowAddButton, "Add shortcut to list");
- toolTip.SetToolTip(rowRemoveButton, "Remove selected shortcut from list");
- toolTip.SetToolTip(rowUpButton, "Move up selected shortcut in list");
- toolTip.SetToolTip(rowDownButton, "Move down selected shortcut in list");
- toolTip.SetToolTip(infoPictureBox, "Version information");
-
- unsavedChanges = false; //--> necessario a fine aggiornamento controlli grafici
- }
- private void FormatShortCutsGrid() //Formattazione (e popolazione) tabella shortcuts
- {
- shortCutsDataGridView.AutoGenerateColumns = false;
-
- DataGridViewTextBoxColumn captionColumn = new DataGridViewTextBoxColumn();
- captionColumn.DataPropertyName = "Caption";
- captionColumn.HeaderText = "Caption";
- captionColumn.Width = 155;
- captionColumn.MaxInputLength = 32;
- captionColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
- captionColumn.DefaultCellStyle.Font = new Font("Microsoft Sans Serif", 8, FontStyle.Bold);
- captionColumn.ToolTipText = "Shortcut's title";
-
- DataGridViewTextBoxColumn keyColumn = new DataGridViewTextBoxColumn();
- keyColumn.DataPropertyName = "Key";
- keyColumn.HeaderText = "Key [KeyCode]";
- keyColumn.Width = 120;
- keyColumn.MaxInputLength = 24;
- keyColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
- keyColumn.DefaultCellStyle.Font = new Font("Microsoft Sans Serif", 8, FontStyle.Bold);
- keyColumn.DefaultCellStyle.BackColor = Color.Yellow;
- keyColumn.ToolTipText = "Key assigned to the shortcut";
-
- DataGridViewCheckBoxColumn ctrlColumn = new DataGridViewCheckBoxColumn();
- ctrlColumn.DataPropertyName = "Ctrl";
- ctrlColumn.HeaderText = "Ctrl";
- ctrlColumn.Width = 30;
- ctrlColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
- ctrlColumn.DefaultCellStyle.BackColor = Color.LightCyan;
- ctrlColumn.ToolTipText = "Use CTRL modifier + Key assigned";
-
- DataGridViewCheckBoxColumn altColumn = new DataGridViewCheckBoxColumn();
- altColumn.DataPropertyName = "Alt";
- altColumn.HeaderText = "Alt";
- altColumn.Width = 30;
- altColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
- altColumn.DefaultCellStyle.BackColor = Color.LightCyan;
- altColumn.ToolTipText = "Use ALT modifier + Key assigned";
-
- DataGridViewCheckBoxColumn shiftColumn = new DataGridViewCheckBoxColumn();
- shiftColumn.DataPropertyName = "Shift";
- shiftColumn.HeaderText = "Shift";
- shiftColumn.Width = 30;
- shiftColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
- shiftColumn.DefaultCellStyle.BackColor = Color.LightCyan;
- shiftColumn.ToolTipText = "Use SHIFT modifier + Key assigned";
-
- DataGridViewTextBoxColumn windowIdColumn = new DataGridViewTextBoxColumn();
- windowIdColumn.DataPropertyName = "WindowID";
- windowIdColumn.HeaderText = "Window ID";
- windowIdColumn.Width = 70;
- windowIdColumn.MaxInputLength = 10;
- windowIdColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
- windowIdColumn.ToolTipText = "MediaPorta window ID for the shortcut's destination";
-
- DataGridViewTextBoxColumn loadParameterColumn = new DataGridViewTextBoxColumn();
- loadParameterColumn.DataPropertyName = "LoadParameter";
- loadParameterColumn.HeaderText = "Load Parameter";
- loadParameterColumn.Width = 358;
- loadParameterColumn.MaxInputLength = 300;
- loadParameterColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
- loadParameterColumn.ToolTipText = "Any parameter for load window (see destination plugin's documentation)";
-
- DataGridViewCheckBoxColumn returnColumn = new DataGridViewCheckBoxColumn();
- returnColumn.DataPropertyName = "Return";
- returnColumn.HeaderText = "Return";
- returnColumn.Width = 50;
- returnColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
- returnColumn.ToolTipText = "If you're already on the window ID, another activation of the shortcut will display the previous window";
-
- DataGridViewComboBoxColumn soundEffectColumn = new DataGridViewComboBoxColumn();
- soundEffectColumn.DataPropertyName = "SoundEffect";
- soundEffectColumn.HeaderText = "Sound Effect";
- soundEffectColumn.Width = 140;
- soundEffectColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
- soundEffectColumn.FlatStyle = FlatStyle.Flat; //--> necessario con Win7 per aggiornare il colore di sfondo se selezionato
- soundEffectColumn.DataSource = mySkin.SkinSounds;
- soundEffectColumn.ToolTipText = "Sound effect played on the shortcut";
-
- shortCutsDataGridView.Columns.Add(captionColumn);
- shortCutsDataGridView.Columns.Add(keyColumn);
- shortCutsDataGridView.Columns.Add(ctrlColumn);
- shortCutsDataGridView.Columns.Add(altColumn);
- shortCutsDataGridView.Columns.Add(shiftColumn);
- shortCutsDataGridView.Columns.Add(windowIdColumn);
- shortCutsDataGridView.Columns.Add(loadParameterColumn);
- shortCutsDataGridView.Columns.Add(returnColumn);
- shortCutsDataGridView.Columns.Add(soundEffectColumn);
-
- shortCutsDataGridView.DataSource = myShortCuts.Items;
- }
- private void ShowLinkProperties(object listControl) //Visualizzazione proprietà link
- {
- Control itemsList = (Control)listControl; //Casting sender -> Control
- int selectedIndex; //Indice eventuale elemento selezionato
-
- if (itemsList is ListBox)
- {
- ListBox listBox = (ListBox)itemsList; //Casting Control -> ListBox
- selectedIndex = listBox.SelectedIndex; //<-- indice lista selezionato
- }
- else
- {
- TreeView treeView = (TreeView)itemsList; //Casting Control -> TreeView
- selectedIndex= mySkin.GetSkinLinkIndex(treeView); //<-- indice nodo selezionato
- }
-
- if (selectedIndex < 0) //Se indice invalido --> reset proprietà
- {
- skinFileLabel.Text = "-";
- windowIdLabel.Text = "-";
- loadParameterTextBox.Text = "-";
- }
- else //Visualizzazione proprietà elemento selezionato
- {
- switch (itemsList.Name)
- {
- case "skinFilesListBox": //Lista files della skin
- skinFileLabel.Text = mySkin.SkinFiles[selectedIndex].Name;
- windowIdLabel.Text = mySkin.SkinFiles[selectedIndex].Id.ToString();
- loadParameterTextBox.Text = "-";
- break;
-
- case "skinLinksTreeView": //Lista links predefiniti della skin
- skinFileLabel.Text = mySkin.SkinLinks[selectedIndex].XmlFile;
- windowIdLabel.Text = mySkin.SkinLinks[selectedIndex].WindowID.ToString();
- loadParameterTextBox.Text = mySkin.SkinLinks[selectedIndex].LoadParameter;
- break;
- }
- }
- }
- private void ShowLinkItem() //Visualizzazione link corrispondente allo shortcut
- {
- if (shortCutsDataGridView.CurrentCell != null)
- {
- if (!forceCell) //Non nel caso di forzatura valore cella WindowID (doppio click da lista links)
- {
- int showIndex;
- int windowID = Convert.ToInt32(shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[5].Value);
- if (itemsTabControl.SelectedIndex == 0)
- {
- string loadParameter = Convert.ToString(shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[6].Value);
- showIndex = mySkin.SkinLinks.FindIndex(x => x.WindowID == windowID && x.LoadParameter == loadParameter);
- mySkin.SetSkinLinkIndex(skinLinksTreeView, showIndex); //--> selezione eventuale link corrispondente a WindowID & LoadParameter
- }
- else
- {
- showIndex = mySkin.SkinFiles.FindLastIndex(x => x.Id == windowID);
- skinFilesListBox.SelectedIndex = showIndex; //--> selezione eventuale file corrispondente a WindowID
- }
- }
- }
- }
- private void MoveItemList(bool dirUp) //Spostamento shortcut
- {
- if (shortCutsDataGridView.CurrentCell != null)
- {
- forceCell = true;
- int index = shortCutsDataGridView.CurrentRow.Index;
- shortCutsDataGridView.CurrentCell = shortCutsDataGridView[0, index]; //Importante cambiare la colonna prima di muovere la riga se posizionati su KeyCode (Hook attivo)
- ShortCut sc = myShortCuts.Items[index];
- myShortCuts.Items.RemoveAt(index);
- if (dirUp)
- index--;
- else
- index++;
- myShortCuts.Items.Insert(index, sc);
- shortCutsDataGridView.CurrentCell = shortCutsDataGridView[0, index];
- shortCutsDataGridView.Rows[index].Selected = true;
- shortCutsDataGridView.Focus();
- forceCell = false;
- }
- }
- private void MoveItemsListButtonsEnable() //Abilitazione/disabilitazione pulsanti di spostamento shortcuts
- {
- if (shortCutsDataGridView.CurrentCell != null)
- {
- rowUpButton.Enabled = (shortCutsDataGridView.CurrentRow.Index > 0);
- rowDownButton.Enabled = (shortCutsDataGridView.CurrentRow.Index < myShortCuts.Items.Count - 1);
- }
- else
- {
- rowUpButton.Enabled = false;
- rowDownButton.Enabled = false;
- }
- }
- private bool Save() //Salvataggio configurazione plugin
- {
- myShortCuts.GeneralForcingCapsLock = (LockKeys.LockKeyActions)Enum.Parse(typeof(LockKeys.LockKeyActions), capsLockComboBox.SelectedItem.ToString());
- myShortCuts.GeneralForcingNumLock = (LockKeys.LockKeyActions)Enum.Parse(typeof(LockKeys.LockKeyActions), numLockComboBox.SelectedItem.ToString());
- return myShortCuts.SaveConfig();
- }
- #endregion
-
- #region Consumazione Eventi
- #region Eventi Form
- private void ShortCuterForm_Load(object sender, EventArgs e)
- {
- using (Settings confReader = new MPSettings())
- {
- //Raccolta dati relativi alla skin
- mySkin = new Skin(confReader.GetValueAsString("skin", "name", "DefaultWide"), Config.GetFolder(Config.Dir.Skin) + @"\", Config.GetFolder(Config.Dir.Cache) + @"\");
- }
- if (mySkin.Initialized)
- {
- string settingsFile = Config.GetFile(Config.Dir.Config, Tools.MyAssembly.Name + ".xml");
- //Lettura impostazioni e gestione shorcuts
- myShortCuts = new ShortCuts(settingsFile, true);
- if (myShortCuts.Initialized)
- {
- //Sottoscrizione evento di modifica lista shortcuts
- myShortCuts.Items.ListChanged += new ListChangedEventHandler(myShortCutsItems_ListChanged);
-
- //Predisposizione hook di tastiera per immissione tasto (KeyCode) associato allo shortcut
- myHookWorker = new KeyboardHookWorker(new KeyboardHookWorker.HookKeyDownDelegate(hook_KeyDown));
-
- //Inizializzazione interfaccia grafica
- InitializeGUI();
- }
- }
- //Se inizializzazione classi non completata
- if (!mySkin.Initialized || !myShortCuts.Initialized)
- {
- this.Close();
- this.Dispose();
- }
- }
- private void ShortCuterForm_Shown(object sender, EventArgs e)
- {
- shortCutsDataGridView.Focus();
- }
- private void ShortCuterForm_FormClosing(object sender, FormClosingEventArgs e)
- {
- if (unsavedChanges) //Se presenti modifiche non salvate
- { //Richiesta conferma per chiusura applicazione
- if (!Tools.QuestionMessage("Unsaved changes will be lost...\nDo you want to proceed?"))
- {
- e.Cancel = true; //--> annullamento chiusura form
- return;
- }
- }
- if (myHookWorker != null)
- myHookWorker.Stop(); //--> disattivazione hook di tastiera
- }
- #endregion
- #region Eventi Modifica Griglia
- private void shortCutsDataGridView_Enter(object sender, EventArgs e)
- {
- propLeftPictureBox.Visible = true; //--> il link è collegato allo shortcut selezionato
- ShowLinkItem();
- MoveItemsListButtonsEnable();
- }
- private void shortCutsDataGridView_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
- {
- e.Control.KeyPress -= keyTextBox_KeyPress;
- e.Control.KeyPress -= idTextBox_KeyPress;
-
- if (e.Control is TextBox)
- {
- if ((int)(((DataGridView)(sender)).CurrentCell.ColumnIndex) == 1)
- {
- e.Control.KeyPress += new KeyPressEventHandler(keyTextBox_KeyPress); //--> sottoscrizione evento KeyPress per la cella Key
- //((TextBox)e.Control).CharacterCasing = CharacterCasing.Lower; //--> tasto associato allo shortcut: input minuscolo
- }
- if ((int)(((DataGridView)(sender)).CurrentCell.ColumnIndex) == 5)
- e.Control.KeyPress += new KeyPressEventHandler(idTextBox_KeyPress); //--> sottoscrizione evento KeyPress per la cella WindowID
- }
- }
- void keyTextBox_KeyPress(object sender, KeyPressEventArgs e)
- {
- e.Handled = true; //--> carattere inputato da ignorare (per trattare la TextBox come una Label) --> azione svolta dall'hook di tastiera (necessario se l'hook fallisse)
- }
- void idTextBox_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (!(char.IsDigit(e.KeyChar))) //Filtro per input numerico per la cella WindowID
- {
- Keys key = (Keys)e.KeyChar;
- if (!(key == Keys.Back || key == Keys.Delete))
- {
- e.Handled = true; //--> carattere inputato da ignorare
- }
- }
- }
- private void shortCutsDataGridView_CellEndEdit(object sender, DataGridViewCellEventArgs e)
- {
- ShowLinkItem();
- }
- private void shortCutsDataGridView_CurrentCellChanged(object sender, EventArgs e)
- {
- ShowLinkItem();
- MoveItemsListButtonsEnable();
-
- if (shortCutsDataGridView.CurrentCell != null && shortCutsDataGridView.CurrentCell.ColumnIndex == 1)
- myHookWorker.Start(); //Nel caso di colonna corrispondente a Key --> attivazione hook di tastiera per immissione KeyCode
- else
- myHookWorker.Stop(); //Nel caso di colonna non corrispondente a Key --> disattivazione hook di tastiera
- }
- private void shortCutsDataGridView_DataError(object sender, DataGridViewDataErrorEventArgs e)
- {
- //Gestione evento per evitare messaggi di errore (esempio se file effetto sonoro non disponibile nella skin)
- }
- #endregion
- #region Eventi Modifica Impostazioni Plugin & Shortcuts
- private void myShortCutsItems_ListChanged(object sender, EventArgs e)
- {
- unsavedChanges = true;
- rowRemoveButton.Enabled = (myShortCuts.Items.Count > 0);
- MoveItemsListButtonsEnable();
- }
- private void rowAddButton_Click(object sender, EventArgs e)
- {
- ShortCut sc = new ShortCut();
- myShortCuts.Items.Add(sc);
- shortCutsDataGridView.CurrentCell = shortCutsDataGridView[0, shortCutsDataGridView.RowCount - 1];
- shortCutsDataGridView.Rows[shortCutsDataGridView.RowCount - 1].Selected = true;
- }
- private void rowRemoveButton_Click(object sender, EventArgs e)
- {
- if (myShortCuts.Items.Count > 0)
- {
- myShortCuts.Items.RemoveAt(shortCutsDataGridView.CurrentRow.Index);
- if (shortCutsDataGridView.RowCount > 0)
- shortCutsDataGridView.CurrentCell = shortCutsDataGridView[0, 0];
- }
- }
- private void rowUpButton_Click(object sender, EventArgs e)
- {
- MoveItemList(true);
- }
- private void rowDownButton_Click(object sender, EventArgs e)
- {
- MoveItemList(false);
- }
- private void resetCapsLockCheckBox_CheckedChanged(object sender, EventArgs e)
- {
- unsavedChanges = true;
- }
- private void resetNumLockCheckBox_CheckedChanged(object sender, EventArgs e)
- {
- unsavedChanges = true;
- }
- #endregion
- #region Eventi Liste Files & Links Skin
- private void itemsTabControl_SelectedIndexChanged(object sender, EventArgs e)
- {
- if(itemsTabControl.SelectedIndex == 0)
- skinLinksTreeView.Focus();
- else
- skinFilesListBox.Focus();
- }
- private void itemsTabControl_Click(object sender, EventArgs e)
- {
- if (itemsTabControl.SelectedIndex == 0)
- skinLinksTreeView.Focus();
- else
- skinFilesListBox.Focus();
- }
- private void skinFilesListBox_SelectedIndexChanged(object sender, EventArgs e)
- {
- ShowLinkProperties(sender);
- }
- private void skinFilesListBox_Enter(object sender, EventArgs e)
- {
- propLeftPictureBox.Visible = false; //--> il link non è collegato allo shortcut selezionato
- ShowLinkProperties(sender);
- }
- private void skinFilesListBox_DoubleClick(object sender, EventArgs e)
- {
- if (shortCutsDataGridView.CurrentRow != null && shortCutsDataGridView.RowCount > 0)
- {
- shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[5].Value = mySkin.SkinFiles[skinFilesListBox.SelectedIndex].Id.ToString();
- shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[6].Value = "";
- forceCell = true;
- shortCutsDataGridView.CurrentCell = shortCutsDataGridView[5, shortCutsDataGridView.CurrentRow.Index];
- forceCell = false;
- }
- }
- private void skinLinksTreeView_AfterSelect(object sender, TreeViewEventArgs e)
- {
- ShowLinkProperties(sender);
- }
- private void skinLinksTreeView_Enter(object sender, EventArgs e)
- {
- propLeftPictureBox.Visible = false; //--> il link non è collegato allo shortcut selezionato
- ShowLinkProperties(sender);
- }
- private void skinLinksTreeView_DoubleClick(object sender, EventArgs e)
- {
- int skinLinkIndex = mySkin.GetSkinLinkIndex(skinLinksTreeView);
- if (shortCutsDataGridView.CurrentRow != null && shortCutsDataGridView.RowCount > 0 && skinLinkIndex >= 0)
- {
- shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[5].Value = mySkin.SkinLinks[skinLinkIndex].WindowID.ToString();
- shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[6].Value = mySkin.SkinLinks[skinLinkIndex].LoadParameter;
- forceCell = true;
- shortCutsDataGridView.CurrentCell = shortCutsDataGridView[5, shortCutsDataGridView.CurrentRow.Index];
- forceCell = false;
- }
- }
- #endregion
- private bool hook_KeyDown(Keys keyCode)
- {
- if (ShortCut.ModifierKeys.Contains(keyCode))
- return true; //Se il tasto premuto corrisponde ad un modificatore, viene ignorato
-
- if (this.InvokeRequired) //Gestione dell'invocazione sul thread principale
- {
- this.BeginInvoke(new KeyboardHookWorker.HookKeyDownDelegate(hook_KeyDown), new object[] { keyCode });
- return true; //--> qualunque pressione viene ignorata dal resto del sistema
- }
-
- if (shortCutsDataGridView.CurrentCell != null && shortCutsDataGridView.CurrentCell.ColumnIndex == 1)
- //Valorizzazione della cella Key con la stringa corrispondente al KeyCode del tasto premuto
- shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[1].Value = keyCode.ToString();
- return true;
- }
- private void saveButton_Click(object sender, EventArgs e)
- {
- if (Save())
- unsavedChanges = false;
- }
- private void updateButton_Click(object sender, EventArgs e)
- {
- if (Save())
- {
- unsavedChanges = false;
- this.Close();
- this.Dispose();
- }
- }
- private void resetButton_Click(object sender, EventArgs e)
- {
- if (Tools.QuestionMessage("Configuration data will be overwritten...\nDo you want to proceed?"))
- {
- myShortCuts.LoadConfig(true);
- }
- }
- private void infoPictureBox_Click(object sender, EventArgs e)
- {
- VersionInfo.ShowInfo(ProcessPlugins.ShortCuter.Properties.Resources.ShortCuter, "...a big thank to MoPath for old version of this plugin!",
- "http://forum.team-mediaportal.com/threads/shortcuter-plugin-v2.121721/",
- "http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/17_Extensions/3_Plugins/ShortCut'er");
- }
- #endregion
-
- #region Implementazione ISetupForm
- public string PluginName()
- {
- return Tools.MyAssembly.Title;
- }
- public string Description()
- {
- return Tools.MyAssembly.Description;
- }
- public string Author()
- {
- return Tools.MyAssembly.Author;
- }
- public void ShowPlugin()
- {
- new ShortCuterForm().ShowDialog();
- }
- public bool CanEnable()
- {
- return true;
- }
- public int GetWindowId()
- {
- return -1;
- }
- public bool DefaultEnabled()
- {
- return false;
- }
- public bool HasSetup()
- {
- return true;
- }
- public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage)
- {
- strButtonText = String.Empty;
- strButtonImage = String.Empty;
- strButtonImageFocus = String.Empty;
- strPictureImage = String.Empty;
- return false;
- }
- #endregion
- }
-}
Deleted: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx 2014-01-13 16:51:01 UTC (rev 4724)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx 2014-01-13 16:51:24 UTC (rev 4725)
@@ -1,287 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <!--
- Microsoft ResX Schema
-
- Ver...
[truncated message content] |
|
From: <nic...@us...> - 2014-01-13 16:51:05
|
Revision: 4724
http://sourceforge.net/p/mp-plugins/code/4724
Author: nicsergio
Date: 2014-01-13 16:51:01 +0000 (Mon, 13 Jan 2014)
Log Message:
-----------
Added Paths:
-----------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.resx
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.Designer.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterKeyConfig.resx
Added: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs (rev 0)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.Designer.cs 2014-01-13 16:51:01 UTC (rev 4724)
@@ -0,0 +1,485 @@
+namespace ProcessPlugins.ShortCuter
+{
+ partial class ShortCuterConfig
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ShortCuterConfig));
+ this.shortCutsDataGridView = new System.Windows.Forms.DataGridView();
+ this.itemsTabControl = new System.Windows.Forms.TabControl();
+ this.linksTabPage = new System.Windows.Forms.TabPage();
+ this.skinLinksTreeView = new System.Windows.Forms.TreeView();
+ this.skinTabPage = new System.Windows.Forms.TabPage();
+ this.skinFilesListBox = new System.Windows.Forms.ListBox();
+ this.linkPropertiesGroupBox = new System.Windows.Forms.GroupBox();
+ this.loadParameterGroupBox = new System.Windows.Forms.GroupBox();
+ this.loadParameterTextBox = new System.Windows.Forms.TextBox();
+ this.windowIdGroupBox = new System.Windows.Forms.GroupBox();
+ this.windowIdLabel = new System.Windows.Forms.Label();
+ this.skinFileGroupBox = new System.Windows.Forms.GroupBox();
+ this.skinFileLabel = new System.Windows.Forms.Label();
+ this.toolTip = new System.Windows.Forms.ToolTip(this.components);
+ this.updateButton = new System.Windows.Forms.Button();
+ this.resetButton = new System.Windows.Forms.Button();
+ this.rowDownButton = new System.Windows.Forms.Button();
+ this.rowUpButton = new System.Windows.Forms.Button();
+ this.infoPictureBox = new System.Windows.Forms.PictureBox();
+ this.rowRemoveButton = new System.Windows.Forms.Button();
+ this.rowAddButton = new System.Windows.Forms.Button();
+ this.propLeftPictureBox = new System.Windows.Forms.PictureBox();
+ this.saveButton = new System.Windows.Forms.Button();
+ this.overridesGroupBox = new System.Windows.Forms.GroupBox();
+ this.numLockGroupBox = new System.Windows.Forms.GroupBox();
+ this.numLockComboBox = new System.Windows.Forms.ComboBox();
+ this.capsLockGroupBox = new System.Windows.Forms.GroupBox();
+ this.capsLockComboBox = new System.Windows.Forms.ComboBox();
+ ((System.ComponentModel.ISupportInitialize)(this.shortCutsDataGridView)).BeginInit();
+ this.itemsTabControl.SuspendLayout();
+ this.linksTabPage.SuspendLayout();
+ this.skinTabPage.SuspendLayout();
+ this.linkPropertiesGroupBox.SuspendLayout();
+ this.loadParameterGroupBox.SuspendLayout();
+ this.windowIdGroupBox.SuspendLayout();
+ this.skinFileGroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).BeginInit();
+ this.overridesGroupBox.SuspendLayout();
+ this.numLockGroupBox.SuspendLayout();
+ this.capsLockGroupBox.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // shortCutsDataGridView
+ //
+ this.shortCutsDataGridView.AllowUserToAddRows = false;
+ this.shortCutsDataGridView.AllowUserToDeleteRows = false;
+ this.shortCutsDataGridView.AllowUserToResizeRows = false;
+ this.shortCutsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(220)))), ((int)(((byte)(227)))));
+ dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.shortCutsDataGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
+ this.shortCutsDataGridView.ColumnHeadersHeight = 30;
+ this.shortCutsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.shortCutsDataGridView.Location = new System.Drawing.Point(6, 304);
+ this.shortCutsDataGridView.MultiSelect = false;
+ this.shortCutsDataGridView.Name = "shortCutsDataGridView";
+ this.shortCutsDataGridView.RowHeadersWidth = 20;
+ this.shortCutsDataGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+ this.shortCutsDataGridView.Size = new System.Drawing.Size(1006, 429);
+ this.shortCutsDataGridView.TabIndex = 0;
+ this.shortCutsDataGridView.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.shortCutsDataGridView_CellDoubleClick);
+ this.shortCutsDataGridView.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.shortCutsDataGridView_CellEndEdit);
+ this.shortCutsDataGridView.CurrentCellChanged += new System.EventHandler(this.shortCutsDataGridView_CurrentCellChanged);
+ this.shortCutsDataGridView.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.shortCutsDataGridView_DataError);
+ this.shortCutsDataGridView.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.shortCutsDataGridView_EditingControlShowing);
+ this.shortCutsDataGridView.Enter += new System.EventHandler(this.shortCutsDataGridView_Enter);
+ //
+ // itemsTabControl
+ //
+ this.itemsTabControl.Controls.Add(this.linksTabPage);
+ this.itemsTabControl.Controls.Add(this.skinTabPage);
+ this.itemsTabControl.ItemSize = new System.Drawing.Size(74, 18);
+ this.itemsTabControl.Location = new System.Drawing.Point(266, 8);
+ this.itemsTabControl.Name = "itemsTabControl";
+ this.itemsTabControl.SelectedIndex = 0;
+ this.itemsTabControl.Size = new System.Drawing.Size(330, 260);
+ this.itemsTabControl.TabIndex = 1;
+ this.itemsTabControl.SelectedIndexChanged += new System.EventHandler(this.itemsTabControl_SelectedIndexChanged);
+ this.itemsTabControl.Click += new System.EventHandler(this.itemsTabControl_Click);
+ //
+ // linksTabPage
+ //
+ this.linksTabPage.Controls.Add(this.skinLinksTreeView);
+ this.linksTabPage.Location = new System.Drawing.Point(4, 22);
+ this.linksTabPage.Name = "linksTabPage";
+ this.linksTabPage.Padding = new System.Windows.Forms.Padding(3);
+ this.linksTabPage.Size = new System.Drawing.Size(322, 234);
+ this.linksTabPage.TabIndex = 0;
+ this.linksTabPage.Text = "Default Links";
+ this.linksTabPage.UseVisualStyleBackColor = true;
+ //
+ // skinLinksTreeView
+ //
+ this.skinLinksTreeView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(220)))), ((int)(((byte)(227)))));
+ this.skinLinksTreeView.FullRowSelect = true;
+ this.skinLinksTreeView.HideSelection = false;
+ this.skinLinksTreeView.Location = new System.Drawing.Point(1, 5);
+ this.skinLinksTreeView.Name = "skinLinksTreeView";
+ this.skinLinksTreeView.Size = new System.Drawing.Size(318, 225);
+ this.skinLinksTreeView.TabIndex = 2;
+ this.skinLinksTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.skinLinksTreeView_AfterSelect);
+ this.skinLinksTreeView.DoubleClick += new System.EventHandler(this.skinLinksTreeView_DoubleClick);
+ this.skinLinksTreeView.Enter += new System.EventHandler(this.skinLinksTreeView_Enter);
+ //
+ // skinTabPage
+ //
+ this.skinTabPage.Controls.Add(this.skinFilesListBox);
+ this.skinTabPage.Location = new System.Drawing.Point(4, 22);
+ this.skinTabPage.Name = "skinTabPage";
+ this.skinTabPage.Padding = new System.Windows.Forms.Padding(3);
+ this.skinTabPage.Size = new System.Drawing.Size(322, 234);
+ this.skinTabPage.TabIndex = 1;
+ this.skinTabPage.Text = "Skin Files";
+ this.skinTabPage.UseVisualStyleBackColor = true;
+ //
+ // skinFilesListBox
+ //
+ this.skinFilesListBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(220)))), ((int)(((byte)(227)))));
+ this.skinFilesListBox.FormattingEnabled = true;
+ this.skinFilesListBox.Location = new System.Drawing.Point(1, 5);
+ this.skinFilesListBox.Name = "skinFilesListBox";
+ this.skinFilesListBox.Size = new System.Drawing.Size(318, 225);
+ this.skinFilesListBox.TabIndex = 0;
+ this.skinFilesListBox.SelectedIndexChanged += new System.EventHandler(this.skinFilesListBox_SelectedIndexChanged);
+ this.skinFilesListBox.DoubleClick += new System.EventHandler(this.skinFilesListBox_DoubleClick);
+ this.skinFilesListBox.Enter += new System.EventHandler(this.skinFilesListBox_Enter);
+ //
+ // linkPropertiesGroupBox
+ //
+ this.linkPropertiesGroupBox.Controls.Add(this.loadParameterGroupBox);
+ this.linkPropertiesGroupBox.Controls.Add(this.windowIdGroupBox);
+ this.linkPropertiesGroupBox.Controls.Add(this.skinFileGroupBox);
+ this.linkPropertiesGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.linkPropertiesGroupBox.Location = new System.Drawing.Point(602, 30);
+ this.linkPropertiesGroupBox.Name = "linkPropertiesGroupBox";
+ this.linkPropertiesGroupBox.Size = new System.Drawing.Size(320, 175);
+ this.linkPropertiesGroupBox.TabIndex = 31;
+ this.linkPropertiesGroupBox.TabStop = false;
+ this.linkPropertiesGroupBox.Text = "Link Properties";
+ //
+ // loadParameterGroupBox
+ //
+ this.loadParameterGroupBox.Controls.Add(this.loadParameterTextBox);
+ this.loadParameterGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.loadParameterGroupBox.Location = new System.Drawing.Point(4, 103);
+ this.loadParameterGroupBox.Name = "loadParameterGroupBox";
+ this.loadParameterGroupBox.Size = new System.Drawing.Size(312, 68);
+ this.loadParameterGroupBox.TabIndex = 37;
+ this.loadParameterGroupBox.TabStop = false;
+ this.loadParameterGroupBox.Text = "Load Parameter:";
+ //
+ // loadParameterTextBox
+ //
+ this.loadParameterTextBox.BackColor = System.Drawing.SystemColors.Control;
+ this.loadParameterTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.loadParameterTextBox.ForeColor = System.Drawing.Color.Blue;
+ this.loadParameterTextBox.Location = new System.Drawing.Point(6, 19);
+ this.loadParameterTextBox.Multiline = true;
+ this.loadParameterTextBox.Name = "loadParameterTextBox";
+ this.loadParameterTextBox.ReadOnly = true;
+ this.loadParameterTextBox.Size = new System.Drawing.Size(300, 43);
+ this.loadParameterTextBox.TabIndex = 39;
+ this.loadParameterTextBox.Text = "-";
+ this.loadParameterTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // windowIdGroupBox
+ //
+ this.windowIdGroupBox.Controls.Add(this.windowIdLabel);
+ this.windowIdGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.windowIdGroupBox.Location = new System.Drawing.Point(4, 63);
+ this.windowIdGroupBox.Name = "windowIdGroupBox";
+ this.windowIdGroupBox.Size = new System.Drawing.Size(312, 34);
+ this.windowIdGroupBox.TabIndex = 36;
+ this.windowIdGroupBox.TabStop = false;
+ this.windowIdGroupBox.Text = "Window ID:";
+ //
+ // windowIdLabel
+ //
+ this.windowIdLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.windowIdLabel.ForeColor = System.Drawing.Color.Blue;
+ this.windowIdLabel.Location = new System.Drawing.Point(6, 16);
+ this.windowIdLabel.Name = "windowIdLabel";
+ this.windowIdLabel.Size = new System.Drawing.Size(300, 13);
+ this.windowIdLabel.TabIndex = 6;
+ this.windowIdLabel.Text = "-";
+ this.windowIdLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // skinFileGroupBox
+ //
+ this.skinFileGroupBox.Controls.Add(this.skinFileLabel);
+ this.skinFileGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.skinFileGroupBox.Location = new System.Drawing.Point(4, 23);
+ this.skinFileGroupBox.Name = "skinFileGroupBox";
+ this.skinFileGroupBox.Size = new System.Drawing.Size(312, 34);
+ this.skinFileGroupBox.TabIndex = 6;
+ this.skinFileGroupBox.TabStop = false;
+ this.skinFileGroupBox.Text = "Skin File:";
+ //
+ // skinFileLabel
+ //
+ this.skinFileLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.skinFileLabel.ForeColor = System.Drawing.Color.Blue;
+ this.skinFileLabel.Location = new System.Drawing.Point(6, 16);
+ this.skinFileLabel.Name = "skinFileLabel";
+ this.skinFileLabel.Size = new System.Drawing.Size(300, 13);
+ this.skinFileLabel.TabIndex = 2;
+ this.skinFileLabel.Text = "-";
+ this.skinFileLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // toolTip
+ //
+ this.toolTip.ShowAlways = true;
+ //
+ // updateButton
+ //
+ this.updateButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
+ this.updateButton.Location = new System.Drawing.Point(67, 84);
+ this.updateButton.Name = "updateButton";
+ this.updateButton.Size = new System.Drawing.Size(135, 38);
+ this.updateButton.TabIndex = 32;
+ this.updateButton.Text = "Save and Close";
+ this.updateButton.UseVisualStyleBackColor = false;
+ this.updateButton.Click += new System.EventHandler(this.updateButton_Click);
+ //
+ // resetButton
+ //
+ this.resetButton.Location = new System.Drawing.Point(67, 8);
+ this.resetButton.Name = "resetButton";
+ this.resetButton.Size = new System.Drawing.Size(133, 23);
+ this.resetButton.TabIndex = 33;
+ this.resetButton.Text = "Reset Configuration";
+ this.resetButton.UseVisualStyleBackColor = true;
+ this.resetButton.Click += new System.EventHandler(this.resetButton_Click);
+ //
+ // rowDownButton
+ //
+ this.rowDownButton.AutoSize = true;
+ this.rowDownButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.rowDownButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowDown;
+ this.rowDownButton.Location = new System.Drawing.Point(221, 264);
+ this.rowDownButton.Name = "rowDownButton";
+ this.rowDownButton.Size = new System.Drawing.Size(38, 38);
+ this.rowDownButton.TabIndex = 35;
+ this.rowDownButton.UseVisualStyleBackColor = true;
+ this.rowDownButton.Click += new System.EventHandler(this.rowDownButton_Click);
+ //
+ // rowUpButton
+ //
+ this.rowUpButton.AutoSize = true;
+ this.rowUpButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.rowUpButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowUp;
+ this.rowUpButton.Location = new System.Drawing.Point(177, 264);
+ this.rowUpButton.Name = "rowUpButton";
+ this.rowUpButton.Size = new System.Drawing.Size(38, 38);
+ this.rowUpButton.TabIndex = 34;
+ this.rowUpButton.UseVisualStyleBackColor = true;
+ this.rowUpButton.Click += new System.EventHandler(this.rowUpButton_Click);
+ //
+ // infoPictureBox
+ //
+ this.infoPictureBox.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.Info;
+ this.infoPictureBox.Location = new System.Drawing.Point(990, 5);
+ this.infoPictureBox.Name = "infoPictureBox";
+ this.infoPictureBox.Size = new System.Drawing.Size(24, 24);
+ this.infoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.infoPictureBox.TabIndex = 30;
+ this.infoPictureBox.TabStop = false;
+ this.infoPictureBox.Click += new System.EventHandler(this.infoPictureBox_Click);
+ //
+ // rowRemoveButton
+ //
+ this.rowRemoveButton.AutoSize = true;
+ this.rowRemoveButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.rowRemoveButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowRemove;
+ this.rowRemoveButton.Location = new System.Drawing.Point(50, 264);
+ this.rowRemoveButton.Name = "rowRemoveButton";
+ this.rowRemoveButton.Size = new System.Drawing.Size(38, 38);
+ this.rowRemoveButton.TabIndex = 26;
+ this.rowRemoveButton.UseVisualStyleBackColor = true;
+ this.rowRemoveButton.Click += new System.EventHandler(this.rowRemoveButton_Click);
+ //
+ // rowAddButton
+ //
+ this.rowAddButton.AutoSize = true;
+ this.rowAddButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+ this.rowAddButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowAdd;
+ this.rowAddButton.Location = new System.Drawing.Point(6, 264);
+ this.rowAddButton.Name = "rowAddButton";
+ this.rowAddButton.Size = new System.Drawing.Size(38, 38);
+ this.rowAddButton.TabIndex = 25;
+ this.rowAddButton.UseVisualStyleBackColor = true;
+ this.rowAddButton.Click += new System.EventHandler(this.rowAddButton_Click);
+ //
+ // propLeftPictureBox
+ //
+ this.propLeftPictureBox.Enabled = false;
+ this.propLeftPictureBox.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.ArrowDown;
+ this.propLeftPictureBox.Location = new System.Drawing.Point(360, 257);
+ this.propLeftPictureBox.Name = "propLeftPictureBox";
+ this.propLeftPictureBox.Size = new System.Drawing.Size(131, 56);
+ this.propLeftPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.propLeftPictureBox.TabIndex = 23;
+ this.propLeftPictureBox.TabStop = false;
+ this.propLeftPictureBox.Visible = false;
+ //
+ // saveButton
+ //
+ this.saveButton.Location = new System.Drawing.Point(67, 35);
+ this.saveButton.Name = "saveButton";
+ this.saveButton.Size = new System.Drawing.Size(133, 23);
+ this.saveButton.TabIndex = 36;
+ this.saveButton.Text = "Save Configuration";
+ this.saveButton.UseVisualStyleBackColor = true;
+ this.saveButton.Click += new System.EventHandler(this.saveButton_Click);
+ //
+ // overridesGroupBox
+ //
+ this.overridesGroupBox.Controls.Add(this.numLockGroupBox);
+ this.overridesGroupBox.Controls.Add(this.capsLockGroupBox);
+ this.overridesGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.overridesGroupBox.Location = new System.Drawing.Point(50, 133);
+ this.overridesGroupBox.Name = "overridesGroupBox";
+ this.overridesGroupBox.Size = new System.Drawing.Size(165, 111);
+ this.overridesGroupBox.TabIndex = 37;
+ this.overridesGroupBox.TabStop = false;
+ this.overridesGroupBox.Text = "Overrides at Start-Up";
+ //
+ // numLockGroupBox
+ //
+ this.numLockGroupBox.Controls.Add(this.numLockComboBox);
+ this.numLockGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.numLockGroupBox.Location = new System.Drawing.Point(6, 63);
+ this.numLockGroupBox.Name = "numLockGroupBox";
+ this.numLockGroupBox.Size = new System.Drawing.Size(152, 42);
+ this.numLockGroupBox.TabIndex = 38;
+ this.numLockGroupBox.TabStop = false;
+ this.numLockGroupBox.Text = "Num-Lock Forcing:";
+ //
+ // numLockComboBox
+ //
+ this.numLockComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.numLockComboBox.FormattingEnabled = true;
+ this.numLockComboBox.Location = new System.Drawing.Point(9, 15);
+ this.numLockComboBox.Name = "numLockComboBox";
+ this.numLockComboBox.Size = new System.Drawing.Size(133, 21);
+ this.numLockComboBox.TabIndex = 1;
+ //
+ // capsLockGroupBox
+ //
+ this.capsLockGroupBox.Controls.Add(this.capsLockComboBox);
+ this.capsLockGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.capsLockGroupBox.Location = new System.Drawing.Point(6, 15);
+ this.capsLockGroupBox.Name = "capsLockGroupBox";
+ this.capsLockGroupBox.Size = new System.Drawing.Size(152, 42);
+ this.capsLockGroupBox.TabIndex = 37;
+ this.capsLockGroupBox.TabStop = false;
+ this.capsLockGroupBox.Text = "Caps-Lock Forcing:";
+ //
+ // capsLockComboBox
+ //
+ this.capsLockComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.capsLockComboBox.FormattingEnabled = true;
+ this.capsLockComboBox.Location = new System.Drawing.Point(9, 15);
+ this.capsLockComboBox.Name = "capsLockComboBox";
+ this.capsLockComboBox.Size = new System.Drawing.Size(133, 21);
+ this.capsLockComboBox.TabIndex = 0;
+ //
+ // ShortCuterConfig
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(1018, 740);
+ this.Controls.Add(this.overridesGroupBox);
+ this.Controls.Add(this.saveButton);
+ this.Controls.Add(this.rowDownButton);
+ this.Controls.Add(this.linkPropertiesGroupBox);
+ this.Controls.Add(this.rowUpButton);
+ this.Controls.Add(this.resetButton);
+ this.Controls.Add(this.updateButton);
+ this.Controls.Add(this.infoPictureBox);
+ this.Controls.Add(this.rowRemoveButton);
+ this.Controls.Add(this.rowAddButton);
+ this.Controls.Add(this.itemsTabControl);
+ this.Controls.Add(this.shortCutsDataGridView);
+ this.Controls.Add(this.propLeftPictureBox);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+ this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+ this.MaximizeBox = false;
+ this.Name = "ShortCuterConfig";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+ this.Text = "ShortCut\'er Plugin Configuration";
+ this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ShortCuterConfig_FormClosing);
+ this.Load += new System.EventHandler(this.ShortCuterConfig_Load);
+ this.Shown += new System.EventHandler(this.ShortCuterConfig_Shown);
+ ((System.ComponentModel.ISupportInitialize)(this.shortCutsDataGridView)).EndInit();
+ this.itemsTabControl.ResumeLayout(false);
+ this.linksTabPage.ResumeLayout(false);
+ this.skinTabPage.ResumeLayout(false);
+ this.linkPropertiesGroupBox.ResumeLayout(false);
+ this.loadParameterGroupBox.ResumeLayout(false);
+ this.loadParameterGroupBox.PerformLayout();
+ this.windowIdGroupBox.ResumeLayout(false);
+ this.skinFileGroupBox.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).EndInit();
+ this.overridesGroupBox.ResumeLayout(false);
+ this.numLockGroupBox.ResumeLayout(false);
+ this.capsLockGroupBox.ResumeLayout(false);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.DataGridView shortCutsDataGridView;
+ private System.Windows.Forms.TabControl itemsTabControl;
+ private System.Windows.Forms.TabPage linksTabPage;
+ private System.Windows.Forms.TabPage skinTabPage;
+ private System.Windows.Forms.ListBox skinFilesListBox;
+ private System.Windows.Forms.PictureBox propLeftPictureBox;
+ private System.Windows.Forms.Button rowAddButton;
+ private System.Windows.Forms.Button rowRemoveButton;
+ private System.Windows.Forms.PictureBox infoPictureBox;
+ private System.Windows.Forms.GroupBox linkPropertiesGroupBox;
+ private System.Windows.Forms.ToolTip toolTip;
+ private System.Windows.Forms.Button updateButton;
+ private System.Windows.Forms.Button resetButton;
+ private System.Windows.Forms.Button rowDownButton;
+ private System.Windows.Forms.Button rowUpButton;
+ private System.Windows.Forms.GroupBox windowIdGroupBox;
+ private System.Windows.Forms.Label windowIdLabel;
+ private System.Windows.Forms.GroupBox skinFileGroupBox;
+ private System.Windows.Forms.Label skinFileLabel;
+ private System.Windows.Forms.GroupBox loadParameterGroupBox;
+ private System.Windows.Forms.TreeView skinLinksTreeView;
+ private System.Windows.Forms.Button saveButton;
+ private System.Windows.Forms.TextBox loadParameterTextBox;
+ private System.Windows.Forms.GroupBox overridesGroupBox;
+ private System.Windows.Forms.GroupBox capsLockGroupBox;
+ private System.Windows.Forms.GroupBox numLockGroupBox;
+ private System.Windows.Forms.ComboBox capsLockComboBox;
+ private System.Windows.Forms.ComboBox numLockComboBox;
+
+ }
+}
\ No newline at end of file
Added: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs (rev 0)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.cs 2014-01-13 16:51:01 UTC (rev 4724)
@@ -0,0 +1,511 @@
+using System;
+using System.ComponentModel;
+using System.Drawing;
+using System.Windows.Forms;
+using MediaPortal.Configuration;
+using MediaPortal.GUI.Library;
+using MediaPortal.Profile;
+using My.Common;
+
+namespace ProcessPlugins.ShortCuter
+{
+ [PluginIcons("ProcessPlugins.ShortCuter.Resources.Images.ShortCuterEnable.png", "ProcessPlugins.ShortCuter.Resources.Images.ShortCuterDisable.png")]
+ public partial class ShortCuterConfig : Form, ISetupForm //Form per la configurazione del plugin, con implementazione interfaccia ISetupForm (per lancio da configurazione MediaPortal)
+ {
+ #region Dati
+ private Skin mySkin; //Istanza classe Skin (dati relativi alla skin di MediaPortal)
+ private ShortCuts myShortCuts; //Istanza classe ShortCuts (dati relativi ai shortcuts configurati)
+ private bool unsavedChanges; //Presenza modifiche da salvare
+ private bool forceCell; //Azione di forzatura valore cella WindowID dello shortcut
+ #endregion
+
+ #region Costruttore
+ public ShortCuterConfig()
+ {
+ InitializeComponent();
+ }
+ #endregion
+
+ #region Metodi Privati
+ private void InitializeGUI() //Inizializzazione interfaccia
+ {
+ skinFilesListBox.DataSource = mySkin.SkinFiles;
+ skinFilesListBox.SelectedIndex = -1;
+ mySkin.FillTreeViewSkinLinks(skinLinksTreeView);
+ skinLinksTreeView.CollapseAll();
+ FormatShortCutsGrid();
+
+ capsLockComboBox.DataSource = Enum.GetNames(typeof(LockKeys.LockKeyActions));
+ capsLockComboBox.SelectedItem = Enum.GetName(typeof(LockKeys.LockKeyActions), myShortCuts.GeneralForcingCapsLock);
+ numLockComboBox.DataSource = Enum.GetNames(typeof(LockKeys.LockKeyActions));
+ numLockComboBox.SelectedItem = Enum.GetName(typeof(LockKeys.LockKeyActions), myShortCuts.GeneralForcingNumLock);
+
+ toolTip.SetToolTip(skinFilesListBox, "Double click to set the link's parameter to shortcut");
+ toolTip.SetToolTip(skinLinksTreeView, "Double click to set the link's parameter to shortcut");
+ toolTip.SetToolTip(rowAddButton, "Add shortcut to list");
+ toolTip.SetToolTip(rowRemoveButton, "Remove selected shortcut from list");
+ toolTip.SetToolTip(rowUpButton, "Move up selected shortcut in list");
+ toolTip.SetToolTip(rowDownButton, "Move down selected shortcut in list");
+ toolTip.SetToolTip(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(infoPictureBox, "Version information");
+
+ unsavedChanges = false; //--> necessario a fine aggiornamento controlli grafici
+ }
+ private void FormatShortCutsGrid() //Formattazione (e popolazione) tabella shortcuts
+ {
+ shortCutsDataGridView.AutoGenerateColumns = false;
+
+ DataGridViewTextBoxColumn captionColumn = new DataGridViewTextBoxColumn();
+ captionColumn.DataPropertyName = "Caption";
+ captionColumn.HeaderText = "Caption";
+ captionColumn.Width = 155;
+ captionColumn.MaxInputLength = 32;
+ captionColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
+ captionColumn.DefaultCellStyle.Font = new Font("Microsoft Sans Serif", 8, FontStyle.Bold);
+ captionColumn.ToolTipText = "Shortcut's title";
+
+ DataGridViewTextBoxColumn keyColumn = new DataGridViewTextBoxColumn();
+ keyColumn.DataPropertyName = "Key";
+ keyColumn.HeaderText = "Key [KeyCode]";
+ keyColumn.Width = 120;
+ keyColumn.MaxInputLength = 24;
+ keyColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
+ keyColumn.DefaultCellStyle.Font = new Font("Microsoft Sans Serif", 8, FontStyle.Bold);
+ keyColumn.DefaultCellStyle.BackColor = Color.Yellow;
+ keyColumn.ReadOnly = true;
+ keyColumn.ToolTipText = "Key assigned to the shortcut";
+
+ DataGridViewCheckBoxColumn ctrlColumn = new DataGridViewCheckBoxColumn();
+ ctrlColumn.DataPropertyName = "Ctrl";
+ ctrlColumn.HeaderText = "Ctrl";
+ ctrlColumn.Width = 30;
+ ctrlColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
+ ctrlColumn.DefaultCellStyle.BackColor = Color.LightCyan;
+ ctrlColumn.ToolTipText = "Use CTRL modifier + Key assigned";
+
+ DataGridViewCheckBoxColumn altColumn = new DataGridViewCheckBoxColumn();
+ altColumn.DataPropertyName = "Alt";
+ altColumn.HeaderText = "Alt";
+ altColumn.Width = 30;
+ altColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
+ altColumn.DefaultCellStyle.BackColor = Color.LightCyan;
+ altColumn.ToolTipText = "Use ALT modifier + Key assigned";
+
+ DataGridViewCheckBoxColumn shiftColumn = new DataGridViewCheckBoxColumn();
+ shiftColumn.DataPropertyName = "Shift";
+ shiftColumn.HeaderText = "Shift";
+ shiftColumn.Width = 30;
+ shiftColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
+ shiftColumn.DefaultCellStyle.BackColor = Color.LightCyan;
+ shiftColumn.ToolTipText = "Use SHIFT modifier + Key assigned";
+
+ DataGridViewTextBoxColumn windowIdColumn = new DataGridViewTextBoxColumn();
+ windowIdColumn.DataPropertyName = "WindowID";
+ windowIdColumn.HeaderText = "Window ID";
+ windowIdColumn.Width = 70;
+ windowIdColumn.MaxInputLength = 10;
+ windowIdColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
+ windowIdColumn.ToolTipText = "MediaPorta window ID for the shortcut's destination";
+
+ DataGridViewTextBoxColumn loadParameterColumn = new DataGridViewTextBoxColumn();
+ loadParameterColumn.DataPropertyName = "LoadParameter";
+ loadParameterColumn.HeaderText = "Load Parameter";
+ loadParameterColumn.Width = 358;
+ loadParameterColumn.MaxInputLength = 300;
+ loadParameterColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
+ loadParameterColumn.ToolTipText = "Any parameter for load window (see destination plugin's documentation)";
+
+ DataGridViewCheckBoxColumn returnColumn = new DataGridViewCheckBoxColumn();
+ returnColumn.DataPropertyName = "Return";
+ returnColumn.HeaderText = "Return";
+ returnColumn.Width = 50;
+ returnColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
+ returnColumn.ToolTipText = "If you're already on the window ID, another activation of the shortcut will display the previous window";
+
+ DataGridViewComboBoxColumn soundEffectColumn = new DataGridViewComboBoxColumn();
+ soundEffectColumn.DataPropertyName = "SoundEffect";
+ soundEffectColumn.HeaderText = "Sound Effect";
+ soundEffectColumn.Width = 140;
+ soundEffectColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
+ soundEffectColumn.FlatStyle = FlatStyle.Flat; //--> necessario con Win7 per aggiornare il colore di sfondo se selezionato
+ soundEffectColumn.DataSource = mySkin.SkinSounds;
+ soundEffectColumn.ToolTipText = "Sound effect played on the shortcut";
+
+ shortCutsDataGridView.Columns.Add(captionColumn);
+ shortCutsDataGridView.Columns.Add(keyColumn);
+ shortCutsDataGridView.Columns.Add(ctrlColumn);
+ shortCutsDataGridView.Columns.Add(altColumn);
+ shortCutsDataGridView.Columns.Add(shiftColumn);
+ shortCutsDataGridView.Columns.Add(windowIdColumn);
+ shortCutsDataGridView.Columns.Add(loadParameterColumn);
+ shortCutsDataGridView.Columns.Add(returnColumn);
+ shortCutsDataGridView.Columns.Add(soundEffectColumn);
+
+ shortCutsDataGridView.DataSource = myShortCuts.Items;
+ }
+ private void ShowLinkProperties(object listControl) //Visualizzazione proprietà link
+ {
+ Control itemsList = (Control)listControl; //Casting sender -> Control
+ int selectedIndex; //Indice eventuale elemento selezionato
+
+ if (itemsList is ListBox)
+ {
+ ListBox listBox = (ListBox)itemsList; //Casting Control -> ListBox
+ selectedIndex = listBox.SelectedIndex; //<-- indice lista selezionato
+ }
+ else
+ {
+ TreeView treeView = (TreeView)itemsList; //Casting Control -> TreeView
+ selectedIndex= mySkin.GetSkinLinkIndex(treeView); //<-- indice nodo selezionato
+ }
+
+ if (selectedIndex < 0) //Se indice invalido --> reset proprietà
+ {
+ skinFileLabel.Text = "-";
+ windowIdLabel.Text = "-";
+ loadParameterTextBox.Text = "-";
+ }
+ else //Visualizzazione proprietà elemento selezionato
+ {
+ switch (itemsList.Name)
+ {
+ case "skinFilesListBox": //Lista files della skin
+ skinFileLabel.Text = mySkin.SkinFiles[selectedIndex].Name;
+ windowIdLabel.Text = mySkin.SkinFiles[selectedIndex].Id.ToString();
+ loadParameterTextBox.Text = "-";
+ break;
+
+ case "skinLinksTreeView": //Lista links predefiniti della skin
+ skinFileLabel.Text = mySkin.SkinLinks[selectedIndex].XmlFile;
+ windowIdLabel.Text = mySkin.SkinLinks[selectedIndex].WindowID.ToString();
+ loadParameterTextBox.Text = mySkin.SkinLinks[selectedIndex].LoadParameter;
+ break;
+ }
+ }
+ }
+ private void ShowLinkItem() //Visualizzazione link corrispondente allo shortcut
+ {
+ if (shortCutsDataGridView.CurrentCell != null)
+ {
+ if (!forceCell) //Non nel caso di forzatura valore cella WindowID (doppio click da lista links)
+ {
+ int showIndex;
+ int windowID = Convert.ToInt32(shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[5].Value);
+ if (itemsTabControl.SelectedIndex == 0)
+ {
+ string loadParameter = Convert.ToString(shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[6].Value);
+ showIndex = mySkin.SkinLinks.FindIndex(x => x.WindowID == windowID && x.LoadParameter == loadParameter);
+ mySkin.SetSkinLinkIndex(skinLinksTreeView, showIndex); //--> selezione eventuale link corrispondente a WindowID & LoadParameter
+ }
+ else
+ {
+ showIndex = mySkin.SkinFiles.FindLastIndex(x => x.Id == windowID);
+ skinFilesListBox.SelectedIndex = showIndex; //--> selezione eventuale file corrispondente a WindowID
+ }
+ }
+ }
+ }
+ private void MoveItemList(bool dirUp) //Spostamento shortcut
+ {
+ if (shortCutsDataGridView.CurrentCell != null)
+ {
+ forceCell = true;
+ int index = shortCutsDataGridView.CurrentRow.Index;
+ shortCutsDataGridView.CurrentCell = shortCutsDataGridView[0, index]; //Importante cambiare la colonna prima di muovere la riga se posizionati su KeyCode (Hook attivo)
+ ShortCut sc = myShortCuts.Items[index];
+ myShortCuts.Items.RemoveAt(index);
+ if (dirUp)
+ index--;
+ else
+ index++;
+ myShortCuts.Items.Insert(index, sc);
+ shortCutsDataGridView.CurrentCell = shortCutsDataGridView[0, index];
+ shortCutsDataGridView.Rows[index].Selected = true;
+ shortCutsDataGridView.Focus();
+ forceCell = false;
+ }
+ }
+ private void MoveItemsListButtonsEnable() //Abilitazione/disabilitazione pulsanti di spostamento shortcuts
+ {
+ if (shortCutsDataGridView.CurrentCell != null)
+ {
+ rowUpButton.Enabled = (shortCutsDataGridView.CurrentRow.Index > 0);
+ rowDownButton.Enabled = (shortCutsDataGridView.CurrentRow.Index < myShortCuts.Items.Count - 1);
+ }
+ else
+ {
+ rowUpButton.Enabled = false;
+ rowDownButton.Enabled = false;
+ }
+ }
+ private bool Save() //Salvataggio configurazione plugin
+ {
+ myShortCuts.GeneralForcingCapsLock = (LockKeys.LockKeyActions)Enum.Parse(typeof(LockKeys.LockKeyActions), capsLockComboBox.SelectedItem.ToString());
+ myShortCuts.GeneralForcingNumLock = (LockKeys.LockKeyActions)Enum.Parse(typeof(LockKeys.LockKeyActions), numLockComboBox.SelectedItem.ToString());
+ return myShortCuts.SaveConfig();
+ }
+ #endregion
+
+ #region Consumazione Eventi
+ #region Eventi Form
+ private void ShortCuterConfig_Load(object sender, EventArgs e)
+ {
+ using (Settings confReader = new MPSettings())
+ {
+ //Raccolta dati relativi alla skin
+ mySkin = new Skin(confReader.GetValueAsString("skin", "name", "DefaultWide"), Config.GetFolder(Config.Dir.Skin) + @"\", Config.GetFolder(Config.Dir.Cache) + @"\");
+ }
+ if (mySkin.Initialized)
+ {
+ string settingsFile = Config.GetFile(Config.Dir.Config, Tools.MyAssembly.Name + ".xml");
+ //Lettura impostazioni e gestione shorcuts
+ myShortCuts = new ShortCuts(settingsFile, true);
+ if (myShortCuts.Initialized)
+ {
+ //Sottoscrizione evento di modifica lista shortcuts
+ myShortCuts.Items.ListChanged += new ListChangedEventHandler(myShortCutsItems_ListChanged);
+
+ //Inizializzazione interfaccia grafica
+ InitializeGUI();
+ }
+ }
+ //Se inizializzazione classi non completata
+ if (!mySkin.Initialized || !myShortCuts.Initialized)
+ {
+ this.Close();
+ this.Dispose();
+ }
+ }
+ private void ShortCuterConfig_Shown(object sender, EventArgs e)
+ {
+ shortCutsDataGridView.Focus();
+ }
+ private void ShortCuterConfig_FormClosing(object sender, FormClosingEventArgs e)
+ {
+ //Se presenti modifiche non salvate: richiesta conferma per chiusura applicazione
+ if (unsavedChanges && !Tools.QuestionMessage("Unsaved changes will be lost...\nDo you want to proceed?"))
+ e.Cancel = true; //--> annullamento chiusura form
+ }
+ #endregion
+ #region Eventi Modifica Griglia
+ private void shortCutsDataGridView_Enter(object sender, EventArgs e)
+ {
+ propLeftPictureBox.Visible = true; //--> il link è collegato allo shortcut selezionato
+ ShowLinkItem();
+ MoveItemsListButtonsEnable();
+ }
+ private void shortCutsDataGridView_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
+ {
+ e.Control.KeyPress -= idTextBox_KeyPress;
+
+ if (e.Control is TextBox && ((DataGridView)(sender)).CurrentCell.ColumnIndex == 5)
+ e.Control.KeyPress += new KeyPressEventHandler(idTextBox_KeyPress); //--> sottoscrizione evento KeyPress per la cella WindowID
+ }
+ void idTextBox_KeyPress(object sender, KeyPressEventArgs e)
+ {
+ if (!(char.IsDigit(e.KeyChar))) //Filtro per input numerico per la cella WindowID
+ {
+ Keys key = (Keys)e.KeyChar;
+ if (!(key == Keys.Back || key == Keys.Delete))
+ {
+ e.Handled = true; //--> carattere inputato da ignorare
+ }
+ }
+ }
+ private void shortCutsDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
+ {
+ //Eventuale visualizzazione form per assegnazione key allo shortcut corrente
+ if (shortCutsDataGridView.CurrentCell != null && shortCutsDataGridView.CurrentCell.ColumnIndex == 1)
+ new ShortCuterKeyConfig(myShortCuts.Items[shortCutsDataGridView.CurrentCell.RowIndex],
+ new Point(Location.X + shortCutsDataGridView.Location.X + 305,
+ Location.Y + shortCutsDataGridView.Location.Y + shortCutsDataGridView.CurrentRow.Height * shortCutsDataGridView.CurrentCell.RowIndex)
+ ).ShowDialog();
+ }
+ private void shortCutsDataGridView_CellEndEdit(object sender, DataGridViewCellEventArgs e)
+ {
+ ShowLinkItem();
+ }
+ private void shortCutsDataGridView_CurrentCellChanged(object sender, EventArgs e)
+ {
+ ShowLinkItem();
+ MoveItemsListButtonsEnable();
+ }
+ private void shortCutsDataGridView_DataError(object sender, DataGridViewDataErrorEventArgs e)
+ {
+ //Gestione evento per evitare messaggi di errore (esempio se file effetto sonoro non disponibile nella skin)
+ }
+ #endregion
+ #region Eventi Modifica Impostazioni Plugin & Shortcuts
+ private void myShortCutsItems_ListChanged(object sender, EventArgs e)
+ {
+ unsavedChanges = true;
+ rowRemoveButton.Enabled = (myShortCuts.Items.Count > 0);
+ MoveItemsListButtonsEnable();
+ }
+ private void rowAddButton_Click(object sender, EventArgs e)
+ {
+ ShortCut sc = new ShortCut();
+ myShortCuts.Items.Add(sc);
+ shortCutsDataGridView.CurrentCell = shortCutsDataGridView[0, shortCutsDataGridView.RowCount - 1];
+ shortCutsDataGridView.Rows[shortCutsDataGridView.RowCount - 1].Selected = true;
+ }
+ private void rowRemoveButton_Click(object sender, EventArgs e)
+ {
+ if (myShortCuts.Items.Count > 0)
+ {
+ myShortCuts.Items.RemoveAt(shortCutsDataGridView.CurrentRow.Index);
+ if (shortCutsDataGridView.RowCount > 0)
+ shortCutsDataGridView.CurrentCell = shortCutsDataGridView[0, 0];
+ }
+ }
+ private void rowUpButton_Click(object sender, EventArgs e)
+ {
+ MoveItemList(true);
+ }
+ private void rowDownButton_Click(object sender, EventArgs e)
+ {
+ MoveItemList(false);
+ }
+ private void resetCapsLockCheckBox_CheckedChanged(object sender, EventArgs e)
+ {
+ unsavedChanges = true;
+ }
+ private void resetNumLockCheckBox_CheckedChanged(object sender, EventArgs e)
+ {
+ unsavedChanges = true;
+ }
+ #endregion
+ #region Eventi Liste Files & Links Skin
+ private void itemsTabControl_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if(itemsTabControl.SelectedIndex == 0)
+ skinLinksTreeView.Focus();
+ else
+ skinFilesListBox.Focus();
+ }
+ private void itemsTabControl_Click(object sender, EventArgs e)
+ {
+ if (itemsTabControl.SelectedIndex == 0)
+ skinLinksTreeView.Focus();
+ else
+ skinFilesListBox.Focus();
+ }
+ private void skinFilesListBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ ShowLinkProperties(sender);
+ }
+ private void skinFilesListBox_Enter(object sender, EventArgs e)
+ {
+ propLeftPictureBox.Visible = false; //--> il link non è collegato allo shortcut selezionato
+ ShowLinkProperties(sender);
+ }
+ private void skinFilesListBox_DoubleClick(object sender, EventArgs e)
+ {
+ if (shortCutsDataGridView.CurrentRow != null && shortCutsDataGridView.RowCount > 0)
+ {
+ shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[5].Value = mySkin.SkinFiles[skinFilesListBox.SelectedIndex].Id.ToString();
+ shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[6].Value = "";
+ forceCell = true;
+ shortCutsDataGridView.CurrentCell = shortCutsDataGridView[5, shortCutsDataGridView.CurrentRow.Index];
+ forceCell = false;
+ }
+ }
+ private void skinLinksTreeView_AfterSelect(object sender, TreeViewEventArgs e)
+ {
+ ShowLinkProperties(sender);
+ }
+ private void skinLinksTreeView_Enter(object sender, EventArgs e)
+ {
+ propLeftPictureBox.Visible = false; //--> il link non è collegato allo shortcut selezionato
+ ShowLinkProperties(sender);
+ }
+ private void skinLinksTreeView_DoubleClick(object sender, EventArgs e)
+ {
+ int skinLinkIndex = mySkin.GetSkinLinkIndex(skinLinksTreeView);
+ if (shortCutsDataGridView.CurrentRow != null && shortCutsDataGridView.RowCount > 0 && skinLinkIndex >= 0)
+ {
+ shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[5].Value = mySkin.SkinLinks[skinLinkIndex].WindowID.ToString();
+ shortCutsDataGridView.Rows[shortCutsDataGridView.CurrentRow.Index].Cells[6].Value = mySkin.SkinLinks[skinLinkIndex].LoadParameter;
+ forceCell = true;
+ shortCutsDataGridView.CurrentCell = shortCutsDataGridView[5, shortCutsDataGridView.CurrentRow.Index];
+ forceCell = false;
+ }
+ }
+ #endregion
+ private void saveButton_Click(object sender, EventArgs e)
+ {
+ if (Save())
+ unsavedChanges = false;
+ }
+ private void updateButton_Click(object sender, EventArgs e)
+ {
+ if (Save())
+ {
+ unsavedChanges = false;
+ this.Close();
+ this.Dispose();
+ }
+ }
+ private void resetButton_Click(object sender, EventArgs e)
+ {
+ if (Tools.QuestionMessage("Configuration data will be overwritten...\nDo you want to proceed?"))
+ {
+ myShortCuts.LoadConfig(true);
+ }
+ }
+ private void infoPictureBox_Click(object sender, EventArgs e)
+ {
+ VersionInfo.ShowInfo(ProcessPlugins.ShortCuter.Properties.Resources.ShortCuter, "...a big thank to MoPath for old version of this plugin!",
+ "http://forum.team-mediaportal.com/threads/shortcuter-plugin-v2.121721/",
+ "http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/17_Extensions/3_Plugins/ShortCut'er");
+ }
+ #endregion
+
+ #region Implementazione ISetupForm
+ public string PluginName()
+ {
+ return Tools.MyAssembly.Title;
+ }
+ public string Description()
+ {
+ return Tools.MyAssembly.Description;
+ }
+ public string Author()
+ {
+ return Tools.MyAssembly.Author;
+ }
+ public void ShowPlugin()
+ {
+ new ShortCuterConfig().ShowDialog();
+ }
+ public bool CanEnable()
+ {
+ return true;
+ }
+ public int GetWindowId()
+ {
+ return -1;
+ }
+ public bool DefaultEnabled()
+ {
+ return false;
+ }
+ public bool HasSetup()
+ {
+ return true;
+ }
+ public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage)
+ {
+ strButtonText = String.Empty;
+ strButtonImage = String.Empty;
+ strButtonImageFocus = String.Empty;
+ strPictureImage = String.Empty;
+ return false;
+ }
+ #endregion
+ }
+}
Added: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.resx
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.resx (rev 0)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterConfig.resx 2014-01-13 16:51:01 UTC (rev 4724)
@@ -0,0 +1,287 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class tha...
[truncated message content] |
|
From: <nic...@us...> - 2014-01-13 16:49:54
|
Revision: 4723
http://sourceforge.net/p/mp-plugins/code/4723
Author: nicsergio
Date: 2014-01-13 16:49:51 +0000 (Mon, 13 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/Common/VersionInfo.resx
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Program.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/Common/VersionInfo.resx
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/Common/VersionInfo.resx 2014-01-12 19:08:05 UTC (rev 4722)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/Common/VersionInfo.resx 2014-01-13 16:49:51 UTC (rev 4723)
@@ -215,42 +215,6 @@
<metadata name="fileHeaderLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
- <metadata name="buildDateLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="authorLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="descriptionLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="titleLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="fileLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="versionLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="versionHeaderLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="buildDateHeaderLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="authorHeaderLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="descriptionHeaderLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="titleHeaderLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="fileHeaderLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
<metadata name="forumLinkLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -317,7 +281,4 @@
<metadata name="commentLabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
- <metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
</root>
\ No newline at end of file
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Program.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Program.cs 2014-01-12 19:08:05 UTC (rev 4722)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Program.cs 2014-01-13 16:49:51 UTC (rev 4723)
@@ -10,7 +10,7 @@
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
- Application.Run(new ShortCuterForm());
+ Application.Run(new ShortCuterConfig());
}
}
}
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs 2014-01-12 19:08:05 UTC (rev 4722)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.Designer.cs 2014-01-13 16:49:51 UTC (rev 4723)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Il codice è stato generato da uno strumento.
-// Versione runtime:4.0.30319.17929
+// Versione runtime:4.0.30319.18052
//
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
// il codice viene rigenerato.
@@ -83,6 +83,16 @@
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
+ internal static System.Drawing.Bitmap Ok {
+ get {
+ object obj = ResourceManager.GetObject("Ok", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
internal static System.Drawing.Bitmap RowAdd {
get {
object obj = ResourceManager.GetObject("RowAdd", resourceCulture);
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx 2014-01-12 19:08:05 UTC (rev 4722)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/Resources.resx 2014-01-13 16:49:51 UTC (rev 4723)
@@ -124,6 +124,10 @@
<data name="Info" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\common\resources\images\info.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
+ <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+ <data name="Ok" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\..\common\resources\images\ok.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
<data name="RowAdd" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\common\resources\images\rowadd.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
@@ -136,7 +140,6 @@
<data name="RowUp" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\common\resources\images\rowup.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
- <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="ShortCuter" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\images\shortcuterenable.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-12 19:08:05 UTC (rev 4722)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-13 16:49:51 UTC (rev 4723)
@@ -5,7 +5,7 @@
using MediaPortal.Configuration;
using MediaPortal.GUI.Library;
using MediaPortal.Util;
-using Action = MediaPortal.GUI.Library.Action;
+//using Action = MediaPortal.GUI.Library.Action;
using My.Common;
namespace ProcessPlugins.ShortCuter
@@ -15,9 +15,10 @@
#region Dati
private ShortCuts myShortCuts; //Istanza classe ShortCuts (dati relativi ai shortcuts configurati)
private static readonly string LogPrefix; //Prefisso per log eventi
- private const int TrailersPluginControlID = 11899; //ID controllo per attivazione plugin Trailers
- private int lastWindowID; //Id finestra per visualizzazione in MediaPortal
- private string lastLoadParameter; //Eventuali parametri di caricamento per visualizzazione (sotto-categorie, ecc.)
+ private const int TrailersPluginControlID = 11899; //Id controllo per attivazione plugin Trailers
+ private const int InvalidWindowID = -1; //Id finestra invalido
+ private int lastWindowID; //Id ultima finestra attivata dal plugin
+ private string lastLoadParameter; //Eventuali ultimi parametri di caricamento usati dal plugin
#endregion
#region Costruttore
@@ -51,12 +52,19 @@
{
MpLog(true, "Error creating raw input hook");
}
+
+ try
+ {
+ //Sottoscrizione evento di attivazione finestra di MediaPortal
+ GUIWindowManager.OnActivateWindow += new GUIWindowManager.WindowActivationHandler(GUIWindowManager_OnActivateWindow);
+ }
+ catch
+ {
+ MpLog(true, "Error subscription ActivateWindow event");
+ }
}
else
- MpLog(true, "Error loading configuration");
-
- //GUIWindowManager.OnNewAction += new OnActionHandler(this.OnKeyPress);
- //GUIWindowManager.OnActivateWindow += new GUIWindowManager.WindowActivationHandler(GUIWindowManager_OnActivateWindow);
+ MpLog(true, "Error loading configuration");
}
public void Stop() //Terminazione del plugin
{
@@ -140,7 +148,7 @@
}
private bool AlreadyAtDestination(ShortCut sc) //Verifica se finestra attuale corrispondente a destinazione shortcut
{
- if ((int)GUIWindowManager.ActiveWindow == sc.WindowID) //Prima verifica: da gestore finestra di mediaPortal
+ if ((int)GUIWindowManager.ActiveWindow == sc.WindowID) //Prima verifica: da gestore finestre di mediaPortal
{
if (lastWindowID == sc.WindowID) //Seconda verifica: utilizzo dei parametri memorizzati dal plugin se attendibili
if (lastLoadParameter == sc.LoadParameter) //--> verifica corrispondenza eventuali parametri di caricamento per visualizzazione
@@ -222,6 +230,11 @@
MpLog(false, "Key not mapped: Key=" + (e.Control ? "<CTRL>" : "") + (e.Alt ? "<ALT>" : "") + (e.Shift ? "<SHIFT>" : "") + "<" + e.KeyCode.ToString() + ">");
}
}
+ private void GUIWindowManager_OnActivateWindow(int windowID) //Evento di attivazione finestra di MediaPortal
+ {
+ if (windowID != lastWindowID) //Se attivata una finestra non corrispondente all'ultima destinazione del plugin
+ lastWindowID = InvalidWindowID; //--> invalidazione parametri memorizzati dal plugin
+ }
#endregion
}
}
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-12 19:08:05 UTC (rev 4722)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-13 16:49:51 UTC (rev 4723)
@@ -98,12 +98,18 @@
</Compile>
<Compile Include="RawInputHook.cs" />
<Compile Include="ShortCuter.cs" />
- <Compile Include="ShortCuterForm.cs">
+ <Compile Include="ShortCuterConfig.cs">
<SubType>Form</SubType>
</Compile>
- <Compile Include="ShortCuterForm.Designer.cs">
- <DependentUpon>ShortCuterForm.cs</DependentUpon>
+ <Compile Include="ShortCuterConfig.Designer.cs">
+ <DependentUpon>ShortCuterConfig.cs</DependentUpon>
</Compile>
+ <Compile Include="ShortCuterKeyConfig.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="ShortCuterKeyConfig.Designer.cs">
+ <DependentUpon>ShortCuterKeyConfig.cs</DependentUpon>
+ </Compile>
<Compile Include="ShortCuts.cs" />
<Compile Include="SkinWithSounds.cs" />
</ItemGroup>
@@ -116,9 +122,12 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
- <EmbeddedResource Include="ShortCuterForm.resx">
- <DependentUpon>ShortCuterForm.cs</DependentUpon>
+ <EmbeddedResource Include="ShortCuterConfig.resx">
+ <DependentUpon>ShortCuterConfig.cs</DependentUpon>
</EmbeddedResource>
+ <EmbeddedResource Include="ShortCuterKeyConfig.resx">
+ <DependentUpon>ShortCuterKeyConfig.cs</DependentUpon>
+ </EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="Properties\Settings.settings">
@@ -151,6 +160,9 @@
<Content Include="..\Common\Resources\Images\Info.png">
<Link>Resources\Images\Info.png</Link>
</Content>
+ <Content Include="..\Common\Resources\Images\Ok.png">
+ <Link>Resources\Images\Ok.png</Link>
+ </Content>
<Content Include="..\Common\Resources\Images\RowAdd.png">
<Link>Resources\Images\RowAdd.png</Link>
</Content>
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs 2014-01-12 19:08:05 UTC (rev 4722)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs 2014-01-13 16:49:51 UTC (rev 4723)
@@ -11,7 +11,7 @@
namespace ProcessPlugins.ShortCuter
{
- internal class ShortCut : INotifyPropertyChanged //Classe shortcut (scorciatoia da tastiera) con notifica variazione proprietà
+ public class ShortCut : INotifyPropertyChanged //Classe shortcut (scorciatoia da tastiera) con notifica variazione proprietà
{
#region Dati
private string _caption; //Titolo
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-12 19:08:08
|
Revision: 4722
http://sourceforge.net/p/mp-plugins/code/4722
Author: nicsergio
Date: 2014-01-12 19:08:05 +0000 (Sun, 12 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-12 18:53:13 UTC (rev 4721)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-12 19:08:05 UTC (rev 4722)
@@ -5,7 +5,7 @@
using MediaPortal.Configuration;
using MediaPortal.GUI.Library;
using MediaPortal.Util;
-//using Action = MediaPortal.GUI.Library.Action;
+using Action = MediaPortal.GUI.Library.Action;
using My.Common;
namespace ProcessPlugins.ShortCuter
@@ -54,6 +54,9 @@
}
else
MpLog(true, "Error loading configuration");
+
+ //GUIWindowManager.OnNewAction += new OnActionHandler(this.OnKeyPress);
+ //GUIWindowManager.OnActivateWindow += new GUIWindowManager.WindowActivationHandler(GUIWindowManager_OnActivateWindow);
}
public void Stop() //Terminazione del plugin
{
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-12 18:53:13 UTC (rev 4721)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-12 19:08:05 UTC (rev 4722)
@@ -6,7 +6,7 @@
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{20CEBE32-A39E-4A61-B2BD-90BF16E2AEE8}</ProjectGuid>
- <OutputType>Library</OutputType>
+ <OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ProcessPlugins.ShortCuter</RootNamespace>
<AssemblyName>ShortCuter</AssemblyName>
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs 2014-01-12 18:53:13 UTC (rev 4721)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs 2014-01-12 19:08:05 UTC (rev 4722)
@@ -119,7 +119,7 @@
returnColumn.HeaderText = "Return";
returnColumn.Width = 50;
returnColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
- returnColumn.ToolTipText = "If you're already on the window ID, another reminder of the shortcut will display the previous window (load parameter will not be verified)";
+ returnColumn.ToolTipText = "If you're already on the window ID, another activation of the shortcut will display the previous window";
DataGridViewComboBoxColumn soundEffectColumn = new DataGridViewComboBoxColumn();
soundEffectColumn.DataPropertyName = "SoundEffect";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-12 18:53:17
|
Revision: 4721
http://sourceforge.net/p/mp-plugins/code/4721
Author: nicsergio
Date: 2014-01-12 18:53:13 +0000 (Sun, 12 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/AssemblyInfo.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/XtremeMenuEditor.csproj
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs 2014-01-10 16:19:47 UTC (rev 4720)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs 2014-01-12 18:53:13 UTC (rev 4721)
@@ -25,8 +25,8 @@
#region Metodi Pubblici
public static bool ChangeCapsLock(LockKeyActions forcing) //Richiesta di modifica stato CapsLock
{
- if ((Control.IsKeyLocked(Keys.CapsLock) & forcing == LockKeyActions.On) ||
- (!Control.IsKeyLocked(Keys.CapsLock) & forcing == LockKeyActions.Off)) //Se richiesta una variazione di stato
+ if ((Control.IsKeyLocked(Keys.CapsLock) & forcing == LockKeyActions.Off) ||
+ (!Control.IsKeyLocked(Keys.CapsLock) & forcing == LockKeyActions.On)) //Se richiesta una variazione di stato
{
keybd_event(VK_CAPITAL, SC_CAPITAL, 0, (UIntPtr)0); //--> simulazione pressione del tasto CapsLock
keybd_event(VK_CAPITAL, SC_CAPITAL, KEYEVENTF_KEYUP, (UIntPtr)0); //--> simulazione rilascio del tasto CapsLock
@@ -37,8 +37,8 @@
}
public static bool ChangeNumLock(LockKeyActions forcing) //Richesta di modifica stato NumLock
{
- if ((Control.IsKeyLocked(Keys.NumLock) & forcing == LockKeyActions.On) ||
- (!Control.IsKeyLocked(Keys.NumLock) & forcing == LockKeyActions.Off)) //Se richiesta una variazione di stato
+ if ((Control.IsKeyLocked(Keys.NumLock) & forcing == LockKeyActions.Off) ||
+ (!Control.IsKeyLocked(Keys.NumLock) & forcing == LockKeyActions.On)) //Se richiesta una variazione di stato
{
keybd_event(VK_NUMLOCK, HK_NUMLOCK, KEYEVENTF_EXTENDEDKEY, (UIntPtr)0); //--> simulazione pressione del tasto NumLock
keybd_event(VK_NUMLOCK, HK_NUMLOCK, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/AssemblyInfo.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/AssemblyInfo.cs 2014-01-10 16:19:47 UTC (rev 4720)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Properties/AssemblyInfo.cs 2014-01-12 18:53:13 UTC (rev 4721)
@@ -33,8 +33,8 @@
// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
// utilizzando l'asterisco (*) come descritto di seguito:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.0.5.0")]
-[assembly: AssemblyFileVersion("2.0.5.0")]
+[assembly: AssemblyVersion("2.0.6.0")]
+[assembly: AssemblyFileVersion("2.0.6.0")]
//Importante per la compatibilità con MediaPortal
[assembly: CompatibleVersion("1.1.6.27644")]
\ No newline at end of file
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-10 16:19:47 UTC (rev 4720)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-12 18:53:13 UTC (rev 4721)
@@ -111,18 +111,55 @@
GUIWindowManager.SendMessage(msg);
//GUIGraphicsContext.SendMessage(msg); //Metodo usato dal vecchio plugin
}
+ lastWindowID = sc.WindowID; lastLoadParameter = sc.LoadParameter; //--> memorizzazione ultima destinazione visualizzata dal plugin
}
catch (Exception e)
{
MpLog(true, "Error going to screen", e);
}
}
- private void GoToPrevious() //Esecuzione azione relativa allo shortcut
+ private void GoToPrevious(bool soundEffect) //Ritorno alla finestra precedente
{
+ try
+ {
+ MpLog(false, "Go to previous window");
+
+ GUIGraphicsContext.ResetLastActivity();
+ if (soundEffect)
+ Utils.PlaySound("back.wav", false, true); //--> eventuale effetto sonoro (indietro)
+
+ GUIWindowManager.ShowPreviousWindow(); //--> visualizzazione finestra precedente
+ }
+ catch (Exception e)
+ {
+ MpLog(true, "Error going to previous window", e);
+ }
}
- private bool AlreadyAtDestination(ShortCut sc)
+ private bool AlreadyAtDestination(ShortCut sc) //Verifica se finestra attuale corrispondente a destinazione shortcut
{
- return false;
+ if ((int)GUIWindowManager.ActiveWindow == sc.WindowID) //Prima verifica: da gestore finestra di mediaPortal
+ {
+ if (lastWindowID == sc.WindowID) //Seconda verifica: utilizzo dei parametri memorizzati dal plugin se attendibili
+ if (lastLoadParameter == sc.LoadParameter) //--> verifica corrispondenza eventuali parametri di caricamento per visualizzazione
+ {
+ MpLog(false, "Actual window (ID & LoadParameter) corresponds to destination, " + sc.ToString());
+ return true; //--> finestra attuale e parametri di caricamento corrispondenti a destinazione shortcut
+ }
+ else
+ return false; //--> parametri di caricamento per visualizzazione non corrispondenti a destinazione shortcut
+ else //Altrimenti parametri memorizzati dal plugin non attendibili (non si riescono a verificare i parametri di caricamento)
+ {
+ if (sc.LoadParameter.Length == 0) //Se destinazione senza parametri di caricamento
+ {
+ MpLog(false, "Actual window (ID) corresponds to destination, " + sc.ToString());
+ return true; //--> finestra attuale corrispondente a destinazione shortcut
+ }
+ else
+ return false; //--> finestra attuale non corrispondente a destinazione shortcut
+ }
+ }
+ else
+ return false; //--> finestra attuale non corrispondente a destinazione shortcut
}
#endregion
@@ -150,37 +187,35 @@
{
if (!ShortCut.ModifierKeys.Contains(e.KeyCode)) //Verifica se il tasto premuto non corrisponde ad un modificatore
{
-
- /*
- -ricerca sc, se nessuno: log
- -se almeno 1, verifica ID finestra
- - se <> da dest: gotoscreen
- - se = a destinazione, verifica se ci sono altri sc
- - se nessun sc, se return = false->gotoscreen altrimenti gotoback
- - se altri sc --> gotoscreen(next)
- */
- List<ShortCut> scList = myShortCuts.Items.ToList().FindAll(x => x.Key == e.KeyCode.ToString()
- && x.Ctrl == e.Control
- && x.Alt == e.Alt
- && x.Shift == e.Shift);
- if (scList != null && scList.Count > 0) //Se la combinazione di tasti corrisponde ad almeno uno shortcut
+ List<ShortCut> scList = myShortCuts.Items.ToList().FindAll(x =>
+ x.Key == e.KeyCode.ToString()
+ && x.Ctrl == e.Control
+ && x.Alt == e.Alt
+ && x.Shift == e.Shift); //--> raccolta lista shortcut associati alla combinazione di tasti attuale
+ if (scList != null && scList.Count > 0) //Se trovato almeno uno shortcut
{
- if (scList.Count == 1)
+ if (scList.Count == 1) //Shortcut a destinazione singola
{
- if (scList[0].Return && AlreadyAtDestination(scList[0]))
- GoToPrevious();
+ if (scList[0].Return && AlreadyAtDestination(scList[0])) //Se impostato flag di ritorno e finestra attuale corrispondente a destinazione
+ GoToPrevious(scList[0].SoundEffect.Length > 0); //--> visualizzazione finestra precedente
else
- GoToScreen(scList[0]);
+ GoToScreen(scList[0]); //--> visualizzazione finestra di destinazione shortcut
}
- else
+ else //Shortcut a destinazione multipla (ciclico)
{
- foreach (ShortCut sc in scList)
- {
-
- }
+ int scIndex = 0;
+ for (int i = 0; i < scList.Count; i++) //Iterazione di verifica se la finestra attuale corrisponde ad una delle destinazioni
+ {
+ if (AlreadyAtDestination(scList[i]))
+ {
+ scIndex = (i + 1) % scList.Count; //--> impostazione indice shortcut successivo
+ break;
+ }
+ }
+ GoToScreen(scList[scIndex]); //--> visualizzazione finestra di destinazione shortcut
}
}
- else
+ else //Combinazione di tasti non corrispondente a nessuno shortcut
MpLog(false, "Key not mapped: Key=" + (e.Control ? "<CTRL>" : "") + (e.Alt ? "<ALT>" : "") + (e.Shift ? "<SHIFT>" : "") + "<" + e.KeyCode.ToString() + ">");
}
}
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-10 16:19:47 UTC (rev 4720)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-12 18:53:13 UTC (rev 4721)
@@ -6,7 +6,7 @@
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{20CEBE32-A39E-4A61-B2BD-90BF16E2AEE8}</ProjectGuid>
- <OutputType>WinExe</OutputType>
+ <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ProcessPlugins.ShortCuter</RootNamespace>
<AssemblyName>ShortCuter</AssemblyName>
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/XtremeMenuEditor.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/XtremeMenuEditor.csproj 2014-01-10 16:19:47 UTC (rev 4720)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/XtremeMenuEditor.csproj 2014-01-12 18:53:13 UTC (rev 4721)
@@ -6,7 +6,7 @@
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{350D17A6-0F6B-43C4-898F-33CC68EBCD75}</ProjectGuid>
- <OutputType>WinExe</OutputType>
+ <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ProcessPlugins.XtremeMenuEditor</RootNamespace>
<AssemblyName>XtremeMenuEditor</AssemblyName>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-10 16:19:50
|
Revision: 4720
http://sourceforge.net/p/mp-plugins/code/4720
Author: nicsergio
Date: 2014-01-10 16:19:47 +0000 (Fri, 10 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/XmlFiles/DefaultConfig.xml
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/XmlFiles/DefaultConfig.xml
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/XmlFiles/DefaultConfig.xml 2014-01-09 22:31:12 UTC (rev 4719)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/XmlFiles/DefaultConfig.xml 2014-01-10 16:19:47 UTC (rev 4720)
@@ -13,6 +13,7 @@
<Shift>1</Shift>
<Hyperlink>35</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>back.wav</SoundEffect>
</Item>
<Item>
@@ -23,6 +24,7 @@
<Shift>1</Shift>
<Hyperlink>0</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>back.wav</SoundEffect>
</Item>
<Item>
@@ -33,6 +35,7 @@
<Shift>1</Shift>
<Hyperlink>1</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
<Item>
@@ -43,6 +46,7 @@
<Shift>1</Shift>
<Hyperlink>602</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
<Item>
@@ -53,6 +57,7 @@
<Shift>1</Shift>
<Hyperlink>600</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
<Item>
@@ -63,6 +68,7 @@
<Shift>1</Shift>
<Hyperlink>7700</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
<Item>
@@ -73,6 +79,7 @@
<Shift>1</Shift>
<Hyperlink>7701</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
<Item>
@@ -83,6 +90,7 @@
<Shift>1</Shift>
<Hyperlink>6</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
<Item>
@@ -93,6 +101,7 @@
<Shift>1</Shift>
<Hyperlink>2005</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
<Item>
@@ -103,6 +112,7 @@
<Shift>1</Shift>
<Hyperlink>30</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
<Item>
@@ -113,6 +123,7 @@
<Shift>1</Shift>
<Hyperlink>501</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
<Item>
@@ -123,6 +134,7 @@
<Shift>1</Shift>
<Hyperlink>2</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
<Item>
@@ -133,6 +145,7 @@
<Shift>1</Shift>
<Hyperlink>7977</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
<Item>
@@ -143,6 +156,7 @@
<Shift>1</Shift>
<Hyperlink>9811</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
<Item>
@@ -153,6 +167,7 @@
<Shift>1</Shift>
<Hyperlink>96742</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
<Item>
@@ -163,6 +178,7 @@
<Shift>1</Shift>
<Hyperlink>3001</Hyperlink>
<HyperlinkParameter />
+ <Return>0</Return>
<SoundEffect>click.wav</SoundEffect>
</Item>
</Items>
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-09 22:31:12 UTC (rev 4719)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-10 16:19:47 UTC (rev 4720)
@@ -1,4 +1,6 @@
using System;
+using System.Collections.Generic;
+using System.Linq;
using System.Windows.Forms;
using MediaPortal.Configuration;
using MediaPortal.GUI.Library;
@@ -14,6 +16,8 @@
private ShortCuts myShortCuts; //Istanza classe ShortCuts (dati relativi ai shortcuts configurati)
private static readonly string LogPrefix; //Prefisso per log eventi
private const int TrailersPluginControlID = 11899; //ID controllo per attivazione plugin Trailers
+ private int lastWindowID; //Id finestra per visualizzazione in MediaPortal
+ private string lastLoadParameter; //Eventuali parametri di caricamento per visualizzazione (sotto-categorie, ecc.)
#endregion
#region Costruttore
@@ -113,6 +117,13 @@
MpLog(true, "Error going to screen", e);
}
}
+ private void GoToPrevious() //Esecuzione azione relativa allo shortcut
+ {
+ }
+ private bool AlreadyAtDestination(ShortCut sc)
+ {
+ return false;
+ }
#endregion
#region Metodi Pubblici
@@ -139,15 +150,38 @@
{
if (!ShortCut.ModifierKeys.Contains(e.KeyCode)) //Verifica se il tasto premuto non corrisponde ad un modificatore
{
- foreach (ShortCut sc in myShortCuts.Items) //Ricerca se la combinazione di tasti corrisponde ad uno shortcut
+
+ /*
+ -ricerca sc, se nessuno: log
+ -se almeno 1, verifica ID finestra
+ - se <> da dest: gotoscreen
+ - se = a destinazione, verifica se ci sono altri sc
+ - se nessun sc, se return = false->gotoscreen altrimenti gotoback
+ - se altri sc --> gotoscreen(next)
+ */
+ List<ShortCut> scList = myShortCuts.Items.ToList().FindAll(x => x.Key == e.KeyCode.ToString()
+ && x.Ctrl == e.Control
+ && x.Alt == e.Alt
+ && x.Shift == e.Shift);
+ if (scList != null && scList.Count > 0) //Se la combinazione di tasti corrisponde ad almeno uno shortcut
{
- if (sc.Key == e.KeyCode.ToString() && sc.Ctrl == e.Control && sc.Alt == e.Alt && sc.Shift == e.Shift)
+ if (scList.Count == 1)
{
- GoToScreen(sc); //--> esecuzione dell'azione relativa allo shortcut
- return;
+ if (scList[0].Return && AlreadyAtDestination(scList[0]))
+ GoToPrevious();
+ else
+ GoToScreen(scList[0]);
}
+ else
+ {
+ foreach (ShortCut sc in scList)
+ {
+
+ }
+ }
}
- MpLog(false, "Key not mapped: Key=" + (e.Control ? "<CTRL>" : "") + (e.Alt ? "<ALT>" : "") + (e.Shift ? "<SHIFT>" : "") + "<" + e.KeyCode.ToString() + ">");
+ else
+ MpLog(false, "Key not mapped: Key=" + (e.Control ? "<CTRL>" : "") + (e.Alt ? "<ALT>" : "") + (e.Shift ? "<SHIFT>" : "") + "<" + e.KeyCode.ToString() + ">");
}
}
#endregion
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs 2014-01-09 22:31:12 UTC (rev 4719)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs 2014-01-10 16:19:47 UTC (rev 4720)
@@ -16,11 +16,12 @@
#region Dati
private string _caption; //Titolo
private string _key; //Tasto (stringa corrispondente a KeyCode)
- private bool _ctrl; //Utilizzo del modificatore "Ctrl" - combinazione di tasti
- private bool _alt; //Utilizzo del modificatore "Alt" - combinazione di tasti
+ private bool _ctrl; //Utilizzo del modificatore "Ctrl" - combinazione di tasti
+ private bool _alt; //Utilizzo del modificatore "Alt" - combinazione di tasti
private bool _shift; //Utilizzo del modificatore "Shift" - combinazione di tasti
private int _windowID; //Id finestra per visualizzazione in MediaPortal
private string _loadParameter; //Eventuali parametri di caricamento per visualizzazione (sotto-categorie, ecc.)
+ private bool _return; //Ritorno a finestra precedente se si è già a destinazione
private string _soundEffect; //File relativo all'eventuale effetto sonoro
public static readonly List<Keys> ModifierKeys = new List<Keys>(); //Lista dei tasti modificatori
@@ -48,6 +49,7 @@
_shift = true; //--> inizializzazione utilizzo del modificatore "Shift"
_windowID = 0; //--> inizializzazione window ID
_loadParameter = ""; //--> inizializzazione parametri di caricamento per visualizzazione
+ _return = false; //--> inizializzazione ritorno a finestra precedente se si è già a destinazione
_soundEffect = "click.wav"; //--> inizializzazione effetto sonoro
}
#endregion
@@ -103,6 +105,7 @@
public bool Shift { get { return this._shift; } set { this._shift = value; this.NotifyPropertyChanged("Shift"); } }
public int WindowID { get { return this._windowID; } set { this._windowID = value; this.NotifyPropertyChanged("WindowID"); } }
public string LoadParameter { get { return this._loadParameter; } set { this._loadParameter = value; this.NotifyPropertyChanged("LoadParameter"); } }
+ public bool Return { get { return this._return; } set { this._return = value; this.NotifyPropertyChanged("Return"); } }
public string SoundEffect { get { return this._soundEffect; } set { this._soundEffect = value; this.NotifyPropertyChanged("SoundEffect"); } }
#endregion
}
@@ -273,6 +276,9 @@
if (innerNode != null)
sc.LoadParameter = innerNode.InnerText;
}
+ innerNode = node.SelectSingleNode("Return");
+ if (innerNode != null)
+ sc.Return = Convert.ToBoolean(Convert.ToInt16(innerNode.InnerText));
innerNode = node.SelectSingleNode("SoundEffect");
if (innerNode != null)
sc.SoundEffect = innerNode.InnerText;
@@ -331,6 +337,7 @@
xmlSettings.WriteElementString("Shift", Convert.ToInt16(sc.Shift).ToString());
xmlSettings.WriteElementString("WindowID", sc.WindowID.ToString());
xmlSettings.WriteElementString("LoadParameter", sc.LoadParameter);
+ xmlSettings.WriteElementString("Return", Convert.ToInt16(sc.Return).ToString());
xmlSettings.WriteElementString("SoundEffect", sc.SoundEffect);
xmlSettings.WriteEndElement();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-09 22:31:16
|
Revision: 4719
http://sourceforge.net/p/mp-plugins/code/4719
Author: nicsergio
Date: 2014-01-09 22:31:12 +0000 (Thu, 09 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx
trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.Designer.cs
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-09 15:50:13 UTC (rev 4718)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-09 22:31:12 UTC (rev 4719)
@@ -32,9 +32,9 @@
myShortCuts = new ShortCuts(settingsFile, false); //--> lettura configurazione relativa agli shortcuts
if (LockKeys.ChangeCapsLock(myShortCuts.GeneralForcingCapsLock))
- MpLog(false, "CapsLock deactivated"); //--> disattivazione CapsLock
+ MpLog(false, "CapsLock " + ((myShortCuts.GeneralForcingCapsLock == LockKeys.LockKeyActions.Off) ? "deactivated" : "activated"));
if (LockKeys.ChangeNumLock(myShortCuts.GeneralForcingNumLock))
- MpLog(false, "NumLock deactivated"); //--> disattivazione NumLock
+ MpLog(false, "NumLock " + ((myShortCuts.GeneralForcingNumLock == LockKeys.LockKeyActions.Off) ? "deactivated" : "activated"));
if (myShortCuts.Initialized) //Se classe di gestione shortcut inizializzata
{
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs 2014-01-09 15:50:13 UTC (rev 4718)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs 2014-01-09 22:31:12 UTC (rev 4719)
@@ -55,10 +55,10 @@
this.propLeftPictureBox = new System.Windows.Forms.PictureBox();
this.saveButton = new System.Windows.Forms.Button();
this.overridesGroupBox = new System.Windows.Forms.GroupBox();
+ this.numLockGroupBox = new System.Windows.Forms.GroupBox();
+ this.numLockComboBox = new System.Windows.Forms.ComboBox();
this.capsLockGroupBox = new System.Windows.Forms.GroupBox();
- this.numLockGroupBox = new System.Windows.Forms.GroupBox();
this.capsLockComboBox = new System.Windows.Forms.ComboBox();
- this.numLockComboBox = new System.Windows.Forms.ComboBox();
((System.ComponentModel.ISupportInitialize)(this.shortCutsDataGridView)).BeginInit();
this.itemsTabControl.SuspendLayout();
this.linksTabPage.SuspendLayout();
@@ -70,8 +70,8 @@
((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).BeginInit();
this.overridesGroupBox.SuspendLayout();
+ this.numLockGroupBox.SuspendLayout();
this.capsLockGroupBox.SuspendLayout();
- this.numLockGroupBox.SuspendLayout();
this.SuspendLayout();
//
// shortCutsDataGridView
@@ -79,6 +79,7 @@
this.shortCutsDataGridView.AllowUserToAddRows = false;
this.shortCutsDataGridView.AllowUserToDeleteRows = false;
this.shortCutsDataGridView.AllowUserToResizeRows = false;
+ this.shortCutsDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(220)))), ((int)(((byte)(227)))));
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
@@ -89,12 +90,12 @@
this.shortCutsDataGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.shortCutsDataGridView.ColumnHeadersHeight = 30;
this.shortCutsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
- this.shortCutsDataGridView.Location = new System.Drawing.Point(6, 314);
+ this.shortCutsDataGridView.Location = new System.Drawing.Point(6, 304);
this.shortCutsDataGridView.MultiSelect = false;
this.shortCutsDataGridView.Name = "shortCutsDataGridView";
this.shortCutsDataGridView.RowHeadersWidth = 20;
this.shortCutsDataGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
- this.shortCutsDataGridView.Size = new System.Drawing.Size(782, 252);
+ this.shortCutsDataGridView.Size = new System.Drawing.Size(1006, 429);
this.shortCutsDataGridView.TabIndex = 0;
this.shortCutsDataGridView.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.shortCutsDataGridView_CellEndEdit);
this.shortCutsDataGridView.CurrentCellChanged += new System.EventHandler(this.shortCutsDataGridView_CurrentCellChanged);
@@ -107,7 +108,7 @@
this.itemsTabControl.Controls.Add(this.linksTabPage);
this.itemsTabControl.Controls.Add(this.skinTabPage);
this.itemsTabControl.ItemSize = new System.Drawing.Size(74, 18);
- this.itemsTabControl.Location = new System.Drawing.Point(332, 19);
+ this.itemsTabControl.Location = new System.Drawing.Point(266, 8);
this.itemsTabControl.Name = "itemsTabControl";
this.itemsTabControl.SelectedIndex = 0;
this.itemsTabControl.Size = new System.Drawing.Size(330, 260);
@@ -156,7 +157,7 @@
this.skinFilesListBox.FormattingEnabled = true;
this.skinFilesListBox.Location = new System.Drawing.Point(1, 5);
this.skinFilesListBox.Name = "skinFilesListBox";
- this.skinFilesListBox.Size = new System.Drawing.Size(298, 225);
+ this.skinFilesListBox.Size = new System.Drawing.Size(318, 225);
this.skinFilesListBox.TabIndex = 0;
this.skinFilesListBox.SelectedIndexChanged += new System.EventHandler(this.skinFilesListBox_SelectedIndexChanged);
this.skinFilesListBox.DoubleClick += new System.EventHandler(this.skinFilesListBox_DoubleClick);
@@ -168,7 +169,7 @@
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(6, 19);
+ this.linkPropertiesGroupBox.Location = new System.Drawing.Point(602, 30);
this.linkPropertiesGroupBox.Name = "linkPropertiesGroupBox";
this.linkPropertiesGroupBox.Size = new System.Drawing.Size(320, 175);
this.linkPropertiesGroupBox.TabIndex = 31;
@@ -251,9 +252,9 @@
// updateButton
//
this.updateButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
- this.updateButton.Location = new System.Drawing.Point(668, 274);
+ this.updateButton.Location = new System.Drawing.Point(67, 84);
this.updateButton.Name = "updateButton";
- this.updateButton.Size = new System.Drawing.Size(120, 38);
+ this.updateButton.Size = new System.Drawing.Size(135, 38);
this.updateButton.TabIndex = 32;
this.updateButton.Text = "Save and Close";
this.updateButton.UseVisualStyleBackColor = false;
@@ -261,9 +262,9 @@
//
// resetButton
//
- this.resetButton.Location = new System.Drawing.Point(668, 67);
+ this.resetButton.Location = new System.Drawing.Point(67, 8);
this.resetButton.Name = "resetButton";
- this.resetButton.Size = new System.Drawing.Size(120, 23);
+ this.resetButton.Size = new System.Drawing.Size(133, 23);
this.resetButton.TabIndex = 33;
this.resetButton.Text = "Reset Configuration";
this.resetButton.UseVisualStyleBackColor = true;
@@ -274,7 +275,7 @@
this.rowDownButton.AutoSize = true;
this.rowDownButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.rowDownButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowDown;
- this.rowDownButton.Location = new System.Drawing.Point(288, 274);
+ this.rowDownButton.Location = new System.Drawing.Point(221, 264);
this.rowDownButton.Name = "rowDownButton";
this.rowDownButton.Size = new System.Drawing.Size(38, 38);
this.rowDownButton.TabIndex = 35;
@@ -286,7 +287,7 @@
this.rowUpButton.AutoSize = true;
this.rowUpButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.rowUpButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowUp;
- this.rowUpButton.Location = new System.Drawing.Point(244, 274);
+ this.rowUpButton.Location = new System.Drawing.Point(177, 264);
this.rowUpButton.Name = "rowUpButton";
this.rowUpButton.Size = new System.Drawing.Size(38, 38);
this.rowUpButton.TabIndex = 34;
@@ -296,7 +297,7 @@
// infoPictureBox
//
this.infoPictureBox.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.Info;
- this.infoPictureBox.Location = new System.Drawing.Point(769, 1);
+ this.infoPictureBox.Location = new System.Drawing.Point(990, 5);
this.infoPictureBox.Name = "infoPictureBox";
this.infoPictureBox.Size = new System.Drawing.Size(24, 24);
this.infoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
@@ -309,7 +310,7 @@
this.rowRemoveButton.AutoSize = true;
this.rowRemoveButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.rowRemoveButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowRemove;
- this.rowRemoveButton.Location = new System.Drawing.Point(50, 274);
+ this.rowRemoveButton.Location = new System.Drawing.Point(50, 264);
this.rowRemoveButton.Name = "rowRemoveButton";
this.rowRemoveButton.Size = new System.Drawing.Size(38, 38);
this.rowRemoveButton.TabIndex = 26;
@@ -321,7 +322,7 @@
this.rowAddButton.AutoSize = true;
this.rowAddButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.rowAddButton.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.RowAdd;
- this.rowAddButton.Location = new System.Drawing.Point(6, 274);
+ 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;
@@ -332,7 +333,7 @@
//
this.propLeftPictureBox.Enabled = false;
this.propLeftPictureBox.Image = global::ProcessPlugins.ShortCuter.Properties.Resources.ArrowDown;
- this.propLeftPictureBox.Location = new System.Drawing.Point(322, 267);
+ this.propLeftPictureBox.Location = new System.Drawing.Point(360, 257);
this.propLeftPictureBox.Name = "propLeftPictureBox";
this.propLeftPictureBox.Size = new System.Drawing.Size(131, 56);
this.propLeftPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
@@ -342,9 +343,9 @@
//
// saveButton
//
- this.saveButton.Location = new System.Drawing.Point(668, 39);
+ this.saveButton.Location = new System.Drawing.Point(67, 35);
this.saveButton.Name = "saveButton";
- this.saveButton.Size = new System.Drawing.Size(120, 23);
+ this.saveButton.Size = new System.Drawing.Size(133, 23);
this.saveButton.TabIndex = 36;
this.saveButton.Text = "Save Configuration";
this.saveButton.UseVisualStyleBackColor = true;
@@ -355,13 +356,33 @@
this.overridesGroupBox.Controls.Add(this.numLockGroupBox);
this.overridesGroupBox.Controls.Add(this.capsLockGroupBox);
this.overridesGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.overridesGroupBox.Location = new System.Drawing.Point(6, 200);
+ this.overridesGroupBox.Location = new System.Drawing.Point(50, 133);
this.overridesGroupBox.Name = "overridesGroupBox";
- this.overridesGroupBox.Size = new System.Drawing.Size(320, 61);
+ this.overridesGroupBox.Size = new System.Drawing.Size(165, 111);
this.overridesGroupBox.TabIndex = 37;
this.overridesGroupBox.TabStop = false;
this.overridesGroupBox.Text = "Overrides at Start-Up";
//
+ // numLockGroupBox
+ //
+ this.numLockGroupBox.Controls.Add(this.numLockComboBox);
+ this.numLockGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.numLockGroupBox.Location = new System.Drawing.Point(6, 63);
+ this.numLockGroupBox.Name = "numLockGroupBox";
+ this.numLockGroupBox.Size = new System.Drawing.Size(152, 42);
+ this.numLockGroupBox.TabIndex = 38;
+ this.numLockGroupBox.TabStop = false;
+ this.numLockGroupBox.Text = "Num-Lock Forcing:";
+ //
+ // numLockComboBox
+ //
+ this.numLockComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.numLockComboBox.FormattingEnabled = true;
+ this.numLockComboBox.Location = new System.Drawing.Point(9, 15);
+ this.numLockComboBox.Name = "numLockComboBox";
+ this.numLockComboBox.Size = new System.Drawing.Size(133, 21);
+ this.numLockComboBox.TabIndex = 1;
+ //
// capsLockGroupBox
//
this.capsLockGroupBox.Controls.Add(this.capsLockComboBox);
@@ -373,17 +394,6 @@
this.capsLockGroupBox.TabStop = false;
this.capsLockGroupBox.Text = "Caps-Lock Forcing:";
//
- // numLockGroupBox
- //
- this.numLockGroupBox.Controls.Add(this.numLockComboBox);
- this.numLockGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.numLockGroupBox.Location = new System.Drawing.Point(164, 15);
- this.numLockGroupBox.Name = "numLockGroupBox";
- this.numLockGroupBox.Size = new System.Drawing.Size(152, 42);
- this.numLockGroupBox.TabIndex = 38;
- this.numLockGroupBox.TabStop = false;
- this.numLockGroupBox.Text = "Num-Lock Forcing:";
- //
// capsLockComboBox
//
this.capsLockComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
@@ -393,20 +403,11 @@
this.capsLockComboBox.Size = new System.Drawing.Size(133, 21);
this.capsLockComboBox.TabIndex = 0;
//
- // numLockComboBox
- //
- this.numLockComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.numLockComboBox.FormattingEnabled = true;
- this.numLockComboBox.Location = new System.Drawing.Point(9, 15);
- this.numLockComboBox.Name = "numLockComboBox";
- this.numLockComboBox.Size = new System.Drawing.Size(133, 21);
- this.numLockComboBox.TabIndex = 1;
- //
// ShortCuterForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(794, 572);
+ this.ClientSize = new System.Drawing.Size(1018, 740);
this.Controls.Add(this.overridesGroupBox);
this.Controls.Add(this.saveButton);
this.Controls.Add(this.rowDownButton);
@@ -441,8 +442,8 @@
((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).EndInit();
this.overridesGroupBox.ResumeLayout(false);
+ this.numLockGroupBox.ResumeLayout(false);
this.capsLockGroupBox.ResumeLayout(false);
- this.numLockGroupBox.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs 2014-01-09 15:50:13 UTC (rev 4718)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs 2014-01-09 22:31:12 UTC (rev 4719)
@@ -58,19 +58,21 @@
DataGridViewTextBoxColumn captionColumn = new DataGridViewTextBoxColumn();
captionColumn.DataPropertyName = "Caption";
captionColumn.HeaderText = "Caption";
- captionColumn.Width = 120;
+ captionColumn.Width = 155;
captionColumn.MaxInputLength = 32;
captionColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
captionColumn.DefaultCellStyle.Font = new Font("Microsoft Sans Serif", 8, FontStyle.Bold);
+ captionColumn.ToolTipText = "Shortcut's title";
DataGridViewTextBoxColumn keyColumn = new DataGridViewTextBoxColumn();
keyColumn.DataPropertyName = "Key";
keyColumn.HeaderText = "Key [KeyCode]";
- keyColumn.Width = 110;
+ keyColumn.Width = 120;
keyColumn.MaxInputLength = 24;
keyColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
keyColumn.DefaultCellStyle.Font = new Font("Microsoft Sans Serif", 8, FontStyle.Bold);
keyColumn.DefaultCellStyle.BackColor = Color.Yellow;
+ keyColumn.ToolTipText = "Key assigned to the shortcut";
DataGridViewCheckBoxColumn ctrlColumn = new DataGridViewCheckBoxColumn();
ctrlColumn.DataPropertyName = "Ctrl";
@@ -78,6 +80,7 @@
ctrlColumn.Width = 30;
ctrlColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
ctrlColumn.DefaultCellStyle.BackColor = Color.LightCyan;
+ ctrlColumn.ToolTipText = "Use CTRL modifier + Key assigned";
DataGridViewCheckBoxColumn altColumn = new DataGridViewCheckBoxColumn();
altColumn.DataPropertyName = "Alt";
@@ -85,6 +88,7 @@
altColumn.Width = 30;
altColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
altColumn.DefaultCellStyle.BackColor = Color.LightCyan;
+ altColumn.ToolTipText = "Use ALT modifier + Key assigned";
DataGridViewCheckBoxColumn shiftColumn = new DataGridViewCheckBoxColumn();
shiftColumn.DataPropertyName = "Shift";
@@ -92,6 +96,7 @@
shiftColumn.Width = 30;
shiftColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
shiftColumn.DefaultCellStyle.BackColor = Color.LightCyan;
+ shiftColumn.ToolTipText = "Use SHIFT modifier + Key assigned";
DataGridViewTextBoxColumn windowIdColumn = new DataGridViewTextBoxColumn();
windowIdColumn.DataPropertyName = "WindowID";
@@ -99,22 +104,31 @@
windowIdColumn.Width = 70;
windowIdColumn.MaxInputLength = 10;
windowIdColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
+ windowIdColumn.ToolTipText = "MediaPorta window ID for the shortcut's destination";
DataGridViewTextBoxColumn loadParameterColumn = new DataGridViewTextBoxColumn();
loadParameterColumn.DataPropertyName = "LoadParameter";
loadParameterColumn.HeaderText = "Load Parameter";
- loadParameterColumn.Width = 222;
+ loadParameterColumn.Width = 358;
loadParameterColumn.MaxInputLength = 300;
loadParameterColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
- loadParameterColumn.DefaultCellStyle.Font = new Font("Microsoft Sans Serif", 7, FontStyle.Regular);
+ loadParameterColumn.ToolTipText = "Any parameter for load window (see destination plugin's documentation)";
+ DataGridViewCheckBoxColumn returnColumn = new DataGridViewCheckBoxColumn();
+ returnColumn.DataPropertyName = "Return";
+ returnColumn.HeaderText = "Return";
+ returnColumn.Width = 50;
+ returnColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
+ returnColumn.ToolTipText = "If you're already on the window ID, another reminder of the shortcut will display the previous window (load parameter will not be verified)";
+
DataGridViewComboBoxColumn soundEffectColumn = new DataGridViewComboBoxColumn();
soundEffectColumn.DataPropertyName = "SoundEffect";
soundEffectColumn.HeaderText = "Sound Effect";
- soundEffectColumn.Width = 130;
+ soundEffectColumn.Width = 140;
soundEffectColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
soundEffectColumn.FlatStyle = FlatStyle.Flat; //--> necessario con Win7 per aggiornare il colore di sfondo se selezionato
soundEffectColumn.DataSource = mySkin.SkinSounds;
+ soundEffectColumn.ToolTipText = "Sound effect played on the shortcut";
shortCutsDataGridView.Columns.Add(captionColumn);
shortCutsDataGridView.Columns.Add(keyColumn);
@@ -123,6 +137,7 @@
shortCutsDataGridView.Columns.Add(shiftColumn);
shortCutsDataGridView.Columns.Add(windowIdColumn);
shortCutsDataGridView.Columns.Add(loadParameterColumn);
+ shortCutsDataGridView.Columns.Add(returnColumn);
shortCutsDataGridView.Columns.Add(soundEffectColumn);
shortCutsDataGridView.DataSource = myShortCuts.Items;
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx 2014-01-09 15:50:13 UTC (rev 4718)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx 2014-01-09 22:31:12 UTC (rev 4719)
@@ -117,9 +117,93 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
+ <metadata name="shortCutsDataGridView.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="itemsTabControl.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="linksTabPage.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="skinLinksTreeView.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="skinTabPage.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="skinFilesListBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="linkPropertiesGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="loadParameterGroupBox.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="windowIdGroupBox.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="skinFileGroupBox.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="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>4, 2</value>
</metadata>
+ <metadata name="updateButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</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="rowDownButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="rowUpButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="infoPictureBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="rowRemoveButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="rowAddButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="propLeftPictureBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="saveButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="overridesGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="numLockGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="numLockComboBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="capsLockGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="capsLockComboBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>25</value>
</metadata>
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.Designer.cs 2014-01-09 15:50:13 UTC (rev 4718)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/XtremeMenuEditor/BHEditorForm.Designer.cs 2014-01-09 22:31:12 UTC (rev 4719)
@@ -1050,7 +1050,7 @@
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Control;
- this.ClientSize = new System.Drawing.Size(1019, 602);
+ this.ClientSize = new System.Drawing.Size(1018, 602);
this.Controls.Add(this.menuPanel);
this.Controls.Add(this.propertiesPanel);
this.Controls.Add(this.infoPictureBox);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-09 15:50:17
|
Revision: 4718
http://sourceforge.net/p/mp-plugins/code/4718
Author: nicsergio
Date: 2014-01-09 15:50:13 +0000 (Thu, 09 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/XmlFiles/DefaultConfig.xml
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs 2014-01-08 18:11:03 UTC (rev 4717)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs 2014-01-09 15:50:13 UTC (rev 4718)
@@ -1,11 +1,10 @@
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
-using System.ComponentModel;
namespace ProcessPlugins.ShortCuter
{
- internal static class LockKeys //Classe per disattivazione blocco maiuscole/numeri
+ internal static class LockKeys //Classe per modifica stato blocco maiuscole/numeri
{
#region Costanti
const int KEYEVENTF_EXTENDEDKEY = 0x1; //Da impostare come flag per far precedere il codice per la scansione HW dal byte 0xE0 (tasti estesi)
@@ -15,38 +14,36 @@
const int VK_CAPITAL = 0x14; //Codice VirtualKey di CapsLock
const int SC_CAPITAL = 0x3A; //Codice HardwareKey di CapsLock (per scansione HW -> bScan)
- public enum LockKeyTypes
+ public enum LockKeyActions //Tipologie di azioni di modica stato
{
- ForceOff = 0,
- [Description("Force OFF (reccomended)")]
- HereIsAnother = 2,
- [Description("Last one")]
- LastOne = 3
+ Off = 0, //--> reset blocco
+ On = 1, //--> forzatura blocco
+ None = 2 //--> nessuna modifica (stato invariato)
}
-
-
#endregion
#region Metodi Pubblici
- public static bool ResetCapsLock() //Richesta di disattivazione CapsLock
+ public static bool ChangeCapsLock(LockKeyActions forcing) //Richiesta di modifica stato CapsLock
{
- if (Control.IsKeyLocked(Keys.CapsLock)) //Se CapsLock attivo
+ if ((Control.IsKeyLocked(Keys.CapsLock) & forcing == LockKeyActions.On) ||
+ (!Control.IsKeyLocked(Keys.CapsLock) & forcing == LockKeyActions.Off)) //Se richiesta una variazione di stato
{
keybd_event(VK_CAPITAL, SC_CAPITAL, 0, (UIntPtr)0); //--> simulazione pressione del tasto CapsLock
keybd_event(VK_CAPITAL, SC_CAPITAL, KEYEVENTF_KEYUP, (UIntPtr)0); //--> simulazione rilascio del tasto CapsLock
- return true; //--> CapsLock disattivato
+ return true; //--> stato CapsLock modificato
}
else
return false; //--> stato CapsLock non modificato
}
- public static bool ResetNumLock() //Richesta di disattivazione NumLock
+ public static bool ChangeNumLock(LockKeyActions forcing) //Richesta di modifica stato NumLock
{
- if (Control.IsKeyLocked(Keys.NumLock)) //Se NumLock attivo
+ if ((Control.IsKeyLocked(Keys.NumLock) & forcing == LockKeyActions.On) ||
+ (!Control.IsKeyLocked(Keys.NumLock) & forcing == LockKeyActions.Off)) //Se richiesta una variazione di stato
{
keybd_event(VK_NUMLOCK, HK_NUMLOCK, KEYEVENTF_EXTENDEDKEY, (UIntPtr)0); //--> simulazione pressione del tasto NumLock
keybd_event(VK_NUMLOCK, HK_NUMLOCK, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,
(UIntPtr)0); //--> simulazione rilascio del tasto NumLock
- return true; //--> NumLock disattivato
+ return true; //--> stato NumLock modificato
}
else
return false; //--> stato NumLock non modificato
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/XmlFiles/DefaultConfig.xml
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/XmlFiles/DefaultConfig.xml 2014-01-08 18:11:03 UTC (rev 4717)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/Resources/XmlFiles/DefaultConfig.xml 2014-01-09 15:50:13 UTC (rev 4718)
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<ShortCuter>
<General>
- <ResetCapsLock>1</ResetCapsLock>
- <ResetNumLock>0</ResetNumLock>
+ <ForcingCapsLock>Off</ForcingCapsLock>
+ <ForcingNumLock>None</ForcingNumLock>
</General>
<Items>
<Item>
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-08 18:11:03 UTC (rev 4717)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-09 15:50:13 UTC (rev 4718)
@@ -30,12 +30,12 @@
string settingsFile = Config.GetFile(Config.Dir.Config, Tools.MyAssembly.Name + ".xml");
myShortCuts = new ShortCuts(settingsFile, false); //--> lettura configurazione relativa agli shortcuts
- if (myShortCuts.GeneralResetCapsLock)
- if (LockKeys.ResetCapsLock())
- MpLog(false, "CapsLock deactivated"); //--> disattivazione CapsLock
- if (myShortCuts.GeneralResetNumLock)
- if (LockKeys.ResetNumLock())
- MpLog(false, "NumLock deactivated"); //--> disattivazione NumLock
+
+ if (LockKeys.ChangeCapsLock(myShortCuts.GeneralForcingCapsLock))
+ MpLog(false, "CapsLock deactivated"); //--> disattivazione CapsLock
+ if (LockKeys.ChangeNumLock(myShortCuts.GeneralForcingNumLock))
+ MpLog(false, "NumLock deactivated"); //--> disattivazione NumLock
+
if (myShortCuts.Initialized) //Se classe di gestione shortcut inizializzata
{
try
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs 2014-01-08 18:11:03 UTC (rev 4717)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs 2014-01-09 15:50:13 UTC (rev 4718)
@@ -55,7 +55,10 @@
this.propLeftPictureBox = new System.Windows.Forms.PictureBox();
this.saveButton = new System.Windows.Forms.Button();
this.overridesGroupBox = new System.Windows.Forms.GroupBox();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.capsLockGroupBox = new System.Windows.Forms.GroupBox();
+ this.numLockGroupBox = new System.Windows.Forms.GroupBox();
+ this.capsLockComboBox = new System.Windows.Forms.ComboBox();
+ this.numLockComboBox = new System.Windows.Forms.ComboBox();
((System.ComponentModel.ISupportInitialize)(this.shortCutsDataGridView)).BeginInit();
this.itemsTabControl.SuspendLayout();
this.linksTabPage.SuspendLayout();
@@ -67,6 +70,8 @@
((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).BeginInit();
this.overridesGroupBox.SuspendLayout();
+ this.capsLockGroupBox.SuspendLayout();
+ this.numLockGroupBox.SuspendLayout();
this.SuspendLayout();
//
// shortCutsDataGridView
@@ -347,7 +352,8 @@
//
// overridesGroupBox
//
- this.overridesGroupBox.Controls.Add(this.groupBox1);
+ this.overridesGroupBox.Controls.Add(this.numLockGroupBox);
+ this.overridesGroupBox.Controls.Add(this.capsLockGroupBox);
this.overridesGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.overridesGroupBox.Location = new System.Drawing.Point(6, 200);
this.overridesGroupBox.Name = "overridesGroupBox";
@@ -356,16 +362,46 @@
this.overridesGroupBox.TabStop = false;
this.overridesGroupBox.Text = "Overrides at Start-Up";
//
- // groupBox1
+ // capsLockGroupBox
//
- this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.groupBox1.Location = new System.Drawing.Point(4, 13);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(152, 42);
- this.groupBox1.TabIndex = 37;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "Window ID:";
+ this.capsLockGroupBox.Controls.Add(this.capsLockComboBox);
+ this.capsLockGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.capsLockGroupBox.Location = new System.Drawing.Point(6, 15);
+ this.capsLockGroupBox.Name = "capsLockGroupBox";
+ this.capsLockGroupBox.Size = new System.Drawing.Size(152, 42);
+ this.capsLockGroupBox.TabIndex = 37;
+ this.capsLockGroupBox.TabStop = false;
+ this.capsLockGroupBox.Text = "Caps-Lock Forcing:";
//
+ // numLockGroupBox
+ //
+ this.numLockGroupBox.Controls.Add(this.numLockComboBox);
+ this.numLockGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.numLockGroupBox.Location = new System.Drawing.Point(164, 15);
+ this.numLockGroupBox.Name = "numLockGroupBox";
+ this.numLockGroupBox.Size = new System.Drawing.Size(152, 42);
+ this.numLockGroupBox.TabIndex = 38;
+ this.numLockGroupBox.TabStop = false;
+ this.numLockGroupBox.Text = "Num-Lock Forcing:";
+ //
+ // capsLockComboBox
+ //
+ this.capsLockComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.capsLockComboBox.FormattingEnabled = true;
+ this.capsLockComboBox.Location = new System.Drawing.Point(9, 15);
+ this.capsLockComboBox.Name = "capsLockComboBox";
+ this.capsLockComboBox.Size = new System.Drawing.Size(133, 21);
+ this.capsLockComboBox.TabIndex = 0;
+ //
+ // numLockComboBox
+ //
+ this.numLockComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.numLockComboBox.FormattingEnabled = true;
+ this.numLockComboBox.Location = new System.Drawing.Point(9, 15);
+ this.numLockComboBox.Name = "numLockComboBox";
+ this.numLockComboBox.Size = new System.Drawing.Size(133, 21);
+ this.numLockComboBox.TabIndex = 1;
+ //
// ShortCuterForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -405,6 +441,8 @@
((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).EndInit();
this.overridesGroupBox.ResumeLayout(false);
+ this.capsLockGroupBox.ResumeLayout(false);
+ this.numLockGroupBox.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
@@ -436,7 +474,10 @@
private System.Windows.Forms.Button saveButton;
private System.Windows.Forms.TextBox loadParameterTextBox;
private System.Windows.Forms.GroupBox overridesGroupBox;
- private System.Windows.Forms.GroupBox groupBox1;
+ private System.Windows.Forms.GroupBox capsLockGroupBox;
+ private System.Windows.Forms.GroupBox numLockGroupBox;
+ private System.Windows.Forms.ComboBox capsLockComboBox;
+ private System.Windows.Forms.ComboBox numLockComboBox;
}
}
\ No newline at end of file
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs 2014-01-08 18:11:03 UTC (rev 4717)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs 2014-01-09 15:50:13 UTC (rev 4718)
@@ -36,9 +36,11 @@
skinLinksTreeView.CollapseAll();
FormatShortCutsGrid();
- resetCapsLockCheckBox.Checked = myShortCuts.GeneralResetCapsLock;
- resetNumLockCheckBox.Checked = myShortCuts.GeneralResetNumLock;
-
+ capsLockComboBox.DataSource = Enum.GetNames(typeof(LockKeys.LockKeyActions));
+ capsLockComboBox.SelectedItem = Enum.GetName(typeof(LockKeys.LockKeyActions), myShortCuts.GeneralForcingCapsLock);
+ numLockComboBox.DataSource = Enum.GetNames(typeof(LockKeys.LockKeyActions));
+ numLockComboBox.SelectedItem = Enum.GetName(typeof(LockKeys.LockKeyActions), myShortCuts.GeneralForcingNumLock);
+
toolTip.SetToolTip(skinFilesListBox, "Double click to set the link's parameter to shortcut");
toolTip.SetToolTip(skinLinksTreeView, "Double click to set the link's parameter to shortcut");
toolTip.SetToolTip(rowAddButton, "Add shortcut to list");
@@ -222,8 +224,8 @@
}
private bool Save() //Salvataggio configurazione plugin
{
- myShortCuts.GeneralResetCapsLock = resetCapsLockCheckBox.Checked;
- myShortCuts.GeneralResetNumLock = resetNumLockCheckBox.Checked;
+ myShortCuts.GeneralForcingCapsLock = (LockKeys.LockKeyActions)Enum.Parse(typeof(LockKeys.LockKeyActions), capsLockComboBox.SelectedItem.ToString());
+ myShortCuts.GeneralForcingNumLock = (LockKeys.LockKeyActions)Enum.Parse(typeof(LockKeys.LockKeyActions), numLockComboBox.SelectedItem.ToString());
return myShortCuts.SaveConfig();
}
#endregion
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs 2014-01-08 18:11:03 UTC (rev 4717)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs 2014-01-09 15:50:13 UTC (rev 4718)
@@ -113,8 +113,8 @@
private readonly bool ConfigContext; //Utilizzo nella fase di configurazione (altrimenti plugin in esecuzione)
private struct GeneralSettings //Struttura impostazioni generali
{
- public bool ResetCapsLock; //Reset attivazione Caps-Lock all'avvio
- public bool ResetNumLock; //Reset attivazione Num-Lock all'avvio
+ public LockKeys.LockKeyActions ForcingCapsLock; //Tipologia di forzatura Caps-Lock all'avvio
+ public LockKeys.LockKeyActions ForcingNumLock; //Tipologia di forzatura Num-Lock all'avvio
}
private GeneralSettings _general = new GeneralSettings(); //Impostazioni generali plugin
private BindingList<ShortCut> _items = new BindingList<ShortCut>(); //Lista (con associazione dati) degli shortcuts configurati
@@ -126,6 +126,8 @@
{
SettingsFile = settingsFile; //--> percorso & nome file delle impostazioni
ConfigContext = configContext; //--> utilizzo nella fase di configurazione (altrimenti plugin in esecuzione)
+ _general.ForcingCapsLock = LockKeys.LockKeyActions.None; //--> default: nessuna modifica stato Caps-Lock
+ _general.ForcingNumLock = LockKeys.LockKeyActions.None; //--> default: nessuna modifica stato Num-Lock
_initialized = LoadConfig(false); //--> caricamento configurazione (standard) shortcuts
if (!_initialized)
{
@@ -214,13 +216,25 @@
XmlNode innerNode;
XmlNode generalNode = xmlFile.DocumentElement.SelectSingleNode("/ShortCuter/General");
if (generalNode != null) //Se presente sezione "General" (implementata da V2.0.5)
- {
- innerNode = generalNode.SelectSingleNode("ResetCapsLock");
+ {
+ innerNode = generalNode.SelectSingleNode("ForcingCapsLock");
if (innerNode != null)
- _general.ResetCapsLock = Convert.ToBoolean(Convert.ToInt16(innerNode.InnerText));
- innerNode = generalNode.SelectSingleNode("ResetNumLock");
+ _general.ForcingCapsLock = (LockKeys.LockKeyActions)Enum.Parse(typeof(LockKeys.LockKeyActions), innerNode.InnerText);
+ else
+ {
+ innerNode = generalNode.SelectSingleNode("ResetCapsLock"); //Necessario per compatibilità con file di configurazione V2.0.5.0
+ if (innerNode != null && Convert.ToBoolean(Convert.ToInt16(innerNode.InnerText)))
+ _general.ForcingCapsLock = LockKeys.LockKeyActions.Off;
+ }
+ innerNode = generalNode.SelectSingleNode("ForcingNumLock");
if (innerNode != null)
- _general.ResetNumLock = Convert.ToBoolean(Convert.ToInt16(innerNode.InnerText));
+ _general.ForcingNumLock = (LockKeys.LockKeyActions)Enum.Parse(typeof(LockKeys.LockKeyActions), innerNode.InnerText);
+ else
+ {
+ innerNode = generalNode.SelectSingleNode("ResetNumLock"); //Necessario per compatibilità con file di configurazione V2.0.5.0
+ if (innerNode != null && Convert.ToBoolean(Convert.ToInt16(innerNode.InnerText)))
+ _general.ForcingNumLock = LockKeys.LockKeyActions.Off;
+ }
}
XmlNodeList nodeList = xmlFile.DocumentElement.SelectNodes("/ShortCuter/Items/Item");
foreach (XmlNode node in nodeList) //Iterazione per memorizzazione impostazioni shortcuts
@@ -303,8 +317,8 @@
xmlSettings.WriteStartElement("ShortCuter");
xmlSettings.WriteStartElement("General");
- xmlSettings.WriteElementString("ResetCapsLock", Convert.ToInt16(_general.ResetCapsLock).ToString());
- xmlSettings.WriteElementString("ResetNumLock", Convert.ToInt16(_general.ResetNumLock).ToString());
+ xmlSettings.WriteElementString("ForcingCapsLock", _general.ForcingCapsLock.ToString());
+ xmlSettings.WriteElementString("ForcingNumLock", _general.ForcingNumLock.ToString());
xmlSettings.WriteEndElement();
xmlSettings.WriteStartElement("Items");
foreach (ShortCut sc in _items) //Iterazione per salvataggio sortcuts
@@ -342,10 +356,10 @@
#endregion
#region Proprietà
- public bool Initialized { get { return this._initialized; } }
- public bool GeneralResetCapsLock { get { return this._general.ResetCapsLock; } set { this._general.ResetCapsLock = value; } }
- public bool GeneralResetNumLock { get { return this._general.ResetNumLock; } set { this._general.ResetNumLock = value; } }
- public BindingList<ShortCut> Items { get { return this._items; } }
+ public bool Initialized { get { return this._initialized; } }
+ public LockKeys.LockKeyActions GeneralForcingCapsLock { get { return this._general.ForcingCapsLock; } set { this._general.ForcingCapsLock = value; } }
+ public LockKeys.LockKeyActions GeneralForcingNumLock { get { return this._general.ForcingNumLock; } set { this._general.ForcingNumLock = value; } }
+ public BindingList<ShortCut> Items { get { return this._items; } }
#endregion
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-08 18:11:08
|
Revision: 4717
http://sourceforge.net/p/mp-plugins/code/4717
Author: nicsergio
Date: 2014-01-08 18:11:03 +0000 (Wed, 08 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/MediaPortalPlugins.sln
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/MediaPortalPlugins.sln
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/MediaPortalPlugins.sln 2014-01-08 16:11:59 UTC (rev 4716)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/MediaPortalPlugins.sln 2014-01-08 18:11:03 UTC (rev 4717)
@@ -29,7 +29,6 @@
{350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Debug|x86.Build.0 = DLL|x86
{350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Release|Any CPU.ActiveCfg = DLL|x86
{350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Release|Mixed Platforms.ActiveCfg = EXE|x86
- {350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Release|Mixed Platforms.Build.0 = EXE|x86
{350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Release|x86.ActiveCfg = DLL|x86
{350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Release|x86.Build.0 = DLL|x86
{4D76B200-01C9-48C6-BA04-DAF0845D56B0}.Debug|Any CPU.ActiveCfg = Release|Any CPU
@@ -48,6 +47,7 @@
{20CEBE32-A39E-4A61-B2BD-90BF16E2AEE8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{20CEBE32-A39E-4A61-B2BD-90BF16E2AEE8}.Release|Any CPU.Build.0 = Release|Any CPU
{20CEBE32-A39E-4A61-B2BD-90BF16E2AEE8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {20CEBE32-A39E-4A61-B2BD-90BF16E2AEE8}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{20CEBE32-A39E-4A61-B2BD-90BF16E2AEE8}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs 2014-01-08 16:11:59 UTC (rev 4716)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs 2014-01-08 18:11:03 UTC (rev 4717)
@@ -55,6 +55,7 @@
this.propLeftPictureBox = new System.Windows.Forms.PictureBox();
this.saveButton = new System.Windows.Forms.Button();
this.overridesGroupBox = new System.Windows.Forms.GroupBox();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
((System.ComponentModel.ISupportInitialize)(this.shortCutsDataGridView)).BeginInit();
this.itemsTabControl.SuspendLayout();
this.linksTabPage.SuspendLayout();
@@ -65,6 +66,7 @@
this.skinFileGroupBox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).BeginInit();
+ this.overridesGroupBox.SuspendLayout();
this.SuspendLayout();
//
// shortCutsDataGridView
@@ -345,6 +347,7 @@
//
// overridesGroupBox
//
+ this.overridesGroupBox.Controls.Add(this.groupBox1);
this.overridesGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.overridesGroupBox.Location = new System.Drawing.Point(6, 200);
this.overridesGroupBox.Name = "overridesGroupBox";
@@ -353,6 +356,16 @@
this.overridesGroupBox.TabStop = false;
this.overridesGroupBox.Text = "Overrides at Start-Up";
//
+ // groupBox1
+ //
+ this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.groupBox1.Location = new System.Drawing.Point(4, 13);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Size = new System.Drawing.Size(152, 42);
+ this.groupBox1.TabIndex = 37;
+ this.groupBox1.TabStop = false;
+ this.groupBox1.Text = "Window ID:";
+ //
// ShortCuterForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -391,6 +404,7 @@
this.skinFileGroupBox.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).EndInit();
+ this.overridesGroupBox.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
@@ -422,6 +436,7 @@
private System.Windows.Forms.Button saveButton;
private System.Windows.Forms.TextBox loadParameterTextBox;
private System.Windows.Forms.GroupBox overridesGroupBox;
+ private System.Windows.Forms.GroupBox groupBox1;
}
}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <nic...@us...> - 2014-01-08 16:12:02
|
Revision: 4716
http://sourceforge.net/p/mp-plugins/code/4716
Author: nicsergio
Date: 2014-01-08 16:11:59 +0000 (Wed, 08 Jan 2014)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ShortCuter&SkinEditor/Source/MediaPortalPlugins.sln
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx
Added Paths:
-----------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs
Removed Paths:
-------------
trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/UnlockKeys.cs
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/MediaPortalPlugins.sln
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/MediaPortalPlugins.sln 2014-01-05 14:41:43 UTC (rev 4715)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/MediaPortalPlugins.sln 2014-01-08 16:11:59 UTC (rev 4716)
@@ -25,7 +25,6 @@
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Debug|Any CPU.ActiveCfg = DLL|x86
{350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Debug|Mixed Platforms.ActiveCfg = DLL|x86
- {350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Debug|Mixed Platforms.Build.0 = DLL|x86
{350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Debug|x86.ActiveCfg = DLL|x86
{350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Debug|x86.Build.0 = DLL|x86
{350D17A6-0F6B-43C4-898F-33CC68EBCD75}.Release|Any CPU.ActiveCfg = DLL|x86
@@ -36,7 +35,6 @@
{4D76B200-01C9-48C6-BA04-DAF0845D56B0}.Debug|Any CPU.ActiveCfg = Release|Any CPU
{4D76B200-01C9-48C6-BA04-DAF0845D56B0}.Debug|Any CPU.Build.0 = Release|Any CPU
{4D76B200-01C9-48C6-BA04-DAF0845D56B0}.Debug|Mixed Platforms.ActiveCfg = Release|Any CPU
- {4D76B200-01C9-48C6-BA04-DAF0845D56B0}.Debug|Mixed Platforms.Build.0 = Release|Any CPU
{4D76B200-01C9-48C6-BA04-DAF0845D56B0}.Debug|x86.ActiveCfg = Release|Any CPU
{4D76B200-01C9-48C6-BA04-DAF0845D56B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4D76B200-01C9-48C6-BA04-DAF0845D56B0}.Release|Any CPU.Build.0 = Release|Any CPU
Added: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs (rev 0)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/LockKeys.cs 2014-01-08 16:11:59 UTC (rev 4716)
@@ -0,0 +1,62 @@
+using System;
+using System.Runtime.InteropServices;
+using System.Windows.Forms;
+using System.ComponentModel;
+
+namespace ProcessPlugins.ShortCuter
+{
+ internal static class LockKeys //Classe per disattivazione blocco maiuscole/numeri
+ {
+ #region Costanti
+ const int KEYEVENTF_EXTENDEDKEY = 0x1; //Da impostare come flag per far precedere il codice per la scansione HW dal byte 0xE0 (tasti estesi)
+ const int KEYEVENTF_KEYUP = 0x2; //Da impostare come flag per ottenere l'azione di rilascio del tasto
+ const int VK_NUMLOCK = 0x90; //Codice VirtualKey di NumLock
+ const int HK_NUMLOCK = 0x45; //Codice HardwareKey di NumLock (per scansione HW -> bScan)
+ const int VK_CAPITAL = 0x14; //Codice VirtualKey di CapsLock
+ const int SC_CAPITAL = 0x3A; //Codice HardwareKey di CapsLock (per scansione HW -> bScan)
+
+ public enum LockKeyTypes
+ {
+ ForceOff = 0,
+ [Description("Force OFF (reccomended)")]
+ HereIsAnother = 2,
+ [Description("Last one")]
+ LastOne = 3
+ }
+
+
+ #endregion
+
+ #region Metodi Pubblici
+ public static bool ResetCapsLock() //Richesta di disattivazione CapsLock
+ {
+ if (Control.IsKeyLocked(Keys.CapsLock)) //Se CapsLock attivo
+ {
+ keybd_event(VK_CAPITAL, SC_CAPITAL, 0, (UIntPtr)0); //--> simulazione pressione del tasto CapsLock
+ keybd_event(VK_CAPITAL, SC_CAPITAL, KEYEVENTF_KEYUP, (UIntPtr)0); //--> simulazione rilascio del tasto CapsLock
+ return true; //--> CapsLock disattivato
+ }
+ else
+ return false; //--> stato CapsLock non modificato
+ }
+ public static bool ResetNumLock() //Richesta di disattivazione NumLock
+ {
+ if (Control.IsKeyLocked(Keys.NumLock)) //Se NumLock attivo
+ {
+ keybd_event(VK_NUMLOCK, HK_NUMLOCK, KEYEVENTF_EXTENDEDKEY, (UIntPtr)0); //--> simulazione pressione del tasto NumLock
+ keybd_event(VK_NUMLOCK, HK_NUMLOCK, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,
+ (UIntPtr)0); //--> simulazione rilascio del tasto NumLock
+ return true; //--> NumLock disattivato
+ }
+ else
+ return false; //--> stato NumLock non modificato
+ }
+ #endregion
+
+ #region Importazione DLL
+ //Simulazione eventi di tastiera
+ [DllImport("user32.dll")]
+ static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, UIntPtr dwExtraInfo);
+ #endregion
+ }
+}
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-05 14:41:43 UTC (rev 4715)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.cs 2014-01-08 16:11:59 UTC (rev 4716)
@@ -31,10 +31,10 @@
string settingsFile = Config.GetFile(Config.Dir.Config, Tools.MyAssembly.Name + ".xml");
myShortCuts = new ShortCuts(settingsFile, false); //--> lettura configurazione relativa agli shortcuts
if (myShortCuts.GeneralResetCapsLock)
- if (UnlockKeys.ResetCapsLock())
+ if (LockKeys.ResetCapsLock())
MpLog(false, "CapsLock deactivated"); //--> disattivazione CapsLock
if (myShortCuts.GeneralResetNumLock)
- if (UnlockKeys.ResetNumLock())
+ if (LockKeys.ResetNumLock())
MpLog(false, "NumLock deactivated"); //--> disattivazione NumLock
if (myShortCuts.Initialized) //Se classe di gestione shortcut inizializzata
{
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-05 14:41:43 UTC (rev 4715)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuter.csproj 2014-01-08 16:11:59 UTC (rev 4716)
@@ -6,7 +6,7 @@
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{20CEBE32-A39E-4A61-B2BD-90BF16E2AEE8}</ProjectGuid>
- <OutputType>Library</OutputType>
+ <OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ProcessPlugins.ShortCuter</RootNamespace>
<AssemblyName>ShortCuter</AssemblyName>
@@ -83,7 +83,7 @@
</Compile>
<Compile Include="KeyboardHookWorker.cs" />
<Compile Include="KeyboardHook.cs" />
- <Compile Include="UnlockKeys.cs" />
+ <Compile Include="LockKeys.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs 2014-01-05 14:41:43 UTC (rev 4715)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.Designer.cs 2014-01-08 16:11:59 UTC (rev 4716)
@@ -55,8 +55,6 @@
this.propLeftPictureBox = new System.Windows.Forms.PictureBox();
this.saveButton = new System.Windows.Forms.Button();
this.overridesGroupBox = new System.Windows.Forms.GroupBox();
- this.resetNumLockCheckBox = new System.Windows.Forms.CheckBox();
- this.resetCapsLockCheckBox = new System.Windows.Forms.CheckBox();
((System.ComponentModel.ISupportInitialize)(this.shortCutsDataGridView)).BeginInit();
this.itemsTabControl.SuspendLayout();
this.linksTabPage.SuspendLayout();
@@ -67,7 +65,6 @@
this.skinFileGroupBox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).BeginInit();
- this.overridesGroupBox.SuspendLayout();
this.SuspendLayout();
//
// shortCutsDataGridView
@@ -348,40 +345,14 @@
//
// overridesGroupBox
//
- this.overridesGroupBox.Controls.Add(this.resetNumLockCheckBox);
- this.overridesGroupBox.Controls.Add(this.resetCapsLockCheckBox);
this.overridesGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.overridesGroupBox.Location = new System.Drawing.Point(6, 216);
+ this.overridesGroupBox.Location = new System.Drawing.Point(6, 200);
this.overridesGroupBox.Name = "overridesGroupBox";
- this.overridesGroupBox.Size = new System.Drawing.Size(320, 45);
+ this.overridesGroupBox.Size = new System.Drawing.Size(320, 61);
this.overridesGroupBox.TabIndex = 37;
this.overridesGroupBox.TabStop = false;
this.overridesGroupBox.Text = "Overrides at Start-Up";
//
- // resetNumLockCheckBox
- //
- this.resetNumLockCheckBox.AutoSize = true;
- this.resetNumLockCheckBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.resetNumLockCheckBox.Location = new System.Drawing.Point(204, 22);
- this.resetNumLockCheckBox.Name = "resetNumLockCheckBox";
- this.resetNumLockCheckBox.Size = new System.Drawing.Size(106, 17);
- this.resetNumLockCheckBox.TabIndex = 7;
- this.resetNumLockCheckBox.Text = "Reset Num-Lock";
- this.resetNumLockCheckBox.UseVisualStyleBackColor = true;
- this.resetNumLockCheckBox.CheckedChanged += new System.EventHandler(this.resetNumLockCheckBox_CheckedChanged);
- //
- // resetCapsLockCheckBox
- //
- this.resetCapsLockCheckBox.AutoSize = true;
- this.resetCapsLockCheckBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.resetCapsLockCheckBox.Location = new System.Drawing.Point(6, 22);
- this.resetCapsLockCheckBox.Name = "resetCapsLockCheckBox";
- this.resetCapsLockCheckBox.Size = new System.Drawing.Size(108, 17);
- this.resetCapsLockCheckBox.TabIndex = 6;
- this.resetCapsLockCheckBox.Text = "Reset Caps-Lock";
- this.resetCapsLockCheckBox.UseVisualStyleBackColor = true;
- this.resetCapsLockCheckBox.CheckedChanged += new System.EventHandler(this.resetCapsLockCheckBox_CheckedChanged);
- //
// ShortCuterForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -420,8 +391,6 @@
this.skinFileGroupBox.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.infoPictureBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.propLeftPictureBox)).EndInit();
- this.overridesGroupBox.ResumeLayout(false);
- this.overridesGroupBox.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@@ -453,8 +422,6 @@
private System.Windows.Forms.Button saveButton;
private System.Windows.Forms.TextBox loadParameterTextBox;
private System.Windows.Forms.GroupBox overridesGroupBox;
- private System.Windows.Forms.CheckBox resetNumLockCheckBox;
- private System.Windows.Forms.CheckBox resetCapsLockCheckBox;
}
}
\ No newline at end of file
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs 2014-01-05 14:41:43 UTC (rev 4715)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.cs 2014-01-08 16:11:59 UTC (rev 4716)
@@ -35,8 +35,10 @@
mySkin.FillTreeViewSkinLinks(skinLinksTreeView);
skinLinksTreeView.CollapseAll();
FormatShortCutsGrid();
+
resetCapsLockCheckBox.Checked = myShortCuts.GeneralResetCapsLock;
resetNumLockCheckBox.Checked = myShortCuts.GeneralResetNumLock;
+
toolTip.SetToolTip(skinFilesListBox, "Double click to set the link's parameter to shortcut");
toolTip.SetToolTip(skinLinksTreeView, "Double click to set the link's parameter to shortcut");
toolTip.SetToolTip(rowAddButton, "Add shortcut to list");
Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx 2014-01-05 14:41:43 UTC (rev 4715)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuterForm.resx 2014-01-08 16:11:59 UTC (rev 4716)
@@ -117,87 +117,9 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
- <metadata name="shortCutsDataGridView.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="itemsTabControl.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="linksTabPage.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="skinLinksTreeView.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="skinTabPage.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="skinFilesListBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="linkPropertiesGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="loadParameterGroupBox.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="windowIdGroupBox.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="skinFileGroupBox.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="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>4, 2</value>
</metadata>
- <metadata name="updateButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</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="rowDownButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="rowUpButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="infoPictureBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="rowRemoveButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="rowAddButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="propLeftPictureBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="saveButton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="overridesGroupBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="resetNumLockCheckBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="resetCapsLockCheckBox.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>25</value>
</metadata>
Deleted: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/UnlockKeys.cs
===================================================================
--- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/UnlockKeys.cs 2014-01-05 14:41:43 UTC (rev 4715)
+++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/UnlockKeys.cs 2014-01-08 16:11:59 UTC (rev 4716)
@@ -1,50 +0,0 @@
-using System;
-using System.Runtime.InteropServices;
-using System.Windows.Forms;
-
-namespace ProcessPlugins.ShortCuter
-{
- internal static class UnlockKeys //Classe per disattivazione blocco maiuscole/numeri
- {
- #region Costanti
- const int KEYEVENTF_EXTENDEDKEY = 0x1; //Da impostare come flag per far precedere il codice per la scansione HW dal byte 0xE0 (tasti estesi)
- const int KEYEVENTF_KEYUP = 0x2; //Da impostare come flag per ottenere l'azione di rilascio del tasto
- const int VK_NUMLOCK = 0x90; //Codice VirtualKey di NumLock
- const int HK_NUMLOCK = 0x45; //Codice HardwareKey di NumLock (per scansione HW -> bScan)
- const int VK_CAPITAL = 0x14; //Codice VirtualKey di CapsLock
- const int SC_CAPITAL = 0x3A; //Codice HardwareKey di CapsLock (per scansione HW -> bScan)
- #endregion
-
- #region Metodi Pubblici
- public static bool ResetCapsLock() //Richesta di disattivazione CapsLock
- {
- if (Control.IsKeyLocked(Keys.CapsLock)) //Se CapsLock attivo
- {
- keybd_event(VK_CAPITAL, SC_CAPITAL, 0, (UIntPtr)0); //--> simulazione pressione del tasto CapsLock
- keybd_event(VK_CAPITAL, SC_CAPITAL, KEYEVENTF_KEYUP, (UIntPtr)0); //--> simulazione rilascio del tasto CapsLock
- return true; //--> CapsLock disattivato
- }
- else
- return false; //--> stato CapsLock non modificato
- }
- public static bool ResetNumLock() //Richesta di disattivazione NumLock
- {
- if (Control.IsKeyLocked(Keys.NumLock)) //Se NumLock attivo
- {
- keybd_event(VK_NUMLOCK, HK_NUMLOCK, KEYEVENTF_EXTENDEDKEY, (UIntPtr)0); //--> simulazione pressione del tasto NumLock
- keybd_event(VK_NUMLOCK, HK_NUMLOCK, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,
- (UIntPtr)0); //--> simulazione rilascio del tasto NumLock
- return true; //--> NumLock disattivato
- }
- else
- return false; //--> stato NumLock non modificato
- }
- #endregion
-
- #region Importazione DLL
- //Simulazione eventi di tastiera
- [DllImport("user32.dll")]
- static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, UIntPtr dwExtraInfo);
- #endregion
- }
-}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|