From ada7a236684b2f6bdabd4cdffcfb3bb327be0270 Mon Sep 17 00:00:00 2001 From: z3ro01 Date: Wed, 23 Dec 2015 18:44:29 +0100 Subject: [PATCH] App QR codes removed #180 --- .../Ambient/Screens/PopupScreenServerQR.xml | 112 +----------------- Vocaluxe/Screens/CPopupScreenServerQR.cs | 33 +----- 2 files changed, 8 insertions(+), 137 deletions(-) diff --git a/Output/Themes/Ambient/Screens/PopupScreenServerQR.xml b/Output/Themes/Ambient/Screens/PopupScreenServerQR.xml index dd0d120f..b8490044 100644 --- a/Output/Themes/Ambient/Screens/PopupScreenServerQR.xml +++ b/Output/Themes/Ambient/Screens/PopupScreenServerQR.xml @@ -2,7 +2,7 @@ PopupScreenServerQR - 1 + 2 @@ -26,54 +26,10 @@ Menu - 490 + 465 210 - 300 - 300 - -2 - - - - Menu - - - 25 - 25 - 200 - 200 - -2 - - - - Menu - - - 1055 - 25 - 200 - 200 - -2 - - - - Menu - - - 25 - 495 - 200 - 200 - -2 - - - - Menu - - - 1055 - 495 - 200 - 200 + 350 + 350 -2 @@ -81,7 +37,7 @@ 640 - 180 + 170 -2 35 300 @@ -93,65 +49,9 @@ Outline TR_SCREENPSERVERQR_ADDRESS - - 125 - 230 - -2 - 27 - 200 - - - Center - Center - - Outline - Android - - - 1155 - 230 - -2 - 27 - 200 - - - Center - Center - - Outline - Symbian - - - 125 - 460 - -2 - 27 - 200 - - - Center - Center - - Outline - WebOS - - - 1155 - 460 - -2 - 27 - 200 - - - Center - Center - - Outline - Windows Phone - 640 - 515 + 570 -2 35 300 diff --git a/Vocaluxe/Screens/CPopupScreenServerQR.cs b/Vocaluxe/Screens/CPopupScreenServerQR.cs index fce4ed96..6c198aaa 100644 --- a/Vocaluxe/Screens/CPopupScreenServerQR.cs +++ b/Vocaluxe/Screens/CPopupScreenServerQR.cs @@ -30,20 +30,11 @@ namespace Vocaluxe.Screens // Version number for theme files. Increment it, if you've changed something on the theme files! protected override int _ScreenVersion { - get { return 1; } + get { return 2; } } private CTextureRef _QRServerAddress; - private CTextureRef _QRAndroidLink; - private CTextureRef _QRSymbianLink; - private CTextureRef _QRWebOSLink; - private CTextureRef _QRWindowsPhoneLink; - private const string _StaticQRServer = "StaticQRServer"; - private const string _StaticQRAndroid = "StaticQRAndroid"; - private const string _StaticQRSymbian = "StaticQRSymbian"; - private const string _StaticQRWebOS = "StaticQRWebOS"; - private const string _StaticQRWindowsPhone = "StaticQRWindowsPhone"; private const string _TextServerAddress = "TextServerAddress"; private const string _TextServerNotRunning = "TextServerNotRunning"; @@ -52,7 +43,7 @@ namespace Vocaluxe.Screens { base.Init(); - _ThemeStatics = new string[] {_StaticQRServer, _StaticQRAndroid, _StaticQRSymbian, _StaticQRWebOS, _StaticQRWindowsPhone}; + _ThemeStatics = new string[] {_StaticQRServer}; _ThemeTexts = new string[] {_TextServerAddress, _TextServerNotRunning}; } @@ -63,10 +54,6 @@ namespace Vocaluxe.Screens { _GenerateQRs(); _Statics[_StaticQRServer].Texture = _QRServerAddress; - _Statics[_StaticQRAndroid].Texture = _QRAndroidLink; - _Statics[_StaticQRSymbian].Texture = _QRSymbianLink; - _Statics[_StaticQRWebOS].Texture = _QRWebOSLink; - _Statics[_StaticQRWindowsPhone].Texture = _QRWindowsPhoneLink; _Texts[_TextServerAddress].Text = CVocaluxeServer.GetServerAddress(); } _Texts[_TextServerAddress].Visible = CVocaluxeServer.IsServerRunning(); @@ -108,22 +95,6 @@ namespace Vocaluxe.Screens //ServerAddress QRCodeGenerator.QRCode qrcode = qr.CreateQrCode(CVocaluxeServer.GetServerAddress(), QRCodeGenerator.ECCLevel.H); _QRServerAddress = CDraw.AddTexture(qrcode.GetGraphic(20)); - - //Android - qrcode = qr.CreateQrCode(CSettings.LinkAndroidApp, QRCodeGenerator.ECCLevel.H); - _QRAndroidLink = CDraw.AddTexture(qrcode.GetGraphic(20)); - - //Symbian - qrcode = qr.CreateQrCode(CSettings.LinkSymbianApp, QRCodeGenerator.ECCLevel.H); - _QRSymbianLink = CDraw.AddTexture(qrcode.GetGraphic(20)); - - //WebOS - qrcode = qr.CreateQrCode(CSettings.LinkWebOSApp, QRCodeGenerator.ECCLevel.H); - _QRWebOSLink = CDraw.AddTexture(qrcode.GetGraphic(20)); - - //WindowsPhone - qrcode = qr.CreateQrCode(CSettings.LinkWindowsPhoneApp, QRCodeGenerator.ECCLevel.H); - _QRWindowsPhoneLink = CDraw.AddTexture(qrcode.GetGraphic(20)); } } } \ No newline at end of file