Warning, /maui/index-fm/src/widgets/previewer/PreviewerDialog.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.14
0002 import QtQuick.Controls 2.14
0003 import QtQuick.Layouts 1.3
0004
0005 import org.mauikit.controls 1.3 as Maui
0006
0007 import org.mauikit.filebrowsing 1.3 as FB
0008
0009
0010 Maui.PopupPage
0011 {
0012 title: _previewer.title
0013 readonly property alias previewer : _previewer
0014 hint: 1
0015 maxWidth: 800
0016 maxHeight: implicitHeight
0017 stack: FilePreviewer
0018 {
0019 id: _previewer
0020 Layout.fillWidth: true
0021 Layout.fillHeight: true
0022 }
0023
0024 footBar.leftContent: Maui.ToolActions
0025 {
0026 visible: !Maui.Handy.isMobile
0027 expanded: true
0028 autoExclusive: false
0029 checkable: false
0030 display: ToolButton.IconOnly
0031
0032 Action
0033 {
0034 text: i18n("Previous")
0035 icon.name: "go-previous"
0036 onTriggered : _previewer.goPrevious()
0037 }
0038
0039 Action
0040 {
0041 text: i18n("Next")
0042 icon.name: "go-next"
0043 onTriggered: _previewer.goNext()
0044 }
0045 }
0046
0047 footBar.rightContent: Button
0048 {
0049 text: i18n("Open")
0050 icon.name: "document-open"
0051 // flat: true
0052 onClicked:
0053 {
0054 FB.FM.openUrl(_previewer.currentUrl)
0055 }
0056 }
0057
0058 headBar.rightContent: ToolButton
0059 {
0060 icon.name: "documentinfo"
0061 checkable: true
0062 checked: _previewer.showInfo
0063 onClicked: _previewer.toggleInfo()
0064 }
0065 }