Warning, /multimedia/kdenlive/src/effects/effectstack/view/qml/BuiltStack.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2018 Jean-Baptiste Mardelle <jb@kdenlive.org>
0003     SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0004 */
0005 
0006 import QtQuick 2.15
0007 import QtQuick.Controls 2.15
0008 import QtQuick.Layouts 1.15
0009 
0010 Rectangle {
0011     id: root
0012     objectName: "builtinstack"
0013 
0014     signal valueChanged(string text, int val)
0015     //signal parameterChanged(string effectId, string paramName, double val)
0016 
0017     SystemPalette { id: activePalette }
0018     color: activePalette.window
0019 
0020     signal clipClicked()
0021 
0022     FontMetrics {
0023         id: fontMetrics
0024         font.family: "Arial"
0025     }
0026 
0027 
0028     ColumnLayout {
0029         anchors.left: parent.left
0030         anchors.right: parent.right
0031         EffectSlider {
0032             id: slider1
0033             sliderIcon: 'speedometer'
0034             sliderLabel: i18n("Speed")
0035             paramName: 'speed'
0036             slider_max: 300
0037             slider_def: 100
0038         }
0039         LiftGammaGain {
0040             id: color_correct
0041         }
0042     }
0043 
0044     function resetStack() {
0045         color_correct.loadWheels()
0046     }
0047 
0048     function setSpeed(speed) {
0049         if (speed == 0) {
0050             speed = 100;
0051         }
0052         slider1.setValue(speed)
0053     }
0054 }