summaryrefslogtreecommitdiffstats
path: root/src/cardwidget.ui
diff options
context:
space:
mode:
authorSimon Rettberg2021-11-04 14:47:38 +0100
committerSimon Rettberg2021-11-04 14:47:38 +0100
commita11c084f904c21607bd6f925b2280e95d5592082 (patch)
treea4393bc7889a5cc81f64cfc4b5dfc9da9f5b002a /src/cardwidget.ui
parent"Fix" compile on older distros by killing off i18n for now (diff)
downloadpavucontrol-slx-a11c084f904c21607bd6f925b2280e95d5592082.tar.gz
pavucontrol-slx-a11c084f904c21607bd6f925b2280e95d5592082.tar.xz
pavucontrol-slx-a11c084f904c21607bd6f925b2280e95d5592082.zip
Try to group the output configurations in the last tab
This introduces a second combobox that is supposed to list the different output configurations for a selected output. The idea is to list the most resonable configration first (i.e. make it the default) and have the primary combobox only list the different outputs themselves. Otherwise the UI might appear quite overwhelming to a novice user, depending on their hardware. Some platforms for exmaple list 4-7 HDMI ports each with stereo, 5.1 and 7.1 configurations. Having all this in a flat list is confusing and bad UX, as it doesn't even fit on a single screen. Unfortunately the pa-api isn't hierarchical and pretty much enumerates the configurations exactly the way they get displayed by pavucontrol, so we need to employ some fuzzy matching logic for grouping, which might or might not need some refining in the future.
Diffstat (limited to 'src/cardwidget.ui')
-rw-r--r--src/cardwidget.ui53
1 files changed, 10 insertions, 43 deletions
diff --git a/src/cardwidget.ui b/src/cardwidget.ui
index 28ea7ab..a75654b 100644
--- a/src/cardwidget.ui
+++ b/src/cardwidget.ui
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>368</width>
- <height>79</height>
+ <height>106</height>
</rect>
</property>
<property name="windowTitle">
@@ -33,14 +33,7 @@
</layout>
</item>
<item>
- <layout class="QHBoxLayout" name="profileHLayout" stretch="0,0,1">
- <item>
- <widget class="QCheckBox" name="profileCB">
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
+ <layout class="QHBoxLayout" name="profileHLayout" stretch="0,1">
<item>
<widget class="QLabel" name="profileLabel">
<property name="text">
@@ -54,6 +47,13 @@
</layout>
</item>
<item>
+ <layout class="QHBoxLayout" name="variantHLayout">
+ <item>
+ <widget class="QComboBox" name="profileFlavorList"/>
+ </item>
+ </layout>
+ </item>
+ <item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
@@ -63,38 +63,5 @@
</layout>
</widget>
<resources/>
- <connections>
- <connection>
- <sender>profileCB</sender>
- <signal>toggled(bool)</signal>
- <receiver>profileLabel</receiver>
- <slot>setEnabled(bool)</slot>
- <hints>
- <hint type="sourcelabel">
- <x>137</x>
- <y>47</y>
- </hint>
- <hint type="destinationlabel">
- <x>147</x>
- <y>47</y>
- </hint>
- </hints>
- </connection>
- <connection>
- <sender>profileCB</sender>
- <signal>toggled(bool)</signal>
- <receiver>profileList</receiver>
- <slot>setEnabled(bool)</slot>
- <hints>
- <hint type="sourcelabel">
- <x>137</x>
- <y>47</y>
- </hint>
- <hint type="destinationlabel">
- <x>315</x>
- <y>47</y>
- </hint>
- </hints>
- </connection>
- </connections>
+ <connections/>
</ui>