]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/MainView.ui
Add user agent controls.
[PrivacyBrowserPC.git] / src / MainView.ui
diff --git a/src/MainView.ui b/src/MainView.ui
new file mode 100644 (file)
index 0000000..c7afeb8
--- /dev/null
@@ -0,0 +1,155 @@
+<?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>MainView</class>
+
+    <widget class="QWidget" name="MainView">
+        <!-- TODO.  Make this maximized by default. -->
+        <property name="geometry">
+            <rect>
+                <x>0</x>
+                <y>0</y>
+                <width>315</width>
+                <height>233</height>
+            </rect>
+        </property>
+
+        <layout class="QVBoxLayout">
+            <!-- Set the spacing between items to 0. -->
+            <property name="spacing">
+                <number>0</number>
+            </property>
+
+            <!-- Set the margins to 0. -->
+            <property name="topMargin">
+                <number>0</number>
+            </property>
+
+            <property name="bottomMargin">
+                <number>0</number>
+            </property>
+
+            <property name="leftMargin">
+                <number>0</number>
+            </property>
+
+            <property name="rightMargin">
+                <number>0</number>
+            </property>
+
+            <!-- URL bar. -->
+            <item>
+                <layout class="QHBoxLayout">
+                    <!-- Set the spacing between items to 0. -->
+                    <property name="spacing">
+                        <number>0</number>
+                    </property>
+
+                    <!-- Back button. -->
+                    <item>
+                        <widget class="QPushButton" name="backButton">
+                            <property name="icon">
+                                <iconset theme="arrow-left" />
+                            </property>
+
+                            <property name="iconSize">
+                                <size>
+                                    <height>24</height>
+                                    <width>24</width>
+                                </size>
+                            </property>
+
+                            <property name="flat">
+                                <bool>true</bool>
+                            </property>
+                        </widget>
+                    </item>
+
+                    <!-- Forward button. -->
+                    <item>
+                        <widget class="QPushButton" name="forwardButton">
+                            <property name="icon">
+                                <iconset theme="arrow-right" />
+                            </property>
+
+                            <property name="iconSize">
+                                <size>
+                                    <height>24</height>
+                                    <width>24</width>
+                                </size>
+                            </property>
+
+                            <property name="flat">
+                                <bool>true</bool>
+                            </property>
+                        </widget>
+                    </item>
+
+                    <!-- Home button. -->
+                    <item>
+                        <widget class="QPushButton" name="homeButton">
+                            <property name="icon">
+                                <iconset theme="home" />
+                            </property>
+
+                            <property name="iconSize">
+                                <size>
+                                    <height>24</height>
+                                    <width>24</width>
+                                </size>
+                            </property>
+
+                            <property name="flat">
+                                <bool>true</bool>
+                            </property>
+                        </widget>
+                    </item>
+
+                    <!-- URL line edit. -->
+                    <item>
+                        <widget class="KLineEdit" name="urlLineEdit" />
+                    </item>
+
+                    <!-- JavaScript. -->
+                    <item>
+                        <widget class="QPushButton" name="javaScript">
+                            <property name="iconSize">
+                                <size>
+                                    <height>24</height>
+                                    <width>24</width>
+                                </size>
+                            </property>
+
+                            <property name="flat">
+                                <bool>true</bool>
+                            </property>
+                        </widget>
+                    </item>
+                </layout>
+            </item>
+
+            <!-- WebEngine view. -->
+            <item>
+                <widget class="QWebEngineView" name="webEngineView" />
+            </item>
+        </layout>
+    </widget>
+</ui>