]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/uis/SaveDialog.ui
Enable downloading of files that require login cookies. https://redmine.stoutner...
[PrivacyBrowserPC.git] / src / uis / SaveDialog.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-pc>.
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>SaveDialog</class>
23
24     <widget class="QWidget">
25         <layout class="QVBoxLayout">
26             <!-- Header question. -->
27             <item>
28                 <widget class="QLabel">
29                     <property name="text">
30                         <string>&lt;b&gt;Would you like to download the following file?&lt;/b&gt;</string>
31                     </property>
32
33                     <property name="textFormat">
34                         <enum>Qt::RichText</enum>
35                     </property>
36
37                     <property name="alignment">
38                         <set>Qt::AlignCenter</set>
39                     </property>
40
41                     <property name="margin">
42                         <number>10</number>
43                     </property>
44                 </widget>
45             </item>
46
47             <!-- File details. -->
48             <item>
49                 <widget class="QGroupBox">
50                     <property name="title">
51                         <string>File details</string>
52                     </property>
53
54                     <layout class="QHBoxLayout">
55                         <!-- Icon. -->
56                         <item>
57                             <widget class="QGraphicsView"  name="mimeGraphicsView">
58                                 <property name="frameShape">
59                                     <enum>QFrame::NoFrame</enum>
60                                 </property>
61
62                                 <property name="alignment">
63                                     <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
64                                 </property>
65                             </widget>
66                         </item>
67
68                         <!-- Text. -->
69                         <item>
70                             <layout class="QFormLayout">
71                                 <!-- URL. -->
72                                 <item row="0" column="0">
73                                     <widget class="QLabel">
74                                         <property name="text">
75                                             <string>URL:</string>
76                                         </property>
77                                     </widget>
78                                 </item>
79
80                                 <item row="0" column="1">
81                                     <widget class="QLabel" name="urlLabel">
82                                         <property name="textFormat">
83                                             <enum>Qt::RichText</enum>
84                                         </property>
85                                     </widget>
86                                 </item>
87
88                                 <!-- File type. -->
89                                 <item row="1" column="0">
90                                     <widget class="QLabel">
91                                         <property name="text">
92                                             <string>File type:</string>
93                                         </property>
94                                     </widget>
95                                 </item>
96
97                                 <item row="1" column="1">
98                                     <widget class="QLabel" name="fileTypeLabel">
99                                         <property name="textFormat">
100                                             <enum>Qt::RichText</enum>
101                                         </property>
102                                     </widget>
103                                 </item>
104
105                                 <!-- MIME type. -->
106                                 <item row="2" column="0">
107                                     <widget class="QLabel">
108                                         <property name="text">
109                                             <string>MIME type:</string>
110                                         </property>
111                                     </widget>
112                                 </item>
113
114                                 <item row="2" column="1">
115                                     <widget class="QLabel" name="mimeTypeLabel">
116                                         <property name="textFormat">
117                                             <enum>Qt::RichText</enum>
118                                         </property>
119                                     </widget>
120                                 </item>
121
122                                 <!-- Size. -->
123                                 <item row="3" column="0">
124                                     <widget class="QLabel">
125                                         <property name="text">
126                                             <string>Size:</string>
127                                         </property>
128                                     </widget>
129                                 </item>
130
131                                 <item row="3" column="1">
132                                     <widget class="QLabel" name="sizeLabel">
133                                         <property name="textFormat">
134                                             <enum>Qt::RichText</enum>
135                                         </property>
136                                     </widget>
137                                 </item>
138                             </layout>
139                         </item>
140                     </layout>
141                 </widget>
142             </item>
143
144             <!-- Dialog buttons. -->
145             <item>
146                 <widget class="QDialogButtonBox" name="dialogButtonBox">
147                     <property name="standardButtons">
148                         <set>QDialogButtonBox::Save | QDialogButtonBox::Cancel</set>
149                     </property>
150                 </widget>
151             </item>
152         </layout>
153     </widget>
154 </ui>