]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/uis/EditBookmarkDialog.ui
Add dragging and dropping of bookmarks.
[PrivacyBrowserPC.git] / src / uis / EditBookmarkDialog.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>EditBookmarkDialog</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, current favorite icon. -->
37                             <item>
38                                 <widget class="QRadioButton" name="currentFavoriteIconRadioButton">
39                                     <property name="text">
40                                         <string>Current 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, current website favorite icon. -->
57                             <item>
58                                 <widget class="QRadioButton" name="currentWebsiteFavoriteIconRadioButton">
59                                     <property name="text">
60                                         <string>Current website favorite icon</string>
61                                     </property>
62
63                                     <property name="iconSize">
64                                         <size>
65                                             <height>32</height>
66                                             <width>32</width>
67                                         </size>
68                                     </property>
69                                 </widget>
70                             </item>
71
72                             <!-- Third row, custom favorite icon. -->
73                             <item>
74                                 <widget class="QRadioButton" name="customFavoriteIconRadioButton">
75                                     <property name="text">
76                                         <string>Custom favorite icon</string>
77                                     </property>
78
79                                     <property name="icon">
80                                         <iconset theme="globe"/>
81                                     </property>
82
83                                     <property name="iconSize">
84                                         <size>
85                                             <height>32</height>
86                                             <width>32</width>
87                                         </size>
88                                     </property>
89                                 </widget>
90                             </item>
91                         </layout>
92                     </item>
93
94                     <!-- Name and URL column. -->
95                     <item>
96                         <layout class="QVBoxLayout">
97                             <!-- First row. -->
98                             <item>
99                                 <layout class="QHBoxLayout">
100                                     <property name="alignment">
101                                         <enum>Qt::AlignLeft</enum>
102                                     </property>
103                                     <!-- Bookmark name.  -->
104                                     <item>
105                                         <widget class="QLabel">
106                                             <property name="toolTip">
107                                                 <string>The name of the bookmark.</string>
108                                             </property>
109
110                                             <property name="text">
111                                                 <string>Bookmark name</string>
112                                             </property>
113                                         </widget>
114                                     </item>
115
116                                     <item>
117                                         <widget class="QLineEdit" name="bookmarkNameLineEdit" />
118                                     </item>
119                                 </layout>
120                             </item>
121
122                             <!-- Second row. -->
123                             <item>
124                                 <layout class="QHBoxLayout">
125                                     <property name="alignment">
126                                         <enum>Qt::AlignLeft</enum>
127                                     </property>
128                                     <!-- Bookmark URL. -->
129                                     <item>
130                                         <widget class="QLabel">
131                                             <property name="toolTip">
132                                                 <string>The URL of the bookmark.</string>
133                                             </property>
134
135                                             <property name="text">
136                                                 <string>Bookmark URL</string>
137                                             </property>
138                                         </widget>
139                                     </item>
140
141                                     <item>
142                                         <widget class="QLineEdit" name="bookmarkUrlLineEdit">
143                                             <property name="sizePolicy">
144                                                 <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
145                                                     <horstretch>0</horstretch>
146                                                     <verstretch>0</verstretch>
147                                                 </sizepolicy>
148                                             </property>
149
150                                             <property name="minimumSize">
151                                                 <size>
152                                                     <width>700</width>
153                                                     <height>0</height>
154                                                 </size>
155                                             </property>
156                                         </widget>
157                                     </item>
158                                 </layout>
159                             </item>
160                         </layout>
161                     </item>
162                 </layout>
163             </item>
164
165             <!-- Spacer. -->
166             <item>
167                 <spacer>
168                     <property name="orientation">
169                         <enum>Qt::Vertical</enum>
170                     </property>
171                 </spacer>
172             </item>
173
174             <!-- Buttons. -->
175             <item>
176                 <layout class="QHBoxLayout">
177                     <!-- Browse button. -->
178                     <item>
179                         <widget class="QPushButton" name="browseButton">
180                             <property name="text">
181                                 <string>Browse</string>
182                             </property>
183
184                             <property name="icon">
185                                 <iconset theme="insert-image" />
186                             </property>
187                         </widget>
188                     </item>
189
190                     <!-- Cancel button - dialog button box. -->
191                     <item>
192                         <widget class="QDialogButtonBox" name="dialogButtonBox">
193                             <property name="standardButtons">
194                                 <set>QDialogButtonBox::Save | QDialogButtonBox::Cancel</set>
195                             </property>
196                         </widget>
197                     </item>
198                 </layout>
199             </item>
200         </layout>
201     </widget>
202 </ui>