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