Merge branch 'develop' of git://github.com/Vocaluxe/Vocaluxe into XmlSerialization
This commit is contained in:
commit
a2aafd4614
13 files changed
+1533
-1213
No files matched your search
@@ -0,0 +1,58 @@
|
|||||||
|
# Build Vocaluxe - HowTo (Windows)
|
||||||
|
|
||||||
|
* Navigate to the right repository: usually [Vocaluxe Main](https://github.com/Vocaluxe/Vocaluxe)
|
||||||
|
* Navigate to the right branch: usually [develop](https://github.com/Vocaluxe/Vocaluxe/tree/develop) (The main branch of Vocaluxe)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
* Copy the `URL` of the corresponding git file
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
* Make sure [Visual Studio 2012/2013(?)](http://www.visualstudio.com/downloads/download-visual-studio-vs#d-express-windows-desktop) is installed
|
||||||
|
|
||||||
|
* Clone the repository and open it
|
||||||
|
|
||||||
|
**Method A: Use Visual Studio (2013+)'s git client:**
|
||||||
|
* Start Visual Studio
|
||||||
|
* `VIEW`->`Team Explorer`
|
||||||
|
* Click on the `Connect to a Team Project` button inside the `Team Explorer`
|
||||||
|
* Click on `Clone` under `Local Git Repositories`
|
||||||
|
* Enter `[theCopiedGitUrl]` in the first field
|
||||||
|
* Enter a target folder in the second field
|
||||||
|
* Click clone
|
||||||
|

|
||||||
|
|
||||||
|
**Method B: Use commandline git client:**
|
||||||
|
* Make sure git is installed [git-scm](http://git-scm.com/)
|
||||||
|
* Open a `git bash` (there should be a link in the start menu)
|
||||||
|
or a normal commandline if you have added git to the `PATH` variable
|
||||||
|
* Navigate to the folder where git should create the Vocaluxe project folder
|
||||||
|
|
||||||
|
```
|
||||||
|
cd [PathToYourFolder]
|
||||||
|
```
|
||||||
|
* Clone the repository (could take some time...)
|
||||||
|
```
|
||||||
|
git clone [theCopiedGitUrl]
|
||||||
|
```
|
||||||
|

|
||||||
|
|
||||||
|
* Now you should find a Folder `Vocaluxe` in the given directory -> navigate into it
|
||||||
|
|
||||||
|
* Open the file `Vocaluxe.sln` with Visual Studio
|
||||||
|
|
||||||
|
* Configure the build target to `ReleaseWin` and `x86` or `x64` (if unsure -> select `x86`)
|
||||||
|
* Build the projects by clicking `"Build"->"Build solution"` or just press `Control`+`Shift`+`B`
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
* Check if your build was successful
|
||||||
|

|
||||||
|
|
||||||
|
* YOUR build should have appeared here:
|
||||||
|
```
|
||||||
|
[PathToYourFolder]\Vocaluxe\Output
|
||||||
|
```
|
||||||
|
* Run `Vocaluxe.exe` or copy the whole folder to a location of your choice
|
||||||
|
* Have fun!
|
||||||
@@ -33,6 +33,7 @@ namespace ServerLib
|
|||||||
private bool _Encrypted;
|
private bool _Encrypted;
|
||||||
|
|
||||||
public static SendKeyEventDelegate SendKeyEvent { internal get; set; }
|
public static SendKeyEventDelegate SendKeyEvent { internal get; set; }
|
||||||
|
public static SendKeyStringEventDelegate SendKeyStringEvent { internal get; set; }
|
||||||
|
|
||||||
#region profile
|
#region profile
|
||||||
public static GetProfileDataDelegate GetProfileData { internal get; set; }
|
public static GetProfileDataDelegate GetProfileData { internal get; set; }
|
||||||
|
|||||||
@@ -58,6 +58,23 @@ namespace ServerLib
|
|||||||
CServer.SendKeyEvent(key);
|
CServer.SendKeyEvent(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SendKeyStringEvent(string keyString, bool isShiftPressed = false, bool isAltPressed = false, bool isCtrlPressed = false)
|
||||||
|
{
|
||||||
|
if (!_CheckRight(EUserRights.UseKeyboard))
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (CServer.SendKeyStringEvent == null)
|
||||||
|
{
|
||||||
|
if (WebOperationContext.Current != null)
|
||||||
|
{
|
||||||
|
WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.NotFound;
|
||||||
|
WebOperationContext.Current.OutgoingResponse.StatusDescription = "Not found";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
CServer.SendKeyStringEvent(keyString, isShiftPressed, isAltPressed, isCtrlPressed);
|
||||||
|
}
|
||||||
|
|
||||||
#region profile
|
#region profile
|
||||||
public int GetOwnProfileId()
|
public int GetOwnProfileId()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ using System.Text.RegularExpressions;
|
|||||||
namespace ServerLib
|
namespace ServerLib
|
||||||
{
|
{
|
||||||
public delegate bool SendKeyEventDelegate(string key);
|
public delegate bool SendKeyEventDelegate(string key);
|
||||||
|
public delegate bool SendKeyStringEventDelegate(string keyString, bool isShiftPressed , bool isAltPressed , bool isCtrlPressed);
|
||||||
|
|
||||||
#region profile
|
#region profile
|
||||||
public delegate SProfileData GetProfileDataDelegate(int profileId, bool isReadonly);
|
public delegate SProfileData GetProfileDataDelegate(int profileId, bool isReadonly);
|
||||||
|
|||||||
@@ -30,6 +30,11 @@ namespace ServerLib
|
|||||||
UriTemplate = "/sendKeyEvent?key={key}")]
|
UriTemplate = "/sendKeyEvent?key={key}")]
|
||||||
void SendKeyEvent(string key);
|
void SendKeyEvent(string key);
|
||||||
|
|
||||||
|
[OperationContract, WebInvoke(Method = "GET",
|
||||||
|
ResponseFormat = WebMessageFormat.Json,
|
||||||
|
UriTemplate = "/sendKeyStringEvent?keyString={keyString}&shift={isShiftPressed}&alt={isAltPressed}&ctrl={isCtrlPressed}")]
|
||||||
|
void SendKeyStringEvent(string keyString, bool isShiftPressed = false, bool isAltPressed = false, bool isCtrlPressed = false);
|
||||||
|
|
||||||
#region profile
|
#region profile
|
||||||
[OperationContract, WebInvoke(Method = "GET",
|
[OperationContract, WebInvoke(Method = "GET",
|
||||||
ResponseFormat = WebMessageFormat.Json,
|
ResponseFormat = WebMessageFormat.Json,
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
using System.Windows.Forms;
|
||||||
using VocaluxeLib;
|
using VocaluxeLib;
|
||||||
|
|
||||||
namespace Vocaluxe.Base
|
namespace Vocaluxe.Base
|
||||||
@@ -185,8 +186,11 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
// ReSharper disable ConditionIsAlwaysTrueOrFalse
|
// ReSharper disable ConditionIsAlwaysTrueOrFalse
|
||||||
if (VersionRevision != ERevision.Release)
|
if (VersionRevision != ERevision.Release)
|
||||||
|
{
|
||||||
// ReSharper restore ConditionIsAlwaysTrueOrFalse
|
// ReSharper restore ConditionIsAlwaysTrueOrFalse
|
||||||
version += " " + _GetVersionStatus() + String.Format(" ({0:0000)}", _Assembly.Version.Revision);
|
var gitversion = Application.ProductVersion;
|
||||||
|
version += " " + _GetVersionStatus() + String.Format(" ({0})", gitversion);
|
||||||
|
}
|
||||||
|
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ namespace Vocaluxe.Base.Server
|
|||||||
_Server = new CServer(CConfig.Config.Server.ServerPort, CConfig.Config.Server.ServerEncryption == EOffOn.TR_CONFIG_ON);
|
_Server = new CServer(CConfig.Config.Server.ServerPort, CConfig.Config.Server.ServerEncryption == EOffOn.TR_CONFIG_ON);
|
||||||
|
|
||||||
CServer.SendKeyEvent = _SendKeyEvent;
|
CServer.SendKeyEvent = _SendKeyEvent;
|
||||||
|
CServer.SendKeyStringEvent = _sendKeyStringEvent;
|
||||||
CServer.GetProfileData = _GetProfileData;
|
CServer.GetProfileData = _GetProfileData;
|
||||||
CServer.SendProfileData = _SendProfileData;
|
CServer.SendProfileData = _SendProfileData;
|
||||||
CServer.GetProfileList = _GetProfileList;
|
CServer.GetProfileList = _GetProfileList;
|
||||||
@@ -125,9 +126,11 @@ namespace Vocaluxe.Base.Server
|
|||||||
private static bool _SendKeyEvent(string key)
|
private static bool _SendKeyEvent(string key)
|
||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
if (!string.IsNullOrEmpty(key))
|
var lowerKey = key.ToLower();
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(lowerKey))
|
||||||
{
|
{
|
||||||
switch (key.ToLower())
|
switch (lowerKey)
|
||||||
{
|
{
|
||||||
case "up":
|
case "up":
|
||||||
Controller.AddKeyEvent(new SKeyEvent(ESender.Keyboard, false, false, false, false, Char.MinValue, Keys.Up));
|
Controller.AddKeyEvent(new SKeyEvent(ESender.Keyboard, false, false, false, false, Char.MinValue, Keys.Up));
|
||||||
@@ -157,25 +160,22 @@ namespace Vocaluxe.Base.Server
|
|||||||
Controller.AddKeyEvent(new SKeyEvent(ESender.Keyboard, false, false, false, false, Char.MinValue, Keys.Tab));
|
Controller.AddKeyEvent(new SKeyEvent(ESender.Keyboard, false, false, false, false, Char.MinValue, Keys.Tab));
|
||||||
result = true;
|
result = true;
|
||||||
break;
|
break;
|
||||||
|
case "backspace":
|
||||||
|
Controller.AddKeyEvent(new SKeyEvent(ESender.Keyboard, false, false, false, false, Char.MinValue, Keys.Back));
|
||||||
|
result = true;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
foreach (char c in key)
|
if (lowerKey.StartsWith("f"))
|
||||||
{
|
{
|
||||||
bool shift = true;
|
var numberString = lowerKey.Substring(1);
|
||||||
char keyChar;
|
int number;
|
||||||
if (char.ToUpper(c) != c)
|
Keys fKey;
|
||||||
{
|
|
||||||
keyChar = char.ToUpper(c);
|
|
||||||
shift = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
keyChar = c;
|
|
||||||
|
|
||||||
if ((keyChar >= '0' && keyChar <= '9') || (keyChar >= 'A' && keyChar <= 'Z'))
|
if (Int32.TryParse(numberString, out number) && number >= 1
|
||||||
|
&& number <= 12
|
||||||
|
&& Enum.TryParse("F" + number, true, out fKey))
|
||||||
{
|
{
|
||||||
Keys keys = (Keys)keyChar;
|
Controller.AddKeyEvent(new SKeyEvent(ESender.Keyboard, false, false, false, false, Char.MinValue, fKey));
|
||||||
if (shift)
|
|
||||||
keys |= Keys.Shift;
|
|
||||||
Controller.AddKeyEvent(new SKeyEvent(ESender.Keyboard, false, false, false, false, Char.MinValue, keys));
|
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -186,6 +186,43 @@ namespace Vocaluxe.Base.Server
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static bool _sendKeyStringEvent(string keyString, bool isShiftPressed , bool isAltPressed , bool isCtrlPressed )
|
||||||
|
{
|
||||||
|
bool result = false;
|
||||||
|
|
||||||
|
foreach (var key in keyString.ToCharArray())
|
||||||
|
{
|
||||||
|
Controller.AddKeyEvent(new SKeyEvent(ESender.Keyboard, isAltPressed,
|
||||||
|
Char.IsUpper(key) || isShiftPressed,
|
||||||
|
isCtrlPressed, true,
|
||||||
|
isShiftPressed?Char.ToUpper(key) :key,
|
||||||
|
_ParseKeys(key)));
|
||||||
|
result = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Keys _ParseKeys(char keyText)
|
||||||
|
{
|
||||||
|
Keys key;
|
||||||
|
|
||||||
|
if (!Enum.TryParse(keyText.ToString(), true, out key))
|
||||||
|
{
|
||||||
|
switch (keyText)
|
||||||
|
{
|
||||||
|
case ' ':
|
||||||
|
key = Keys.Space;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
key = Keys.None;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
#region profile
|
#region profile
|
||||||
private static SProfileData _GetProfileData(int profileId, bool isReadonly)
|
private static SProfileData _GetProfileData(int profileId, bool isReadonly)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -50,4 +50,5 @@ using System.Runtime.InteropServices;
|
|||||||
//
|
//
|
||||||
|
|
||||||
[assembly: AssemblyVersion("0.3.0.83")]
|
[assembly: AssemblyVersion("0.3.0.83")]
|
||||||
[assembly: AssemblyFileVersion("0.3.0.83")]
|
[assembly: AssemblyFileVersion("0.3.0.83")]
|
||||||
|
[assembly: AssemblyInformationalVersion("GITVERSION")]
|
||||||
@@ -521,7 +521,11 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent>xcopy /E /D /Y "$(ProjectDir)\Website" "$(SolutionDir)\PhoneGap"</PostBuildEvent>
|
<PostBuildEvent>xcopy /E /D /Y "$(ProjectDir)\Website" "$(SolutionDir)\PhoneGap"
|
||||||
|
powershell -command "(Get-Content -Encoding UTF8 '$(ProjectDir)Properties\AssemblyInfo.cs') | Foreach-Object {$_ -replace '(?<=AssemblyInformationalVersion\()(.*)(?=\))', '\"GITVERSION\"'} | Set-Content -Encoding UTF8 '$(ProjectDir)Properties\AssemblyInfo.cs'"</PostBuildEvent>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<PreBuildEvent>powershell -command "$version = git describe --long; (Get-Content -Encoding UTF8 '$(ProjectDir)Properties\AssemblyInfo.cs') | Foreach-Object {$_ -replace 'GITVERSION', $version} | Set-Content -Encoding UTF8 '$(ProjectDir)Properties\AssemblyInfo.cs'"</PreBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- /page -->
|
<!-- /page -->
|
||||||
|
|
||||||
<div id="main" data-role="page" data-content-theme="a">
|
<div id="main" data-role="page" data-content-theme="a" data-add-back-btn="false">
|
||||||
<div data-role="header">
|
<div data-role="header">
|
||||||
<h1>Volcaluxe</h1>
|
<h1>Volcaluxe</h1>
|
||||||
</div>
|
</div>
|
||||||
@@ -297,14 +297,36 @@
|
|||||||
<div class="ui-block-c">
|
<div class="ui-block-c">
|
||||||
<a data-role="button" id="keyboardButtonReturn" data-i18n="keyboardButtonReturn"></a>
|
<a data-role="button" id="keyboardButtonReturn" data-i18n="keyboardButtonReturn"></a>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="ui-block-a">
|
||||||
|
<!--
|
||||||
|
<fieldset data-role="controlgroup" data-type="horizontal">
|
||||||
|
<input type="checkbox" name="keyboardButtonFunct" id="keyboardButtonFunct" />
|
||||||
|
<label data-i18n="keyboardButtonFunct" for="keyboardButtonFunct"></label>
|
||||||
|
</fieldset>-->
|
||||||
|
</div>
|
||||||
|
<div class="ui-block-b">
|
||||||
|
<fieldset data-role="controlgroup" data-type="horizontal">
|
||||||
|
<input type="checkbox" name="keyboardButtonShift" id="keyboardButtonShift" />
|
||||||
|
<label data-i18n="keyboardButtonShift" for="keyboardButtonShift"></label>
|
||||||
|
<input type="checkbox" name="keyboardButtonAlt" id="keyboardButtonAlt" />
|
||||||
|
<label data-i18n="keyboardButtonAlt" for="keyboardButtonAlt"></label>
|
||||||
|
<input type="checkbox" name="keyboardButtonCtrl" id="keyboardButtonCtrl" />
|
||||||
|
<label data-i18n="keyboardButtonCtrl" for="keyboardButtonCtrl"></label>
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
<div class="ui-block-c">
|
<div class="ui-block-c">
|
||||||
<a data-role="button" id="keyboardButtonP">P</a>
|
<a data-role="button" id="keyboardButtonBackspace" data-i18n="keyboardButtonBackspace"></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div style>
|
<div>
|
||||||
|
<fieldset data-role="controlgroup" data-type="horizontal">
|
||||||
|
<input type="checkbox" name="keyboardAutoSend" id="keyboardAutoSend" />
|
||||||
|
<label data-i18n="keyboardAutoSend" for="keyboardAutoSend"></label>
|
||||||
|
</fieldset>
|
||||||
<label for="keyboardButtonKeys" data-i18n="keyboardButtonKeys"></label>
|
<label for="keyboardButtonKeys" data-i18n="keyboardButtonKeys"></label>
|
||||||
<input type="text" id="keyboardButtonKeys" data-mini="true">
|
<input type="text" id="keyboardButtonKeys" data-mini="true">
|
||||||
</div> -->
|
<a data-role="button" id="keyboardButtonSend" data-i18n="keyboardButtonSend"></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /content -->
|
<!-- /content -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+1345
-1187
File diff suppressed because it is too large.
Load diff
@@ -76,5 +76,11 @@
|
|||||||
"discoverConnectServerAddress": "Serveradresse:",
|
"discoverConnectServerAddress": "Serveradresse:",
|
||||||
"discoverConnectButton": "Verbinden",
|
"discoverConnectButton": "Verbinden",
|
||||||
"Checking...": "Prüfen...",
|
"Checking...": "Prüfen...",
|
||||||
"timeout": "Zeitüberschreitung"
|
"timeout": "Zeitüberschreitung",
|
||||||
|
"keyboardButtonShift": "Umschalt",
|
||||||
|
"keyboardButtonAlt": "Alt",
|
||||||
|
"keyboardButtonCtrl": "Steuerung",
|
||||||
|
"keyboardButtonBackspace": "Rücktaste",
|
||||||
|
"keyboardAutoSend": "Tasten autom. senden",
|
||||||
|
"keyboardButtonSend": "Senden"
|
||||||
}
|
}
|
||||||
@@ -76,5 +76,11 @@
|
|||||||
"discoverConnectServerAddress": "Serveraddress:",
|
"discoverConnectServerAddress": "Serveraddress:",
|
||||||
"discoverConnectButton": "Connect",
|
"discoverConnectButton": "Connect",
|
||||||
"Checking...": "Checking...",
|
"Checking...": "Checking...",
|
||||||
"timeout": "Timeout"
|
"timeout": "Timeout",
|
||||||
|
"keyboardButtonShift": "Shift",
|
||||||
|
"keyboardButtonAlt": "Alt",
|
||||||
|
"keyboardButtonCtrl": "Control",
|
||||||
|
"keyboardButtonBackspace": "Backspace",
|
||||||
|
"keyboardAutoSend": "Auto send keys",
|
||||||
|
"keyboardButtonSend": "Send"
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user