mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Added font smoothing setting for RDP connections.
This commit is contained in:
@@ -36,7 +36,7 @@ Namespace App
|
||||
Public Shared ReadOnly DefaultConnectionsPath As String = App.Info.Settings.SettingsPath
|
||||
Public Shared ReadOnly DefaultConnectionsFile As String = "confCons.xml"
|
||||
Public Shared ReadOnly DefaultConnectionsFileNew As String = "confConsNew.xml"
|
||||
Public Shared ReadOnly ConnectionFileVersion As Double = 2.2
|
||||
Public Shared ReadOnly ConnectionFileVersion As Double = 2.3
|
||||
End Class
|
||||
|
||||
Public Class Credentials
|
||||
|
||||
@@ -449,6 +449,7 @@ Namespace App
|
||||
My.Settings.ConDefaultCacheBitmaps = .CacheBitmaps
|
||||
My.Settings.ConDefaultDisplayWallpaper = .DisplayWallpaper
|
||||
My.Settings.ConDefaultDisplayThemes = .DisplayThemes
|
||||
My.Settings.ConDefaultEnableFontSmoothing = .EnableFontSmoothing
|
||||
My.Settings.ConDefaultRedirectKeys = .RedirectKeys
|
||||
My.Settings.ConDefaultRedirectDiskDrives = .RedirectDiskDrives
|
||||
My.Settings.ConDefaultRedirectPrinters = .RedirectPrinters
|
||||
@@ -509,6 +510,7 @@ Namespace App
|
||||
My.Settings.InhDefaultCacheBitmaps = .CacheBitmaps
|
||||
My.Settings.InhDefaultDisplayWallpaper = .DisplayWallpaper
|
||||
My.Settings.InhDefaultDisplayThemes = .DisplayThemes
|
||||
My.Settings.InhDefaultEnableFontSmoothing = .EnableFontSmoothing
|
||||
My.Settings.InhDefaultRedirectKeys = .RedirectKeys
|
||||
My.Settings.InhDefaultRedirectDiskDrives = .RedirectDiskDrives
|
||||
My.Settings.InhDefaultRedirectPrinters = .RedirectPrinters
|
||||
@@ -923,6 +925,12 @@ Namespace App
|
||||
Else
|
||||
nConI.DisplayThemes = False
|
||||
End If
|
||||
Case "allow font smoothing"
|
||||
If pValue = 1 Then
|
||||
nConI.EnableFontSmoothing = True
|
||||
Else
|
||||
nConI.EnableFontSmoothing = False
|
||||
End If
|
||||
Case "redirectsmartcards"
|
||||
If pValue = 1 Then
|
||||
nConI.RedirectSmartCards = True
|
||||
|
||||
@@ -426,6 +426,7 @@ Namespace Config
|
||||
conI.Domain = .Item("DomainName")
|
||||
conI.DisplayWallpaper = .Item("DisplayWallpaper")
|
||||
conI.DisplayThemes = .Item("DisplayThemes")
|
||||
conI.EnableFontSmoothing = .Item("EnableFontSmoothing")
|
||||
conI.CacheBitmaps = .Item("CacheBitmaps")
|
||||
conI.UseConsoleSession = .Item("ConnectToConsole")
|
||||
|
||||
@@ -449,6 +450,7 @@ Namespace Config
|
||||
conI.Inherit.Description = .Item("InheritDescription")
|
||||
conI.Inherit.DisplayThemes = .Item("InheritDisplayThemes")
|
||||
conI.Inherit.DisplayWallpaper = .Item("InheritDisplayWallpaper")
|
||||
conI.Inherit.EnableFontSmoothing = .Item("InheritEnableFontSmoothing")
|
||||
conI.Inherit.Domain = .Item("InheritDomain")
|
||||
conI.Inherit.Icon = .Item("InheritIcon")
|
||||
conI.Inherit.Panel = .Item("InheritPanel")
|
||||
@@ -1000,6 +1002,14 @@ Namespace Config
|
||||
conI.Inherit.RDGatewayPassword = .Attributes("InheritRDGatewayPassword").Value
|
||||
conI.Inherit.RDGatewayDomain = .Attributes("InheritRDGatewayDomain").Value
|
||||
End If
|
||||
|
||||
If Me.confVersion > 2.2 Then '2.3
|
||||
' Get settings
|
||||
conI.EnableFontSmoothing = .Attributes("EnableFontSmoothing").Value
|
||||
|
||||
' Get inheritance settings
|
||||
conI.Inherit.EnableFontSmoothing = .Attributes("InheritEnableFontSmoothing").Value
|
||||
End If
|
||||
End With
|
||||
|
||||
Return conI
|
||||
|
||||
@@ -220,14 +220,14 @@ Namespace Config
|
||||
sqlQuery = New SqlCommand("INSERT INTO tblCons (Name, Type, Expanded, Description, Icon, Panel, Username, " & _
|
||||
"DomainName, Password, Hostname, Protocol, PuttySession, " & _
|
||||
"Port, ConnectToConsole, RenderingEngine, ICAEncryptionStrength, RDPAuthenticationLevel, Colors, Resolution, DisplayWallpaper, " & _
|
||||
"DisplayThemes, CacheBitmaps, RedirectDiskDrives, RedirectPorts, " & _
|
||||
"DisplayThemes, EnableFontSmoothing, CacheBitmaps, RedirectDiskDrives, RedirectPorts, " & _
|
||||
"RedirectPrinters, RedirectSmartCards, RedirectSound, RedirectKeys, " & _
|
||||
"Connected, PreExtApp, PostExtApp, MacAddress, UserField, ExtApp, VNCCompression, VNCEncoding, VNCAuthMode, " & _
|
||||
"VNCProxyType, VNCProxyIP, VNCProxyPort, VNCProxyUsername, VNCProxyPassword, " & _
|
||||
"VNCColors, VNCSmartSizeMode, VNCViewOnly, " & _
|
||||
"RDGatewayUsageMethod, RDGatewayHostname, RDGatewayUseConnectionCredentials, RDGatewayUsername, RDGatewayPassword, RDGatewayDomain, " & _
|
||||
"InheritCacheBitmaps, InheritColors, " & _
|
||||
"InheritDescription, InheritDisplayThemes, InheritDisplayWallpaper, InheritDomain, " & _
|
||||
"InheritDescription, InheritDisplayThemes, InheritDisplayWallpaper, InheritEnableFontSmoothing, InheritDomain, " & _
|
||||
"InheritIcon, InheritPanel, InheritPassword, InheritPort, " & _
|
||||
"InheritProtocol, InheritPuttySession, InheritRedirectDiskDrives, " & _
|
||||
"InheritRedirectKeys, InheritRedirectPorts, InheritRedirectPrinters, " & _
|
||||
@@ -308,6 +308,7 @@ Namespace Config
|
||||
sqlQuery.CommandText &= "'" & .Resolution.ToString & "',"
|
||||
sqlQuery.CommandText &= "'" & .DisplayWallpaper & "',"
|
||||
sqlQuery.CommandText &= "'" & .DisplayThemes & "',"
|
||||
sqlQuery.CommandText &= "'" & .EnableFontSmoothing & "',"
|
||||
sqlQuery.CommandText &= "'" & .CacheBitmaps & "',"
|
||||
sqlQuery.CommandText &= "'" & .RedirectDiskDrives & "',"
|
||||
sqlQuery.CommandText &= "'" & .RedirectPorts & "',"
|
||||
@@ -369,6 +370,7 @@ Namespace Config
|
||||
sqlQuery.CommandText &= "'" & .Description & "',"
|
||||
sqlQuery.CommandText &= "'" & .DisplayThemes & "',"
|
||||
sqlQuery.CommandText &= "'" & .DisplayWallpaper & "',"
|
||||
sqlQuery.CommandText &= "'" & .EnableFontSmoothing & "',"
|
||||
sqlQuery.CommandText &= "'" & .Domain & "',"
|
||||
sqlQuery.CommandText &= "'" & .Icon & "',"
|
||||
sqlQuery.CommandText &= "'" & .Panel & "',"
|
||||
@@ -634,6 +636,8 @@ Namespace Config
|
||||
|
||||
xW.WriteAttributeString("DisplayThemes", "", curConI.DisplayThemes)
|
||||
|
||||
xW.WriteAttributeString("EnableFontSmoothing", "", curConI.EnableFontSmoothing)
|
||||
|
||||
xW.WriteAttributeString("CacheBitmaps", "", curConI.CacheBitmaps)
|
||||
|
||||
xW.WriteAttributeString("RedirectDiskDrives", "", curConI.RedirectDiskDrives)
|
||||
@@ -701,6 +705,7 @@ Namespace Config
|
||||
xW.WriteAttributeString("InheritDescription", "", curConI.Inherit.Description)
|
||||
xW.WriteAttributeString("InheritDisplayThemes", "", curConI.Inherit.DisplayThemes)
|
||||
xW.WriteAttributeString("InheritDisplayWallpaper", "", curConI.Inherit.DisplayWallpaper)
|
||||
xW.WriteAttributeString("InheritEnableFontSmoothing", "", curConI.Inherit.EnableFontSmoothing)
|
||||
xW.WriteAttributeString("InheritDomain", "", curConI.Inherit.Domain)
|
||||
xW.WriteAttributeString("InheritIcon", "", curConI.Inherit.Icon)
|
||||
xW.WriteAttributeString("InheritPanel", "", curConI.Inherit.Panel)
|
||||
@@ -748,6 +753,7 @@ Namespace Config
|
||||
xW.WriteAttributeString("InheritDescription", "", False)
|
||||
xW.WriteAttributeString("InheritDisplayThemes", "", False)
|
||||
xW.WriteAttributeString("InheritDisplayWallpaper", "", False)
|
||||
xW.WriteAttributeString("InheritEnableFontSmoothing", "", False)
|
||||
xW.WriteAttributeString("InheritDomain", "", False)
|
||||
xW.WriteAttributeString("InheritIcon", "", False)
|
||||
xW.WriteAttributeString("InheritPanel", "", False)
|
||||
@@ -828,10 +834,10 @@ Namespace Config
|
||||
csvLn += "Domain;"
|
||||
End If
|
||||
|
||||
csvLn += "Hostname;Protocol;PuttySession;Port;ConnectToConsole;RenderingEngine;ICAEncryptionStrength;RDPAuthenticationLevel;Colors;Resolution;DisplayWallpaper;DisplayThemes;CacheBitmaps;RedirectDiskDrives;RedirectPorts;RedirectPrinters;RedirectSmartCards;RedirectSound;RedirectKeys;PreExtApp;PostExtApp;MacAddress;UserField;ExtApp;VNCCompression;VNCEncoding;VNCAuthMode;VNCProxyType;VNCProxyIP;VNCProxyPort;VNCProxyUsername;VNCProxyPassword;VNCColors;VNCSmartSizeMode;VNCViewOnly;RDGatewayUsageMethod;RDGatewayHostname;RDGatewayUseConnectionCredentials;RDGatewayUsername;RDGatewayPassword;RDGatewayDomain;"
|
||||
csvLn += "Hostname;Protocol;PuttySession;Port;ConnectToConsole;RenderingEngine;ICAEncryptionStrength;RDPAuthenticationLevel;Colors;Resolution;DisplayWallpaper;DisplayThemes;EnableFontSmoothing;CacheBitmaps;RedirectDiskDrives;RedirectPorts;RedirectPrinters;RedirectSmartCards;RedirectSound;RedirectKeys;PreExtApp;PostExtApp;MacAddress;UserField;ExtApp;VNCCompression;VNCEncoding;VNCAuthMode;VNCProxyType;VNCProxyIP;VNCProxyPort;VNCProxyUsername;VNCProxyPassword;VNCColors;VNCSmartSizeMode;VNCViewOnly;RDGatewayUsageMethod;RDGatewayHostname;RDGatewayUseConnectionCredentials;RDGatewayUsername;RDGatewayPassword;RDGatewayDomain;"
|
||||
|
||||
If SaveSecurity.Inheritance Then
|
||||
csvLn += "InheritCacheBitmaps;InheritColors;InheritDescription;InheritDisplayThemes;InheritDisplayWallpaper;InheritDomain;InheritIcon;InheritPanel;InheritPassword;InheritPort;InheritProtocol;InheritPuttySession;InheritRedirectDiskDrives;InheritRedirectKeys;InheritRedirectPorts;InheritRedirectPrinters;InheritRedirectSmartCards;InheritRedirectSound;InheritResolution;InheritUseConsoleSession;InheritRenderingEngine;InheritUsername;InheritICAEncryptionStrength;InheritRDPAuthenticationLevel;InheritPreExtApp;InheritPostExtApp;InheritMacAddress;InheritUserField;InheritExtApp;InheritVNCCompression;InheritVNCEncoding;InheritVNCAuthMode;InheritVNCProxyType;InheritVNCProxyIP;InheritVNCProxyPort;InheritVNCProxyUsername;InheritVNCProxyPassword;InheritVNCColors;InheritVNCSmartSizeMode;InheritVNCViewOnly;InheritRDGatewayUsageMethod;InheritRDGatewayHostname;InheritRDGatewayUseConnectionCredentials;InheritRDGatewayUsername;InheritRDGatewayPassword;InheritRDGatewayDomain"
|
||||
csvLn += "InheritCacheBitmaps;InheritColors;InheritDescription;InheritDisplayThemes;InheritDisplayWallpaper;InheritEnableFontSmoothing;InheritDomain;InheritIcon;InheritPanel;InheritPassword;InheritPort;InheritProtocol;InheritPuttySession;InheritRedirectDiskDrives;InheritRedirectKeys;InheritRedirectPorts;InheritRedirectPrinters;InheritRedirectSmartCards;InheritRedirectSound;InheritResolution;InheritUseConsoleSession;InheritRenderingEngine;InheritUsername;InheritICAEncryptionStrength;InheritRDPAuthenticationLevel;InheritPreExtApp;InheritPostExtApp;InheritMacAddress;InheritUserField;InheritExtApp;InheritVNCCompression;InheritVNCEncoding;InheritVNCAuthMode;InheritVNCProxyType;InheritVNCProxyIP;InheritVNCProxyPort;InheritVNCProxyUsername;InheritVNCProxyPassword;InheritVNCColors;InheritVNCSmartSizeMode;InheritVNCViewOnly;InheritRDGatewayUsageMethod;InheritRDGatewayHostname;InheritRDGatewayUseConnectionCredentials;InheritRDGatewayUsername;InheritRDGatewayPassword;InheritRDGatewayDomain"
|
||||
End If
|
||||
|
||||
csvWr.WriteLine(csvLn)
|
||||
@@ -882,10 +888,10 @@ Namespace Config
|
||||
csvLn += con.Domain & ";"
|
||||
End If
|
||||
|
||||
csvLn += con.Hostname & ";" & con.Protocol.ToString & ";" & con.PuttySession & ";" & con.Port & ";" & con.UseConsoleSession & ";" & con.RenderingEngine.ToString & ";" & con.ICAEncryption.ToString & ";" & con.RDPAuthenticationLevel.ToString & ";" & con.Colors.ToString & ";" & con.Resolution.ToString & ";" & con.DisplayWallpaper & ";" & con.DisplayThemes & ";" & con.CacheBitmaps & ";" & con.RedirectDiskDrives & ";" & con.RedirectPorts & ";" & con.RedirectPrinters & ";" & con.RedirectSmartCards & ";" & con.RedirectSound.ToString & ";" & con.RedirectKeys & ";" & con.PreExtApp & ";" & con.PostExtApp & ";" & con.MacAddress & ";" & con.UserField & ";" & con.ExtApp & ";" & con.VNCCompression.ToString & ";" & con.VNCEncoding.ToString & ";" & con.VNCAuthMode.ToString & ";" & con.VNCProxyType.ToString & ";" & con.VNCProxyIP & ";" & con.VNCProxyPort & ";" & con.VNCProxyUsername & ";" & con.VNCProxyPassword & ";" & con.VNCColors.ToString & ";" & con.VNCSmartSizeMode.ToString & ";" & con.VNCViewOnly & ";"
|
||||
csvLn += con.Hostname & ";" & con.Protocol.ToString & ";" & con.PuttySession & ";" & con.Port & ";" & con.UseConsoleSession & ";" & con.RenderingEngine.ToString & ";" & con.ICAEncryption.ToString & ";" & con.RDPAuthenticationLevel.ToString & ";" & con.Colors.ToString & ";" & con.Resolution.ToString & ";" & con.DisplayWallpaper & ";" & con.DisplayThemes & ";" & con.EnableFontSmoothing & ";" & con.CacheBitmaps & ";" & con.RedirectDiskDrives & ";" & con.RedirectPorts & ";" & con.RedirectPrinters & ";" & con.RedirectSmartCards & ";" & con.RedirectSound.ToString & ";" & con.RedirectKeys & ";" & con.PreExtApp & ";" & con.PostExtApp & ";" & con.MacAddress & ";" & con.UserField & ";" & con.ExtApp & ";" & con.VNCCompression.ToString & ";" & con.VNCEncoding.ToString & ";" & con.VNCAuthMode.ToString & ";" & con.VNCProxyType.ToString & ";" & con.VNCProxyIP & ";" & con.VNCProxyPort & ";" & con.VNCProxyUsername & ";" & con.VNCProxyPassword & ";" & con.VNCColors.ToString & ";" & con.VNCSmartSizeMode.ToString & ";" & con.VNCViewOnly & ";"
|
||||
|
||||
If SaveSecurity.Inheritance Then
|
||||
csvLn += con.Inherit.CacheBitmaps & ";" & con.Inherit.Colors & ";" & con.Inherit.Description & ";" & con.Inherit.DisplayThemes & ";" & con.Inherit.DisplayWallpaper & ";" & con.Inherit.Domain & ";" & con.Inherit.Icon & ";" & con.Inherit.Panel & ";" & con.Inherit.Password & ";" & con.Inherit.Port & ";" & con.Inherit.Protocol & ";" & con.Inherit.PuttySession & ";" & con.Inherit.RedirectDiskDrives & ";" & con.Inherit.RedirectKeys & ";" & con.Inherit.RedirectPorts & ";" & con.Inherit.RedirectPrinters & ";" & con.Inherit.RedirectSmartCards & ";" & con.Inherit.RedirectSound & ";" & con.Inherit.Resolution & ";" & con.Inherit.UseConsoleSession & ";" & con.Inherit.RenderingEngine & ";" & con.Inherit.Username & ";" & con.Inherit.ICAEncryption & ";" & con.Inherit.RDPAuthenticationLevel & ";" & con.Inherit.PreExtApp & ";" & con.Inherit.PostExtApp & ";" & con.Inherit.MacAddress & ";" & con.Inherit.UserField & ";" & con.Inherit.ExtApp & ";" & con.Inherit.VNCCompression & ";" & con.Inherit.VNCEncoding & ";" & con.Inherit.VNCAuthMode & ";" & con.Inherit.VNCProxyType & ";" & con.Inherit.VNCProxyIP & ";" & con.Inherit.VNCProxyPort & ";" & con.Inherit.VNCProxyUsername & ";" & con.Inherit.VNCProxyPassword & ";" & con.Inherit.VNCColors & ";" & con.Inherit.VNCSmartSizeMode & ";" & con.Inherit.VNCViewOnly
|
||||
csvLn += con.Inherit.CacheBitmaps & ";" & con.Inherit.Colors & ";" & con.Inherit.Description & ";" & con.Inherit.DisplayThemes & ";" & con.Inherit.DisplayWallpaper & ";" & con.Inherit.EnableFontSmoothing & ";" & con.Inherit.Domain & ";" & con.Inherit.Icon & ";" & con.Inherit.Panel & ";" & con.Inherit.Password & ";" & con.Inherit.Port & ";" & con.Inherit.Protocol & ";" & con.Inherit.PuttySession & ";" & con.Inherit.RedirectDiskDrives & ";" & con.Inherit.RedirectKeys & ";" & con.Inherit.RedirectPorts & ";" & con.Inherit.RedirectPrinters & ";" & con.Inherit.RedirectSmartCards & ";" & con.Inherit.RedirectSound & ";" & con.Inherit.Resolution & ";" & con.Inherit.UseConsoleSession & ";" & con.Inherit.RenderingEngine & ";" & con.Inherit.Username & ";" & con.Inherit.ICAEncryption & ";" & con.Inherit.RDPAuthenticationLevel & ";" & con.Inherit.PreExtApp & ";" & con.Inherit.PostExtApp & ";" & con.Inherit.MacAddress & ";" & con.Inherit.UserField & ";" & con.Inherit.ExtApp & ";" & con.Inherit.VNCCompression & ";" & con.Inherit.VNCEncoding & ";" & con.Inherit.VNCAuthMode & ";" & con.Inherit.VNCProxyType & ";" & con.Inherit.VNCProxyIP & ";" & con.Inherit.VNCProxyPort & ";" & con.Inherit.VNCProxyUsername & ";" & con.Inherit.VNCProxyPassword & ";" & con.Inherit.VNCColors & ";" & con.Inherit.VNCSmartSizeMode & ";" & con.Inherit.VNCViewOnly
|
||||
End If
|
||||
|
||||
csvWr.WriteLine(csvLn)
|
||||
|
||||
@@ -706,6 +706,33 @@ Namespace Connection
|
||||
Me._DisplayThemes = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Private _EnableFontSmoothing As Boolean = My.Settings.ConDefaultEnableFontSmoothing
|
||||
<LocalizedCategory("strCategoryAppearance", 5), _
|
||||
Browsable(True), _
|
||||
LocalizedDisplayName("strPropertyNameEnableFontSmoothing"), _
|
||||
LocalizedDescription("strPropertyDescriptionEnableFontSmoothing"), _
|
||||
TypeConverter(GetType(mRemoteNG.Tools.Misc.YesNoTypeConverter))> _
|
||||
Public Property EnableFontSmoothing() As Boolean
|
||||
Get
|
||||
If Me._Inherit.EnableFontSmoothing And Me._Parent IsNot Nothing Then
|
||||
Dim parCon As Connection.Info = TryCast(Me._Parent, Container.Info).ConnectionInfo
|
||||
|
||||
If Me._IsContainer = True Then
|
||||
Dim curCont As Container.Info = Me._Parent
|
||||
Dim parCont As Container.Info = curCont.Parent
|
||||
parCon = parCont.ConnectionInfo
|
||||
End If
|
||||
|
||||
Return parCon.EnableFontSmoothing
|
||||
Else
|
||||
Return Me._EnableFontSmoothing
|
||||
End If
|
||||
End Get
|
||||
Set(ByVal value As Boolean)
|
||||
Me._EnableFontSmoothing = value
|
||||
End Set
|
||||
End Property
|
||||
#End Region
|
||||
#Region "6 Redirect"
|
||||
Private _RedirectKeys As Boolean = My.Settings.ConDefaultRedirectKeys
|
||||
@@ -1957,6 +1984,21 @@ Namespace Connection
|
||||
Me._DisplayThemes = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Private _EnableFontSmoothing As Boolean = My.Settings.InhDefaultEnableFontSmoothing
|
||||
<LocalizedCategory("strCategoryAppearance", 6), _
|
||||
Browsable(True), _
|
||||
LocalizedDisplayNameInheritAttribute("strPropertyNameEnableFontSmoothing"), _
|
||||
LocalizedDescriptionInheritAttribute("strPropertyDescriptionEnableFontSmoothing"), _
|
||||
TypeConverter(GetType(mRemoteNG.Tools.Misc.YesNoTypeConverter))> _
|
||||
Public Property EnableFontSmoothing() As Boolean
|
||||
Get
|
||||
Return Me._EnableFontSmoothing
|
||||
End Get
|
||||
Set(ByVal value As Boolean)
|
||||
Me._EnableFontSmoothing = value
|
||||
End Set
|
||||
End Property
|
||||
#End Region
|
||||
#Region "7 Redirect"
|
||||
Private _RedirectKeys As Boolean = My.Settings.InhDefaultRedirectKeys
|
||||
|
||||
@@ -334,7 +334,11 @@ Namespace Connection
|
||||
pFlags += Int(Connection.Protocol.RDP.RDPPerformanceFlags.DisableWallpaper)
|
||||
End If
|
||||
|
||||
RDP.AdvancedSettings2.PerformanceFlags = pFlags
|
||||
If Me.Info.EnableFontSmoothing Then
|
||||
pFlags += Int(Connection.Protocol.RDP.RDPPerformanceFlags.EnableFontSmoothing)
|
||||
End If
|
||||
|
||||
RDP.AdvancedSettings.PerformanceFlags = pFlags
|
||||
Catch ex As Exception
|
||||
mC.AddMessage(Messages.MessageClass.ErrorMsg, My.Resources.strRdpSetPerformanceFlagsFailed & vbNewLine & ex.Message, True)
|
||||
End Try
|
||||
@@ -431,17 +435,19 @@ Namespace Connection
|
||||
|
||||
Private Enum RDPPerformanceFlags
|
||||
<Description("strRDPDisableWallpaper")> _
|
||||
DisableWallpaper = 1
|
||||
DisableWallpaper = &H1
|
||||
<Description("strRDPDisableFullWindowdrag")> _
|
||||
DisableFullWindowDrag = 2
|
||||
DisableFullWindowDrag = &H2
|
||||
<Description("strRDPDisableMenuAnimations")> _
|
||||
DisableMenuAnimations = 4
|
||||
DisableMenuAnimations = &H4
|
||||
<Description("strRDPDisableThemes")> _
|
||||
DisableThemes = 8
|
||||
DisableThemes = &H8
|
||||
<Description("strRDPDisableCursorShadow")> _
|
||||
DisableCursorShadow = 20
|
||||
DisableCursorShadow = &H20
|
||||
<Description("strRDPDisableCursorblinking")> _
|
||||
DisableCursorBlinking = 40
|
||||
DisableCursorBlinking = &H40
|
||||
<Description("strRDPEnableFontSmoothing")> _
|
||||
EnableFontSmoothing = &H80
|
||||
End Enum
|
||||
|
||||
Public Enum RDPResolutions
|
||||
|
||||
@@ -37,6 +37,7 @@ CREATE TABLE [dbo].[tblCons] (
|
||||
[Resolution] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
|
||||
[DisplayWallpaper] [bit] NOT NULL ,
|
||||
[DisplayThemes] [bit] NOT NULL ,
|
||||
[EnableFontSmoothing] [bit] NOT NULL ,
|
||||
[CacheBitmaps] [bit] NOT NULL ,
|
||||
[RedirectDiskDrives] [bit] NOT NULL ,
|
||||
[RedirectPorts] [bit] NOT NULL ,
|
||||
@@ -72,6 +73,7 @@ CREATE TABLE [dbo].[tblCons] (
|
||||
[InheritDescription] [bit] NOT NULL ,
|
||||
[InheritDisplayThemes] [bit] NOT NULL ,
|
||||
[InheritDisplayWallpaper] [bit] NOT NULL ,
|
||||
[InheritEnableFontSmoothing] [bit] NOT NULL ,
|
||||
[InheritDomain] [bit] NOT NULL ,
|
||||
[InheritIcon] [bit] NOT NULL ,
|
||||
[InheritPanel] [bit] NOT NULL ,
|
||||
|
||||
18
mRemoteV1/My Project/Resources.Designer.vb
generated
18
mRemoteV1/My Project/Resources.Designer.vb
generated
@@ -3879,6 +3879,15 @@ Namespace My.Resources
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Looks up a localized string similar to Select whether to use font smoothing or not..
|
||||
'''</summary>
|
||||
Friend ReadOnly Property strPropertyDescriptionEnableFontSmoothing() As String
|
||||
Get
|
||||
Return ResourceManager.GetString("strPropertyDescriptionEnableFontSmoothing", resourceCulture)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Looks up a localized string similar to Select the encoding mode to be used..
|
||||
'''</summary>
|
||||
@@ -4302,6 +4311,15 @@ Namespace My.Resources
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Looks up a localized string similar to Font Smoothing.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property strPropertyNameEnableFontSmoothing() As String
|
||||
Get
|
||||
Return ResourceManager.GetString("strPropertyNameEnableFontSmoothing", resourceCulture)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Looks up a localized string similar to Encoding.
|
||||
'''</summary>
|
||||
|
||||
@@ -2307,4 +2307,10 @@ Error Description: {1}</value>
|
||||
<data name="strRDP32768Colors" xml:space="preserve">
|
||||
<value>32768 Colours (15-bit)</value>
|
||||
</data>
|
||||
<data name="strPropertyDescriptionEnableFontSmoothing" xml:space="preserve">
|
||||
<value>Select whether to use font smoothing or not.</value>
|
||||
</data>
|
||||
<data name="strPropertyNameEnableFontSmoothing" xml:space="preserve">
|
||||
<value>Font Smoothing</value>
|
||||
</data>
|
||||
</root>
|
||||
26
mRemoteV1/My Project/Settings.Designer.vb
generated
26
mRemoteV1/My Project/Settings.Designer.vb
generated
@@ -2153,6 +2153,32 @@ Namespace My
|
||||
Me("ConDefaultRDGatewayDomain") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<Global.System.Configuration.UserScopedSettingAttribute(), _
|
||||
Global.System.Configuration.SettingsProviderAttribute(GetType(mRemoteNG.Config.Settings.Providers.ChooseProvider)), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Configuration.DefaultSettingValueAttribute("False")> _
|
||||
Public Property ConDefaultEnableFontSmoothing() As Boolean
|
||||
Get
|
||||
Return CType(Me("ConDefaultEnableFontSmoothing"),Boolean)
|
||||
End Get
|
||||
Set
|
||||
Me("ConDefaultEnableFontSmoothing") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<Global.System.Configuration.UserScopedSettingAttribute(), _
|
||||
Global.System.Configuration.SettingsProviderAttribute(GetType(mRemoteNG.Config.Settings.Providers.ChooseProvider)), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Configuration.DefaultSettingValueAttribute("False")> _
|
||||
Public Property InhDefaultEnableFontSmoothing() As Boolean
|
||||
Get
|
||||
Return CType(Me("InhDefaultEnableFontSmoothing"),Boolean)
|
||||
End Get
|
||||
Set
|
||||
Me("InhDefaultEnableFontSmoothing") = value
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
End Namespace
|
||||
|
||||
|
||||
@@ -488,5 +488,11 @@
|
||||
<Setting Name="ConDefaultRDGatewayDomain" Provider="mRemoteNG.Config.Settings.Providers.ChooseProvider" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
<Setting Name="ConDefaultEnableFontSmoothing" Provider="mRemoteNG.Config.Settings.Providers.ChooseProvider" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
</Setting>
|
||||
<Setting Name="InhDefaultEnableFontSmoothing" Provider="mRemoteNG.Config.Settings.Providers.ChooseProvider" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
@@ -542,6 +542,7 @@ Namespace UI
|
||||
strHide.Add("Colors")
|
||||
strHide.Add("DisplayThemes")
|
||||
strHide.Add("DisplayWallpaper")
|
||||
strHide.Add("EnableFontSmoothing")
|
||||
strHide.Add("ExtApp")
|
||||
strHide.Add("ICAEncryption")
|
||||
strHide.Add("PuttySession")
|
||||
@@ -575,6 +576,7 @@ Namespace UI
|
||||
strHide.Add("Colors")
|
||||
strHide.Add("DisplayThemes")
|
||||
strHide.Add("DisplayWallpaper")
|
||||
strHide.Add("EnableFontSmoothing")
|
||||
strHide.Add("Domain")
|
||||
strHide.Add("ExtApp")
|
||||
strHide.Add("ICAEncryption")
|
||||
@@ -610,6 +612,7 @@ Namespace UI
|
||||
strHide.Add("Colors")
|
||||
strHide.Add("DisplayThemes")
|
||||
strHide.Add("DisplayWallpaper")
|
||||
strHide.Add("EnableFontSmoothing")
|
||||
strHide.Add("Domain")
|
||||
strHide.Add("ExtApp")
|
||||
strHide.Add("ICAEncryption")
|
||||
@@ -645,6 +648,7 @@ Namespace UI
|
||||
strHide.Add("Colors")
|
||||
strHide.Add("DisplayThemes")
|
||||
strHide.Add("DisplayWallpaper")
|
||||
strHide.Add("EnableFontSmoothing")
|
||||
strHide.Add("Domain")
|
||||
strHide.Add("ExtApp")
|
||||
strHide.Add("ICAEncryption")
|
||||
@@ -682,6 +686,7 @@ Namespace UI
|
||||
strHide.Add("Colors")
|
||||
strHide.Add("DisplayThemes")
|
||||
strHide.Add("DisplayWallpaper")
|
||||
strHide.Add("EnableFontSmoothing")
|
||||
strHide.Add("Domain")
|
||||
strHide.Add("ExtApp")
|
||||
strHide.Add("ICAEncryption")
|
||||
@@ -719,6 +724,7 @@ Namespace UI
|
||||
strHide.Add("Colors")
|
||||
strHide.Add("DisplayThemes")
|
||||
strHide.Add("DisplayWallpaper")
|
||||
strHide.Add("EnableFontSmoothing")
|
||||
strHide.Add("Domain")
|
||||
strHide.Add("ExtApp")
|
||||
strHide.Add("ICAEncryption")
|
||||
@@ -756,6 +762,7 @@ Namespace UI
|
||||
strHide.Add("Colors")
|
||||
strHide.Add("DisplayThemes")
|
||||
strHide.Add("DisplayWallpaper")
|
||||
strHide.Add("EnableFontSmoothing")
|
||||
strHide.Add("Domain")
|
||||
strHide.Add("ExtApp")
|
||||
strHide.Add("ICAEncryption")
|
||||
@@ -791,6 +798,7 @@ Namespace UI
|
||||
strHide.Add("Colors")
|
||||
strHide.Add("DisplayThemes")
|
||||
strHide.Add("DisplayWallpaper")
|
||||
strHide.Add("EnableFontSmoothing")
|
||||
strHide.Add("Domain")
|
||||
strHide.Add("ExtApp")
|
||||
strHide.Add("ICAEncryption")
|
||||
@@ -823,6 +831,7 @@ Namespace UI
|
||||
Case mRemoteNG.Connection.Protocol.Protocols.ICA
|
||||
strHide.Add("DisplayThemes")
|
||||
strHide.Add("DisplayWallpaper")
|
||||
strHide.Add("EnableFontSmoothing")
|
||||
strHide.Add("ExtApp")
|
||||
strHide.Add("Port")
|
||||
strHide.Add("PuttySession")
|
||||
@@ -857,6 +866,7 @@ Namespace UI
|
||||
strHide.Add("Colors")
|
||||
strHide.Add("DisplayThemes")
|
||||
strHide.Add("DisplayWallpaper")
|
||||
strHide.Add("EnableFontSmoothing")
|
||||
strHide.Add("Domain")
|
||||
strHide.Add("ICAEncryption")
|
||||
strHide.Add("PuttySession")
|
||||
@@ -911,6 +921,10 @@ Namespace UI
|
||||
strHide.Add("DisplayWallpaper")
|
||||
End If
|
||||
|
||||
If .EnableFontSmoothing Then
|
||||
strHide.Add("EnableFontSmoothing")
|
||||
End If
|
||||
|
||||
If .Domain Then
|
||||
strHide.Add("Domain")
|
||||
End If
|
||||
|
||||
@@ -542,6 +542,12 @@
|
||||
<setting name="ConDefaultRDGatewayDomain" serializeAs="String">
|
||||
<value />
|
||||
</setting>
|
||||
<setting name="ConDefaultEnableFontSmoothing" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="InhDefaultEnableFontSmoothing" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
</mRemoteNG.My.MySettings>
|
||||
</userSettings>
|
||||
<applicationSettings>
|
||||
|
||||
Reference in New Issue
Block a user