]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/uis/AddBookmarkDialog.ui
Add bookmark folders.
[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
76                             <!-- Spacer. -->
77                             <item>
78                                 <spacer>
79                                     <property name="orientation">
80                                         <enum>Qt::Vertical</enum>
81                                     </property>
82                                 </spacer>
83                             </item>
84                         </layout>
85                     </item>
86
87                     <!-- Parent folder, name and URL column. -->
88                     <item>
89                         <layout class="QVBoxLayout">
90                             <!-- First row. -->
91                             <item>
92                                 <layout class="QHBoxLayout">
93                                     <property name="alignment">
94                                         <enum>Qt::AlignLeft</enum>
95                                     </property>
96
97                                     <!-- Parent folder.  -->
98                                     <item>
99                                         <widget class="QTreeWidget" name="parentFolderTreeWidget">
100                                             <property name="minimumSize">
101                                                 <size>
102                                                     <width>1000</width>
103                                                     <height>700</height>
104                                                 </size>
105                                             </property>
106                                         </widget>
107                                     </item>
108                                 </layout>
109                             </item>
110
111                             <!-- Second row. -->
112                             <item>
113                                 <layout class="QHBoxLayout">
114                                     <property name="alignment">
115                                         <enum>Qt::AlignLeft</enum>
116                                     </property>
117
118                                     <!-- Bookmark name.  -->
119                                     <item>
120                                         <widget class="QLabel">
121                                             <property name="toolTip">
122                                                 <string>The name of the bookmark.</string>
123                                             </property>
124
125                                             <property name="text">
126                                                 <string>Bookmark name</string>
127                                             </property>
128                                         </widget>
129                                     </item>
130
131                                     <item>
132                                         <widget class="QLineEdit" name="bookmarkNameLineEdit" />
133                                     </item>
134                                 </layout>
135                             </item>
136
137                             <!-- Third row. -->
138                             <item>
139                                 <layout class="QHBoxLayout">
140                                     <property name="alignment">
141                                         <enum>Qt::AlignLeft</enum>
142                                     </property>
143
144                                     <!-- Bookmark URL. -->
145                                     <item>
146                                         <widget class="QLabel">
147                                             <property name="toolTip">
148                                                 <string>The URL of the bookmark.</string>
149                                             </property>
150
151                                             <property name="text">
152                                                 <string>Bookmark URL</string>
153                                             </property>
154                                         </widget>
155                                     </item>
156
157                                     <item>
158                                         <widget class="QLineEdit" name="bookmarkUrlLineEdit" />
159                                     </item>
160                                 </layout>
161                             </item>
162                         </layout>
163                     </item>
164                 </layout>
165             </item>
166
167             <!-- Buttons. -->
168             <item>
169                 <layout class="QHBoxLayout">
170                     <!-- Browse button. -->
171                     <item>
172                         <widget class="QPushButton" name="browseButton">
173                             <property name="text">
174                                 <string>Browse</string>
175                             </property>
176
177                             <property name="icon">
178                                 <iconset theme="insert-image" />
179                             </property>
180                         </widget>
181                     </item>
182
183                     <!-- Cancel button - dialog button box. -->
184                     <item>
185                         <widget class="QDialogButtonBox" name="dialogButtonBox">
186                             <property name="standardButtons">
187                                 <set>QDialogButtonBox::Cancel</set>
188                             </property>
189                         </widget>
190                     </item>
191                 </layout>
192             </item>
193         </layout>
194     </widget>
195 </ui>