]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/uis/EditBookmarkDialog.ui
68a84132710cd445f8705d1d7a4bffd8ceff7771
[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
92                             <!-- Spacer. -->
93                             <item>
94                                 <spacer>
95                                     <property name="orientation">
96                                         <enum>Qt::Vertical</enum>
97                                     </property>
98                                 </spacer>
99                             </item>
100                         </layout>
101                     </item>
102
103                     <!-- Parent folder, name and URL column. -->
104                     <item>
105                         <layout class="QVBoxLayout">
106                             <!-- First row. -->
107                             <item>
108                                 <layout class="QHBoxLayout">
109                                     <property name="alignment">
110                                         <enum>Qt::AlignLeft</enum>
111                                     </property>
112
113                                     <!-- Parent folder.  -->
114                                     <item>
115                                         <widget class="QTreeWidget" name="parentFolderTreeWidget">
116                                             <property name="minimumSize">
117                                                 <size>
118                                                     <width>1000</width>
119                                                     <height>700</height>
120                                                 </size>
121                                             </property>
122                                         </widget>
123                                     </item>
124                                 </layout>
125                             </item>
126
127                             <!-- Second row. -->
128                             <item>
129                                 <layout class="QHBoxLayout">
130                                     <property name="alignment">
131                                         <enum>Qt::AlignLeft</enum>
132                                     </property>
133
134                                     <!-- Bookmark name.  -->
135                                     <item>
136                                         <widget class="QLabel">
137                                             <property name="toolTip">
138                                                 <string>The name of the bookmark.</string>
139                                             </property>
140
141                                             <property name="text">
142                                                 <string>Bookmark name</string>
143                                             </property>
144                                         </widget>
145                                     </item>
146
147                                     <item>
148                                         <widget class="QLineEdit" name="bookmarkNameLineEdit" />
149                                     </item>
150                                 </layout>
151                             </item>
152
153                             <!-- Second row. -->
154                             <item>
155                                 <layout class="QHBoxLayout">
156                                     <property name="alignment">
157                                         <enum>Qt::AlignLeft</enum>
158                                     </property>
159
160                                     <!-- Bookmark URL. -->
161                                     <item>
162                                         <widget class="QLabel">
163                                             <property name="toolTip">
164                                                 <string>The URL of the bookmark.</string>
165                                             </property>
166
167                                             <property name="text">
168                                                 <string>Bookmark URL</string>
169                                             </property>
170                                         </widget>
171                                     </item>
172
173                                     <item>
174                                         <widget class="QLineEdit" name="bookmarkUrlLineEdit">
175                                             <property name="sizePolicy">
176                                                 <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
177                                                     <horstretch>0</horstretch>
178                                                     <verstretch>0</verstretch>
179                                                 </sizepolicy>
180                                             </property>
181
182                                             <property name="minimumSize">
183                                                 <size>
184                                                     <width>700</width>
185                                                     <height>0</height>
186                                                 </size>
187                                             </property>
188                                         </widget>
189                                     </item>
190                                 </layout>
191                             </item>
192                         </layout>
193                     </item>
194                 </layout>
195             </item>
196
197             <!-- Buttons. -->
198             <item>
199                 <layout class="QHBoxLayout">
200                     <!-- Browse button. -->
201                     <item>
202                         <widget class="QPushButton" name="browseButton">
203                             <property name="text">
204                                 <string>Browse</string>
205                             </property>
206
207                             <property name="icon">
208                                 <iconset theme="insert-image" />
209                             </property>
210                         </widget>
211                     </item>
212
213                     <!-- Cancel button - dialog button box. -->
214                     <item>
215                         <widget class="QDialogButtonBox" name="dialogButtonBox">
216                             <property name="standardButtons">
217                                 <set>QDialogButtonBox::Save | QDialogButtonBox::Cancel</set>
218                             </property>
219                         </widget>
220                     </item>
221                 </layout>
222             </item>
223         </layout>
224     </widget>
225 </ui>