]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/uis/SettingsPrivacy.ui
Add local storage domain settings.
[PrivacyBrowserPC.git] / src / uis / SettingsPrivacy.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4   Copyright © 2022 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-android>.
7
8   Privacy Browser PC is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Browser PC is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser PC.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <ui version="4.0">
22     <!-- The name of the generated class. -->
23     <class>PrivacySettings</class>
24
25     <widget class="QWidget">
26         <layout class="QFormLayout">
27             <!-- JavaScript. -->
28             <item row="0" column="1">
29                 <widget class="QCheckBox" name="kcfg_javaScriptEnabled">
30                     <property name="text">
31                         <string>JavaScript</string>
32                     </property>
33
34                     <property name="toolTip">
35                         <string>JavaScript allows websites to run programs (scripts) on the device.  The default is disabled.</string>
36                     </property>
37                 </widget>
38             </item>
39
40             <!-- Cookies. -->
41             <item row="1" column="1">
42                 <widget class="QCheckBox" name="kcfg_localStorageEnabled">
43                     <property name="text">
44                         <string>Local storage</string>
45                     </property>
46
47                     <property name="toolTip">
48                         <string>Local storage includes cookies, IndexedDB, DOM storage, filesystem API, and service workers.  DOM storage also requires a separate control to be enabled.  Local storage is disabled by default.</string>
49                     </property>
50                 </widget>
51             </item>
52
53             <!-- DOM storage. -->
54             <item row="2" column="1">
55                 <widget class="QCheckBox" name="kcfg_domStorageEnabled">
56                     <property name="text">
57                         <string>DOM storage</string>
58                     </property>
59
60                     <property name="toolTip">
61                         <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>
62                     </property>
63                 </widget>
64             </item>
65
66             <!-- User agent. -->
67             <item row="3" column="0">
68                 <widget class="QLabel">
69                     <property name="text">
70                         <string>User agent</string>
71                     </property>
72
73                     <property name="toolTip">
74                         <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>
75                     </property>
76                 </widget>
77             </item>
78
79             <item row="3" column="1">
80                 <widget class="QComboBox" name="kcfg_userAgent">
81                     <property name="sizePolicy">
82                         <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
83                             <horstretch>0</horstretch>
84                             <verstretch>0</verstretch>
85                         </sizepolicy>
86                     </property>
87
88                     <property name="editable">
89                         <bool>true</bool>
90                     </property>
91
92                     <item>
93                         <property name="text">
94                             <string>Privacy Browser</string>
95                         </property>
96                     </item>
97
98                     <item>
99                         <property name="text">
100                             <string>WebEngine Default</string>
101                         </property>
102                     </item>
103
104                     <item>
105                         <property name="text">
106                             <string>Firefox Linux</string>
107                         </property>
108                     </item>
109
110                     <item>
111                         <property name="text">
112                             <string>Chromium Linux</string>
113                         </property>
114                     </item>
115
116                     <item>
117                         <property name="text">
118                             <string>Firefox Windows</string>
119                         </property>
120                     </item>
121
122                     <item>
123                         <property name="text">
124                             <string>Chrome Windows</string>
125                         </property>
126                     </item>
127
128                     <item>
129                         <property name="text">
130                             <string>Edge Windows</string>
131                         </property>
132                     </item>
133
134                     <item>
135                         <property name="text">
136                             <string>Safari macOS</string>
137                         </property>
138                     </item>
139                 </widget>
140             </item>
141
142             <item row="4" column="1">
143                 <widget class="QLabel" name="userAgentLabel">
144                     <property name="textInteractionFlags">
145                         <set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
146                     </property>
147                 </widget>
148             </item>
149         </layout>
150     </widget>
151 </ui>