]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/uis/FilterListsDialog.ui
Partial filter list implementation.
[PrivacyBrowserPC.git] / src / uis / FilterListsDialog.ui
diff --git a/src/uis/FilterListsDialog.ui b/src/uis/FilterListsDialog.ui
new file mode 100644 (file)
index 0000000..4047303
--- /dev/null
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Copyright 2024 Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc/>.
+
+  Privacy Browser PC is free software: you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
+
+  Privacy Browser PC is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with Privacy Browser PC.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<ui version="4.0">
+    <class>FilterListsDialog</class>
+
+    <widget class="QWidget">
+        <property name="geometry">
+            <rect>
+                <x>0</x>
+                <y>0</y>
+                <height>1500</height>
+                <width>2500</width>
+            </rect>
+        </property>
+
+        <!-- Main layout. -->
+        <layout class="QVBoxLayout">
+            <!-- Main content. -->
+            <item>
+                <layout class="QHBoxLayout">
+                    <!-- Left column. -->
+                    <item>
+                        <layout class="QVBoxLayout">
+                            <!-- Filter list combo box. -->
+                            <item>
+                                <!-- The form layout lets the combo box shrink to the size of the contents. -->
+                                <layout class="QFormLayout">
+                                    <item row="0" column="0">
+                                        <widget class="QComboBox" name="filterListComboBox" />
+                                    </item>
+                                </layout>
+                            </item>
+
+                            <!-- Filter list text edit. -->
+                            <item>
+                                <widget class="QTextEdit" name="filterListTextEdit">
+                                    <property name="readOnly">
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                            </item>
+                        </layout>
+                    </item>
+
+                    <!-- Right column. -->
+                    <item>
+                        <layout class="QVBoxLayout">
+                            <!-- Sublist combo box. -->
+                            <item>
+                                <!-- The form layout lets the combo box shrink to the size of the contents. -->
+                                <layout class="QFormLayout">
+                                    <item row="0" column="0">
+                                        <widget class="QComboBox" name="sublistComboBox">
+                                            <property name="sizeAdjustPolicy">
+                                                <enum>QComboBox::AdjustToContents</enum>
+                                            </property>
+                                        </widget>
+                                    </item>
+                                </layout>
+                            </item>
+
+                            <!-- Sublist table. -->
+                            <item>
+                                <widget class="QTableWidget" name="sublistTableWidget">
+                                    <property name="editTriggers">
+                                        <set>QAbstractItemView::NoEditTriggers</set>
+                                    </property>
+
+                                    <property name="horizontalScrollMode">
+                                        <enum>QAbstractItemView::ScrollPerPixel</enum>
+                                    </property>
+
+                                    <attribute name="horizontalHeaderShowSortIndicator" stdset="0">
+                                        <bool>true</bool>
+                                    </attribute>
+
+                                    <attribute name="horizontalHeaderStretchLastSection">
+                                        <bool>true</bool>
+                                    </attribute>
+                                </widget>
+                            </item>
+                        </layout>
+                    </item>
+                </layout>
+            </item>
+
+            <!-- Buttons. -->
+            <item>
+                <widget class="QDialogButtonBox" name="dialogButtonBox">
+                    <property name="standardButtons">
+                        <set>QDialogButtonBox::Close</set>
+                    </property>
+                </widget>
+            </item>
+        </layout>
+    </widget>
+</ui>