Started implementation of interface panel to settings window

This commit is contained in:
2019-03-15 13:39:48 +00:00
parent f29a58329e
commit 88d97a6027
4 changed files with 99 additions and 12 deletions
+76 -12
View File
@@ -1,9 +1,9 @@
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
Partial Class frmSettings Partial Class frmSettings
Inherits System.Windows.Forms.Form Inherits System.Windows.Forms.Form
'Form overrides dispose to clean up the component list. 'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _ <System.Diagnostics.DebuggerNonUserCode()>
Protected Overrides Sub Dispose(ByVal disposing As Boolean) Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try Try
If disposing AndAlso components IsNot Nothing Then If disposing AndAlso components IsNot Nothing Then
@@ -20,7 +20,7 @@ Partial Class frmSettings
'NOTE: The following procedure is required by the Windows Form Designer 'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer. 'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor. 'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _ <System.Diagnostics.DebuggerStepThrough()>
Private Sub InitializeComponent() Private Sub InitializeComponent()
Me.chkAutoSaveLog = New System.Windows.Forms.CheckBox() Me.chkAutoSaveLog = New System.Windows.Forms.CheckBox()
Me.btnOptionalFields = New System.Windows.Forms.Button() Me.btnOptionalFields = New System.Windows.Forms.Button()
@@ -47,6 +47,7 @@ Partial Class frmSettings
Me.btnDefaults = New System.Windows.Forms.Button() Me.btnDefaults = New System.Windows.Forms.Button()
Me.pnlBackup = New System.Windows.Forms.Panel() Me.pnlBackup = New System.Windows.Forms.Panel()
Me.grpBackupConfirmations = New System.Windows.Forms.GroupBox() Me.grpBackupConfirmations = New System.Windows.Forms.GroupBox()
Me.chkDisableDiskSpaceCheck = New System.Windows.Forms.CheckBox()
Me.chkBackupConfirm = New System.Windows.Forms.CheckBox() Me.chkBackupConfirm = New System.Windows.Forms.CheckBox()
Me.chkOverwriteWarning = New System.Windows.Forms.CheckBox() Me.chkOverwriteWarning = New System.Windows.Forms.CheckBox()
Me.grpBackupHandling = New System.Windows.Forms.GroupBox() Me.grpBackupHandling = New System.Windows.Forms.GroupBox()
@@ -74,7 +75,11 @@ Partial Class frmSettings
Me.chkAutoStart = New System.Windows.Forms.CheckBox() Me.chkAutoStart = New System.Windows.Forms.CheckBox()
Me.chkStartMinimized = New System.Windows.Forms.CheckBox() Me.chkStartMinimized = New System.Windows.Forms.CheckBox()
Me.chkMonitorOnStartup = New System.Windows.Forms.CheckBox() Me.chkMonitorOnStartup = New System.Windows.Forms.CheckBox()
Me.chkDisableDiskSpaceCheck = New System.Windows.Forms.CheckBox() Me.pnlInterface = New System.Windows.Forms.Panel()
Me.grpInterfaceOptions = New System.Windows.Forms.GroupBox()
Me.lblThemeSelection = New System.Windows.Forms.Label()
Me.cmbThemeSelection = New System.Windows.Forms.ComboBox()
Me.chkAutoHideOutput = New System.Windows.Forms.CheckBox()
Me.grpFolderOptions.SuspendLayout() Me.grpFolderOptions.SuspendLayout()
Me.grp7zGeneral.SuspendLayout() Me.grp7zGeneral.SuspendLayout()
Me.pnlBackup.SuspendLayout() Me.pnlBackup.SuspendLayout()
@@ -90,6 +95,8 @@ Partial Class frmSettings
Me.grpGameData.SuspendLayout() Me.grpGameData.SuspendLayout()
Me.pnlStartup.SuspendLayout() Me.pnlStartup.SuspendLayout()
Me.grpStartup.SuspendLayout() Me.grpStartup.SuspendLayout()
Me.pnlInterface.SuspendLayout()
Me.grpInterfaceOptions.SuspendLayout()
Me.SuspendLayout() Me.SuspendLayout()
' '
'chkAutoSaveLog 'chkAutoSaveLog
@@ -329,6 +336,16 @@ Partial Class frmSettings
Me.grpBackupConfirmations.TabStop = False Me.grpBackupConfirmations.TabStop = False
Me.grpBackupConfirmations.Text = "Backup Confirmations" Me.grpBackupConfirmations.Text = "Backup Confirmations"
' '
'chkDisableDiskSpaceCheck
'
Me.chkDisableDiskSpaceCheck.AutoSize = True
Me.chkDisableDiskSpaceCheck.Location = New System.Drawing.Point(9, 41)
Me.chkDisableDiskSpaceCheck.Name = "chkDisableDiskSpaceCheck"
Me.chkDisableDiskSpaceCheck.Size = New System.Drawing.Size(222, 17)
Me.chkDisableDiskSpaceCheck.TabIndex = 1
Me.chkDisableDiskSpaceCheck.Text = "Disable disk space check prior to backup"
Me.chkDisableDiskSpaceCheck.UseVisualStyleBackColor = True
'
'chkBackupConfirm 'chkBackupConfirm
' '
Me.chkBackupConfirm.AutoSize = True Me.chkBackupConfirm.AutoSize = True
@@ -612,21 +629,60 @@ Partial Class frmSettings
Me.chkMonitorOnStartup.Text = "Start monitoring on launch" Me.chkMonitorOnStartup.Text = "Start monitoring on launch"
Me.chkMonitorOnStartup.UseVisualStyleBackColor = True Me.chkMonitorOnStartup.UseVisualStyleBackColor = True
' '
'chkDisableDiskSpaceCheck 'pnlInterface
' '
Me.chkDisableDiskSpaceCheck.AutoSize = True Me.pnlInterface.Controls.Add(Me.grpInterfaceOptions)
Me.chkDisableDiskSpaceCheck.Location = New System.Drawing.Point(9, 41) Me.pnlInterface.Location = New System.Drawing.Point(180, 0)
Me.chkDisableDiskSpaceCheck.Name = "chkDisableDiskSpaceCheck" Me.pnlInterface.Name = "pnlInterface"
Me.chkDisableDiskSpaceCheck.Size = New System.Drawing.Size(222, 17) Me.pnlInterface.Size = New System.Drawing.Size(367, 314)
Me.chkDisableDiskSpaceCheck.TabIndex = 1 Me.pnlInterface.TabIndex = 9
Me.chkDisableDiskSpaceCheck.Text = "Disable disk space check prior to backup" '
Me.chkDisableDiskSpaceCheck.UseVisualStyleBackColor = True 'grpInterfaceOptions
'
Me.grpInterfaceOptions.Controls.Add(Me.chkAutoHideOutput)
Me.grpInterfaceOptions.Controls.Add(Me.cmbThemeSelection)
Me.grpInterfaceOptions.Controls.Add(Me.lblThemeSelection)
Me.grpInterfaceOptions.Location = New System.Drawing.Point(6, 12)
Me.grpInterfaceOptions.Name = "grpInterfaceOptions"
Me.grpInterfaceOptions.Size = New System.Drawing.Size(354, 97)
Me.grpInterfaceOptions.TabIndex = 1
Me.grpInterfaceOptions.TabStop = False
Me.grpInterfaceOptions.Text = "Interface Options"
'
'lblThemeSelection
'
Me.lblThemeSelection.AutoSize = True
Me.lblThemeSelection.Location = New System.Drawing.Point(9, 27)
Me.lblThemeSelection.Name = "lblThemeSelection"
Me.lblThemeSelection.Size = New System.Drawing.Size(90, 13)
Me.lblThemeSelection.TabIndex = 0
Me.lblThemeSelection.Text = "Theme Selection:"
'
'cmbThemeSelection
'
Me.cmbThemeSelection.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.cmbThemeSelection.FormattingEnabled = True
Me.cmbThemeSelection.Location = New System.Drawing.Point(100, 23)
Me.cmbThemeSelection.Name = "cmbThemeSelection"
Me.cmbThemeSelection.Size = New System.Drawing.Size(121, 21)
Me.cmbThemeSelection.TabIndex = 1
'
'chkAutoHideOutput
'
Me.chkAutoHideOutput.AutoSize = True
Me.chkAutoHideOutput.Location = New System.Drawing.Point(12, 56)
Me.chkAutoHideOutput.Name = "chkAutoHideOutput"
Me.chkAutoHideOutput.Size = New System.Drawing.Size(183, 17)
Me.chkAutoHideOutput.TabIndex = 3
Me.chkAutoHideOutput.Text = "Automatically hide output window"
Me.chkAutoHideOutput.UseVisualStyleBackColor = True
' '
'frmSettings 'frmSettings
' '
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(554, 361) Me.ClientSize = New System.Drawing.Size(554, 361)
Me.Controls.Add(Me.pnlInterface)
Me.Controls.Add(Me.pnlStartup) Me.Controls.Add(Me.pnlStartup)
Me.Controls.Add(Me.pnlBackup) Me.Controls.Add(Me.pnlBackup)
Me.Controls.Add(Me.pnlGeneral) Me.Controls.Add(Me.pnlGeneral)
@@ -668,6 +724,9 @@ Partial Class frmSettings
Me.pnlStartup.ResumeLayout(False) Me.pnlStartup.ResumeLayout(False)
Me.grpStartup.ResumeLayout(False) Me.grpStartup.ResumeLayout(False)
Me.grpStartup.PerformLayout() Me.grpStartup.PerformLayout()
Me.pnlInterface.ResumeLayout(False)
Me.grpInterfaceOptions.ResumeLayout(False)
Me.grpInterfaceOptions.PerformLayout()
Me.ResumeLayout(False) Me.ResumeLayout(False)
End Sub End Sub
@@ -724,4 +783,9 @@ Partial Class frmSettings
Friend WithEvents grpGameMonitoringOptions As GroupBox Friend WithEvents grpGameMonitoringOptions As GroupBox
Friend WithEvents chkShowResolvedPaths As CheckBox Friend WithEvents chkShowResolvedPaths As CheckBox
Friend WithEvents chkDisableDiskSpaceCheck As CheckBox Friend WithEvents chkDisableDiskSpaceCheck As CheckBox
Friend WithEvents pnlInterface As Panel
Friend WithEvents grpInterfaceOptions As GroupBox
Friend WithEvents chkAutoHideOutput As CheckBox
Friend WithEvents cmbThemeSelection As ComboBox
Friend WithEvents lblThemeSelection As Label
End Class End Class
+11
View File
@@ -265,6 +265,7 @@ Public Class frmSettings
oSettingsItems.Add(New KeyValuePair(Of Integer, String)(1, frmSettings_lstSettings_BackupRestore)) oSettingsItems.Add(New KeyValuePair(Of Integer, String)(1, frmSettings_lstSettings_BackupRestore))
oSettingsItems.Add(New KeyValuePair(Of Integer, String)(2, frmSettings_lstSettings_Startup)) oSettingsItems.Add(New KeyValuePair(Of Integer, String)(2, frmSettings_lstSettings_Startup))
oSettingsItems.Add(New KeyValuePair(Of Integer, String)(3, frmSettings_lstSettings_7z)) oSettingsItems.Add(New KeyValuePair(Of Integer, String)(3, frmSettings_lstSettings_7z))
oSettingsItems.Add(New KeyValuePair(Of Integer, String)(4, frmSettings_lstSettings_Interface))
lstSettings.DataSource = oSettingsItems lstSettings.DataSource = oSettingsItems
@@ -291,22 +292,32 @@ Public Class frmSettings
pnlStartup.Visible = False pnlStartup.Visible = False
pnlBackup.Visible = False pnlBackup.Visible = False
pnl7z.Visible = False pnl7z.Visible = False
pnlInterface.Visible = False
Case 1 Case 1
pnlGeneral.Visible = False pnlGeneral.Visible = False
pnlBackup.Visible = True pnlBackup.Visible = True
pnlStartup.Visible = False pnlStartup.Visible = False
pnl7z.Visible = False pnl7z.Visible = False
pnlInterface.Visible = False
Case 2 Case 2
pnlGeneral.Visible = False pnlGeneral.Visible = False
pnlBackup.Visible = False pnlBackup.Visible = False
pnlStartup.Visible = True pnlStartup.Visible = True
pnl7z.Visible = False pnl7z.Visible = False
pnlInterface.Visible = False
Case 3 Case 3
pnlGeneral.Visible = False pnlGeneral.Visible = False
pnlBackup.Visible = False pnlBackup.Visible = False
pnlStartup.Visible = False pnlStartup.Visible = False
pnl7z.Visible = True pnl7z.Visible = True
pnlInterface.Visible = False
Case 4
pnlGeneral.Visible = False
pnlBackup.Visible = False
pnlStartup.Visible = False
pnl7z.Visible = False
pnlInterface.Visible = True
End Select End Select
End If End If
End Sub End Sub
+9
View File
@@ -5064,6 +5064,15 @@ Namespace My.Resources
End Get End Get
End Property End Property
'''<summary>
''' Looks up a localized string similar to Interface.
'''</summary>
Friend ReadOnly Property frmSettings_lstSettings_Interface() As String
Get
Return ResourceManager.GetString("frmSettings_lstSettings_Interface", resourceCulture)
End Get
End Property
'''<summary> '''<summary>
''' Looks up a localized string similar to Startup. ''' Looks up a localized string similar to Startup.
'''</summary> '''</summary>
+3
View File
@@ -2398,4 +2398,7 @@
<data name="mgrThemeEngine_RGB_Light_HighlightSecondary" xml:space="preserve"> <data name="mgrThemeEngine_RGB_Light_HighlightSecondary" xml:space="preserve">
<value>0,0,0</value> <value>0,0,0</value>
</data> </data>
<data name="frmSettings_lstSettings_Interface" xml:space="preserve">
<value>Interface</value>
</data>
</root> </root>