]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/uis/SaveDialog.ui
Implement file downloads.
[PrivacyBrowserPC.git] / src / uis / SaveDialog.ui
diff --git a/src/uis/SaveDialog.ui b/src/uis/SaveDialog.ui
new file mode 100644 (file)
index 0000000..489b8c8
--- /dev/null
@@ -0,0 +1,137 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Copyright © 2022 Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-android>.
+
+  Privacy Browser PC is free software: you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
+
+  Privacy Browser PC is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with Privacy Browser PC.  If not, see <http://www.gnu.org/licenses/>. -->
+
+<ui version="4.0">
+    <class>SaveDialog</class>
+
+    <widget class="QWidget">
+        <layout class="QVBoxLayout">
+            <!-- Header question. -->
+            <item>
+                <widget class="QLabel">
+                    <property name="text">
+                        <string>&lt;b&gt;Would you like to download the following file?&lt;/b&gt;</string>
+                    </property>
+
+                    <property name="textFormat">
+                        <enum>Qt::RichText</enum>
+                    </property>
+
+                    <property name="alignment">
+                        <set>Qt::AlignCenter</set>
+                    </property>
+
+                    <property name="margin">
+                        <number>10</number>
+                    </property>
+                </widget>
+            </item>
+
+            <!-- File details. -->
+            <item>
+                <widget class="QGroupBox">
+                    <property name="title">
+                        <string>File details</string>
+                    </property>
+
+                    <!-- Labels. -->
+                    <layout class="QFormLayout">
+                        <!-- URL. -->
+                        <item row="0" column="0">
+                            <widget class="QLabel">
+                                <property name="text">
+                                    <string>URL:</string>
+                                </property>
+                            </widget>
+                        </item>
+
+                        <item row="0" column="1">
+                            <widget class="QLabel" name="urlLabel">
+                                <property name="textFormat">
+                                    <enum>Qt::RichText</enum>
+                                </property>
+                            </widget>
+                        </item>
+
+                        <!-- File type. -->
+                        <item row="1" column="0">
+                            <widget class="QLabel">
+                                <property name="text">
+                                    <string>File type:</string>
+                                </property>
+                            </widget>
+                        </item>
+
+                        <item row="1" column="1">
+                            <widget class="QLabel" name="fileTypeLabel">
+                                <property name="textFormat">
+                                    <enum>Qt::RichText</enum>
+                                </property>
+                            </widget>
+                        </item>
+
+                        <!-- MIME type. -->
+                        <item row="2" column="0">
+                            <widget class="QLabel">
+                                <property name="text">
+                                    <string>MIME type:</string>
+                                </property>
+                            </widget>
+                        </item>
+
+                        <item row="2" column="1">
+                            <widget class="QLabel" name="mimeTypeLabel">
+                                <property name="textFormat">
+                                    <enum>Qt::RichText</enum>
+                                </property>
+                            </widget>
+                        </item>
+
+                        <!-- Size. -->
+                        <item row="3" column="0">
+                            <widget class="QLabel">
+                                <property name="text">
+                                    <string>Size:</string>
+                                </property>
+                            </widget>
+                        </item>
+
+                        <item row="3" column="1">
+                            <widget class="QLabel" name="sizeLabel">
+                                <property name="textFormat">
+                                    <enum>Qt::RichText</enum>
+                                </property>
+                            </widget>
+                        </item>
+                    </layout>
+                </widget>
+            </item>
+
+            <!-- Dialog buttons. -->
+            <item>
+                <widget class="QDialogButtonBox" name="dialogButtonBox">
+                    <property name="standardButtons">
+                        <set>QDialogButtonBox::Save | QDialogButtonBox::Cancel</set>
+                    </property>
+                </widget>
+            </item>
+        </layout>
+    </widget>
+</ui>