]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/uis/AddOrEditCookieDialog.ui
Rename Local Storage to DOM Storage. https://redmine.stoutner.com/issues/852
[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                     <!-- Path. -->
90                     <item>
91                         <widget class="QLabel">
92                             <property name="toolTip">
93                                 <string>Websites can restrict cookie access to subpath of their URL.</string>
94                             </property>
95
96                             <property name="text">
97                                 <string>Path</string>
98                             </property>
99                         </widget>
100                     </item>
101
102                     <item>
103                         <widget class="QLineEdit" name="pathLineEdit">
104                             <property name="text">
105                                 <string>/</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                     <!-- Expiration date. -->
124                     <item>
125                         <widget class="QCheckBox" name="expirationCheckBox">
126                             <property name="toolTip">
127                                 <string>Cookies without an expiration date are known as session cookies and are expected to be deleted every time the browser closes.</string>
128                             </property>
129                         </widget>
130                     </item>
131
132                     <item>
133                         <widget class="QLabel">
134                             <property name="toolTip">
135                                 <string>Cookies without an expiration date are known as session cookies and are expected to be deleted every time the browser closes.</string>
136                             </property>
137
138                             <property name="text">
139                                 <string>Expiration date</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;</string>
153                             </property>
154                         </widget>
155                     </item>
156
157                     <item>
158                         <widget class="QDateTimeEdit" name="expirationDateTimeEdit">
159                             <property name="dateTime">
160                                 <datetime>
161                                     <year>2030</year>
162                                     <month>1</month>
163                                     <day>1</day>
164                                     <hour>0</hour>
165                                     <minute>0</minute>
166                                     <second>0</second>
167                                 </datetime>
168                             </property>
169
170                             <property name="calendarPopup">
171                                 <bool>true</bool>
172                             </property>
173
174                             <property name="enabled">
175                                 <bool>false</bool>
176                             </property>
177                         </widget>
178                     </item>
179
180                     <item>
181                         <widget class="QLabel">
182                             <property name="textFormat">
183                                 <enum>Qt::RichText</enum>
184                             </property>
185
186                             <!-- Spacer label. -->
187                             <property name="text">
188                                 <string>&amp;nbsp;&amp;nbsp;&amp;nbsp;</string>
189                             </property>
190                         </widget>
191                     </item>
192
193                     <!-- HTTP only. -->
194                     <item>
195                         <widget class="QCheckBox" name="httpOnlyCheckBox">
196                             <property name="toolTip">
197                                 <string>Restrict cookie access to HTTP (and HTTPS). This prevents JavaScript from accessing the cookie, which hardens it against cross-site scripting attacks.</string>
198                             </property>
199
200                             <property name="checked">
201                                 <bool>true</bool>
202                             </property>
203                         </widget>
204                     </item>
205
206                     <item>
207                         <widget class="QLabel">
208                             <property name="toolTip">
209                                 <string>Restrict cookie access to HTTP (and HTTPS). This prevents JavaScript from accessing the cookie, which hardens it against cross-site scripting attacks.</string>
210                             </property>
211
212                             <property name="text">
213                                 <string>HTTP only</string>
214                             </property>
215                         </widget>
216                     </item>
217
218                     <item>
219                         <widget class="QLabel">
220                             <property name="textFormat">
221                                 <enum>Qt::RichText</enum>
222                             </property>
223
224                             <!-- Spacer label. -->
225                             <property name="text">
226                                 <string>&amp;nbsp;&amp;nbsp;&amp;nbsp;</string>
227                             </property>
228                         </widget>
229                     </item>
230
231                     <!-- Secure. -->
232                     <item>
233                         <widget class="QCheckBox" name="secureCheckBox">
234                             <property name="toolTip">
235                                 <string>Only allow the cookie to be transferred across HTTPS (as opposed to HTTP).</string>
236                             </property>
237
238                             <property name="checked">
239                                 <bool>true</bool>
240                             </property>
241                         </widget>
242                     </item>
243
244                     <item>
245                         <widget class="QLabel">
246                             <property name="toolTip">
247                                 <string>Only allow the cookie to be transferred across HTTPS (as opposed to HTTP).</string>
248                             </property>
249
250                             <property name="text">
251                                 <string>Secure</string>
252                             </property>
253                         </widget>
254                     </item>
255                 </layout>
256             </item>
257
258             <!-- Third row. -->
259             <item>
260                 <layout class="QHBoxLayout">
261                     <property name="alignment">
262                         <enum>Qt::AlignLeft</enum>
263                     </property>
264
265                     <!-- Value. -->
266                     <item>
267                         <widget class="QLabel">
268                             <property name="toolTip">
269                                 <string>The value contains the cookie data.</string>
270                             </property>
271
272                             <property name="text">
273                                 <string>Value</string>
274                             </property>
275                         </widget>
276                     </item>
277
278                     <item>
279                         <widget class="QLineEdit" name="valueLineEdit" />
280                     </item>
281                 </layout>
282             </item>
283
284             <!-- Spacer. -->
285             <item>
286                 <spacer>
287                     <property name="orientation">
288                         <enum>Qt::Vertical</enum>
289                     </property>
290                 </spacer>
291             </item>
292
293             <!-- Dialog buttons. -->
294             <item>
295                 <widget class="QDialogButtonBox" name="dialogButtonBox">
296                     <property name="standardButtons">
297                         <set>QDialogButtonBox::Save | QDialogButtonBox::Cancel</set>
298                     </property>
299                 </widget>
300             </item>
301         </layout>
302     </widget>
303 </ui>