add general and log config uis
This commit is contained in:
parent
989fec93c1
commit
7f6f01b5f2
4 changed files with 267 additions and 0 deletions
|
@ -36,6 +36,16 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MenuItem {
|
||||||
|
id: configMenuItem
|
||||||
|
text: "Configuration"
|
||||||
|
onClicked: {
|
||||||
|
var component = Qt.createComponent("./Views/Configuration.qml")
|
||||||
|
var configWindow = component.createObject(window)
|
||||||
|
configWindow.show()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
MenuSeparator{}
|
MenuSeparator{}
|
||||||
|
|
||||||
MenuItem {
|
MenuItem {
|
||||||
|
|
117
Ryujinx.UI/UI/Views/Configuration.qml
Normal file
117
Ryujinx.UI/UI/Views/Configuration.qml
Normal file
|
@ -0,0 +1,117 @@
|
||||||
|
import QtQuick 2.4
|
||||||
|
import QtQuick.Window 2.11
|
||||||
|
import QtQuick.Layouts 1.3
|
||||||
|
import QtQuick.Templates 2.4
|
||||||
|
import QtQuick.Controls 2.3
|
||||||
|
|
||||||
|
Window {
|
||||||
|
id: configWindow
|
||||||
|
width: 640
|
||||||
|
height: 480
|
||||||
|
color: "#f0efef"
|
||||||
|
title: "Configuration"
|
||||||
|
modality: Qt.ApplicationModal
|
||||||
|
|
||||||
|
Column{
|
||||||
|
spacing: 10
|
||||||
|
id: contentColumn
|
||||||
|
height: configWindow.height
|
||||||
|
width: configWindow.width
|
||||||
|
|
||||||
|
TabBar {
|
||||||
|
id: configTabs
|
||||||
|
currentIndex: 0
|
||||||
|
height: 50
|
||||||
|
width: parent.width
|
||||||
|
|
||||||
|
TabButton {
|
||||||
|
width: 80
|
||||||
|
height: 50
|
||||||
|
text: qsTr("General")
|
||||||
|
checked: true
|
||||||
|
}
|
||||||
|
|
||||||
|
/*TabButton {
|
||||||
|
text: qsTr("Controls")
|
||||||
|
}*/
|
||||||
|
|
||||||
|
TabButton {
|
||||||
|
x: 80
|
||||||
|
y: 0
|
||||||
|
width: 80
|
||||||
|
text: qsTr("Misc")
|
||||||
|
checked: false
|
||||||
|
height: 50
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
StackLayout {
|
||||||
|
id: pagesView
|
||||||
|
currentIndex: configTabs.currentIndex
|
||||||
|
width: contentColumn.width
|
||||||
|
height: contentColumn.height
|
||||||
|
- configTabs.height
|
||||||
|
- bottomRow.height
|
||||||
|
- (contentColumn.spacing * 3)
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: genConfigPage
|
||||||
|
|
||||||
|
Loader {
|
||||||
|
source: "./GeneralSettings.qml"
|
||||||
|
|
||||||
|
width: pagesView.width
|
||||||
|
height: pagesView.height
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: miscConfigPage
|
||||||
|
|
||||||
|
Loader {
|
||||||
|
source: "./MiscSettings.qml"
|
||||||
|
width: pagesView.width
|
||||||
|
height: pagesView.height
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*onIndexChanged: {
|
||||||
|
if(currentIndex !== configContent.currentIndex){
|
||||||
|
configContent.currentIndex = currentIndex
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
}
|
||||||
|
|
||||||
|
Row {
|
||||||
|
spacing: 20
|
||||||
|
id: bottomRow
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: 55
|
||||||
|
|
||||||
|
Button{
|
||||||
|
id: acceptButton
|
||||||
|
width: 80
|
||||||
|
height: 20
|
||||||
|
text: "OK"
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
|
||||||
|
configWindow.close()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Button{
|
||||||
|
id: cancelButton
|
||||||
|
width: 80
|
||||||
|
height: 20
|
||||||
|
text: "Cancel"
|
||||||
|
visible: true
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
|
||||||
|
configWindow.close()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
48
Ryujinx.UI/UI/Views/GeneralSettings.qml
Normal file
48
Ryujinx.UI/UI/Views/GeneralSettings.qml
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
import QtQuick 2.0
|
||||||
|
import QtQuick.Controls 2.3
|
||||||
|
import QtQuick.Layouts 1.3
|
||||||
|
|
||||||
|
Frame {
|
||||||
|
id: generalSetttingsFrame
|
||||||
|
|
||||||
|
Column {
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
GroupBox {
|
||||||
|
title: qsTr("Game")
|
||||||
|
|
||||||
|
Column {
|
||||||
|
CheckBox {
|
||||||
|
id: dockedCheckBox
|
||||||
|
text: "Enable Docked Mode"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
CheckBox {
|
||||||
|
id: vsyncCheckBox
|
||||||
|
text: "Enable Ingame VSync"
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GroupBox {
|
||||||
|
title: qsTr("System")
|
||||||
|
|
||||||
|
Column {
|
||||||
|
CheckBox {
|
||||||
|
id: memoryCheckBox
|
||||||
|
text: "Enable Memory Checks"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
CheckBox {
|
||||||
|
id: multiCoreCheckBox
|
||||||
|
text: "Enable Multi-Core Scheduling"
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
92
Ryujinx.UI/UI/Views/MiscSettings.qml
Normal file
92
Ryujinx.UI/UI/Views/MiscSettings.qml
Normal file
|
@ -0,0 +1,92 @@
|
||||||
|
import QtQuick 2.0
|
||||||
|
import QtQuick.Controls 2.3
|
||||||
|
import QtQuick.Layouts 1.3
|
||||||
|
|
||||||
|
Frame {
|
||||||
|
id: miscSettingsFrame
|
||||||
|
width: 500
|
||||||
|
height: 480
|
||||||
|
Column{
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
GroupBox {
|
||||||
|
anchors.fill: parent
|
||||||
|
title: qsTr("Logging")
|
||||||
|
|
||||||
|
Column {
|
||||||
|
id: column
|
||||||
|
anchors.fill: parent
|
||||||
|
CheckBox {
|
||||||
|
id: loggingCheckBox
|
||||||
|
text: "Enable Logging"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Row {
|
||||||
|
id: row
|
||||||
|
anchors.top: loggingCheckBox.bottom
|
||||||
|
anchors.topMargin: 0
|
||||||
|
GroupBox {
|
||||||
|
id: logLevelsGroup
|
||||||
|
title: qsTr("Log Levels")
|
||||||
|
|
||||||
|
Column {
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
CheckBox {
|
||||||
|
id: debugLogCheckBox
|
||||||
|
text: "Debug"
|
||||||
|
}
|
||||||
|
|
||||||
|
CheckBox {
|
||||||
|
id: stubLogCheckBox
|
||||||
|
text: "Stub"
|
||||||
|
}
|
||||||
|
|
||||||
|
CheckBox {
|
||||||
|
id: infoLogCheckBox
|
||||||
|
text: "Info"
|
||||||
|
}
|
||||||
|
|
||||||
|
CheckBox {
|
||||||
|
id: warnLogCheckBox
|
||||||
|
text: "Warning"
|
||||||
|
}
|
||||||
|
|
||||||
|
CheckBox {
|
||||||
|
id: errorLogCheckBox
|
||||||
|
text: "Error"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GroupBox {
|
||||||
|
id: groupBox
|
||||||
|
anchors.left: logLevelsGroup.right
|
||||||
|
anchors.leftMargin: 0
|
||||||
|
title: qsTr("Log Classes")
|
||||||
|
width: Math.min(200, column.width - logLevelsGroup.width) - 20
|
||||||
|
height: logLevelsGroup.height
|
||||||
|
|
||||||
|
Column {
|
||||||
|
id: column1
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
TextArea {
|
||||||
|
id: logClassesTextArea
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*##^## Designer {
|
||||||
|
D{i:29;anchors_height:-243;anchors_width:-111}D{i:4;anchors_height:0;anchors_width:0}
|
||||||
|
}
|
||||||
|
##^##*/
|
Loading…
Add table
Add a link
Reference in a new issue