"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/qml/filters/richtext/vui.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.

vui.qml  (shotcut-20.09.01):vui.qml  (shotcut-20.09.13)
skipping to change at line 45 skipping to change at line 45
property string middleValue: '_shotcut:middleValue' property string middleValue: '_shotcut:middleValue'
property string endValue: '_shotcut:endValue' property string endValue: '_shotcut:endValue'
property string sizeProperty: '_shotcut:size' property string sizeProperty: '_shotcut:size'
property bool smallIcons: settings.smallIcons property bool smallIcons: settings.smallIcons
Component.onCompleted: { Component.onCompleted: {
setRectangleControl() setRectangleControl()
filter.set('_hide', 1) filter.set('_hide', 1)
background.color = filter.get('bgcolour') background.color = filter.get('bgcolour')
textArea.text = filter.get('html') textArea.text = filter.get('html')
fontSizeSpinBox.value = document.fontSize
} }
function getPosition() { function getPosition() {
return Math.max(producer.position - (filter.in - producer.in), 0) return Math.max(producer.position - (filter.in - producer.in), 0)
} }
function setRectangleControl() { function setRectangleControl() {
if (blockUpdate) return if (blockUpdate) return
var position = getPosition() var position = getPosition()
var newValue = filter.getRect(rectProperty, position) var newValue = filter.getRect(rectProperty, position)
skipping to change at line 177 skipping to change at line 178
ToolButton { ToolButton {
id: hiddenButton id: hiddenButton
visible: false visible: false
} }
ToolButton { ToolButton {
action: menuAction action: menuAction
implicitWidth: smallIcons? 18 : hiddenButton.implicitWid th implicitWidth: smallIcons? 18 : hiddenButton.implicitWid th
implicitHeight: implicitWidth implicitHeight: implicitWidth
} }
ToolButton { ToolButton {
action: alignLeftAction
implicitWidth: smallIcons? 18 : hiddenButton.implicitWid
th
implicitHeight: implicitWidth
}
ToolButton {
action: alignCenterAction
implicitWidth: smallIcons? 18 : hiddenButton.implicitWid
th
implicitHeight: implicitWidth
}
ToolButton {
action: alignRightAction
implicitWidth: smallIcons? 18 : hiddenButton.implicitWid
th
implicitHeight: implicitWidth
}
ToolButton {
action: alignJustifyAction
implicitWidth: smallIcons? 18 : hiddenButton.implicitWid
th
implicitHeight: implicitWidth
}
Button { // separator
enabled: false
implicitWidth: 2
implicitHeight: smallIcons? 14 : (hiddenButton.implicitH
eight - 8)
}
ToolButton {
action: boldAction action: boldAction
implicitWidth: smallIcons? 18 : hiddenButton.implicitWid th implicitWidth: smallIcons? 18 : hiddenButton.implicitWid th
implicitHeight: implicitWidth implicitHeight: implicitWidth
} }
ToolButton { ToolButton {
action: italicAction action: italicAction
implicitWidth: smallIcons? 18 : hiddenButton.implicitWid th implicitWidth: smallIcons? 18 : hiddenButton.implicitWid th
implicitHeight: implicitWidth implicitHeight: implicitWidth
} }
ToolButton { ToolButton {
skipping to change at line 229 skipping to change at line 205
implicitHeight: smallIcons? 14 : (hiddenButton.implicitH eight - 8) implicitHeight: smallIcons? 14 : (hiddenButton.implicitH eight - 8)
} }
ToolButton { ToolButton {
action: fontFamilyAction action: fontFamilyAction
implicitWidth: smallIcons? 18 : hiddenButton.implicitWid th implicitWidth: smallIcons? 18 : hiddenButton.implicitWid th
implicitHeight: implicitWidth implicitHeight: implicitWidth
} }
SpinBox { SpinBox {
id: fontSizeSpinBox id: fontSizeSpinBox
ToolTip { text: qsTr('Text size') } ToolTip { text: qsTr('Text size') }
activeFocusOnPress: true
implicitWidth: 50 implicitWidth: 50
value: 0 value: 0
maximumValue: Math.pow(2, 31) maximumValue: Math.pow(2, 31)
property bool blockValue: false property bool blockValue: false
onValueChanged: if (!blockValue) document.fontSize = val onValueChanged: {
ue if (!blockValue) {
blockValue = true
document.fontSize = value
blockValue = false
}
}
} }
ToolButton { ToolButton {
id: colorButton id: colorButton
tooltip: qsTr('Text color') tooltip: qsTr('Text color')
implicitWidth: toolbar.height - 4 implicitWidth: toolbar.height - 4
implicitHeight: implicitWidth implicitHeight: implicitWidth
property var color : document.textColor property var color : document.textColor
Rectangle { Rectangle {
id: colorRect id: colorRect
anchors.fill: parent anchors.fill: parent
skipping to change at line 261 skipping to change at line 242
colorDialog.color = document.textColor colorDialog.color = document.textColor
colorDialog.open() colorDialog.open()
} }
} }
Button { // separator Button { // separator
enabled: false enabled: false
implicitWidth: 2 implicitWidth: 2
implicitHeight: smallIcons? 14 : (hiddenButton.implicitH eight - 8) implicitHeight: smallIcons? 14 : (hiddenButton.implicitH eight - 8)
} }
ToolButton { ToolButton {
action: alignLeftAction
implicitWidth: smallIcons? 18 : hiddenButton.implicitWid
th
implicitHeight: implicitWidth
}
ToolButton {
action: alignCenterAction
implicitWidth: smallIcons? 18 : hiddenButton.implicitWid
th
implicitHeight: implicitWidth
}
ToolButton {
action: alignRightAction
implicitWidth: smallIcons? 18 : hiddenButton.implicitWid
th
implicitHeight: implicitWidth
}
ToolButton {
action: alignJustifyAction
implicitWidth: smallIcons? 18 : hiddenButton.implicitWid
th
implicitHeight: implicitWidth
}
ToolButton {
action: decreaseIndentAction action: decreaseIndentAction
implicitWidth: smallIcons? 18 : hiddenButton.implicitWid th implicitWidth: smallIcons? 18 : hiddenButton.implicitWid th
implicitHeight: implicitWidth implicitHeight: implicitWidth
} }
ToolButton { ToolButton {
action: increaseIndentAction action: increaseIndentAction
implicitWidth: smallIcons? 18 : hiddenButton.implicitWid th implicitWidth: smallIcons? 18 : hiddenButton.implicitWid th
implicitHeight: implicitWidth implicitHeight: implicitWidth
} }
} }
skipping to change at line 324 skipping to change at line 325
iconName: 'document-save' iconName: 'document-save'
iconSource: 'qrc:///icons/oxygen/32x32/actions/document-save.png' iconSource: 'qrc:///icons/oxygen/32x32/actions/document-save.png'
onTriggered: { onTriggered: {
fileDialog.selectExisting = false fileDialog.selectExisting = false
fileDialog.open() fileDialog.open()
} }
} }
Action { Action {
id: menuAction id: menuAction
tooltip: qsTr('Menu') tooltip: qsTr('Menu')
iconName: 'format-justify-fill' iconName: 'show-menu'
iconSource: 'qrc:///icons/oxygen/32x32/actions/format-justify-fill.png' iconSource: 'qrc:///icons/oxygen/32x32/actions/show-menu.png'
onTriggered: menu.popup() onTriggered: menu.popup()
} }
Action { Action {
id: undoAction id: undoAction
text: qsTr('Undo') text: qsTr('Undo')
shortcut: 'ctrl+z' shortcut: 'ctrl+z'
iconName: 'edit-undo' iconName: 'edit-undo'
iconSource: 'qrc:///icons/oxygen/32x32/actions/edit-undo.png' iconSource: 'qrc:///icons/oxygen/32x32/actions/edit-undo.png'
onTriggered: textArea.undo() onTriggered: textArea.undo()
} }
skipping to change at line 444 skipping to change at line 445
onTriggered: document.underline = !document.underline onTriggered: document.underline = !document.underline
checkable: true checkable: true
checked: document.underline checked: document.underline
} }
Action { Action {
id: fontFamilyAction id: fontFamilyAction
text: qsTr('Font') text: qsTr('Font')
iconName: 'font' iconName: 'font'
iconSource: 'qrc:///icons/oxygen/32x32/actions/font.png' iconSource: 'qrc:///icons/oxygen/32x32/actions/font.png'
onTriggered: { onTriggered: {
fontDialog.currentFont.family = document.fontFamily fontDialog.font.family = document.fontFamily
fontDialog.currentFont.pointSize = document.fontSize fontDialog.font.pointSize = document.fontSize
fontDialog.open() fontDialog.open()
} }
} }
Action { Action {
id: insertTableAction id: insertTableAction
text: qsTr('Insert Table') text: qsTr('Insert Table')
iconName: 'view-grid' iconName: 'view-grid'
iconSource: 'qrc:///icons/oxygen/32x32/actions/view-grid.png' iconSource: 'qrc:///icons/oxygen/32x32/actions/view-grid.png'
onTriggered: tableDialog.open() onTriggered: tableDialog.open()
} }
skipping to change at line 473 skipping to change at line 474
Action { Action {
id: increaseIndentAction id: increaseIndentAction
text: qsTr('Insert Indent') text: qsTr('Insert Indent')
iconName: 'format-indent-more' iconName: 'format-indent-more'
iconSource: 'qrc:///icons/oxygen/32x32/actions/format-indent-more.png' iconSource: 'qrc:///icons/oxygen/32x32/actions/format-indent-more.png'
onTriggered: document.indentMore() onTriggered: document.indentMore()
} }
FileDialog { FileDialog {
id: fileDialog id: fileDialog
modality: Qt.WindowModal modality: Qt.ApplicationModal
nameFilters: ["HTML files (*.html *.htm)", "Text files (*.txt)", "All fi les (*)"] nameFilters: ["HTML files (*.html *.htm)", "Text files (*.txt)", "All fi les (*)"]
onAccepted: { onAccepted: {
if (fileDialog.selectExisting) if (fileDialog.selectExisting)
document.fileUrl = fileUrl document.fileUrl = fileUrl
else else
document.saveAs(fileUrl, selectedNameFilter) document.saveAs(fileUrl, selectedNameFilter)
} }
} }
FontDialog { FontDialog {
id: fontDialog id: fontDialog
modality: Qt.WindowModal modality: Qt.ApplicationModal
onAccepted: { onAccepted: {
document.fontFamily = font.family document.fontFamily = font.family
document.fontSize = font.pointSize document.fontSize = font.pointSize
} }
} }
ColorDialog { ColorDialog {
id: colorDialog id: colorDialog
color: 'black' color: 'black'
showAlphaChannel: true showAlphaChannel: true
modality: Qt.WindowModal modality: Qt.ApplicationModal
} }
MessageDialog { MessageDialog {
id: errorDialog id: errorDialog
modality: Qt.ApplicationModal modality: Qt.ApplicationModal
} }
Dialog { Dialog {
id: tableDialog id: tableDialog
title: qsTr('Insert Table') title: qsTr('Insert Table')
standardButtons: StandardButton.Ok | StandardButton.Cancel standardButtons: StandardButton.Ok | StandardButton.Cancel
modality: Qt.WindowModal modality: Qt.ApplicationModal
GridLayout { GridLayout {
rows: 4 rows: 4
columns: 2 columns: 2
anchors.fill: parent anchors.fill: parent
anchors.margins: 8 anchors.margins: 8
Label { Label {
text: qsTr('Rows') text: qsTr('Rows')
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
} }
skipping to change at line 563 skipping to change at line 564
RichText { RichText {
id: document id: document
target: textArea target: textArea
cursorPosition: textArea.cursorPosition cursorPosition: textArea.cursorPosition
selectionStart: textArea.selectionStart selectionStart: textArea.selectionStart
selectionEnd: textArea.selectionEnd selectionEnd: textArea.selectionEnd
textColor: colorDialog.color textColor: colorDialog.color
onTextChanged: textArea.text = text onTextChanged: textArea.text = text
onFontSizeChanged: { onFontSizeChanged: {
fontSizeSpinBox.blockValue = true if (!fontSizeSpinBox.blockValue) {
fontSizeSpinBox.value = document.fontSize fontSizeSpinBox.blockValue = true
fontSizeSpinBox.blockValue = false fontSizeSpinBox.value = document.fontSize
fontSizeSpinBox.blockValue = false
}
} }
onError: { onError: {
errorDialog.text = message errorDialog.text = message
errorDialog.visible = true errorDialog.visible = true
} }
onSizeChanged: updateTextSize() onSizeChanged: updateTextSize()
} }
Connections { Connections {
target: filter target: filter
 End of changes. 12 change blocks. 
44 lines changed or deleted 45 lines changed or added

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