]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/DomainSettingsDialog.ui
82d6a0d94351d8b063dcc9dd11726d38b5709ad8
[PrivacyBrowserPC.git] / src / 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                                 <!-- User Agent. -->
152                                 <item row="3" column="0">
153                                     <widget class="QLabel">
154                                         <property name="text">
155                                             <string>User Agent</string>
156                                         </property>
157                                     </widget>
158                                 </item>
159
160                                 <item row="3" column="1">
161                                     <widget class="QComboBox" name="userAgentComboBox">
162                                         <property name="sizePolicy">
163                                             <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
164                                                 <horstretch>0</horstretch>
165                                                 <verstretch>0</verstretch>
166                                             </sizepolicy>
167                                         </property>
168
169                                         <property name="editable">
170                                             <bool>true</bool>
171                                         </property>
172
173                                         <item>
174                                             <property name="text">
175                                                 <string>System default</string>
176                                             </property>
177                                         </item>
178
179                                         <item>
180                                             <property name="text">
181                                                 <string>Privacy Browser</string>
182                                             </property>
183                                         </item>
184
185                                         <item>
186                                             <property name="text">
187                                                 <string>Firefox on Linux</string>
188                                             </property>
189                                         </item>
190
191                                         <item>
192                                             <property name="text">
193                                                 <string>Chromium on Linux</string>
194                                             </property>
195                                         </item>
196
197                                         <item>
198                                             <property name="text">
199                                                 <string>Firefox on Windows</string>
200                                             </property>
201                                         </item>
202
203                                         <item>
204                                             <property name="text">
205                                                 <string>Chrome on Windows</string>
206                                             </property>
207                                         </item>
208
209                                         <item>
210                                             <property name="text">
211                                                 <string>Edge on Windows</string>
212                                             </property>
213                                         </item>
214
215                                         <item>
216                                             <property name="text">
217                                                 <string>Safari on macOS</string>
218                                             </property>
219                                         </item>
220                                     </widget>
221                                 </item>
222
223                                 <item row="4" column="1">
224                                     <widget class="QLabel" name="userAgentLabel">
225                                         <property name="textFormat">
226                                             <enum>Qt::RichText</enum>
227                                         </property>
228                                     </widget>
229                                 </item>
230
231                                 <!-- Zoom factor. -->
232                                 <item row="5" column="0">
233                                     <widget class="QLabel">
234                                         <property name="text">
235                                             <string>Zoom factor</string>
236                                         </property>
237                                     </widget>
238                                 </item>
239
240                                 <item row="5" column="1">
241                                     <widget class="QComboBox" name="zoomFactorComboBox">
242                                         <item>
243                                             <property name="text">
244                                                 <string>System default</string>
245                                             </property>
246                                         </item>
247
248                                         <item>
249                                             <property name="text">
250                                                 <string>Custom</string>
251                                             </property>
252                                         </item>
253                                     </widget>
254                                 </item>
255
256                                 <item row="6" column="1">
257                                     <widget class="QDoubleSpinBox" name="customZoomFactorSpinBox">
258                                         <property name="toolTip">
259                                             <string>Set the zoom factor between 0.25 and 5.00.  The default is 1.00.</string>
260                                         </property>
261
262                                         <property name="minimum">
263                                             <double>0.250000000000000</double>
264                                         </property>
265
266                                         <property name="maximum">
267                                             <double>5.000000000000000</double>
268                                         </property>
269
270                                         <property name="singleStep">
271                                             <double>0.250000000000000</double>
272                                         </property>
273                                     </widget>
274                                 </item>
275                             </layout>
276                         </widget>
277                     </item>
278
279                     <!-- Spacer. -->
280                     <item>
281                         <spacer>
282                             <property name="orientation">
283                                 <enum>Qt::Vertical</enum>
284                             </property>
285                         </spacer>
286                     </item>
287
288                     <!-- Dialog buttons. -->
289                     <item>
290                         <widget class="QDialogButtonBox" name="dialogButtonBox">
291                             <property name="standardButtons">
292                                 <set>QDialogButtonBox::Reset | QDialogButtonBox::Ok | QDialogButtonBox::Apply | QDialogButtonBox::Cancel</set>
293                             </property>
294                         </widget>
295                     </item>
296                 </layout>
297             </item>
298         </layout>
299     </widget>
300 </ui>