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