]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/DomainSettingsView.ui
Begin implementing Domain Settings using KXmlGuiWindow part 2.
[PrivacyBrowserPC.git] / src / DomainSettingsView.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>DomainSettingsView</class>
23
24     <widget class="QWidget" name="DomainSettingsView">
25         <!-- TODO.  Make this maximized by default. -->
26         <property name="geometry">
27             <rect>
28                 <x>0</x>
29                 <y>0</y>
30                 <width>700</width>
31                 <height>500</height>
32             </rect>
33         </property>
34
35         <!-- Main widget. -->
36         <layout class="QHBoxLayout">
37             <!-- Set the spacing between items to 0. -->
38             <property name="spacing">
39                 <number>0</number>
40             </property>
41
42             <!-- Set the margins to 0. -->
43             <property name="topMargin">
44                 <number>0</number>
45             </property>
46
47             <property name="bottomMargin">
48                 <number>0</number>
49             </property>
50
51             <property name="leftMargin">
52                 <number>0</number>
53             </property>
54
55             <property name="rightMargin">
56                 <number>0</number>
57             </property>
58
59             <!-- Domains list view. -->
60             <item>
61                 <widget class="QListView" name="domainsListView"/>
62             </item>
63
64             <!-- Domain settings form layout. -->
65             <item>
66                 <layout class="QFormLayout">
67                     <!-- Domain name. -->
68                     <item row="0" column="0">
69                         <widget class="QLabel" name="domainNameLabel">
70                             <property name="text">
71                                 <string>Domain name</string>
72                             </property>
73                         </widget>
74                     </item>
75
76                     <item row="0" column="1">
77                         <widget class="KLineEdit" name="domainNameLineEdit">
78                             <property name="toolTip">
79                                 <string>*. may be prepended to a domain to include all subdomains (eg. *.stoutner.com).</string>
80                             </property>
81                         </widget>
82                     </item>
83
84                     <!-- JavaScript. -->
85                     <item row="1" column="0">
86                         <widget class="QLabel">
87                             <property name="text">
88                                 <string>JavaScript</string>
89                             </property>
90                         </widget>
91                     </item>
92
93                     <item row="1" column="1">
94                         <widget class="QComboBox" name="javaScriptComboBox">
95                             <property name="toolTip">
96                                 <string>JavaScript allows websites to run programs (scripts) on the device.</string>
97                             </property>
98
99                             <item>
100                                 <property name="text">
101                                     <string>System default</string>
102                                 </property>
103                             </item>
104
105                             <item>
106                                 <property name="text">
107                                     <string>JavaScript disabled</string>
108                                 </property>
109                             </item>
110
111                             <item>
112                                 <property name="text">
113                                     <string>JavaScript enabled</string>
114                                 </property>
115                             </item>
116                         </widget>
117                     </item>
118                 </layout>
119             </item>
120         </layout>
121     </widget>
122 </ui>