]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/uis/AddBookmarkDialog.ui
Partial bookmark implementation. https://redmine.stoutner.com/issues/968
[PrivacyBrowserPC.git] / src / uis / AddBookmarkDialog.ui
diff --git a/src/uis/AddBookmarkDialog.ui b/src/uis/AddBookmarkDialog.ui
new file mode 100644 (file)
index 0000000..b6dc2cf
--- /dev/null
@@ -0,0 +1,152 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Copyright 2023 Soren Stoutner <soren@stoutner.com>.
+
+  This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc>.
+
+  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>AddBookmarkDialog</class>
+
+  <widget class="QWidget">
+    <layout class="QVBoxLayout">
+
+      <!-- First row. -->
+      <item>
+        <layout class="QHBoxLayout">
+          <property name="alignment">
+            <enum>Qt::AlignLeft</enum>
+          </property>
+
+          <!-- Icon. -->
+          <item>
+            <widget class="QGraphicsView"  name="favoriteIconGraphicsView">
+              <property name="sizePolicy">
+                <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+                  <horstretch>0</horstretch>
+                  <verstretch>0</verstretch>
+                </sizepolicy>
+              </property>
+
+              <property name="maximumSize">
+                <size>
+                  <width>32</width>
+                  <height>32</height>
+                </size>
+              </property>
+
+              <property name="frameShape">
+                <enum>QFrame::NoFrame</enum>
+              </property>
+
+              <property name="alignment">
+                <set>Qt::AlignCenter</set>
+              </property>
+            </widget>
+          </item>
+
+          <!-- Spacer label. -->
+          <item>
+            <widget class="QLabel">
+              <property name="textFormat">
+                <enum>Qt::RichText</enum>
+              </property>
+
+              <property name="text">
+                <string>&amp;nbsp;</string>
+              </property>
+            </widget>
+          </item>
+
+          <!-- Bookmark name.  -->
+          <item>
+            <widget class="QLabel">
+              <property name="toolTip">
+                <string>The name of the bookmark.</string>
+              </property>
+
+              <property name="text">
+                <string>Bookmark name</string>
+              </property>
+            </widget>
+          </item>
+
+          <item>
+            <widget class="QLineEdit" name="bookmarkNameLineEdit" />
+          </item>
+        </layout>
+      </item>
+
+      <!-- Second row. -->
+      <item>
+        <layout class="QHBoxLayout">
+          <property name="alignment">
+            <enum>Qt::AlignLeft</enum>
+          </property>
+
+          <!-- Bookmark URL. -->
+          <item>
+            <widget class="QLabel">
+              <property name="toolTip">
+                <string>The URL of the bookmark.</string>
+              </property>
+
+              <property name="text">
+                <string>Bookmark URL</string>
+              </property>
+            </widget>
+          </item>
+
+          <item>
+            <widget class="QLineEdit" name="bookmarkUrlLineEdit">
+              <property name="sizePolicy">
+                <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+                  <horstretch>0</horstretch>
+                  <verstretch>0</verstretch>
+                </sizepolicy>
+              </property>
+
+              <property name="minimumSize">
+                <size>
+                  <width>700</width>
+                  <height>0</height>
+                </size>
+              </property>
+            </widget>
+          </item>
+        </layout>
+      </item>
+
+      <!-- Spacer. -->
+      <item>
+        <spacer>
+          <property name="orientation">
+            <enum>Qt::Vertical</enum>
+          </property>
+        </spacer>
+      </item>
+
+      <!-- Dialog buttons. -->
+      <item>
+        <widget class="QDialogButtonBox" name="dialogButtonBox">
+          <property name="standardButtons">
+            <set>QDialogButtonBox::Cancel</set>
+          </property>
+        </widget>
+      </item>
+    </layout>
+  </widget>
+</ui>