update additional files

update translations
add "Add lambda" button to ui
This commit is contained in:
arcan1s
2015-08-22 00:40:14 +03:00
parent 835eb00f0d
commit 29b75e2b12
18 changed files with 839 additions and 1300 deletions

View File

@ -233,7 +233,7 @@ Item {
width: parent.width
QtControls.ComboBox {
id: tags
width: parent.width - addTagButton.width - showValueButton.width
width: parent.width - addTagButton.width - showValueButton.width - addLambdaButton.width
}
QtControls.Button {
id: addTagButton
@ -263,6 +263,19 @@ Item {
awActions.sendNotification("tag", message)
}
}
QtControls.Button {
id: addLambdaButton
text: i18n("Add lambda")
onClicked: {
if (debug) console.log("[widget::onClicked] : Lambda button")
var pos = textPattern.cursorPosition
var selected = textPattern.selectedText
textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd)
textPattern.insert(pos, selected + "${{}}")
}
}
}
Row {