"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/qml/filters/mask_shape/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 172 skipping to change at line 172
// the FileDialog onAccepted signal handler on Qt 5.5. // the FileDialog onAccepted signal handler on Qt 5.5.
signal fileOpened(string path) signal fileOpened(string path)
onFileOpened: { onFileOpened: {
settings.openPath = path settings.openPath = path
fileDialog.folder = 'file:///' + path fileDialog.folder = 'file:///' + path
} }
Shotcut.File { id: shapeFile } Shotcut.File { id: shapeFile }
FileDialog { FileDialog {
id: fileDialog id: fileDialog
modality: Qt.WindowModal modality: Qt.ApplicationModal
selectMultiple: false selectMultiple: false
selectFolder: false selectFolder: false
folder: settingsOpenPath folder: settingsOpenPath
onAccepted: { onAccepted: {
shapeFile.url = fileDialog.fileUrl shapeFile.url = fileDialog.fileUrl
filter.set('filter.resource', shapeFile.url) filter.set('filter.resource', shapeFile.url)
fileLabel.text = shapeFile.fileName fileLabel.text = shapeFile.fileName
fileLabelTip.text = shapeFile.filePath fileLabelTip.text = shapeFile.filePath
previousResourceComboIndex = resourceCombo.currentIndex previousResourceComboIndex = resourceCombo.currentIndex
alphaRadioButton.enabled = true alphaRadioButton.enabled = true
skipping to change at line 253 skipping to change at line 253
alphaRadioButton.enabled = false alphaRadioButton.enabled = false
} }
} }
} }
UndoButton { UndoButton {
onClicked: { onClicked: {
resourceCombo.currentIndex = 1 resourceCombo.currentIndex = 1
resourceCombo.updateResource(resourceCombo.currentIndex) resourceCombo.updateResource(resourceCombo.currentIndex)
} }
} }
Item { Layout.fillWidth: true } Item { width: 1 }
Item { Layout.fillWidth: true } Item { width: 1 }
Label { Label {
id: fileLabel id: fileLabel
Layout.columnSpan: 3 Layout.columnSpan: 3
ToolTip { id: fileLabelTip } ToolTip { id: fileLabelTip }
} }
Item { Layout.fillWidth: true } Item { width: 1 }
RowLayout { RowLayout {
Layout.columnSpan: 3 Layout.columnSpan: 3
CheckBox { CheckBox {
id: invertCheckBox id: invertCheckBox
text: qsTr('Invert') text: qsTr('Invert')
onClicked: filter.set('filter.invert', checked) onClicked: filter.set('filter.invert', checked)
} }
UndoButton { UndoButton {
onClicked: invertCheckBox.checked = false onClicked: invertCheckBox.checked = false
} }
Item { Layout.fillWidth: true } Item { width: 1 }
CheckBox { CheckBox {
id: reverseCheckBox id: reverseCheckBox
text: qsTr('Reverse') text: qsTr('Reverse')
visible: filter.isAtLeastVersion('2') visible: filter.isAtLeastVersion('2')
onClicked: filter.set('filter.reverse', checked) onClicked: filter.set('filter.reverse', checked)
} }
UndoButton { UndoButton {
visible: reverseCheckBox.visible visible: reverseCheckBox.visible
onClicked: reverseCheckBox.checked = false onClicked: reverseCheckBox.checked = false
} }
Item { Layout.fillWidth: true } Item { width: 1 }
} }
Label { Label {
text: qsTr('Channel') text: qsTr('Channel')
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
} }
RowLayout { RowLayout {
ExclusiveGroup { id: channelGroup } ExclusiveGroup { id: channelGroup }
RadioButton { RadioButton {
id: brightnessRadioButton id: brightnessRadioButton
skipping to change at line 309 skipping to change at line 309
RadioButton { RadioButton {
id: alphaRadioButton id: alphaRadioButton
text: qsTr('Alpha') text: qsTr('Alpha')
exclusiveGroup: channelGroup exclusiveGroup: channelGroup
onClicked: filter.set('filter.use_luminance', 0) onClicked: filter.set('filter.use_luminance', 0)
} }
} }
UndoButton { UndoButton {
onClicked: brightnessRadioButton.checked = true onClicked: brightnessRadioButton.checked = true
} }
Item { Layout.fillWidth: true } Item { width: 1 }
CheckBox { CheckBox {
id: thresholdCheckBox id: thresholdCheckBox
text: qsTr('Threshold') text: qsTr('Threshold')
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
onClicked: filter.set('filter.use_mix', checked) onClicked: filter.set('filter.use_mix', checked)
} }
SliderSpinner { SliderSpinner {
id: thresholdSlider id: thresholdSlider
minimumValue: 0 minimumValue: 0
skipping to change at line 349 skipping to change at line 349
id: softnessSlider id: softnessSlider
minimumValue: 0 minimumValue: 0
maximumValue: 100 maximumValue: 100
decimals: 2 decimals: 2
suffix: ' %' suffix: ' %'
onValueChanged: filter.set('filter.softness', value/100) onValueChanged: filter.set('filter.softness', value/100)
} }
UndoButton { UndoButton {
onClicked: softnessSlider.value = 0 onClicked: softnessSlider.value = 0
} }
Item { Layout.fillWidth: true } Item { width: 1 }
} }
function updatedSimpleAnimation() { function updatedSimpleAnimation() {
updateFilter('filter.mix', thresholdSlider.value, getPosition(), thresho ldKeyframesButton) updateFilter('filter.mix', thresholdSlider.value, getPosition(), thresho ldKeyframesButton)
} }
Connections { Connections {
target: filter target: filter
onInChanged: updatedSimpleAnimation() onInChanged: updatedSimpleAnimation()
 End of changes. 9 change blocks. 
9 lines changed or deleted 9 lines changed or added

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