2012-03-25 16:10:15 +02:00
|
|
|
Panel
|
|
|
|
OptionCheckBox
|
|
|
|
id: vsync
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Enable vertical synchronization')
|
|
|
|
!tooltip: tr('Limits FPS to 60')
|
2012-03-25 16:10:15 +02:00
|
|
|
|
|
|
|
OptionCheckBox
|
|
|
|
id: showfps
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Show frame rate')
|
2012-03-25 16:10:15 +02:00
|
|
|
|
|
|
|
OptionCheckBox
|
|
|
|
id: fullscreen
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Fullscreen')
|
2012-03-25 16:10:15 +02:00
|
|
|
|
|
|
|
Label
|
2012-06-01 21:39:09 +02:00
|
|
|
id: backgroundFrameRateLimitLabel
|
|
|
|
!text: tr('Background pane framerate limit: %s', 'max')
|
2012-03-25 16:10:15 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 6
|
|
|
|
|
|
|
|
HorizontalScrollBar
|
2012-06-01 21:39:09 +02:00
|
|
|
id: backgroundFrameRateScrollBar
|
2012-03-25 16:10:15 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 3
|
2012-06-01 21:39:09 +02:00
|
|
|
minimum: 10
|
|
|
|
maximum: 201
|
|
|
|
value: 201
|
2012-03-25 16:10:15 +02:00
|
|
|
step: 1
|
2012-06-01 21:39:09 +02:00
|
|
|
@onValueChange: |
|
|
|
|
local value = self:getValue()
|
|
|
|
local text = value
|
|
|
|
if value == self:getMaximum() then
|
|
|
|
text = 'max'
|
|
|
|
value = 0
|
|
|
|
end
|
|
|
|
|
|
|
|
self:getParent():getChildById('backgroundFrameRateLimitLabel'):setText(tr('Background pane framerate limit: %s', text))
|
|
|
|
g_app.setBackgroundPaneMaxFps(value)
|
|
|
|
|
|
|
|
Label
|
|
|
|
id: foregroundFrameRateLimitLabel
|
|
|
|
!text: tr('Foreground pane framerate limit: %s', '8')
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 6
|
|
|
|
|
|
|
|
HorizontalScrollBar
|
|
|
|
id: foregroundFrameRateScrollBar
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 3
|
|
|
|
minimum: 1
|
|
|
|
maximum: 61
|
|
|
|
value: 8
|
|
|
|
step: 1
|
|
|
|
@onValueChange: |
|
|
|
|
local value = self:getValue()
|
|
|
|
local text = value
|
|
|
|
if value == self:getMaximum() then
|
|
|
|
text = 'max'
|
|
|
|
value = 0
|
|
|
|
end
|
|
|
|
|
|
|
|
self:getParent():getChildById('foregroundFrameRateLimitLabel'):setText(tr('Foreground pane framerate limit: %s', text))
|
|
|
|
g_app.setForegroundPaneMaxFps(value)
|
|
|
|
|