Warning, /maui/fiery/src/views/widgets/SettingsDialog.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.13
0002 import QtQuick.Controls 2.13
0003 import QtQuick.Layouts 1.3
0004
0005 import org.mauikit.controls 1.3 as Maui
0006
0007 Maui.SettingsDialog
0008 {
0009 id: control
0010
0011 Maui.SectionGroup
0012 {
0013 title: i18n("Navigation")
0014 description: i18n("Configure the app basic navigation features.")
0015
0016
0017 Maui.SectionItem
0018 {
0019 label1.text: i18n("Restore Session")
0020 label2.text: i18n("Open previous tabs.")
0021
0022 Switch
0023 {
0024 Layout.fillHeight: true
0025 checkable: true
0026 checked: appSettings.restoreSession
0027 onToggled: appSettings.restoreSession = ! appSettings.restoreSession
0028 }
0029 }
0030
0031 Maui.SectionItem
0032 {
0033 label1.text: i18n("Switch to Tab")
0034 label2.text: i18n("When opening a new link jump to the new tab.")
0035
0036 Switch
0037 {
0038 Layout.fillHeight: true
0039 checkable: true
0040 checked: appSettings.switchToTab
0041 onToggled: appSettings.switchToTab = ! appSettings.switchToTab
0042 }
0043 }
0044
0045 Maui.SectionItem
0046 {
0047 label1.text: i18n("Auto Load Images")
0048 label2.text: i18n("Automatically loads images on web pages.")
0049
0050 Switch
0051 {
0052 Layout.fillHeight: true
0053 checkable: true
0054 checked: appSettings.autoLoadImages
0055 onToggled: appSettings.autoLoadImages = ! appSettings.autoLoadImages
0056 }
0057 }
0058
0059 Maui.SectionItem
0060 {
0061 label1.text: i18n("Hyperlink Auditing")
0062 label2.text: i18n("Enables support for the ping attribute for hyperlinks.")
0063
0064 Switch
0065 {
0066 Layout.fillHeight: true
0067 checkable: true
0068 checked: appSettings.hyperlinkAuditingEnabled
0069 onToggled: appSettings.hyperlinkAuditingEnabled = ! appSettings.hyperlinkAuditingEnabled
0070 }
0071 }
0072 }
0073
0074 Maui.SectionItem
0075 {
0076 label1.text: i18n("General")
0077 label2.text: i18n("Configure global preferences.")
0078
0079 ToolButton
0080 {
0081 icon.name: "go-next"
0082 checkable: true
0083 onToggled: control.addPage(_generalComponent)
0084 }
0085 }
0086
0087 Maui.SectionItem
0088 {
0089 label1.text: i18n("Features")
0090 label2.text: i18n("Configure the browser plugins and features.")
0091
0092 ToolButton
0093 {
0094 icon.name: "go-next"
0095 checkable: true
0096 onToggled: control.addPage(_featuresComponent)
0097 }
0098 }
0099
0100 Component
0101 {
0102 id: _generalComponent
0103
0104 Maui.SettingsPage
0105 {
0106 title: i18n("General")
0107
0108 Maui.SectionItem
0109 {
0110 label1.text: i18n("Home Page")
0111 label2.text: i18n("Page to load initially and default.")
0112 columns: 1
0113
0114 TextField
0115 {
0116 Layout.fillWidth: true
0117 text: appSettings.homePage
0118 }
0119 }
0120
0121 Maui.SectionItem
0122 {
0123 label1.text: i18n("Search Engine")
0124 label2.text: i18n("Engine to be use for default searching content.")
0125 columns: 1
0126
0127 TextField
0128 {
0129 Layout.fillWidth: true
0130 text: appSettings.searchEnginePage
0131 }
0132 }
0133
0134 Maui.SectionGroup
0135 {
0136 title: i18n("Downloads")
0137
0138 Maui.SectionItem
0139 {
0140 label1.text: i18n("Downloads Path")
0141 label2.text: i18n("Pick a path where files will be saved.")
0142 columns: 1
0143
0144 TextField
0145 {
0146 Layout.fillWidth: true
0147 text: appSettings.downloadsPath
0148 }
0149 }
0150
0151 Maui.SectionItem
0152 {
0153 label1.text: i18n("Auto Save")
0154 label2.text: i18n("Download files without asking.")
0155
0156 Switch
0157 {
0158 Layout.fillHeight: true
0159 checkable: true
0160 checked: appSettings.autoSave
0161 onToggled: appSettings.autoSave = ! appSettings.autoSave
0162 }
0163 }
0164
0165 }
0166
0167 }
0168 }
0169
0170 Component
0171 {
0172 id: _featuresComponent
0173
0174 Maui.SettingsPage
0175 {
0176 title: i18n("Features")
0177
0178 Maui.SectionGroup
0179 {
0180 Maui.SectionItem
0181 {
0182 label1.text: i18n("Accelerated 2D Canvas")
0183 label2.text: i18n("Specifies whether the HTML 5 2D canvas should be an OpenGL framebuffer. This makes many painting operations faster, but slows down pixel access.")
0184
0185 Switch
0186 {
0187 Layout.fillHeight: true
0188 checkable: true
0189 checked: appSettings.accelerated2dCanvasEnabled
0190 onToggled: appSettings.accelerated2dCanvasEnabled = ! appSettings.accelerated2dCanvasEnabled
0191 }
0192 }
0193
0194 Maui.SectionItem
0195 {
0196 label1.text: i18n("PDF Viewer")
0197 label2.text: i18n("PDF documents will be opened in the internal PDF viewer instead of being downloaded.")
0198
0199 Switch
0200 {
0201 Layout.fillHeight: true
0202 checkable: true
0203 checked: appSettings.pdfViewerEnabled
0204 onToggled: appSettings.pdfViewerEnabled = ! appSettings.pdfViewerEnabled
0205 }
0206 }
0207
0208 Maui.SectionItem
0209 {
0210 label1.text: i18n("Plugins Enabled")
0211 label2.text: i18n("Enables support for Pepper plugins, such as the Flash player.")
0212
0213 Switch
0214 {
0215 Layout.fillHeight: true
0216 checkable: true
0217 checked: appSettings.pluginsEnabled
0218 onToggled: appSettings.pluginsEnabled = ! appSettings.pluginsEnabled
0219 }
0220 }
0221 }
0222 }
0223 }
0224
0225 Maui.SectionItem
0226 {
0227 label1.text: i18n("JavaScript")
0228 label2.text: i18n("Configure JavaScript behaviour.")
0229
0230 ToolButton
0231 {
0232 icon.name: "go-next"
0233 checkable: true
0234 onToggled: control.addPage(_jsComponent)
0235 }
0236 }
0237
0238
0239 Component
0240 {
0241 id: _jsComponent
0242 Maui.SettingsPage
0243 {
0244 title: i18n("JavaScript")
0245
0246 Maui.SectionGroup
0247 {
0248 Maui.SectionItem
0249 {
0250 label1.text: i18n("Javascript Enabled")
0251 label2.text: i18n("Enables the running of JavaScript programs.")
0252
0253 Switch
0254 {
0255 Layout.fillHeight: true
0256 checkable: true
0257 checked: appSettings.javascriptEnabled
0258 onToggled: appSettings.javascriptEnabled = ! appSettings.javascriptEnabled
0259 }
0260 }
0261
0262 Maui.SectionItem
0263 {
0264 label1.text: i18n("Javascript Can Access Clipboard")
0265 label2.text: i18n("Allows JavaScript programs to read from or write to the clipboard.")
0266
0267 Switch
0268 {
0269 Layout.fillHeight: true
0270 checkable: true
0271 checked: appSettings.javascriptCanAccessClipboard
0272 onToggled: appSettings.javascriptCanAccessClipboard = ! appSettings.javascriptCanAccessClipboard
0273 }
0274 }
0275
0276 Maui.SectionItem
0277 {
0278 label1.text: i18n("Javascript Can Paste")
0279 label2.text: i18n("Enables JavaScript execCommand(paste).")
0280
0281 Switch
0282 {
0283 Layout.fillHeight: true
0284 checkable: true
0285 checked: appSettings.javascriptCanPaste
0286 onToggled: appSettings.javascriptCanPaste = ! appSettings.javascriptCanPaste
0287 }
0288 }
0289
0290 Maui.SectionItem
0291 {
0292 label1.text: i18n("Allow Window Activation From JavaScript")
0293 label2.text: i18n("Allows the window.focus() method in JavaScript.")
0294
0295 Switch
0296 {
0297 Layout.fillHeight: true
0298 checkable: true
0299 checked: appSettings.allowWindowActivationFromJavaScript
0300 onToggled: appSettings.allowWindowActivationFromJavaScript = ! appSettings.allowWindowActivationFromJavaScript
0301 }
0302 }
0303
0304 }
0305 }
0306 }
0307
0308 Maui.SectionItem
0309 {
0310 label1.text: i18n("Security & Privacy")
0311 label2.text: i18n("Configure the look and feel of the editor. The settings are applied globally")
0312
0313 ToolButton
0314 {
0315 icon.name: "go-next"
0316 checkable: true
0317 onToggled: control.addPage(_privacyComponent)
0318 }
0319 }
0320
0321 Component
0322 {
0323 id: _privacyComponent
0324 Maui.SettingsPage
0325 {
0326 title: i18n("Security & Privacy")
0327
0328 Maui.SectionGroup
0329 {
0330 Maui.SectionItem
0331 {
0332 label1.text: i18n("Allow Geolocation On Insecure Origins")
0333 label2.text: i18n("Only secure origins such as HTTPS have been able to request Geolocation features.")
0334
0335 Switch
0336 {
0337 Layout.fillHeight: true
0338 checkable: true
0339 checked: appSettings.allowGeolocationOnInsecureOrigins
0340 onToggled: appSettings.allowGeolocationOnInsecureOrigins = ! appSettings.allowGeolocationOnInsecureOrigins
0341 }
0342 }
0343
0344 Maui.SectionItem
0345 {
0346 label1.text: i18n("Allow Running Insecure Content")
0347 label2.text: i18n("By default, HTTPS pages cannot run JavaScript, CSS, plugins or web-sockets from HTTP URLs.")
0348
0349 Switch
0350 {
0351 Layout.fillHeight: true
0352 checkable: true
0353 checked: appSettings.allowRunningInsecureContent
0354 onToggled: appSettings.allowRunningInsecureContent = ! appSettings.allowRunningInsecureContent
0355 }
0356 }
0357
0358
0359 Maui.SectionItem
0360 {
0361 label1.text: i18n("DNS Prefetch Enabled")
0362 label2.text: i18n("Enables speculative prefetching of DNS records for HTML links before they are activated.")
0363
0364 Switch
0365 {
0366 Layout.fillHeight: true
0367 checkable: true
0368 checked: appSettings.dnsPrefetchEnabled
0369 onToggled: appSettings.dnsPrefetchEnabled = ! appSettings.dnsPrefetchEnabled
0370 }
0371 }
0372
0373 Maui.SectionItem
0374 {
0375 label1.text: i18n("Local Content Can Access File Urls")
0376 label2.text: i18n("Allows locally loaded documents to access other local URLs.")
0377
0378 Switch
0379 {
0380 Layout.fillHeight: true
0381 checkable: true
0382 checked: appSettings.localContentCanAccessFileUrls
0383 onToggled: appSettings.localContentCanAccessFileUrls = ! appSettings.localContentCanAccessFileUrls
0384 }
0385 }
0386
0387 Maui.SectionItem
0388 {
0389 label1.text: i18n("Local Content Can Access Remote Urls")
0390 label2.text: i18n("Allows locally loaded documents to access remote URLs.")
0391
0392 Switch
0393 {
0394 Layout.fillHeight: true
0395 checkable: true
0396 checked: appSettings.localContentCanAccessRemoteUrls
0397 onToggled: appSettings.localContentCanAccessRemoteUrls = ! appSettings.localContentCanAccessRemoteUrls
0398 }
0399 }
0400
0401 Maui.SectionItem
0402 {
0403 label1.text: i18n("Local Storage")
0404 label2.text: i18n("Enables support for the HTML 5 local storage feature.")
0405
0406 Switch
0407 {
0408 Layout.fillHeight: true
0409 checkable: true
0410 checked: appSettings.localStorageEnabled
0411 onToggled: appSettings.localStorageEnabled = ! appSettings.localStorageEnabled
0412 }
0413 }
0414
0415 Maui.SectionItem
0416 {
0417 label1.text: i18n("WebRTC Public Interfaces Only")
0418 label2.text: i18n("Limits WebRTC to public IP addresses only. When disabled WebRTC may also use local network IP addresses, but remote hosts can also see your local network IP address.")
0419
0420 Switch
0421 {
0422 Layout.fillHeight: true
0423 checkable: true
0424 checked: appSettings.webRTCPublicInterfacesOnly
0425 onToggled: appSettings.webRTCPublicInterfacesOnly = ! appSettings.webRTCPublicInterfacesOnly
0426 }
0427 }
0428 }
0429 }
0430 }
0431 }