1 <?xml version="1.0" encoding="UTF-8"?>
4 Copyright © 2022 Soren Stoutner <soren@stoutner.com>.
6 This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-android>.
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.
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.
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/>. -->
22 <class>DomainSettingsDialog</class>
24 <widget class="QWidget">
25 <property name="geometry">
35 <layout class="QHBoxLayout">
37 <layout class="QVBoxLayout">
38 <!-- Domains list view. -->
40 <widget class="QListView" name="domainsListView"/>
43 <!-- Domain buttons. -->
45 <layout class="QHBoxLayout">
46 <!-- Add domain button. -->
48 <widget class="QPushButton" name="addDomainButton">
49 <property name="text">
50 <string>Add domain</string>
53 <property name="icon">
54 <iconset theme="list-add" />
59 <!-- Delete domain button. -->
61 <widget class="QPushButton" name="deleteDomainButton">
62 <property name="text">
63 <string>Delete domain</string>
66 <property name="icon">
67 <iconset theme="list-remove" />
75 <property name="orientation">
76 <enum>Qt::Horizontal</enum>
86 <layout class="QVBoxLayout">
88 <widget class="QWidget" name="domainSettingsWidget">
89 <!-- Domain settings form layout. -->
90 <layout class="QFormLayout">
92 <item row="0" column="0">
93 <widget class="QLabel" name="domainNameLabel">
94 <property name="text">
95 <string>Domain name</string>
98 <property name="toolTip">
99 <string>*. may be prepended to a domain to include all subdomains (eg. *.stoutner.com).</string>
104 <item row="0" column="1">
105 <widget class="KLineEdit" name="domainNameLineEdit" />
109 <item row="1" column="0">
110 <widget class="QLabel">
111 <property name="text">
112 <string>JavaScript</string>
115 <property name="toolTip">
116 <string>JavaScript allows websites to run programs (scripts) on the device.</string>
121 <item row="1" column="1">
122 <widget class="QComboBox" name="javaScriptComboBox">
124 <property name="text">
125 <string>System default</string>
130 <property name="text">
131 <string>JavaScript disabled</string>
136 <property name="text">
137 <string>JavaScript enabled</string>
143 <item row="2" column="1">
144 <widget class="QLabel" name="javaScriptLabel">
145 <property name="textFormat">
146 <enum>Qt::RichText</enum>
151 <!-- Local storage. -->
152 <item row="3" column="0">
153 <widget class="QLabel">
154 <property name="text">
155 <string>Local storage</string>
158 <property name="toolTip">
159 <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>
164 <item row="3" column="1">
165 <widget class="QComboBox" name="localStorageComboBox">
167 <property name="text">
168 <string>System default</string>
173 <property name="text">
174 <string>Local storage disabled</string>
179 <property name="text">
180 <string>Local storage enabled</string>
186 <item row="4" column="1">
187 <widget class="QLabel" name="localStorageLabel">
188 <property name="textFormat">
189 <enum>Qt::RichText</enum>
194 <!-- DOM storage. -->
195 <item row="5" column="0">
196 <widget class="QLabel">
197 <property name="text">
198 <string>DOM storage</string>
201 <property name="toolTip">
202 <string>DOM storage, sometimes called web storage, is like cookies on steroids. To function, it requires that both JavaScript and local storage be enabled.</string>
207 <item row="5" column="1">
208 <widget class="QComboBox" name="domStorageComboBox">
210 <property name="text">
211 <string>System default</string>
216 <property name="text">
217 <string>DOM storage disabled</string>
222 <property name="text">
223 <string>DOM storage enabled</string>
229 <item row="6" column="1">
230 <widget class="QLabel" name="domStorageLabel">
231 <property name="textFormat">
232 <enum>Qt::RichText</enum>
238 <item row="7" column="0">
239 <widget class="QLabel">
240 <property name="text">
241 <string>User agent</string>
244 <property name="toolTip">
245 <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.</string>
250 <item row="7" column="1">
251 <widget class="QComboBox" name="userAgentComboBox">
252 <property name="sizePolicy">
253 <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
254 <horstretch>0</horstretch>
255 <verstretch>0</verstretch>
259 <property name="editable">
264 <property name="text">
265 <string>System default</string>
270 <property name="text">
271 <string>Privacy Browser</string>
276 <property name="text">
277 <string>WebEngine default</string>
282 <property name="text">
283 <string>Firefox on Linux</string>
288 <property name="text">
289 <string>Chromium on Linux</string>
294 <property name="text">
295 <string>Firefox on Windows</string>
300 <property name="text">
301 <string>Chrome on Windows</string>
306 <property name="text">
307 <string>Edge on Windows</string>
312 <property name="text">
313 <string>Safari on macOS</string>
319 <item row="8" column="1">
320 <widget class="QLabel" name="userAgentLabel">
321 <property name="textFormat">
322 <enum>Qt::RichText</enum>
327 <!-- Zoom factor. -->
328 <item row="9" column="0">
329 <widget class="QLabel">
330 <property name="text">
331 <string>Zoom factor</string>
334 <property name="toolTip">
335 <string>Valid values for the zoom factor are between 0.25 and 5.00.</string>
340 <item row="9" column="1">
341 <widget class="QComboBox" name="zoomFactorComboBox">
343 <property name="text">
344 <string>System default</string>
349 <property name="text">
350 <string>Custom</string>
356 <item row="10" column="1">
357 <widget class="QDoubleSpinBox" name="customZoomFactorSpinBox">
358 <property name="minimum">
359 <double>0.250000000000000</double>
362 <property name="maximum">
363 <double>5.000000000000000</double>
366 <property name="singleStep">
367 <double>0.250000000000000</double>
378 <property name="orientation">
379 <enum>Qt::Vertical</enum>
384 <!-- Dialog buttons. -->
386 <widget class="QDialogButtonBox" name="dialogButtonBox">
387 <property name="standardButtons">
388 <set>QDialogButtonBox::Reset | QDialogButtonBox::Ok | QDialogButtonBox::Apply | QDialogButtonBox::Cancel</set>