]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/uis/AddOrEditCookieDialog.ui
3595e741af800902ad792101fba358d7a51f7ca5
[PrivacyBrowserPC.git] / src / uis / AddOrEditCookieDialog.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>AddOrEditCookieDialog</class>
23
24     <widget class="QWidget">
25         <layout class="QVBoxLayout">
26             <item>
27                 <!-- First row. -->
28                 <layout class="QHBoxLayout">
29                     <property name="alignment">
30                         <enum>Qt::AlignLeft</enum>
31                     </property>
32
33                     <!-- Domain. -->
34                     <item>
35                         <widget class="QLabel">
36                             <property name="toolTip">
37                                 <string>Cookies prepended by a period are accessible to all subdomains.</string>
38                             </property>
39
40                             <property name="text">
41                                 <string>Domain</string>
42                             </property>
43                         </widget>
44                     </item>
45
46                     <item>
47                         <widget class="QLineEdit" name="domainLineEdit" />
48                     </item>
49
50                     <item>
51                         <widget class="QLabel">
52                             <property name="textFormat">
53                                 <enum>Qt::RichText</enum>
54                             </property>
55
56                             <!-- Spacer label. -->
57                             <property name="text">
58                                 <string>&amp;nbsp;&amp;nbsp;&amp;nbsp;</string>
59                             </property>
60                         </widget>
61                     </item>
62
63                     <!-- Name. -->
64                     <item>
65                         <widget class="QLabel">
66                             <property name="toolTip">
67                                 <string>The name identifies the cookie.  Each cookie has a unique combination of domain, name, and path.</string>
68                             </property>
69
70                             <property name="text">
71                                 <string>Name</string>
72                             </property>
73                         </widget>
74                     </item>
75
76                     <item>
77                         <widget class="QLineEdit" name="nameLineEdit" />
78                     </item>
79                 </layout>
80             </item>
81
82             <!-- Second row. -->
83             <item>
84                 <layout class="QHBoxLayout">
85                     <property name="alignment">
86                         <enum>Qt::AlignLeft</enum>
87                     </property>
88
89                     <!-- Durable. -->
90                     <item>
91                         <widget class="QCheckBox" name="durableCheckBox">
92                             <property name="toolTip">
93                                 <string>Durable cookies pursist across restarts, irrespective of the expiration date. All other cookies are deleted when Privacy Browser closes, irrespective of the expiration date.</string>
94                             </property>
95                         </widget>
96                     </item>
97
98                     <item>
99                         <widget class="QLabel">
100                             <property name="text">
101                                 <string>Durable</string>
102                             </property>
103
104                             <property name="toolTip">
105                                 <string>Durable cookies pursist across restarts, irrespective of the expiration date. All other cookies are deleted when Privacy Browser closes, irrespective of the expiration date.</string>
106                             </property>
107                         </widget>
108                     </item>
109
110                     <item>
111                         <widget class="QLabel">
112                             <property name="textFormat">
113                                 <enum>Qt::RichText</enum>
114                             </property>
115
116                             <!-- Spacer label. -->
117                             <property name="text">
118                                 <string>&amp;nbsp;&amp;nbsp;&amp;nbsp;</string>
119                             </property>
120                         </widget>
121                     </item>
122
123                     <!-- Path. -->
124                     <item>
125                         <widget class="QLabel">
126                             <property name="toolTip">
127                                 <string>Websites can restrict cookie access to subpath of their URL.</string>
128                             </property>
129
130                             <property name="text">
131                                 <string>Path</string>
132                             </property>
133                         </widget>
134                     </item>
135
136                     <item>
137                         <widget class="QLineEdit" name="pathLineEdit">
138                             <property name="text">
139                                 <string>/</string>
140                             </property>
141                         </widget>
142                     </item>
143
144                     <item>
145                         <widget class="QLabel">
146                             <property name="textFormat">
147                                 <enum>Qt::RichText</enum>
148                             </property>
149
150                             <!-- Spacer label. -->
151                             <property name="text">
152                                 <string>&amp;nbsp;&amp;nbsp;&amp;nbsp;</string>
153                             </property>
154                         </widget>
155                     </item>
156
157                     <!-- Expiration date. -->
158                     <item>
159                         <widget class="QCheckBox" name="expirationCheckBox">
160                             <property name="toolTip">
161                                 <string>Cookies without an expiration date are known as session cookies and are expected to be deleted every time the browser closes.</string>
162                             </property>
163                         </widget>
164                     </item>
165
166                     <item>
167                         <widget class="QLabel">
168                             <property name="text">
169                                 <string>Expiration date</string>
170                             </property>
171
172                             <property name="toolTip">
173                                 <string>Cookies without an expiration date are known as session cookies and are expected to be deleted every time the browser closes.</string>
174                             </property>
175                         </widget>
176                     </item>
177
178                     <item>
179                         <widget class="QLabel">
180                             <property name="textFormat">
181                                 <enum>Qt::RichText</enum>
182                             </property>
183
184                             <!-- Spacer label. -->
185                             <property name="text">
186                                 <string>&amp;nbsp;</string>
187                             </property>
188                         </widget>
189                     </item>
190
191                     <item>
192                         <widget class="QDateTimeEdit" name="expirationDateTimeEdit">
193                             <property name="dateTime">
194                                 <datetime>
195                                     <year>2030</year>
196                                     <month>1</month>
197                                     <day>1</day>
198                                     <hour>0</hour>
199                                     <minute>0</minute>
200                                     <second>0</second>
201                                 </datetime>
202                             </property>
203
204                             <property name="calendarPopup">
205                                 <bool>true</bool>
206                             </property>
207
208                             <property name="enabled">
209                                 <bool>false</bool>
210                             </property>
211                         </widget>
212                     </item>
213
214                     <item>
215                         <widget class="QLabel">
216                             <property name="textFormat">
217                                 <enum>Qt::RichText</enum>
218                             </property>
219
220                             <!-- Spacer label. -->
221                             <property name="text">
222                                 <string>&amp;nbsp;&amp;nbsp;&amp;nbsp;</string>
223                             </property>
224                         </widget>
225                     </item>
226
227                     <!-- HTTP only. -->
228                     <item>
229                         <widget class="QCheckBox" name="httpOnlyCheckBox">
230                             <property name="toolTip">
231                                 <string>Restrict cookie access to HTTP (and HTTPS). This prevents JavaScript from accessing the cookie, which hardens it against cross-site scripting attacks.</string>
232                             </property>
233
234                             <property name="checked">
235                                 <bool>true</bool>
236                             </property>
237                         </widget>
238                     </item>
239
240                     <item>
241                         <widget class="QLabel">
242                             <property name="text">
243                                 <string>HTTP only</string>
244                             </property>
245
246                             <property name="toolTip">
247                                 <string>Restrict cookie access to HTTP (and HTTPS). This prevents JavaScript from accessing the cookie, which hardens it against cross-site scripting attacks.</string>
248                             </property>
249                         </widget>
250                     </item>
251
252                     <item>
253                         <widget class="QLabel">
254                             <property name="textFormat">
255                                 <enum>Qt::RichText</enum>
256                             </property>
257
258                             <!-- Spacer label. -->
259                             <property name="text">
260                                 <string>&amp;nbsp;&amp;nbsp;&amp;nbsp;</string>
261                             </property>
262                         </widget>
263                     </item>
264
265                     <!-- Secure. -->
266                     <item>
267                         <widget class="QCheckBox" name="secureCheckBox">
268                             <property name="toolTip">
269                                 <string>Only allow the cookie to be transferred across HTTPS (as opposed to HTTP).</string>
270                             </property>
271
272                             <property name="checked">
273                                 <bool>true</bool>
274                             </property>
275                         </widget>
276                     </item>
277
278                     <item>
279                         <widget class="QLabel">
280                             <property name="text">
281                                 <string>Secure</string>
282                             </property>
283
284                             <property name="toolTip">
285                                 <string>Only allow the cookie to be transferred across HTTPS (as opposed to HTTP).</string>
286                             </property>
287                         </widget>
288                     </item>
289                 </layout>
290             </item>
291
292             <!-- Third row. -->
293             <item>
294                 <layout class="QHBoxLayout">
295                     <property name="alignment">
296                         <enum>Qt::AlignLeft</enum>
297                     </property>
298
299                     <!-- Value. -->
300                     <item>
301                         <widget class="QLabel">
302                             <property name="toolTip">
303                                 <string>The value contains the cookie data.</string>
304                             </property>
305
306                             <property name="text">
307                                 <string>Value</string>
308                             </property>
309                         </widget>
310                     </item>
311
312                     <item>
313                         <widget class="QLineEdit" name="valueLineEdit" />
314                     </item>
315                 </layout>
316             </item>
317
318             <!-- Spacer. -->
319             <item>
320                 <spacer>
321                     <property name="orientation">
322                         <enum>Qt::Vertical</enum>
323                     </property>
324                 </spacer>
325             </item>
326
327             <!-- Dialog buttons. -->
328             <item>
329                 <widget class="QDialogButtonBox" name="dialogButtonBox">
330                     <property name="standardButtons">
331                         <set>QDialogButtonBox::Save | QDialogButtonBox::Cancel</set>
332                     </property>
333                 </widget>
334             </item>
335         </layout>
336     </widget>
337 </ui>