]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/uis/AddBookmarkDialog.ui
Partial bookmark implementation. https://redmine.stoutner.com/issues/968
[PrivacyBrowserPC.git] / src / uis / AddBookmarkDialog.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4   Copyright 2023 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>AddBookmarkDialog</class>
23
24   <widget class="QWidget">
25     <layout class="QVBoxLayout">
26
27       <!-- First row. -->
28       <item>
29         <layout class="QHBoxLayout">
30           <property name="alignment">
31             <enum>Qt::AlignLeft</enum>
32           </property>
33
34           <!-- Icon. -->
35           <item>
36             <widget class="QGraphicsView"  name="favoriteIconGraphicsView">
37               <property name="sizePolicy">
38                 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
39                   <horstretch>0</horstretch>
40                   <verstretch>0</verstretch>
41                 </sizepolicy>
42               </property>
43
44               <property name="maximumSize">
45                 <size>
46                   <width>32</width>
47                   <height>32</height>
48                 </size>
49               </property>
50
51               <property name="frameShape">
52                 <enum>QFrame::NoFrame</enum>
53               </property>
54
55               <property name="alignment">
56                 <set>Qt::AlignCenter</set>
57               </property>
58             </widget>
59           </item>
60
61           <!-- Spacer label. -->
62           <item>
63             <widget class="QLabel">
64               <property name="textFormat">
65                 <enum>Qt::RichText</enum>
66               </property>
67
68               <property name="text">
69                 <string>&amp;nbsp;</string>
70               </property>
71             </widget>
72           </item>
73
74           <!-- Bookmark name.  -->
75           <item>
76             <widget class="QLabel">
77               <property name="toolTip">
78                 <string>The name of the bookmark.</string>
79               </property>
80
81               <property name="text">
82                 <string>Bookmark name</string>
83               </property>
84             </widget>
85           </item>
86
87           <item>
88             <widget class="QLineEdit" name="bookmarkNameLineEdit" />
89           </item>
90         </layout>
91       </item>
92
93       <!-- Second row. -->
94       <item>
95         <layout class="QHBoxLayout">
96           <property name="alignment">
97             <enum>Qt::AlignLeft</enum>
98           </property>
99
100           <!-- Bookmark URL. -->
101           <item>
102             <widget class="QLabel">
103               <property name="toolTip">
104                 <string>The URL of the bookmark.</string>
105               </property>
106
107               <property name="text">
108                 <string>Bookmark URL</string>
109               </property>
110             </widget>
111           </item>
112
113           <item>
114             <widget class="QLineEdit" name="bookmarkUrlLineEdit">
115               <property name="sizePolicy">
116                 <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
117                   <horstretch>0</horstretch>
118                   <verstretch>0</verstretch>
119                 </sizepolicy>
120               </property>
121
122               <property name="minimumSize">
123                 <size>
124                   <width>700</width>
125                   <height>0</height>
126                 </size>
127               </property>
128             </widget>
129           </item>
130         </layout>
131       </item>
132
133       <!-- Spacer. -->
134       <item>
135         <spacer>
136           <property name="orientation">
137             <enum>Qt::Vertical</enum>
138           </property>
139         </spacer>
140       </item>
141
142       <!-- Dialog buttons. -->
143       <item>
144         <widget class="QDialogButtonBox" name="dialogButtonBox">
145           <property name="standardButtons">
146             <set>QDialogButtonBox::Cancel</set>
147           </property>
148         </widget>
149       </item>
150     </layout>
151   </widget>
152 </ui>