Warning, /maui/vvave/src/widgets/BabeTable/TableMenu.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.15 0002 import QtQuick.Controls 2.15 0003 0004 import org.mauikit.controls 1.3 as Maui 0005 0006 Maui.ContextualMenu 0007 { 0008 id: control 0009 0010 property bool fav : false 0011 property int index 0012 property var titleInfo 0013 0014 signal favClicked() 0015 signal queueClicked() 0016 signal saveToClicked() 0017 signal openWithClicked() 0018 signal editClicked() 0019 signal shareClicked() 0020 signal selectClicked() 0021 signal infoClicked() 0022 signal copyToClicked() 0023 signal deleteClicked() 0024 0025 property alias menuItem : control.contentData 0026 0027 title: control.titleInfo.title 0028 subtitle: control.titleInfo.artist 0029 titleImageSource: "image://artwork/album:"+ control.titleInfo.artist+":"+control.titleInfo.album 0030 0031 Maui.MenuItemActionRow 0032 { 0033 Action 0034 { 0035 text: !fav ? i18n("Fav it"): i18n("UnFav it") 0036 checked: control.fav 0037 checkable: true 0038 icon.name: "love" 0039 onTriggered: favClicked() 0040 } 0041 0042 Action 0043 { 0044 text: i18n("Tags") 0045 icon.name: "tag" 0046 onTriggered: saveToClicked() 0047 } 0048 0049 Action 0050 { 0051 text: i18n("Edit") 0052 icon.name: "document-edit" 0053 onTriggered: 0054 { 0055 editClicked() 0056 } 0057 } 0058 0059 Action 0060 { 0061 text: i18n("Share") 0062 icon.name: "document-share" 0063 onTriggered: shareClicked() 0064 } 0065 } 0066 0067 MenuSeparator {} 0068 0069 MenuItem 0070 { 0071 text: i18n("Select") 0072 icon.name: "item-select" 0073 onTriggered: 0074 { 0075 selectionBar.addToSelection(listModel.get(control.index)) 0076 selectionMode = Maui.Handy.isTouch 0077 } 0078 } 0079 0080 MenuSeparator {} 0081 0082 MenuItem 0083 { 0084 text: i18n("Play Next") 0085 icon.name: "view-media-recent" 0086 onTriggered: 0087 { 0088 queueClicked() 0089 } 0090 } 0091 0092 MenuSeparator{} 0093 0094 0095 0096 // MenuItem 0097 // { 0098 // enabled: Maui.App.handleAccounts 0099 // text: i18n("Copy to cloud") 0100 // onTriggered: 0101 // { 0102 // copyToClicked() 0103 // close() 0104 // } 0105 // } 0106 0107 MenuItem 0108 { 0109 text: i18n("Show in Folder") 0110 icon.name: "folder-open" 0111 enabled: !Maui.Handy.isAndroid 0112 onTriggered: 0113 { 0114 openWithClicked() 0115 } 0116 } 0117 0118 MenuSeparator {} 0119 0120 0121 0122 // Maui.MenuItem 0123 // { 0124 // text: i18n("Info...") 0125 // onTriggered: 0126 // { 0127 // infoClicked() 0128 // close() 0129 // } 0130 // } 0131 0132 0133 MenuItem 0134 { 0135 text: i18n("Delete") 0136 icon.name: "edit-delete" 0137 Maui.Theme.textColor: Maui.Theme.negativeTextColor 0138 onTriggered: 0139 { 0140 deleteClicked() 0141 } 0142 } 0143 }