]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/uis/SaveDialog.ui
Implement file downloads.
[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-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>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                     <!-- Labels. -->
55                     <layout class="QFormLayout">
56                         <!-- URL. -->
57                         <item row="0" column="0">
58                             <widget class="QLabel">
59                                 <property name="text">
60                                     <string>URL:</string>
61                                 </property>
62                             </widget>
63                         </item>
64
65                         <item row="0" column="1">
66                             <widget class="QLabel" name="urlLabel">
67                                 <property name="textFormat">
68                                     <enum>Qt::RichText</enum>
69                                 </property>
70                             </widget>
71                         </item>
72
73                         <!-- File type. -->
74                         <item row="1" column="0">
75                             <widget class="QLabel">
76                                 <property name="text">
77                                     <string>File type:</string>
78                                 </property>
79                             </widget>
80                         </item>
81
82                         <item row="1" column="1">
83                             <widget class="QLabel" name="fileTypeLabel">
84                                 <property name="textFormat">
85                                     <enum>Qt::RichText</enum>
86                                 </property>
87                             </widget>
88                         </item>
89
90                         <!-- MIME type. -->
91                         <item row="2" column="0">
92                             <widget class="QLabel">
93                                 <property name="text">
94                                     <string>MIME type:</string>
95                                 </property>
96                             </widget>
97                         </item>
98
99                         <item row="2" column="1">
100                             <widget class="QLabel" name="mimeTypeLabel">
101                                 <property name="textFormat">
102                                     <enum>Qt::RichText</enum>
103                                 </property>
104                             </widget>
105                         </item>
106
107                         <!-- Size. -->
108                         <item row="3" column="0">
109                             <widget class="QLabel">
110                                 <property name="text">
111                                     <string>Size:</string>
112                                 </property>
113                             </widget>
114                         </item>
115
116                         <item row="3" column="1">
117                             <widget class="QLabel" name="sizeLabel">
118                                 <property name="textFormat">
119                                     <enum>Qt::RichText</enum>
120                                 </property>
121                             </widget>
122                         </item>
123                     </layout>
124                 </widget>
125             </item>
126
127             <!-- Dialog buttons. -->
128             <item>
129                 <widget class="QDialogButtonBox" name="dialogButtonBox">
130                     <property name="standardButtons">
131                         <set>QDialogButtonBox::Save | QDialogButtonBox::Cancel</set>
132                     </property>
133                 </widget>
134             </item>
135         </layout>
136     </widget>
137 </ui>