Update setting window

This commit is contained in:
Guillaume Meunier
2024-10-13 21:20:11 +02:00
parent a0792de58a
commit a348a2d4d0
4 changed files with 370 additions and 367 deletions
+210 -220
View File
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>1042</width>
<height>1347</height>
<width>960</width>
<height>762</height>
</rect>
</property>
<property name="windowTitle">
@@ -42,78 +42,29 @@
<rect>
<x>0</x>
<y>0</y>
<width>1042</width>
<height>1295</height>
<width>939</width>
<height>1035</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="2" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QDoubleSpinBox" name="bitrate">
<property name="suffix">
<string> Mbit/s</string>
</property>
<property name="decimals">
<number>0</number>
</property>
<property name="minimum">
<double>1.000000000000000</double>
</property>
<property name="maximum">
<double>200.000000000000000</double>
</property>
<property name="value">
<double>100.000000000000000</double>
</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 row="8" column="1" colspan="3">
<widget class="Line" name="line">
<item row="17" column="1" colspan="3">
<widget class="Line" name="line_4">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="QLabel" name="label_4">
<item row="11" column="2">
<widget class="QRadioButton" name="radio_manual_foveation">
<property name="text">
<string>Foveation strength:</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
</item>
<item row="10" column="2">
<widget class="QRadioButton" name="radio_auto_foveation">
<property name="text">
<string comment="Foveation">Automatic</string>
</property>
<property name="checked">
<bool>true</bool>
<string comment="Foveation">Manual</string>
</property>
<attribute name="buttonGroup">
<string notr="true">group_foveation</string>
</attribute>
</widget>
</item>
<item row="13" column="2">
<item row="14" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_2">
@@ -147,7 +98,7 @@
</item>
</layout>
</item>
<item row="2" column="4">
<item row="4" column="4">
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
@@ -160,49 +111,63 @@
</property>
</spacer>
</item>
<item row="9" column="1" colspan="2">
<widget class="QLabel" name="label">
<item row="16" column="1">
<widget class="QLabel" name="bitrate_label">
<property name="text">
<string>A stronger foveation makes the image sharper in the center than in the periphery and makes the decoding faster. This is better for fast paced games.
A weaker foveation gives a uniform sharpness in the whole image.
The recommended values are between 20% and 50% for headsets without eye tracking and between 50% and 70% for headsets with eye tracking.</string>
<string>Bitrate:</string>
</property>
<property name="wordWrap">
<bool>true</bool>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>bitrate</cstring>
</property>
</widget>
</item>
<item row="12" column="2">
<widget class="QSlider" name="slider_foveation">
<item row="10" column="1">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Foveation strength:</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
</item>
<item row="18" column="2">
<widget class="QRadioButton" name="radio_auto_encoder">
<property name="text">
<string comment="Encoder">Automatic</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">group_encoder</string>
</attribute>
</widget>
</item>
<item row="6" column="3">
<widget class="QPushButton" name="button_game_browse">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>80</number>
</property>
<property name="value">
<number>20</number>
</property>
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="tickPosition">
<enum>QSlider::TickPosition::TicksBelow</enum>
<property name="text">
<string>Browse</string>
</property>
</widget>
</item>
<item row="17" column="2">
<item row="18" column="1">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Encoder configuration:</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
</item>
<item row="19" column="2">
<widget class="QRadioButton" name="radio_manual_encoder">
<property name="text">
<string comment="Encoder">Manual</string>
@@ -212,20 +177,33 @@ The recommended values are between 20% and 50% for headsets without eye tracking
</attribute>
</widget>
</item>
<item row="19" column="1" colspan="2">
<item row="21" column="1" colspan="2">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item row="18" column="1" colspan="2">
<item row="10" column="2">
<widget class="QRadioButton" name="radio_auto_foveation">
<property name="text">
<string comment="Foveation">Automatic</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">group_foveation</string>
</attribute>
</widget>
</item>
<item row="20" column="1" colspan="2">
<widget class="QWidget" name="layout_encoder_config" native="true">
<property name="minimumSize">
<size>
@@ -237,7 +215,7 @@ The recommended values are between 20% and 50% for headsets without eye tracking
<item>
<widget class="QLabel" name="label_9">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;To add a new encoder, split an existing encoder by clicking near an edge.&lt;/p&gt;&lt;p&gt;You can drag an edge to resize or remove encoders.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;To add a new encoder, split an existing encoder by clicking near an edge.&lt;/p&gt;&lt;p&gt;Drag an edge to resize or remove encoders.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
@@ -256,7 +234,7 @@ The recommended values are between 20% and 50% for headsets without eye tracking
</property>
<property name="minimumSize">
<size>
<width>0</width>
<width>400</width>
<height>400</height>
</size>
</property>
@@ -409,16 +387,80 @@ The recommended values are between 20% and 50% for headsets without eye tracking
</layout>
</widget>
</item>
<item row="11" column="2">
<widget class="QRadioButton" name="radio_manual_foveation">
<item row="4" column="1">
<widget class="QLabel" name="label_8">
<property name="text">
<string comment="Foveation">Manual</string>
<string>Application to start when a headset connects</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
<attribute name="buttonGroup">
<string notr="true">group_foveation</string>
</attribute>
</widget>
</item>
<item row="13" column="2">
<widget class="QSlider" name="slider_foveation">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>80</number>
</property>
<property name="value">
<number>20</number>
</property>
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="tickPosition">
<enum>QSlider::TickPosition::TicksBelow</enum>
</property>
</widget>
</item>
<item row="15" column="1" colspan="2">
<widget class="Line" name="line_2">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
</item>
<item row="13" column="3">
<widget class="QSpinBox" name="spin_foveation">
<property name="enabled">
<bool>false</bool>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
<property name="suffix">
<string> %</string>
</property>
<property name="maximum">
<number>80</number>
</property>
<property name="value">
<number>20</number>
</property>
</widget>
</item>
<item row="1" column="0" colspan="5">
<widget class="Line" name="line_3">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
</item>
<item row="4" column="2">
<widget class="QComboBox" name="combo_select_game"/>
</item>
<item row="6" column="2">
<widget class="QLineEdit" name="edit_game_path">
<property name="enabled">
@@ -429,6 +471,62 @@ The recommended values are between 20% and 50% for headsets without eye tracking
</property>
</widget>
</item>
<item row="4" column="0">
<spacer name="horizontalSpacer_4">
<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 row="8" column="1" colspan="3">
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
</item>
<item row="16" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QDoubleSpinBox" name="bitrate">
<property name="suffix">
<string> Mbit/s</string>
</property>
<property name="decimals">
<number>0</number>
</property>
<property name="minimum">
<double>1.000000000000000</double>
</property>
<property name="maximum">
<double>200.000000000000000</double>
</property>
<property name="value">
<double>100.000000000000000</double>
</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 row="0" column="0" colspan="5">
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
@@ -477,128 +575,20 @@ The recommended values are between 20% and 50% for headsets without eye tracking
</item>
</layout>
</item>
<item row="16" column="1">
<widget class="QLabel" name="label_5">
<item row="12" column="1" colspan="2">
<widget class="QLabel" name="label">
<property name="text">
<string>Encoder configuration:</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
</item>
<item row="1" column="0" colspan="5">
<widget class="Line" name="line_3">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
</item>
<item row="14" column="1" colspan="2">
<widget class="Line" name="line_2">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
</item>
<item row="3" column="1" colspan="3">
<widget class="Line" name="line_4">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
</item>
<item row="16" column="2">
<widget class="QRadioButton" name="radio_auto_encoder">
<property name="text">
<string comment="Encoder">Automatic</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">group_encoder</string>
</attribute>
</widget>
</item>
<item row="15" column="1" colspan="2">
<widget class="QLabel" name="label_7">
<property name="text">
<string>You can use several encoders in order to split the workload between your CPU and your GPU and reduce the latency.</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="bitrate_label">
<property name="text">
<string>Bitrate:</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>bitrate</cstring>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLabel" name="label_8">
<property name="text">
<string>You can choose a game to be started automatically when the headset connects.</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set>
<string>A stronger foveation makes the image sharper in the center than in the periphery and makes the decoding faster. This is better for fast paced games.
A weaker foveation gives a uniform sharpness in the whole image.
The recommended values are between 20% and 50% for headsets without eye tracking and between 50% and 70% for headsets with eye tracking.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="6" column="3">
<widget class="QPushButton" name="button_game_browse">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Browse</string>
</property>
</widget>
</item>
<item row="12" column="3">
<widget class="QSpinBox" name="spin_foveation">
<property name="enabled">
<bool>false</bool>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
<property name="suffix">
<string> %</string>
</property>
<property name="maximum">
<number>80</number>
</property>
<property name="value">
<number>20</number>
</property>
</widget>
</item>
<item row="2" column="0">
<spacer name="horizontalSpacer_4">
<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 row="4" column="2">
<widget class="QComboBox" name="combo_select_game"/>
</item>
</layout>
</widget>
</widget>
@@ -875,7 +865,7 @@ The recommended values are between 20% and 50% for headsets without eye tracking
</connection>
</connections>
<buttongroups>
<buttongroup name="group_encoder"/>
<buttongroup name="group_foveation"/>
<buttongroup name="group_encoder"/>
</buttongroups>
</ui>