"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/qml/filters/levels/ui.qml" between
shotcut-20.09.01.tar.gz and shotcut-20.09.13.tar.gz

About: Shotcut is a cross-platform (Qt) advanced video editor.

ui.qml  (shotcut-20.09.01):ui.qml  (shotcut-20.09.13)
/* /*
* Copyright (c) 2018-2019 Meltytech, LLC * Copyright (c) 2018-2020 Meltytech, LLC
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
skipping to change at line 184 skipping to change at line 184
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
} }
ComboBox { ComboBox {
id: channelCombo id: channelCombo
model: [qsTr('Red'), qsTr('Green'), qsTr('Blue'), qsTr('Value')] model: [qsTr('Red'), qsTr('Green'), qsTr('Blue'), qsTr('Value')]
onCurrentIndexChanged: filter.set(channelParam, currentIndex / 10) onCurrentIndexChanged: filter.set(channelParam, currentIndex / 10)
} }
UndoButton { UndoButton {
onClicked: channelCombo.currentIndex = 3 onClicked: channelCombo.currentIndex = 3
} }
Item { Layout.fillWidth: true } Item { width: 1 }
Label { Label {
text: qsTr('Histogram') text: qsTr('Histogram')
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
} }
ComboBox { ComboBox {
id: histogramCombo id: histogramCombo
model: [qsTr('Top Left'), qsTr('Top Right'), qsTr('Bottom Left'), qs Tr('Bottom Right'), qsTr('None')] model: [qsTr('Top Left'), qsTr('Top Right'), qsTr('Bottom Left'), qs Tr('Bottom Right'), qsTr('None')]
onCurrentIndexChanged: { onCurrentIndexChanged: {
filter.set(showHistogramParam, currentIndex < 4) filter.set(showHistogramParam, currentIndex < 4)
if (currentIndex < 4) if (currentIndex < 4)
filter.set(histogramPositionParam, currentIndex / 10) filter.set(histogramPositionParam, currentIndex / 10)
} }
} }
UndoButton { UndoButton {
onClicked: histogramCombo.currentIndex = 4 onClicked: histogramCombo.currentIndex = 4
} }
Item { Layout.fillWidth: true } Item { width: 1 }
Label { Label {
text: qsTr('Input Black') text: qsTr('Input Black')
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
} }
SliderSpinner { SliderSpinner {
id: inputBlackSlider id: inputBlackSlider
minimumValue: 0 minimumValue: 0
maximumValue: 255 maximumValue: 255
decimals: 1 decimals: 1
skipping to change at line 277 skipping to change at line 277
} }
SliderSpinner { SliderSpinner {
id: outputBlackSlider id: outputBlackSlider
minimumValue: 0 minimumValue: 0
maximumValue: 255 maximumValue: 255
onValueChanged: filter.set(outputBlackParam, value / maximumValue) onValueChanged: filter.set(outputBlackParam, value / maximumValue)
} }
UndoButton { UndoButton {
onClicked: outputBlackSlider.value = 0 onClicked: outputBlackSlider.value = 0
} }
Item { Layout.fillWidth: true } Item { width: 1 }
Label { Label {
text: qsTr('Output White') text: qsTr('Output White')
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
} }
SliderSpinner { SliderSpinner {
id: outputWhiteSlider id: outputWhiteSlider
minimumValue: 0 minimumValue: 0
maximumValue: 255 maximumValue: 255
onValueChanged: filter.set(outputWhiteParam, value / maximumValue) onValueChanged: filter.set(outputWhiteParam, value / maximumValue)
} }
UndoButton { UndoButton {
onClicked: outputWhiteSlider.value = 255 onClicked: outputWhiteSlider.value = 255
} }
Item { Layout.fillWidth: true } Item { width: 1 }
Item { Item {
Layout.fillHeight: true Layout.fillHeight: true
} }
} }
function updateSimpleAnimation() { function updateSimpleAnimation() {
updateFilter(inputBlackParam, inputBlackSlider.value / inputBlackSlider. maximumValue, getPosition(), inputBlackKeyframesButton) updateFilter(inputBlackParam, inputBlackSlider.value / inputBlackSlider. maximumValue, getPosition(), inputBlackKeyframesButton)
updateFilter(inputWhiteParam, inputWhiteSlider.value / inputWhiteSlider. maximumValue, getPosition(), inputWhiteKeyframesButton) updateFilter(inputWhiteParam, inputWhiteSlider.value / inputWhiteSlider. maximumValue, getPosition(), inputWhiteKeyframesButton)
updateFilter(gammaParam, gammaSlider.value / gammaSlider.maximumValue, g etPosition(), gammaKeyframesButton) updateFilter(gammaParam, gammaSlider.value / gammaSlider.maximumValue, g etPosition(), gammaKeyframesButton)
 End of changes. 5 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)