e6f9aca2079f6f574aa3bd7cf7f57a1d1cdb1aa9
[PrivacyBrowserPC.git] / src / DomainSettingsDialog.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4   Copyright © 2022 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-android>.
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>DomainSettingsDialog</class>
23
24     <widget class="QWidget" name="DomainSettingsDialog">
25         <property name="geometry">
26             <rect>
27                 <x>0</x>
28                 <y>0</y>
29                 <width>700</width>
30                 <height>500</height>
31             </rect>
32         </property>
33
34         <!-- Main layout. -->
35         <layout class="QHBoxLayout">
36             <item>
37                 <layout class="QVBoxLayout">
38                     <!-- Domains list view. -->
39                     <item>
40                         <widget class="QListView" name="domainsListView"/>
41                     </item>
42
43                     <!-- Domain buttons. -->
44                     <item>
45                         <layout class="QHBoxLayout">
46                             <!-- Add domain button. -->
47                             <item>
48                                 <widget class="QPushButton" name="addDomainButton">
49                                     <property name="text">
50                                         <string>Add Domain</string>
51                                     </property>
52
53                                     <property name="icon">
54                                         <iconset theme="list-add"/>
55                                     </property>
56                                 </widget>
57                             </item>
58
59                             <!-- Delete domain button. -->
60                             <item>
61                                 <widget class="QPushButton" name="deleteDomainButton">
62                                     <property name="text">
63                                         <string>Delete domain</string>
64                                     </property>
65
66                                     <property name="icon">
67                                         <iconset theme="list-remove"/>
68                                     </property>
69                                 </widget>
70                             </item>
71
72                             <!-- Spacer. -->
73                             <item>
74                                 <spacer>
75                                     <property name="orientation">
76                                         <enum>Qt::Horizontal</enum>
77                                     </property>
78                                 </spacer>
79                             </item>
80                         </layout>
81                     </item>
82                 </layout>
83             </item>
84
85             <item>
86                 <layout class="QVBoxLayout">
87                     <item>
88                         <widget class="QWidget" name="domainSettingsWidget">
89                             <!-- Domain settings form layout. -->
90                             <layout class="QFormLayout">
91                                 <!-- Domain name. -->
92                                 <item row="0" column="0">
93                                     <widget class="QLabel" name="domainNameLabel">
94                                         <property name="text">
95                                             <string>Domain name</string>
96                                         </property>
97                                     </widget>
98                                 </item>
99
100                                 <item row="0" column="1">
101                                     <widget class="KLineEdit" name="domainNameLineEdit">
102                                         <property name="toolTip">
103                                             <string>*. may be prepended to a domain to include all subdomains (eg. *.stoutner.com).</string>
104                                         </property>
105                                     </widget>
106                                 </item>
107
108                                 <!-- JavaScript. -->
109                                 <item row="1" column="0">
110                                     <widget class="QLabel">
111                                         <property name="text">
112                                             <string>JavaScript</string>
113                                         </property>
114                                     </widget>
115                                 </item>
116
117                                 <item row="1" column="1">
118                                     <widget class="QComboBox" name="javaScriptComboBox">
119                                         <property name="toolTip">
120                                             <string>JavaScript allows websites to run programs (scripts) on the device.</string>
121                                         </property>
122
123                                         <item>
124                                             <property name="text">
125                                                 <string>System default</string>
126                                             </property>
127                                         </item>
128
129                                         <item>
130                                             <property name="text">
131                                                 <string>JavaScript disabled</string>
132                                             </property>
133                                         </item>
134
135                                         <item>
136                                             <property name="text">
137                                                 <string>JavaScript enabled</string>
138                                             </property>
139                                         </item>
140                                     </widget>
141                                 </item>
142                             </layout>
143                         </widget>
144                     </item>
145
146                     <!-- Spacer. -->
147                     <item>
148                         <spacer>
149                             <property name="orientation">
150                                 <enum>Qt::Vertical</enum>
151                             </property>
152                         </spacer>
153                     </item>
154
155                     <!-- Dialog buttons. -->
156                     <item>
157                         <widget class="QDialogButtonBox" name="dialogButtonBox">
158                             <property name="standardButtons">
159                                 <set>QDialogButtonBox::Reset | QDialogButtonBox::Ok | QDialogButtonBox::Apply | QDialogButtonBox::Cancel</set>
160                             </property>
161                         </widget>
162                     </item>
163                 </layout>
164             </item>
165         </layout>
166     </widget>
167 </ui>