]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/uis/SettingsPrivacy.ui
Partial filter list implementation.
[PrivacyBrowserPC.git] / src / uis / SettingsPrivacy.ui
index 780a239f4b2539c97b89483085c0c6d49082042b..fdcc4fccd6cd477d2e65488246fe602a2f4d8579 100644 (file)
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
 <!--
-  Copyright 2022-2023 Soren Stoutner <soren@stoutner.com>.
+  Copyright 2022-2024 Soren Stoutner <soren@stoutner.com>.
 
-  This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc>.
+  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
     <class>PrivacySettings</class>
 
     <widget class="QWidget">
-        <layout class="QFormLayout">
-            <!-- JavaScript. -->
-            <item row="0" column="1">
-                <widget class="QCheckBox" name="kcfg_javaScriptEnabled">
-                    <property name="text">
-                        <string>JavaScript</string>
-                    </property>
-
-                    <property name="toolTip">
-                        <string>JavaScript allows websites to run programs (scripts) on the device.  The default is disabled.</string>
-                    </property>
-                </widget>
-            </item>
-
-            <!-- Cookies. -->
-            <item row="1" column="1">
-                <widget class="QCheckBox" name="kcfg_localStorageEnabled">
-                    <property name="text">
-                        <string>Local storage</string>
-                    </property>
-
-                    <property name="toolTip">
-                        <string>Local storage includes cookies, DOM storage, IndexedDB, service workers, and the filesystem API.  DOM storage also requires a separate control to be enabled.  Local storage is disabled by default.</string>
-                    </property>
-                </widget>
-            </item>
-
-            <!-- DOM storage. -->
-            <item row="2" column="1">
-                <widget class="QCheckBox" name="kcfg_domStorageEnabled">
-                    <property name="text">
-                        <string>DOM storage</string>
-                    </property>
-
-                    <property name="toolTip">
-                        <string>DOM storage, sometimes called web storage, is like cookies on steroids.  To function, it requires that both JavaScript and local storage be enabled.  It is disabled by default.</string>
-                    </property>
-                </widget>
-            </item>
-
-            <!-- User agent. -->
-            <item row="3" column="0">
-                <widget class="QLabel">
-                    <property name="text">
-                        <string>User agent</string>
-                    </property>
-
-                    <property name="toolTip">
-                        <string>The user agent identifies the browser to the web server.  It serves no useful purpose, but many web servers refuse to return the web page if they don't see a user agent they like.  The default is Privacy Browser.</string>
-                    </property>
-                </widget>
-            </item>
-
-            <item row="3" column="1">
-                <widget class="QComboBox" name="kcfg_userAgent">
-                    <property name="sizePolicy">
-                        <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
-                            <horstretch>0</horstretch>
-                            <verstretch>0</verstretch>
-                        </sizepolicy>
-                    </property>
-
-                    <property name="editable">
-                        <bool>true</bool>
-                    </property>
-
-                    <item>
-                        <property name="text">
-                            <string>Privacy Browser</string>
-                        </property>
+        <layout class="QVBoxLayout">
+            <item>
+                <layout class="QFormLayout">
+                    <!-- JavaScript. -->
+                    <item row="0" column="1">
+                        <widget class="QCheckBox" name="kcfg_javaScriptEnabled">
+                            <property name="text">
+                                <string>JavaScript</string>
+                            </property>
+
+                            <property name="toolTip">
+                                <string>JavaScript allows websites to run programs (scripts) on the device.  The default is disabled.</string>
+                            </property>
+                        </widget>
                     </item>
 
-                    <item>
-                        <property name="text">
-                            <string>WebEngine Default</string>
-                        </property>
+                    <!-- Cookies. -->
+                    <item row="1" column="1">
+                        <widget class="QCheckBox" name="kcfg_localStorageEnabled">
+                            <property name="text">
+                                <string>Local storage</string>
+                            </property>
+
+                            <property name="toolTip">
+                                <string>Local storage includes cookies, DOM storage, IndexedDB, service workers, and the filesystem API.  DOM storage also requires a separate control to be enabled.  Local storage is disabled by default.</string>
+                            </property>
+                        </widget>
                     </item>
 
-                    <item>
-                        <property name="text">
-                            <string>Firefox Linux</string>
-                        </property>
+                    <!-- DOM storage. -->
+                    <item row="2" column="1">
+                        <widget class="QCheckBox" name="kcfg_domStorageEnabled">
+                            <property name="text">
+                                <string>DOM storage</string>
+                            </property>
+
+                            <property name="toolTip">
+                                <string>DOM storage, sometimes called web storage, is like cookies on steroids.  To function, it requires that both JavaScript and local storage be enabled.  It is disabled by default.</string>
+                            </property>
+
+                            <!-- Initially disable DOM storage. -->
+                            <property name="enabled">
+                                <bool>false</bool>
+                            </property>
+                        </widget>
                     </item>
 
-                    <item>
-                        <property name="text">
-                            <string>Chromium Linux</string>
-                        </property>
+                    <!-- User agent. -->
+                    <item row="3" column="0">
+                        <widget class="QLabel">
+                            <property name="text">
+                                <string>User agent</string>
+                            </property>
+
+                            <property name="toolTip">
+                                <string>The user agent identifies the browser to the web server.  It serves no useful purpose, but many web servers refuse to return the web page if they don't see a user agent they like.  The default is Privacy Browser.</string>
+                            </property>
+                        </widget>
                     </item>
 
-                    <item>
-                        <property name="text">
-                            <string>Firefox Windows</string>
-                        </property>
+                    <item row="3" column="1">
+                        <widget class="QComboBox" name="kcfg_userAgent">
+                            <property name="sizePolicy">
+                                <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+                                    <horstretch>0</horstretch>
+                                    <verstretch>0</verstretch>
+                                </sizepolicy>
+                            </property>
+
+                            <property name="editable">
+                                <bool>true</bool>
+                            </property>
+
+                            <item>
+                                <property name="text">
+                                    <string>Privacy Browser</string>
+                                </property>
+                            </item>
+
+                            <item>
+                                <property name="text">
+                                    <string>WebEngine Default</string>
+                                </property>
+                            </item>
+
+                            <item>
+                                <property name="text">
+                                    <string>Firefox Linux</string>
+                                </property>
+                            </item>
+
+                            <item>
+                                <property name="text">
+                                    <string>Chromium Linux</string>
+                                </property>
+                            </item>
+
+                            <item>
+                                <property name="text">
+                                    <string>Firefox Windows</string>
+                                </property>
+                            </item>
+
+                            <item>
+                                <property name="text">
+                                    <string>Chrome Windows</string>
+                                </property>
+                            </item>
+
+                            <item>
+                                <property name="text">
+                                    <string>Edge Windows</string>
+                                </property>
+                            </item>
+
+                            <item>
+                                <property name="text">
+                                    <string>Safari macOS</string>
+                                </property>
+                            </item>
+                        </widget>
                     </item>
 
-                    <item>
-                        <property name="text">
-                            <string>Chrome Windows</string>
-                        </property>
+                    <item row="4" column="1">
+                        <widget class="QLabel" name="userAgentLabel">
+                            <property name="textInteractionFlags">
+                                <set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
+                            </property>
+                        </widget>
                     </item>
+                </layout>
+            </item>
 
-                    <item>
-                        <property name="text">
-                            <string>Edge Windows</string>
-                        </property>
-                    </item>
+            <!-- Filter lists. -->
+            <item>
+                <widget class="QGroupBox">
+                    <property name="title">
+                        <string>Filter lists</string>
+                    </property>
 
-                    <item>
-                        <property name="text">
-                            <string>Safari macOS</string>
-                        </property>
-                    </item>
+                    <layout class="QVBoxLayout">
+                        <!-- UltraList. -->
+                        <item>
+                            <widget class="QCheckBox" name="kcfg_ultralist">
+                                <property name="text">
+                                    <string>UltraList</string>
+                                </property>
+
+                                <property name="toolTip">
+                                    <string>Block a few important things that EasyList misses.  The default is enabled.</string>
+                                </property>
+                            </widget>
+                        </item>
+
+                        <!-- UltraPrivacy. -->
+                        <item>
+                            <widget class="QCheckBox" name="kcfg_ultraprivacy">
+                                <property name="text">
+                                    <string>UltraPrivacy</string>
+                                </property>
+
+                                <property name="toolTip">
+                                    <string>Block a few important things that EasyPrivacy misses.  The default is enabled.</string>
+                                </property>
+                            </widget>
+                        </item>
+
+                        <!-- EasyList. -->
+                        <item>
+                            <widget class="QCheckBox" name="kcfg_easylist">
+                                <property name="text">
+                                    <string>EasyList</string>
+                                </property>
+
+                                <property name="toolTip">
+                                    <string>Block advertisements.  The default is enabled.</string>
+                                </property>
+                            </widget>
+                        </item>
+
+                        <!-- EasyPrivacy. -->
+                        <item>
+                            <widget class="QCheckBox" name="kcfg_easyprivacy">
+                                <property name="text">
+                                    <string>EasyPrivacy</string>
+                                </property>
+
+                                <property name="toolTip">
+                                    <string>Block tracking.  The default is enabled.</string>
+                                </property>
+                            </widget>
+                        </item>
+
+                        <!-- Fanboy's Annoyance List. -->
+                        <item>
+                            <widget class="QCheckBox" name="kcfg_fanboysAnnoyanceList">
+                                <property name="text">
+                                    <string>Fanboy's Annoyance List</string>
+                                </property>
+
+                                <property name="toolTip">
+                                    <string>Block annoyances, like GDPR banners and social media buttons.  The default is enabled.</string>
+                                </property>
+                            </widget>
+                        </item>
+                    </layout>
                 </widget>
             </item>
 
-            <item row="4" column="1">
-                <widget class="QLabel" name="userAgentLabel">
-                    <property name="textInteractionFlags">
-                        <set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
+
+            <!-- Spacer. -->
+            <item>
+                <spacer>
+                    <property name="orientation">
+                        <enum>Qt::Vertical</enum>
                     </property>
-                </widget>
+                </spacer>
             </item>
         </layout>
     </widget>