]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/uis/AddFolderDialog.ui
Add a default folder icon to the edit folder dialog. https://redmine.stoutner.com...
[PrivacyBrowserPC.git] / src / uis / AddFolderDialog.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>AddFolderDialog</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 folder icon. -->
37                             <item>
38                                 <widget class="QRadioButton" name="defaultFolderIconRadioButton">
39                                     <property name="text">
40                                         <string>Default folder icon</string>
41                                     </property>
42
43                                     <property name="checked">
44                                         <bool>true</bool>
45                                     </property>
46
47                                     <property name="icon">
48                                         <iconset theme="folder"/>
49                                     </property>
50
51                                     <property name="iconSize">
52                                         <size>
53                                             <height>32</height>
54                                             <width>32</width>
55                                         </size>
56                                     </property>
57                                 </widget>
58                             </item>
59
60                             <!-- Second row, current website favorite icon. -->
61                             <item>
62                                 <widget class="QRadioButton" name="currentWebsiteFavoriteIconRadioButton">
63                                     <property name="text">
64                                         <string>Current website favorite icon</string>
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, custom folder icon. -->
77                             <item>
78                                 <widget class="QRadioButton" name="customFolderIconRadioButton">
79                                     <property name="text">
80                                         <string>Custom folder icon</string>
81                                     </property>
82
83                                     <property name="icon">
84                                         <iconset theme="folder-symbolic"/>
85                                     </property>
86
87                                     <property name="iconSize">
88                                         <size>
89                                             <height>32</height>
90                                             <width>32</width>
91                                         </size>
92                                     </property>
93                                 </widget>
94                             </item>
95
96                             <!-- Spacer. -->
97                             <item>
98                                 <spacer>
99                                     <property name="orientation">
100                                         <enum>Qt::Vertical</enum>
101                                     </property>
102                                 </spacer>
103                             </item>
104                         </layout>
105                     </item>
106
107                     <!-- Parent folder and name column. -->
108                     <item>
109                         <layout class="QVBoxLayout">
110                             <!-- First row. -->
111                             <item>
112                                 <layout class="QHBoxLayout">
113                                     <property name="alignment">
114                                         <enum>Qt::AlignLeft</enum>
115                                     </property>
116
117                                     <!-- Parent folder.  -->
118                                     <item>
119                                         <widget class="QTreeWidget" name="parentFolderTreeWidget">
120                                             <property name="minimumSize">
121                                                 <size>
122                                                     <width>1000</width>
123                                                     <height>700</height>
124                                                 </size>
125                                             </property>
126                                         </widget>
127                                     </item>
128                                 </layout>
129                             </item>
130
131                             <!-- Second row. -->
132                             <item>
133                                 <layout class="QHBoxLayout">
134                                     <property name="alignment">
135                                         <enum>Qt::AlignLeft</enum>
136                                     </property>
137
138                                     <!-- Folder name. -->
139                                     <item>
140                                         <widget class="QLabel">
141                                             <property name="toolTip">
142                                                 <string>The folder name.</string>
143                                             </property>
144
145                                             <property name="text">
146                                                 <string>Folder name</string>
147                                             </property>
148                                         </widget>
149                                     </item>
150
151                                     <item>
152                                         <widget class="QLineEdit" name="folderNameLineEdit" />
153                                     </item>
154                                 </layout>
155                             </item>
156                         </layout>
157                     </item>
158                 </layout>
159             </item>
160
161             <!-- Buttons. -->
162             <item>
163                 <layout class="QHBoxLayout">
164                     <!-- Browse button. -->
165                     <item>
166                         <widget class="QPushButton" name="browseButton">
167                             <property name="text">
168                                 <string>Browse</string>
169                             </property>
170
171                             <property name="icon">
172                                 <iconset theme="insert-image" />
173                             </property>
174                         </widget>
175                     </item>
176
177                     <!-- Cancel button - dialog button box. -->
178                     <item>
179                         <widget class="QDialogButtonBox" name="dialogButtonBox">
180                             <property name="standardButtons">
181                                 <set>QDialogButtonBox::Cancel</set>
182                             </property>
183                         </widget>
184                     </item>
185                 </layout>
186             </item>
187         </layout>
188     </widget>
189 </ui>