Add a WebEngine Default user agent.
[PrivacyBrowserPC.git] / src / ui / DomainSettingsDialog.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     <class>DomainSettingsDialog</class>
23
24     <widget class="QWidget" name="DomainSettingsDialog">
25         <property name="geometry">
26             <rect>
27                 <x>0</x>
28                 <y>0</y>
29                 <height>1000</height>
30                 <width>1500</width>
31             </rect>
32         </property>
33
34         <!-- Main layout. -->
35         <layout class="QHBoxLayout">
36             <item>
37                 <layout class="QVBoxLayout">
38                     <!-- Domains list view. -->
39                     <item>
40                         <widget class="QListView" name="domainsListView"/>
41                     </item>
42
43                     <!-- Domain buttons. -->
44                     <item>
45                         <layout class="QHBoxLayout">
46                             <!-- Add domain button. -->
47                             <item>
48                                 <widget class="QPushButton" name="addDomainButton">
49                                     <property name="text">
50                                         <string>Add Domain</string>
51                                     </property>
52
53                                     <property name="icon">
54                                         <iconset theme="list-add"/>
55                                     </property>
56                                 </widget>
57                             </item>
58
59                             <!-- Delete domain button. -->
60                             <item>
61                                 <widget class="QPushButton" name="deleteDomainButton">
62                                     <property name="text">
63                                         <string>Delete domain</string>
64                                     </property>
65
66                                     <property name="icon">
67                                         <iconset theme="list-remove"/>
68                                     </property>
69                                 </widget>
70                             </item>
71
72                             <!-- Spacer. -->
73                             <item>
74                                 <spacer>
75                                     <property name="orientation">
76                                         <enum>Qt::Horizontal</enum>
77                                     </property>
78                                 </spacer>
79                             </item>
80                         </layout>
81                     </item>
82                 </layout>
83             </item>
84
85             <item>
86                 <layout class="QVBoxLayout">
87                     <item>
88                         <widget class="QWidget" name="domainSettingsWidget">
89                             <!-- Domain settings form layout. -->
90                             <layout class="QFormLayout">
91                                 <!-- Domain name. -->
92                                 <item row="0" column="0">
93                                     <widget class="QLabel" name="domainNameLabel">
94                                         <property name="text">
95                                             <string>Domain name</string>
96                                         </property>
97                                     </widget>
98                                 </item>
99
100                                 <item row="0" column="1">
101                                     <widget class="KLineEdit" name="domainNameLineEdit">
102                                         <property name="toolTip">
103                                             <string>*. may be prepended to a domain to include all subdomains (eg. *.stoutner.com).</string>
104                                         </property>
105                                     </widget>
106                                 </item>
107
108                                 <!-- JavaScript. -->
109                                 <item row="1" column="0">
110                                     <widget class="QLabel">
111                                         <property name="text">
112                                             <string>JavaScript</string>
113                                         </property>
114                                     </widget>
115                                 </item>
116
117                                 <item row="1" column="1">
118                                     <widget class="QComboBox" name="javaScriptComboBox">
119                                         <property name="toolTip">
120                                             <string>JavaScript allows websites to run programs (scripts) on the device.</string>
121                                         </property>
122
123                                         <item>
124                                             <property name="text">
125                                                 <string>System default</string>
126                                             </property>
127                                         </item>
128
129                                         <item>
130                                             <property name="text">
131                                                 <string>JavaScript disabled</string>
132                                             </property>
133                                         </item>
134
135                                         <item>
136                                             <property name="text">
137                                                 <string>JavaScript enabled</string>
138                                             </property>
139                                         </item>
140                                     </widget>
141                                 </item>
142
143                                 <item row="2" column="1">
144                                     <widget class="QLabel" name="javaScriptLabel">
145                                         <property name="textFormat">
146                                             <enum>Qt::RichText</enum>
147                                         </property>
148                                     </widget>
149                                 </item>
150
151                                 <!-- Local storage. -->
152                                 <item row="3" column="0">
153                                     <widget class="QLabel">
154                                         <property name="text">
155                                             <string>Local storage</string>
156                                         </property>
157                                     </widget>
158                                 </item>
159
160                                 <item row="3" column="1">
161                                     <widget class="QComboBox" name="localStorageComboBox">
162                                         <property name="toolTip">
163                                             <string>Local storage, sometimes also called DOM storage, is like cookies on steroids.</string>
164                                         </property>
165
166                                         <item>
167                                             <property name="text">
168                                                 <string>System default</string>
169                                             </property>
170                                         </item>
171
172                                         <item>
173                                             <property name="text">
174                                                 <string>Local storage disabled</string>
175                                             </property>
176                                         </item>
177
178                                         <item>
179                                             <property name="text">
180                                                 <string>Local storage enabled</string>
181                                             </property>
182                                         </item>
183                                     </widget>
184                                 </item>
185
186                                 <item row="4" column="1">
187                                     <widget class="QLabel" name="localStorageLabel">
188                                         <property name="textFormat">
189                                             <enum>Qt::RichText</enum>
190                                         </property>
191                                     </widget>
192                                 </item>
193
194                                 <!-- User agent. -->
195                                 <item row="5" column="0">
196                                     <widget class="QLabel">
197                                         <property name="text">
198                                             <string>User agent</string>
199                                         </property>
200                                     </widget>
201                                 </item>
202
203                                 <item row="5" column="1">
204                                     <widget class="QComboBox" name="userAgentComboBox">
205                                         <property name="sizePolicy">
206                                             <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
207                                                 <horstretch>0</horstretch>
208                                                 <verstretch>0</verstretch>
209                                             </sizepolicy>
210                                         </property>
211
212                                         <property name="editable">
213                                             <bool>true</bool>
214                                         </property>
215
216                                         <item>
217                                             <property name="text">
218                                                 <string>System default</string>
219                                             </property>
220                                         </item>
221
222                                         <item>
223                                             <property name="text">
224                                                 <string>Privacy Browser</string>
225                                             </property>
226                                         </item>
227
228                                         <item>
229                                             <property name="text">
230                                                 <string>WebEngine default</string>
231                                             </property>
232                                         </item>
233
234                                         <item>
235                                             <property name="text">
236                                                 <string>Firefox on Linux</string>
237                                             </property>
238                                         </item>
239
240                                         <item>
241                                             <property name="text">
242                                                 <string>Chromium on Linux</string>
243                                             </property>
244                                         </item>
245
246                                         <item>
247                                             <property name="text">
248                                                 <string>Firefox on Windows</string>
249                                             </property>
250                                         </item>
251
252                                         <item>
253                                             <property name="text">
254                                                 <string>Chrome on Windows</string>
255                                             </property>
256                                         </item>
257
258                                         <item>
259                                             <property name="text">
260                                                 <string>Edge on Windows</string>
261                                             </property>
262                                         </item>
263
264                                         <item>
265                                             <property name="text">
266                                                 <string>Safari on macOS</string>
267                                             </property>
268                                         </item>
269                                     </widget>
270                                 </item>
271
272                                 <item row="6" column="1">
273                                     <widget class="QLabel" name="userAgentLabel">
274                                         <property name="textFormat">
275                                             <enum>Qt::RichText</enum>
276                                         </property>
277                                     </widget>
278                                 </item>
279
280                                 <!-- Zoom factor. -->
281                                 <item row="7" column="0">
282                                     <widget class="QLabel">
283                                         <property name="text">
284                                             <string>Zoom factor</string>
285                                         </property>
286                                     </widget>
287                                 </item>
288
289                                 <item row="7" column="1">
290                                     <widget class="QComboBox" name="zoomFactorComboBox">
291                                         <item>
292                                             <property name="text">
293                                                 <string>System default</string>
294                                             </property>
295                                         </item>
296
297                                         <item>
298                                             <property name="text">
299                                                 <string>Custom</string>
300                                             </property>
301                                         </item>
302                                     </widget>
303                                 </item>
304
305                                 <item row="8" column="1">
306                                     <widget class="QDoubleSpinBox" name="customZoomFactorSpinBox">
307                                         <property name="toolTip">
308                                             <string>Set the zoom factor between 0.25 and 5.00.  The default is 1.00.</string>
309                                         </property>
310
311                                         <property name="minimum">
312                                             <double>0.250000000000000</double>
313                                         </property>
314
315                                         <property name="maximum">
316                                             <double>5.000000000000000</double>
317                                         </property>
318
319                                         <property name="singleStep">
320                                             <double>0.250000000000000</double>
321                                         </property>
322                                     </widget>
323                                 </item>
324                             </layout>
325                         </widget>
326                     </item>
327
328                     <!-- Spacer. -->
329                     <item>
330                         <spacer>
331                             <property name="orientation">
332                                 <enum>Qt::Vertical</enum>
333                             </property>
334                         </spacer>
335                     </item>
336
337                     <!-- Dialog buttons. -->
338                     <item>
339                         <widget class="QDialogButtonBox" name="dialogButtonBox">
340                             <property name="standardButtons">
341                                 <set>QDialogButtonBox::Reset | QDialogButtonBox::Ok | QDialogButtonBox::Apply | QDialogButtonBox::Cancel</set>
342                             </property>
343                         </widget>
344                     </item>
345                 </layout>
346             </item>
347         </layout>
348     </widget>
349 </ui>