Warning, /plasma/latte-dock/containment/package/contents/ui/applet/communicator/Actions.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2018 Michail Vourlakos <mvourlakos@gmail.com> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 import QtQuick 2.7 0007 0008 import org.kde.latte.core 0.2 as LatteCore 0009 0010 Item{ 0011 function setProperty(appletId, parameter, value) { 0012 if (parameter === "latteSideColoringEnabled") { 0013 mainCommunicator.requires.latteSideColoringEnabled = value; 0014 } else if (parameter === "activeIndicatorEnabled") { 0015 mainCommunicator.requires.activeIndicatorEnabled = value; 0016 } else if (parameter === "lengthMarginsEnabled") { 0017 mainCommunicator.requires.lengthMarginsEnabled = value; 0018 } else if (parameter === "parabolicEffectLocked") { 0019 mainCommunicator.requires.parabolicEffectLocked = value; 0020 } else if (parameter === "screenEdgeMarginSupported") { 0021 mainCommunicator.requires.screenEdgeMarginSupported = value; 0022 } else if (parameter === "windowsTrackingEnabled") { 0023 mainCommunicator.requires.windowsTrackingEnabled = value; 0024 } 0025 } 0026 0027 function getProperty(appletId, parameter) { 0028 if (parameter === "latteSideColoringEnabled") { 0029 return mainCommunicator.requires.latteSideColoringEnabled; 0030 } else if (parameter === "activeIndicatorEnabled") { 0031 return mainCommunicator.requires.activeIndicatorEnabled; 0032 } else if (parameter === "lengthMarginsEnabled") { 0033 return mainCommunicator.requires.lengthMarginsEnabled; 0034 } else if (parameter === "parabolicEffectLocked") { 0035 return mainCommunicator.requires.parabolicEffectLocked; 0036 } else if (parameter === "screenEdgeMarginSupported") { 0037 return mainCommunicator.requires.screenEdgeMarginSupported; 0038 } else if (parameter === "windowsTrackingEnabled") { 0039 return mainCommunicator.requires.windowsTrackingEnabled; 0040 } 0041 0042 return null; 0043 } 0044 0045 0046 //! USAGE: send message to <pluginName>, for <action> command and set its property to <value> 0047 //! EXPLANATION: applets can send messages/commands to other applets 0048 //! in order to communicate with each other 0049 function broadcastToApplet(receiverPluginId, action, value) { 0050 root.broadcastedToApplet(receiverPluginId, action, value); 0051 } 0052 0053 function version(major, minor, patch) { 0054 return LatteCore.Environment.makeVersion(major, minor, patch) 0055 } 0056 }