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
|
|
|
|
text: Hotkeys
|
|
|
|
size: 340 460
|
|
|
|
|
|
|
|
@onEnter: HotkeysManager.hide()
|
|
|
|
@onEscape: HotkeysManager.hide()
|
|
|
|
|
2012-02-20 03:27:08 +01:00
|
|
|
Label
|
2012-02-07 04:32:15 +01:00
|
|
|
id: currentHotkeysLabel
|
|
|
|
text: Current hotkeys:
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: parent.top
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
TextList
|
|
|
|
id: currentHotkeys
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
height: 150
|
|
|
|
margin-top: 2
|
|
|
|
padding: 1
|
|
|
|
focusable: false
|
2012-02-20 03:27:08 +01:00
|
|
|
|
|
|
|
Label
|
2012-02-07 04:32:15 +01:00
|
|
|
text: Manage hotkeys:
|
|
|
|
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
|
|
|
|
text: Add
|
|
|
|
width: 64
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 2
|
|
|
|
@onClick: HotkeysManager.addHotkey()
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
Button
|
|
|
|
id: removeHotkey
|
|
|
|
text: Remove
|
|
|
|
width: 64
|
|
|
|
enabled: false
|
|
|
|
anchors.left: prev.right
|
|
|
|
anchors.top: prev.top
|
|
|
|
margin-left: 10
|
|
|
|
@onClick: HotkeysManager.removeHotkey()
|
2012-02-20 03:27:08 +01:00
|
|
|
|
|
|
|
Label
|
2012-02-07 04:32:15 +01:00
|
|
|
id: hotKeyTextLabel
|
|
|
|
text: Edit hotkey text:
|
|
|
|
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-02-07 04:32:15 +01:00
|
|
|
LineEdit
|
|
|
|
id: hotkeyText
|
|
|
|
enabled: false
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-bottom: 2
|
|
|
|
@onTextChange: HotkeysManager.onHotkeyTextChange(self:getId(), self:getText())
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
CheckBox
|
|
|
|
id: sendAutomatically
|
|
|
|
text: Send automatically
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
enabled:false
|
|
|
|
margin-top: 10
|
|
|
|
@onCheckChange: HotkeysManager.sendAutomatically(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
|
|
|
|
text: Select object
|
|
|
|
width: 128
|
|
|
|
enabled: false
|
|
|
|
anchors.left: prev.right
|
|
|
|
anchors.top: prev.top
|
|
|
|
margin-left: 10
|
|
|
|
@onClick: HotkeysManager.startChooseItem()
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
Button
|
|
|
|
id: clearObjectButton
|
|
|
|
text: Clear object
|
|
|
|
width: 128
|
|
|
|
enabled: false
|
|
|
|
anchors.left: prev.left
|
|
|
|
anchors.right: prev.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 2
|
|
|
|
@onClick: HotkeysManager.clearObject()
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
ButtonBox
|
|
|
|
id: useOnSelf
|
|
|
|
text: Use on yourself
|
|
|
|
width: 128
|
|
|
|
enabled: false
|
|
|
|
anchors.left: selectObjectButton.right
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: selectObjectButton.top
|
|
|
|
checked: false
|
|
|
|
margin-left: 10
|
|
|
|
@onCheckChange: HotkeysManager.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
|
|
|
|
text: Use on target
|
|
|
|
width: 128
|
|
|
|
enabled: false
|
|
|
|
anchors.left: prev.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
checked: false
|
|
|
|
margin-top: 2
|
|
|
|
@onCheckChange: HotkeysManager.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
|
|
|
|
text: With crosshair
|
|
|
|
width: 128
|
|
|
|
enabled: false
|
|
|
|
anchors.left: prev.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
checked: false
|
|
|
|
margin-top: 2
|
|
|
|
@onCheckChange: HotkeysManager.changeUseType(HOTKEY_MANAGER_USEWITH, self:isChecked())
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-07 04:32:15 +01:00
|
|
|
Button
|
|
|
|
text: Close
|
|
|
|
width: 64
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
@onClick: HotkeysManager.hide()
|