2012-02-07 04:32:15 +01:00
|
|
|
HotkeyListLabel < UILabel
|
|
|
|
font: verdana-11px-monochrome
|
|
|
|
background-color: alpha
|
|
|
|
text-offset: 2 0
|
|
|
|
focusable: true
|
|
|
|
phantom: false
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
$focus:
|
|
|
|
background-color: #ffffff22
|
|
|
|
|
|
|
|
MainWindow
|
|
|
|
id: hotkeysWindow
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Hotkeys')
|
2012-02-07 04:32:15 +01:00
|
|
|
size: 340 460
|
|
|
|
|
2012-07-24 07:30:08 +02:00
|
|
|
@onEnter: hide()
|
|
|
|
@onEscape: hide()
|
2012-02-07 04:32:15 +01:00
|
|
|
|
2012-02-20 03:27:08 +01:00
|
|
|
Label
|
2012-02-07 04:32:15 +01:00
|
|
|
id: currentHotkeysLabel
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Current hotkeys:')
|
2012-02-07 04:32:15 +01:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: parent.top
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-24 05:19:01 +02:00
|
|
|
VerticalScrollBar
|
|
|
|
id: currentHotkeysScrollBar
|
|
|
|
height: 150
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.right: parent.right
|
|
|
|
step: 14
|
|
|
|
pixels-scroll: true
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
TextList
|
|
|
|
id: currentHotkeys
|
2012-07-24 07:30:08 +02:00
|
|
|
vertical-scrollbar: currentHotkeysScrollBar
|
2012-02-07 04:32:15 +01:00
|
|
|
anchors.left: parent.left
|
2012-04-24 05:19:01 +02:00
|
|
|
anchors.right: prev.left
|
|
|
|
anchors.top: prev.top
|
|
|
|
anchors.bottom: prev.bottom
|
2012-02-07 04:32:15 +01:00
|
|
|
margin-top: 2
|
|
|
|
padding: 1
|
|
|
|
focusable: false
|
2012-02-20 03:27:08 +01:00
|
|
|
|
|
|
|
Label
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Manage hotkeys:')
|
2012-02-07 04:32:15 +01:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
2012-02-20 03:27:08 +01:00
|
|
|
margin-top: 10
|
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
Button
|
|
|
|
id: addHotkey
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Add')
|
2012-02-07 04:32:15 +01:00
|
|
|
width: 64
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 2
|
2012-07-24 07:30:08 +02:00
|
|
|
@onClick: addHotkey()
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
Button
|
|
|
|
id: removeHotkey
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Remove')
|
2012-02-07 04:32:15 +01:00
|
|
|
width: 64
|
|
|
|
enabled: false
|
|
|
|
anchors.left: prev.right
|
|
|
|
anchors.top: prev.top
|
|
|
|
margin-left: 10
|
2012-07-24 07:30:08 +02:00
|
|
|
@onClick: removeHotkey()
|
2012-02-20 03:27:08 +01:00
|
|
|
|
|
|
|
Label
|
2012-02-07 04:32:15 +01:00
|
|
|
id: hotKeyTextLabel
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Edit hotkey text:')
|
2012-02-07 04:32:15 +01:00
|
|
|
enable: false
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
2012-02-20 03:27:08 +01:00
|
|
|
margin-top: 20
|
|
|
|
|
2012-03-31 15:43:01 +02:00
|
|
|
TextEdit
|
2012-02-07 04:32:15 +01:00
|
|
|
id: hotkeyText
|
|
|
|
enabled: false
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-bottom: 2
|
2012-07-24 07:30:08 +02:00
|
|
|
@onTextChange: onHotkeyTextChange(self:getId(), self:getText())
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
CheckBox
|
|
|
|
id: sendAutomatically
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Send automatically')
|
2012-02-07 04:32:15 +01:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
enabled:false
|
|
|
|
margin-top: 10
|
2012-07-24 07:30:08 +02:00
|
|
|
@onCheckChange: setSendAutomatically(self:isChecked())
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
Item
|
|
|
|
id: itemPreview
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 10
|
|
|
|
virtual: true
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
Button
|
|
|
|
id: selectObjectButton
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Select object')
|
2012-02-07 04:32:15 +01:00
|
|
|
width: 128
|
|
|
|
enabled: false
|
|
|
|
anchors.left: prev.right
|
|
|
|
anchors.top: prev.top
|
|
|
|
margin-left: 10
|
2012-07-24 07:30:08 +02:00
|
|
|
@onClick: startChooseItem()
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
Button
|
|
|
|
id: clearObjectButton
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Clear object')
|
2012-02-07 04:32:15 +01:00
|
|
|
width: 128
|
|
|
|
enabled: false
|
|
|
|
anchors.left: prev.left
|
|
|
|
anchors.right: prev.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 2
|
2012-07-24 07:30:08 +02:00
|
|
|
@onClick: clearObject()
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
ButtonBox
|
|
|
|
id: useOnSelf
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Use on yourself')
|
2012-02-07 04:32:15 +01:00
|
|
|
width: 128
|
|
|
|
enabled: false
|
|
|
|
anchors.left: selectObjectButton.right
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: selectObjectButton.top
|
|
|
|
checked: false
|
|
|
|
margin-left: 10
|
2012-07-24 07:30:08 +02:00
|
|
|
@onCheckChange: changeUseType(HOTKEY_MANAGER_USEONSELF, self:isChecked())
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
ButtonBox
|
|
|
|
id: useOnTarget
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Use on target')
|
2012-02-07 04:32:15 +01:00
|
|
|
width: 128
|
|
|
|
enabled: false
|
|
|
|
anchors.left: prev.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
checked: false
|
|
|
|
margin-top: 2
|
2012-07-24 07:30:08 +02:00
|
|
|
@onCheckChange: changeUseType(HOTKEY_MANAGER_USEONTARGET, self:isChecked())
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
ButtonBox
|
|
|
|
id: useWith
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('With crosshair')
|
2012-02-07 04:32:15 +01:00
|
|
|
width: 128
|
|
|
|
enabled: false
|
|
|
|
anchors.left: prev.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
checked: false
|
|
|
|
margin-top: 2
|
2012-07-24 07:30:08 +02:00
|
|
|
@onCheckChange: changeUseType(HOTKEY_MANAGER_USEWITH, self:isChecked())
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
Button
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Close')
|
2012-02-07 04:32:15 +01:00
|
|
|
width: 64
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
2012-07-24 07:30:08 +02:00
|
|
|
@onClick: hide()
|