refactor: SettingsDialog move network items to own tab

This commit is contained in:
sithlord48
2026-02-16 16:44:45 -05:00
committed by Chris Rizzitello
parent 74c25fdff6
commit 41197334f0
7 changed files with 369 additions and 383 deletions

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>549</width>
<height>529</height>
<width>554</width>
<height>447</height>
</rect>
</property>
<property name="windowTitle">
@ -33,6 +33,9 @@
<string>&amp;General</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="spacing">
<number>9</number>
</property>
<property name="leftMargin">
<number>12</number>
</property>
@ -43,242 +46,65 @@
<number>12</number>
</property>
<item>
<widget class="QGroupBox" name="groupApp">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
<widget class="QCheckBox" name="cbAutoUpdate">
<property name="text">
<string>Check for updates on startup</string>
</property>
<property name="title">
<string>App</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QCheckBox" name="cbAutoUpdate">
<property name="text">
<string>Check for updates on startup</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cbShowVersion">
<property name="text">
<string>Include version in the window title</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cbAutoHide">
<property name="text">
<string>Hide the window when the app starts</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cbPreventSleep">
<property name="text">
<string>Prevent this computer from going to sleep</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cbCloseToTray">
<property name="text">
<string>Leave app running in notification area when the window is closed</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<widget class="QLabel" name="lblTrayIconStyle">
<property name="text">
<string>Tray icon style</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="rbIconColorful">
<property name="text">
<string>Colorful</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="rbIconMono">
<property name="text">
<string>Monocolor</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupSecurity">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
<widget class="QCheckBox" name="cbShowVersion">
<property name="text">
<string>Include version in the window title</string>
</property>
<property name="title">
<string>Enable TLS Encryption</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<layout class="QVBoxLayout" name="_11">
<item>
<widget class="QWidget" name="widgetTlsCert" native="true">
<layout class="QHBoxLayout" name="_12">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="lblTlsCertInfo">
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lblTlsCert">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Certificate</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineTlsCertPath">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnTlsCertPath">
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset theme="QIcon::ThemeIcon::DocumentOpen"/>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<property name="topMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="lblTlsKeyLength">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Key length</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboTlsKeyLength">
<item>
<property name="text">
<string notr="true">2048</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">4096</string>
</property>
</item>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="btnTlsRegenCert">
<property name="text">
<string>Regenerate certificate</string>
</property>
<property name="icon">
<iconset theme="QIcon::ThemeIcon::ViewRefresh"/>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="cbRequireClientCert">
<property name="text">
<string>Require client certificates</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cbAutoHide">
<property name="text">
<string>Hide the window when the app starts</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cbPreventSleep">
<property name="text">
<string>Prevent this computer from going to sleep</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cbCloseToTray">
<property name="text">
<string>Leave app running in notification area when the window is closed</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<widget class="QLabel" name="lblTrayIconStyle">
<property name="text">
<string>Tray icon style</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="rbIconColorful">
<property name="text">
<string>Colorful</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="rbIconMono">
<property name="text">
<string>Monocolor</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
@ -501,6 +327,294 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="tabNetwork">
<attribute name="title">
<string>&amp;Network</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_7">
<property name="leftMargin">
<number>12</number>
</property>
<property name="topMargin">
<number>25</number>
</property>
<property name="rightMargin">
<number>12</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="lblNetworkIp">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Network IP</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboInterface">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<item>
<property name="text">
<string>Automatic</string>
</property>
</item>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Policy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>25</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QLabel" name="lblPort">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Port</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="sbPort">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximum">
<number>65535</number>
</property>
<property name="value">
<number>24800</number>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupSecurity">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Enable TLS Encryption</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<layout class="QVBoxLayout" name="_11">
<item>
<widget class="QWidget" name="widgetTlsCert" native="true">
<layout class="QHBoxLayout" name="_12">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="lblTlsCertInfo">
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lblTlsCert">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Certificate</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineTlsCertPath">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnTlsCertPath">
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset theme="QIcon::ThemeIcon::DocumentOpen"/>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<property name="topMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="lblTlsKeyLength">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Key length</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboTlsKeyLength">
<item>
<property name="text">
<string notr="true">2048</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">4096</string>
</property>
</item>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="btnTlsRegenCert">
<property name="text">
<string>Regenerate certificate</string>
</property>
<property name="icon">
<iconset theme="QIcon::ThemeIcon::ViewRefresh"/>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="cbRequireClientCert">
<property name="text">
<string>Require client certificates</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>79</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabAdvanced">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
@ -512,110 +626,6 @@
<string>&amp;Advanced</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QGroupBox" name="groupNetworking">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Networking</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="lblNetworkIp">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Network IP</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboInterface">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<item>
<property name="text">
<string>Automatic</string>
</property>
</item>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Policy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>25</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="lblPort">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Port</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="sbPort">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximum">
<number>65535</number>
</property>
<property name="value">
<number>24800</number>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupService">
<property name="enabled">

View File

@ -1151,10 +1151,6 @@ Al habilitar esta opción, se deshabilitará la interfaz gráfica de usuario (GU
<source>Preferences</source>
<translation type="unfinished">Preferencias</translation>
</message>
<message>
<source>App</source>
<translation type="unfinished">Aplicación</translation>
</message>
<message>
<source>Check for updates on startup</source>
<translation type="unfinished">Buscar actualizaciones al iniciar</translation>
@ -1207,10 +1203,6 @@ Al habilitar esta opción, se deshabilitará la interfaz gráfica de usuario (GU
<source>&amp;Advanced</source>
<translation type="unfinished">&amp;Avanzado</translation>
</message>
<message>
<source>Networking</source>
<translation type="unfinished">Redes</translation>
</message>
<message>
<source>Port</source>
<translation type="unfinished">Puerto</translation>
@ -1375,6 +1367,10 @@ Al habilitar esta opción, se deshabilitará la interfaz gráfica de usuario (GU
<source>&amp;General</source>
<translation type="unfinished">&amp;General</translation>
</message>
<message>
<source>&amp;Network</source>
<translation>R&amp;ed</translation>
</message>
</context>
<context>
<name>i18n</name>

View File

@ -1151,10 +1151,6 @@ L&apos;abilitazione di questa impostazione disabiliterà l&apos;interfaccia graf
<source>Preferences</source>
<translation>Preferenze</translation>
</message>
<message>
<source>App</source>
<translation>App</translation>
</message>
<message>
<source>Check for updates on startup</source>
<translation>Controlla aggiornamenti all&apos;avvio</translation>
@ -1207,10 +1203,6 @@ L&apos;abilitazione di questa impostazione disabiliterà l&apos;interfaccia graf
<source>&amp;Advanced</source>
<translation>&amp;Avanzate</translation>
</message>
<message>
<source>Networking</source>
<translation>Rete</translation>
</message>
<message>
<source>Port</source>
<translation>Porta</translation>
@ -1375,6 +1367,10 @@ L&apos;abilitazione di questa impostazione disabiliterà l&apos;interfaccia graf
<source>&amp;General</source>
<translation type="unfinished">&amp;Generale</translation>
</message>
<message>
<source>&amp;Network</source>
<translation>&amp;Rete</translation>
</message>
</context>
<context>
<name>i18n</name>

View File

@ -1152,10 +1152,6 @@ Enabling this setting will disable the server config GUI.</source>
<source>Preferences</source>
<translation></translation>
</message>
<message>
<source>App</source>
<translation></translation>
</message>
<message>
<source>Check for updates on startup</source>
<translation></translation>
@ -1208,10 +1204,6 @@ Enabling this setting will disable the server config GUI.</source>
<source>&amp;Advanced</source>
<translation>(&amp;A)</translation>
</message>
<message>
<source>Networking</source>
<translation></translation>
</message>
<message>
<source>Port</source>
<translation></translation>
@ -1376,6 +1368,10 @@ Enabling this setting will disable the server config GUI.</source>
<source>&amp;General</source>
<translation>(&amp;G)</translation>
</message>
<message>
<source>&amp;Network</source>
<translation>(&amp;N)</translation>
</message>
</context>
<context>
<name>i18n</name>

View File

@ -1150,10 +1150,6 @@ Enabling this setting will disable the server config GUI.</source>
<source>Preferences</source>
<translation></translation>
</message>
<message>
<source>App</source>
<translation></translation>
</message>
<message>
<source>Check for updates on startup</source>
<translation> </translation>
@ -1206,10 +1202,6 @@ Enabling this setting will disable the server config GUI.</source>
<source>&amp;Advanced</source>
<translation>(&amp;A)</translation>
</message>
<message>
<source>Networking</source>
<translation></translation>
</message>
<message>
<source>Port</source>
<translation></translation>
@ -1374,6 +1366,10 @@ Enabling this setting will disable the server config GUI.</source>
<source>&amp;General</source>
<translation type="unfinished"> (&amp;G)</translation>
</message>
<message>
<source>&amp;Network</source>
<translation>(&amp;N)</translation>
</message>
</context>
<context>
<name>i18n</name>

View File

@ -1150,10 +1150,6 @@ Enabling this setting will disable the server config GUI.</source>
<source>Preferences</source>
<translation>Настройки</translation>
</message>
<message>
<source>App</source>
<translation>Приложение</translation>
</message>
<message>
<source>Check for updates on startup</source>
<translation>Проверять обновления при запуске</translation>
@ -1206,10 +1202,6 @@ Enabling this setting will disable the server config GUI.</source>
<source>&amp;Advanced</source>
<translation>&amp;Расширенные</translation>
</message>
<message>
<source>Networking</source>
<translation>Сеть</translation>
</message>
<message>
<source>Port</source>
<translation>Порт</translation>
@ -1374,6 +1366,10 @@ Enabling this setting will disable the server config GUI.</source>
<source>&amp;General</source>
<translation type="unfinished">&amp;Общий</translation>
</message>
<message>
<source>&amp;Network</source>
<translation>&amp;Сеть</translation>
</message>
</context>
<context>
<name>i18n</name>

View File

@ -1152,10 +1152,6 @@ Enabling this setting will disable the server config GUI.</source>
<source>Preferences</source>
<translation></translation>
</message>
<message>
<source>App</source>
<translation></translation>
</message>
<message>
<source>Check for updates on startup</source>
<translation></translation>
@ -1208,10 +1204,6 @@ Enabling this setting will disable the server config GUI.</source>
<source>&amp;Advanced</source>
<translation>(&amp;A)</translation>
</message>
<message>
<source>Networking</source>
<translation></translation>
</message>
<message>
<source>Port</source>
<translation></translation>
@ -1376,6 +1368,10 @@ Enabling this setting will disable the server config GUI.</source>
<source>&amp;General</source>
<translation>(&amp;G)</translation>
</message>
<message>
<source>&amp;Network</source>
<translation>(&amp;N)</translation>
</message>
</context>
<context>
<name>i18n</name>