]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/uis/SettingsGeneral.ui
Add full screen support. https://redmine.stoutner.com/issues/832
[PrivacyBrowserPC.git] / src / uis / SettingsGeneral.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     <!-- The name of the generated class. -->
23     <class>GeneralSettings</class>
24
25     <widget class="QWidget">
26         <layout class="QVBoxLayout">
27             <item>
28                 <layout class="QFormLayout">
29                     <!-- Homepage. -->
30                     <item row="0" column="0">
31                         <widget class="QLabel" name="homepageLabel">
32                             <property name="text">
33                                 <string>Homepage</string>
34                             </property>
35
36                             <property name="toolTip">
37                                 <string>The default is https://www.mojeek.com/.</string>
38                             </property>
39                         </widget>
40                     </item>
41
42                     <item row="0" column="1">
43                         <widget class="KLineEdit" name="kcfg_homepage" />
44                     </item>
45
46                     <!-- Search engine. -->
47                     <item row="1" column="0">
48                         <widget class="QLabel">
49                             <property name="text">
50                                 <string>Search engine</string>
51                             </property>
52
53                             <property name="toolTip">
54                                 <string>The default is Mojeek.</string>
55                             </property>
56                         </widget>
57                     </item>
58
59                     <item row="1" column="1">
60                         <widget class="QComboBox" name="kcfg_searchEngine">
61                             <property name="sizePolicy">
62                                 <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
63                                     <horstretch>0</horstretch>
64                                     <verstretch>0</verstretch>
65                                 </sizepolicy>
66                             </property>
67
68                             <property name="editable">
69                                 <bool>true</bool>
70                             </property>
71
72                             <item>
73                                 <property name="text">
74                                     <string>Mojeek</string>
75                                 </property>
76                             </item>
77
78                             <item>
79                                 <property name="text">
80                                     <string>Monocles</string>
81                                 </property>
82                             </item>
83
84                             <item>
85                                 <property name="text">
86                                     <string>MetaGer</string>
87                                 </property>
88                             </item>
89
90                             <item>
91                                 <property name="text">
92                                     <string>Google</string>
93                                 </property>
94                             </item>
95
96                             <item>
97                                 <property name="text">
98                                     <string>Bing</string>
99                                 </property>
100                             </item>
101
102                             <item>
103                                 <property name="text">
104                                     <string>Yahoo</string>
105                                 </property>
106                             </item>
107                         </widget>
108                     </item>
109
110                     <item row="2" column="1">
111                         <widget class="QLabel" name="searchEngineLabel">
112                             <property name="textInteractionFlags">
113                                 <set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
114                             </property>
115                         </widget>
116                     </item>
117
118                     <!-- Zoom factor. -->
119                     <item row="3" column="0">
120                         <widget class="QLabel" name="zoomFactorLabel">
121                             <property name="text">
122                                 <string>Zoom factor</string>
123                             </property>
124
125                             <property name="toolTip">
126                                 <string>Valid values for the zoom factor are between 0.25 and 5.00.  The default is 1.00.</string>
127                             </property>
128                         </widget>
129                     </item>
130
131                     <item row="3" column="1">
132                         <widget class="QDoubleSpinBox" name="kcfg_zoomFactor">
133                             <property name="minimum">
134                                 <double>0.250000000000000</double>
135                             </property>
136
137                             <property name="maximum">
138                                 <double>5.000000000000000</double>
139                             </property>
140
141                             <property name="singleStep">
142                                 <double>0.250000000000000</double>
143                             </property>
144                         </widget>
145                     </item>
146                 </layout>
147             </item>
148
149             <!-- Full screen browsing. -->
150             <item>
151                 <widget class="QGroupBox">
152                     <property name="title">
153                         <string>Full Screen Browsing</string>
154                     </property>
155
156                     <layout class="QVBoxLayout">
157                         <!-- Hide menu bar. -->
158                         <item>
159                             <widget class="QCheckBox" name="kcfg_fullScreenHideMenuBar">
160                                 <property name="text">
161                                     <string>Hide menu bar</string>
162                                 </property>
163
164                                 <property name="toolTip">
165                                     <string>Hide the menu bar when browsing full screen. The default is enabled.</string>
166                                 </property>
167                             </widget>
168                         </item>
169
170                         <!-- Hide toolbars. -->
171                         <item>
172                             <widget class="QCheckBox" name="kcfg_fullScreenHideToolBars">
173                                 <property name="text">
174                                     <string>Hide toolbars</string>
175                                 </property>
176
177                                 <property name="toolTip">
178                                     <string>Hide the toolbars when browsing full screen.  The default is enabled.</string>
179                                 </property>
180                             </widget>
181                         </item>
182
183                         <!-- Hide status bar. -->
184                         <item>
185                             <widget class="QCheckBox" name="kcfg_fullScreenHideStatusBar">
186                                 <property name="text">
187                                     <string>Hide status bar</string>
188                                 </property>
189
190                                 <property name="toolTip">
191                                     <string>Hide the status bar when browsing full screen.  The default is enabled.</string>
192                                 </property>
193                             </widget>
194                         </item>
195                     </layout>
196                 </widget>
197             </item>
198
199             <!-- Spacer. -->
200             <item>
201                 <spacer>
202                     <property name="orientation">
203                         <enum>Qt::Vertical</enum>
204                     </property>
205                 </spacer>
206             </item>
207         </layout>
208     </widget>
209 </ui>