SettingsDialog: Redesign settings sections

This commit is contained in:
tt2468 2021-06-05 21:20:11 -07:00
parent 19375921d3
commit 3cc612cb1c
2 changed files with 177 additions and 120 deletions

View File

@ -1,15 +1,19 @@
OBSWebSocket.Settings.DialogTitle="WebSocket Server Settings" OBSWebSocket.Settings.DialogTitle="obs-websocket Settings"
OBSWebSocket.Settings.PluginSettingsTitle="Plugin Settings"
OBSWebSocket.Settings.ServerEnable="Enable WebSocket server" OBSWebSocket.Settings.ServerEnable="Enable WebSocket server"
OBSWebSocket.Settings.AlertsEnable="Enable System Tray Alerts" OBSWebSocket.Settings.AlertsEnable="Enable System Tray Alerts"
OBSWebSocket.Settings.DebugEnable="Enable Debug Logging" OBSWebSocket.Settings.DebugEnable="Enable Debug Logging"
OBSWebSocket.Settings.DebugEnableHoverText="Changing this requires the WebSocket server to restart. However, changing this will not automatically restart the obs-websocket server." OBSWebSocket.Settings.DebugEnableHoverText="Changing this requires the WebSocket server to restart. However, changing this will not automatically restart the obs-websocket server."
OBSWebSocket.Settings.ServerSettingsTitle="Server Settings"
OBSWebSocket.Settings.AuthRequired="Enable Authentication" OBSWebSocket.Settings.AuthRequired="Enable Authentication"
OBSWebSocket.Settings.Password="Server Password" OBSWebSocket.Settings.Password="Server Password"
OBSWebSocket.Settings.GeneratePassword="Generate Password" OBSWebSocket.Settings.GeneratePassword="Generate Password"
OBSWebSocket.Settings.ShowConnectInfo="Show Connect Info"
OBSWebSocket.Settings.ServerPort="Server Port" OBSWebSocket.Settings.ServerPort="Server Port"
OBSWebSocket.Settings.ConnectedSessionsTitle="Connected WebSocket Sessions" OBSWebSocket.Settings.ShowConnectInfo="Show Connect Info"
OBSWebSocket.SessionTable.Title="Connected WebSocket Sessions"
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Remote Address" OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Remote Address"
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Session Duration" OBSWebSocket.SessionTable.SessionDurationColumnTitle="Session Duration"
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Messages In/Out" OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Messages In/Out"

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>675</width> <width>675</width>
<height>437</height> <height>565</height>
</rect> </rect>
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
@ -25,45 +25,60 @@
<property name="windowTitle"> <property name="windowTitle">
<string>OBSWebSocket.Settings.DialogTitle</string> <string>OBSWebSocket.Settings.DialogTitle</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item row="2" column="0"> <item>
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QGroupBox" name="pluginSettingsGroupBox">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="title">
<string>OBSWebSocket.Settings.PluginSettingsTitle</string>
</property>
<layout class="QFormLayout" name="formLayout">
<property name="labelAlignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="topMargin">
<number>2</number>
</property>
<item row="1" column="0">
<spacer name="horizontalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="standardButtons"> <property name="sizeType">
<set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> <enum>QSizePolicy::Fixed</enum>
</property> </property>
</widget> <property name="sizeHint" stdset="0">
<size>
<width>150</width>
<height>20</height>
</size>
</property>
</spacer>
</item> </item>
<item row="0" column="0"> <item row="1" column="1">
<layout class="QFormLayout" name="mainForm"> <widget class="QCheckBox" name="enableWebSocketServerCheckBox">
<item row="0" column="0">
<widget class="QLabel" name="enableWebSocketServerLabel">
<property name="text"> <property name="text">
<string>OBSWebSocket.Settings.ServerEnable</string> <string>OBSWebSocket.Settings.ServerEnable</string>
</property> </property>
</widget>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="enableWebSocketServerCheckBox">
<property name="checked"> <property name="checked">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="2" column="1">
<widget class="QLabel" name="enableSystemTrayAlertsLabel"> <widget class="QCheckBox" name="enableSystemTrayAlertsCheckBox">
<property name="text"> <property name="text">
<string>OBSWebSocket.Settings.AlertsEnable</string> <string>OBSWebSocket.Settings.AlertsEnable</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="3" column="1">
<widget class="QCheckBox" name="enableSystemTrayAlertsCheckBox"/> <widget class="QCheckBox" name="enableDebugLoggingCheckBox">
</item>
<item row="2" column="0">
<widget class="QLabel" name="enableDebugLoggingLabel">
<property name="toolTip"> <property name="toolTip">
<string>OBSWebSocket.Settings.DebugEnableHoverText</string> <string>OBSWebSocket.Settings.DebugEnableHoverText</string>
</property> </property>
@ -72,31 +87,62 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> </layout>
<widget class="QCheckBox" name="enableDebugLoggingCheckBox"> </widget>
<property name="toolTip"> </item>
<string>OBSWebSocket.Settings.DebugEnableHoverText</string> <item>
<widget class="QGroupBox" name="serverSettingsGroupBox">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="title">
<string>OBSWebSocket.Settings.ServerSettingsTitle</string>
</property>
<layout class="QFormLayout" name="formLayout_3">
<property name="labelAlignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="topMargin">
<number>2</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="serverPortLabel">
<property name="text">
<string>OBSWebSocket.Settings.ServerPort</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0"> <item row="0" column="1">
<widget class="QLabel" name="enableAuthenticationLabel"> <widget class="QSpinBox" name="serverPortSpinBox">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>65534</number>
</property>
<property name="value">
<number>4444</number>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="enableAuthenticationCheckBox">
<property name="text"> <property name="text">
<string>OBSWebSocket.Settings.AuthRequired</string> <string>OBSWebSocket.Settings.AuthRequired</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="2" column="0">
<widget class="QCheckBox" name="enableAuthenticationCheckBox"/>
</item>
<item row="4" column="0">
<widget class="QLabel" name="serverPasswordLabel"> <widget class="QLabel" name="serverPasswordLabel">
<property name="text"> <property name="text">
<string>OBSWebSocket.Settings.Password</string> <string>OBSWebSocket.Settings.Password</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="2" column="1">
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<widget class="QLineEdit" name="serverPasswordLineEdit"> <widget class="QLineEdit" name="serverPasswordLineEdit">
@ -114,27 +160,23 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="5" column="0"> <item row="3" column="0">
<widget class="QLabel" name="serverPortLabel"> <spacer name="horizontalSpacer_2">
<property name="text"> <property name="orientation">
<string>OBSWebSocket.Settings.ServerPort</string> <enum>Qt::Horizontal</enum>
</property> </property>
</widget> <property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>150</width>
<height>20</height>
</size>
</property>
</spacer>
</item> </item>
<item row="5" column="1"> <item row="3" column="1">
<widget class="QSpinBox" name="serverPortSpinBox">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>65534</number>
</property>
<property name="value">
<number>4444</number>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QPushButton" name="showConnectInfoButton"> <widget class="QPushButton" name="showConnectInfoButton">
<property name="text"> <property name="text">
<string>OBSWebSocket.Settings.ShowConnectInfo</string> <string>OBSWebSocket.Settings.ShowConnectInfo</string>
@ -142,9 +184,10 @@
</widget> </widget>
</item> </item>
</layout> </layout>
</widget>
</item> </item>
<item row="1" column="0"> <item>
<widget class="QGroupBox" name="websocketSessionGroupBox"> <widget class="QGroupBox" name="sessionTableGroupBox">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
@ -152,7 +195,7 @@
</size> </size>
</property> </property>
<property name="title"> <property name="title">
<string>OBSWebSocket.Settings.ConnectedSessionsTitle</string> <string>OBSWebSocket.SessionTable.Title</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_2"> <layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0"> <item row="0" column="0">
@ -208,6 +251,16 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
<resources/> <resources/>