]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/ui/DomainSettingsDialog.ui
Add controls for local storage. https://redmine.stoutner.com/issues/830
[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>Firefox on Linux</string>
231                                             </property>
232                                         </item>
233
234                                         <item>
235                                             <property name="text">
236                                                 <string>Chromium on Linux</string>
237                                             </property>
238                                         </item>
239
240                                         <item>
241                                             <property name="text">
242                                                 <string>Firefox on Windows</string>
243                                             </property>
244                                         </item>
245
246                                         <item>
247                                             <property name="text">
248                                                 <string>Chrome on Windows</string>
249                                             </property>
250                                         </item>
251
252                                         <item>
253                                             <property name="text">
254                                                 <string>Edge on Windows</string>
255                                             </property>
256                                         </item>
257
258                                         <item>
259                                             <property name="text">
260                                                 <string>Safari on macOS</string>
261                                             </property>
262                                         </item>
263                                     </widget>
264                                 </item>
265
266                                 <item row="6" column="1">
267                                     <widget class="QLabel" name="userAgentLabel">
268                                         <property name="textFormat">
269                                             <enum>Qt::RichText</enum>
270                                         </property>
271                                     </widget>
272                                 </item>
273
274                                 <!-- Zoom factor. -->
275                                 <item row="7" column="0">
276                                     <widget class="QLabel">
277                                         <property name="text">
278                                             <string>Zoom factor</string>
279                                         </property>
280                                     </widget>
281                                 </item>
282
283                                 <item row="7" column="1">
284                                     <widget class="QComboBox" name="zoomFactorComboBox">
285                                         <item>
286                                             <property name="text">
287                                                 <string>System default</string>
288                                             </property>
289                                         </item>
290
291                                         <item>
292                                             <property name="text">
293                                                 <string>Custom</string>
294                                             </property>
295                                         </item>
296                                     </widget>
297                                 </item>
298
299                                 <item row="8" column="1">
300                                     <widget class="QDoubleSpinBox" name="customZoomFactorSpinBox">
301                                         <property name="toolTip">
302                                             <string>Set the zoom factor between 0.25 and 5.00.  The default is 1.00.</string>
303                                         </property>
304
305                                         <property name="minimum">
306                                             <double>0.250000000000000</double>
307                                         </property>
308
309                                         <property name="maximum">
310                                             <double>5.000000000000000</double>
311                                         </property>
312
313                                         <property name="singleStep">
314                                             <double>0.250000000000000</double>
315                                         </property>
316                                     </widget>
317                                 </item>
318                             </layout>
319                         </widget>
320                     </item>
321
322                     <!-- Spacer. -->
323                     <item>
324                         <spacer>
325                             <property name="orientation">
326                                 <enum>Qt::Vertical</enum>
327                             </property>
328                         </spacer>
329                     </item>
330
331                     <!-- Dialog buttons. -->
332                     <item>
333                         <widget class="QDialogButtonBox" name="dialogButtonBox">
334                             <property name="standardButtons">
335                                 <set>QDialogButtonBox::Reset | QDialogButtonBox::Ok | QDialogButtonBox::Apply | QDialogButtonBox::Cancel</set>
336                             </property>
337                         </widget>
338                     </item>
339                 </layout>
340             </item>
341         </layout>
342     </widget>
343 </ui>