]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/uis/EditFolderDialog.ui
Add a default folder icon to the edit folder dialog. https://redmine.stoutner.com...
[PrivacyBrowserPC.git] / src / uis / EditFolderDialog.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4   Copyright 2023-2024 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>EditFolderDialog</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 folder icon. -->
37                             <item>
38                                 <widget class="QRadioButton" name="currentFolderIconRadioButton">
39                                     <property name="text">
40                                         <string>Current folder 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 folder icon. -->
57                             <item>
58                                 <widget class="QRadioButton" name="defaultFolderIconRadioButton">
59                                     <property name="text">
60                                         <string>Default folder icon</string>
61                                     </property>
62
63                                     <property name="icon">
64                                         <iconset theme="folder"/>
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                             <!-- Third row, current website favorite icon. -->
77                             <item>
78                                 <widget class="QRadioButton" name="currentWebsiteFavoriteIconRadioButton">
79                                     <property name="text">
80                                         <string>Current website favorite icon</string>
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                             <!-- Fourth row, custom folder icon. -->
93                             <item>
94                                 <widget class="QRadioButton" name="customFolderIconRadioButton">
95                                     <property name="text">
96                                         <string>Custom folder icon</string>
97                                     </property>
98
99                                     <property name="icon">
100                                         <iconset theme="folder-symbolic"/>
101                                     </property>
102
103                                     <property name="iconSize">
104                                         <size>
105                                             <height>32</height>
106                                             <width>32</width>
107                                         </size>
108                                     </property>
109                                 </widget>
110                             </item>
111
112                             <!-- Spacer. -->
113                             <item>
114                                 <spacer>
115                                     <property name="orientation">
116                                         <enum>Qt::Vertical</enum>
117                                     </property>
118                                 </spacer>
119                             </item>
120                         </layout>
121                     </item>
122
123                     <!-- Parent folder and name column. -->
124                     <item>
125                         <layout class="QVBoxLayout">
126                             <!-- First row. -->
127                             <item>
128                                 <layout class="QHBoxLayout">
129                                     <property name="alignment">
130                                         <enum>Qt::AlignLeft</enum>
131                                     </property>
132
133                                     <!-- Parent folder.  -->
134                                     <item>
135                                         <widget class="QTreeWidget" name="parentFolderTreeWidget">
136                                             <property name="minimumSize">
137                                                 <size>
138                                                     <width>1000</width>
139                                                     <height>700</height>
140                                                 </size>
141                                             </property>
142                                         </widget>
143                                     </item>
144                                 </layout>
145                             </item>
146
147                             <!-- Second row. -->
148                             <item>
149                                 <layout class="QHBoxLayout">
150                                     <property name="alignment">
151                                         <enum>Qt::AlignLeft</enum>
152                                     </property>
153
154                                     <!-- Folder name. -->
155                                     <item>
156                                         <widget class="QLabel">
157                                             <property name="toolTip">
158                                                 <string>The folder name.</string>
159                                             </property>
160
161                                             <property name="text">
162                                                 <string>Folder name</string>
163                                             </property>
164                                         </widget>
165                                     </item>
166
167                                     <item>
168                                         <widget class="QLineEdit" name="folderNameLineEdit" />
169                                     </item>
170                                 </layout>
171                             </item>
172                         </layout>
173                     </item>
174                 </layout>
175             </item>
176
177             <!-- Buttons. -->
178             <item>
179                 <layout class="QHBoxLayout">
180                     <!-- Browse button. -->
181                     <item>
182                         <widget class="QPushButton" name="browseButton">
183                             <property name="text">
184                                 <string>Browse</string>
185                             </property>
186
187                             <property name="icon">
188                                 <iconset theme="insert-image" />
189                             </property>
190                         </widget>
191                     </item>
192
193                     <!-- Cancel button - dialog button box. -->
194                     <item>
195                         <widget class="QDialogButtonBox" name="dialogButtonBox">
196                             <property name="standardButtons">
197                                 <set>QDialogButtonBox::Save | QDialogButtonBox::Cancel</set>
198                             </property>
199                         </widget>
200                     </item>
201                 </layout>
202             </item>
203         </layout>
204     </widget>
205 </ui>