]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/uis/AddBookmarkDialog.ui
Add dragging and dropping of bookmarks.
[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             <!-- Dialog body. -->
27             <item>
28                 <layout class="QHBoxLayout">
29                     <!-- Favorite icon column. -->
30                     <item>
31                         <layout class="QVBoxLayout">
32                             <property name="rightMargin">
33                                 <number>10</number>
34                             </property>
35
36                             <!-- First row, default favorite icon. -->
37                             <item>
38                                 <widget class="QRadioButton" name="defaultFavoriteIconRadioButton">
39                                     <property name="text">
40                                         <string>Default favorite icon</string>
41                                     </property>
42
43                                     <property name="checked">
44                                         <bool>true</bool>
45                                     </property>
46
47                                     <property name="iconSize">
48                                         <size>
49                                             <height>32</height>
50                                             <width>32</width>
51                                         </size>
52                                     </property>
53                                 </widget>
54                             </item>
55
56                             <!-- Second row, custom favorite icon. -->
57                             <item>
58                                 <widget class="QRadioButton" name="customFavoriteIconRadioButton">
59                                     <property name="text">
60                                         <string>Custom favorite icon</string>
61                                     </property>
62
63                                     <property name="icon">
64                                         <iconset theme="globe"/>
65                                     </property>
66
67                                     <property name="iconSize">
68                                         <size>
69                                             <height>32</height>
70                                             <width>32</width>
71                                         </size>
72                                     </property>
73                                 </widget>
74                             </item>
75                         </layout>
76                     </item>
77
78                     <!-- Name and URL column. -->
79                     <item>
80                         <layout class="QVBoxLayout">
81                             <!-- First row. -->
82                             <item>
83                                 <layout class="QHBoxLayout">
84                                     <property name="alignment">
85                                         <enum>Qt::AlignLeft</enum>
86                                     </property>
87                                     <!-- Bookmark name.  -->
88                                     <item>
89                                         <widget class="QLabel">
90                                             <property name="toolTip">
91                                                 <string>The name of the bookmark.</string>
92                                             </property>
93
94                                             <property name="text">
95                                                 <string>Bookmark name</string>
96                                             </property>
97                                         </widget>
98                                     </item>
99
100                                     <item>
101                                         <widget class="QLineEdit" name="bookmarkNameLineEdit" />
102                                     </item>
103                                 </layout>
104                             </item>
105
106                             <!-- Second row. -->
107                             <item>
108                                 <layout class="QHBoxLayout">
109                                     <property name="alignment">
110                                         <enum>Qt::AlignLeft</enum>
111                                     </property>
112                                     <!-- Bookmark URL. -->
113                                     <item>
114                                         <widget class="QLabel">
115                                             <property name="toolTip">
116                                                 <string>The URL of the bookmark.</string>
117                                             </property>
118
119                                             <property name="text">
120                                                 <string>Bookmark URL</string>
121                                             </property>
122                                         </widget>
123                                     </item>
124
125                                     <item>
126                                         <widget class="QLineEdit" name="bookmarkUrlLineEdit">
127                                             <property name="sizePolicy">
128                                                 <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
129                                                     <horstretch>0</horstretch>
130                                                     <verstretch>0</verstretch>
131                                                 </sizepolicy>
132                                             </property>
133
134                                             <property name="minimumSize">
135                                                 <size>
136                                                     <width>700</width>
137                                                     <height>0</height>
138                                                 </size>
139                                             </property>
140                                         </widget>
141                                     </item>
142                                 </layout>
143                             </item>
144                         </layout>
145                     </item>
146                 </layout>
147             </item>
148
149             <!-- Spacer. -->
150             <item>
151                 <spacer>
152                     <property name="orientation">
153                         <enum>Qt::Vertical</enum>
154                     </property>
155                 </spacer>
156             </item>
157
158             <!-- Buttons. -->
159             <item>
160                 <layout class="QHBoxLayout">
161                     <!-- Browse button. -->
162                     <item>
163                         <widget class="QPushButton" name="browseButton">
164                             <property name="text">
165                                 <string>Browse</string>
166                             </property>
167
168                             <property name="icon">
169                                 <iconset theme="insert-image" />
170                             </property>
171                         </widget>
172                     </item>
173
174                     <!-- Cancel button - dialog button box. -->
175                     <item>
176                         <widget class="QDialogButtonBox" name="dialogButtonBox">
177                             <property name="standardButtons">
178                                 <set>QDialogButtonBox::Cancel</set>
179                             </property>
180                         </widget>
181                     </item>
182                 </layout>
183             </item>
184         </layout>
185     </widget>
186 </ui>