Warning, /maui/index-fm/src/widgets/views/DisksSection.qml is written in an unsupported language. File is not indexed.
0001 // Copyright 2018-2020 Camilo Higuita <milo.h@aol.com>
0002 // Copyright 2018-2020 Slike Latinoamericana S.C.
0003 //
0004 // SPDX-License-Identifier: GPL-3.0-or-later
0005
0006
0007 import QtQuick 2.14
0008 import QtQuick.Controls 2.14
0009 import QtQuick.Layouts 1.3
0010
0011 import org.mauikit.controls 1.3 as Maui
0012
0013 import org.mauikit.filebrowsing 1.0 as FB
0014
0015 Maui.SectionGroup
0016 {
0017 id: control
0018 title: i18n("Devices and Remote")
0019 description: i18n("Remote locations and devices like disks, phones and cameras")
0020
0021 Maui.GridBrowser
0022 {
0023 id: _othersGrid
0024 Layout.fillWidth: true
0025
0026 itemSize: Math.min(width * 0.3, 180)
0027 itemHeight: 180
0028
0029 model: Maui.BaseModel
0030 {
0031 list: FB.PlacesList
0032 {
0033 groups: [FB.FMList.DRIVES_PATH, FB.FMList.REMOTE_PATH]
0034 }
0035 }
0036
0037 delegate: Item
0038 {
0039 width: GridView.view.cellWidth
0040 height: GridView.view.cellHeight
0041
0042 Maui.GridBrowserDelegate
0043 {
0044 anchors.fill: parent
0045 anchors.margins: Maui.Style.space.medium
0046
0047 iconSizeHint: Maui.Style.iconSizes.huge
0048 label1.text: model.label
0049 iconSource: model.icon
0050 iconVisible: true
0051
0052 onClicked:
0053 {
0054 _othersGrid.currentIndex = index
0055 open(model.path)
0056 }
0057 }
0058 }
0059 }
0060 }