2014-09-29 02:00:54 +02:00
|
|
|
/*******************************************************************************
|
|
|
|
* Copyright (c) 2013 "Filippo Scognamiglio"
|
|
|
|
* https://github.com/Swordfish90/cool-retro-term
|
|
|
|
*
|
|
|
|
* This file is part of cool-retro-term.
|
|
|
|
*
|
|
|
|
* cool-retro-term is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
|
|
import QtQuick 2.2
|
|
|
|
import QtQuick.Controls 1.1
|
|
|
|
import QtQuick.Layouts 1.1
|
|
|
|
|
|
|
|
Tab{
|
|
|
|
ColumnLayout{
|
|
|
|
anchors.fill: parent
|
|
|
|
GroupBox{
|
|
|
|
title: qsTr("General")
|
|
|
|
Layout.fillWidth: true
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
GridLayout{
|
|
|
|
anchors.fill: parent
|
|
|
|
rows: 2
|
|
|
|
columns: 3
|
|
|
|
CheckBox{
|
|
|
|
property int fps: checked ? slider.value : 0
|
2014-12-11 12:08:15 +01:00
|
|
|
onFpsChanged: appSettings.fps = fps
|
|
|
|
checked: appSettings.fps !== 0
|
2014-09-29 02:00:54 +02:00
|
|
|
text: qsTr("Limit FPS")
|
|
|
|
}
|
|
|
|
Slider{
|
|
|
|
id: slider
|
|
|
|
Layout.fillWidth: true
|
|
|
|
stepSize: 1
|
|
|
|
maximumValue: 60
|
|
|
|
minimumValue: 1
|
2014-12-11 12:08:15 +01:00
|
|
|
enabled: appSettings.fps !== 0
|
|
|
|
value: appSettings.fps !== 0 ? appSettings.fps : 60
|
2014-09-29 02:00:54 +02:00
|
|
|
}
|
|
|
|
Text{text: slider.value}
|
2014-09-30 00:57:57 +02:00
|
|
|
Text{text: qsTr("Texture Quality")}
|
2014-09-29 02:00:54 +02:00
|
|
|
Slider{
|
|
|
|
Layout.fillWidth: true
|
|
|
|
id: txtslider
|
2014-12-11 12:08:15 +01:00
|
|
|
onValueChanged: appSettings.window_scaling = value;
|
|
|
|
value: appSettings.window_scaling
|
2014-10-11 01:24:20 +02:00
|
|
|
stepSize: 0.10
|
|
|
|
Component.onCompleted: minimumValue = 0.3 //Without this value gets set to 0.5
|
2014-09-29 02:00:54 +02:00
|
|
|
}
|
|
|
|
Text{text: Math.round(txtslider.value * 100) + "%"}
|
|
|
|
}
|
|
|
|
}
|
2014-09-30 00:57:57 +02:00
|
|
|
GroupBox{
|
|
|
|
title: qsTr("Bloom")
|
|
|
|
Layout.fillWidth: true
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
GridLayout{
|
|
|
|
id: bloomQualityContainer
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
Text{text: qsTr("Bloom Quality")}
|
|
|
|
Slider{
|
|
|
|
Layout.fillWidth: true
|
2014-12-14 18:53:37 +01:00
|
|
|
id: bloomSlider
|
|
|
|
onValueChanged: appSettings.bloom_quality = value;
|
|
|
|
value: appSettings.bloom_quality
|
|
|
|
stepSize: 0.10
|
|
|
|
Component.onCompleted: minimumValue = 0.3 //Without this value gets set to 0.5
|
2014-09-30 00:57:57 +02:00
|
|
|
}
|
2014-12-14 18:53:37 +01:00
|
|
|
Text{text: Math.round(bloomSlider.value * 100) + "%"}
|
2014-09-30 00:57:57 +02:00
|
|
|
}
|
|
|
|
}
|
2014-12-15 02:35:13 +01:00
|
|
|
GroupBox{
|
|
|
|
title: qsTr("Motion Blur")
|
|
|
|
Layout.fillWidth: true
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
GridLayout{
|
|
|
|
id: blurQualityContainer
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
Text{text: qsTr("Blur Quality")}
|
|
|
|
Slider{
|
|
|
|
Layout.fillWidth: true
|
|
|
|
id: blurSlider
|
|
|
|
onValueChanged: appSettings.blur_quality = value;
|
|
|
|
value: appSettings.blur_quality
|
|
|
|
stepSize: 0.10
|
|
|
|
Component.onCompleted: minimumValue = 0.3 //Without this value gets set to 0.5
|
|
|
|
}
|
|
|
|
Text{text: Math.round(blurSlider.value * 100) + "%"}
|
|
|
|
}
|
|
|
|
}
|
2014-09-29 02:00:54 +02:00
|
|
|
GroupBox{
|
|
|
|
title: qsTr("Frame")
|
|
|
|
Layout.fillWidth: true
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
CheckBox{
|
2014-12-11 12:08:15 +01:00
|
|
|
checked: appSettings._frameReflections
|
2014-09-30 00:57:57 +02:00
|
|
|
text: qsTr("Frame Reflections")
|
2014-12-11 12:08:15 +01:00
|
|
|
onCheckedChanged: appSettings._frameReflections = checked
|
2014-09-29 02:00:54 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|