mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-03-23 01:56:08 -04:00
Edit configure_cpu.ui
This commit is contained in:
@@ -1,151 +1,70 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
||||||
<ui version="4.0">
|
// SPDX-FileCopyrightText: Copyright 2025 citron Emulator Project
|
||||||
<class>ConfigureCpu</class>
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
<widget class="QWidget" name="ConfigureCpu">
|
|
||||||
<property name="geometry">
|
#pragma once
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
#include <memory>
|
||||||
<y>0</y>
|
#include <vector>
|
||||||
<width>448</width>
|
#include <QString> // Added for stylesheet property
|
||||||
<height>439</height>
|
#include <QWidget>
|
||||||
</rect>
|
#include "citron/configuration/configuration_shared.h"
|
||||||
</property>
|
#include "citron/configuration/shared_translation.h"
|
||||||
<property name="windowTitle">
|
|
||||||
<string>Form</string>
|
class QComboBox;
|
||||||
</property>
|
|
||||||
<property name="accessibleName">
|
namespace Core {
|
||||||
<string>CPU</string>
|
class System;
|
||||||
</property>
|
}
|
||||||
<layout class="QVBoxLayout" name="vboxlayout_2" stretch="0">
|
|
||||||
<item>
|
namespace Ui {
|
||||||
<layout class="QVBoxLayout" name="vboxlayout">
|
class ConfigureCpu;
|
||||||
<property name="bottomMargin">
|
}
|
||||||
<number>0</number>
|
|
||||||
</property>
|
namespace ConfigurationShared {
|
||||||
<item>
|
class Builder;
|
||||||
<widget class="QGroupBox" name="groupBox">
|
}
|
||||||
<property name="title">
|
|
||||||
<string>General</string>
|
class ConfigureCpu : public ConfigurationShared::Tab {
|
||||||
</property>
|
Q_OBJECT
|
||||||
<layout class="QVBoxLayout">
|
|
||||||
<item>
|
// This property allows the main UI file to pass its stylesheet to this widget
|
||||||
<widget class="QWidget" name="widget_accuracy" native="true">
|
Q_PROPERTY(QString templateStyleSheet READ GetTemplateStyleSheet WRITE SetTemplateStyleSheet NOTIFY TemplateStyleSheetChanged)
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
|
||||||
<property name="leftMargin">
|
public:
|
||||||
<number>0</number>
|
explicit ConfigureCpu(const Core::System& system_,
|
||||||
</property>
|
std::shared_ptr<std::vector<ConfigurationShared::Tab*>> group,
|
||||||
<property name="topMargin">
|
const ConfigurationShared::Builder& builder, QWidget* parent = nullptr);
|
||||||
<number>0</number>
|
~ConfigureCpu() override;
|
||||||
</property>
|
|
||||||
<property name="rightMargin">
|
void ApplyConfiguration() override;
|
||||||
<number>0</number>
|
void SetConfiguration() override;
|
||||||
</property>
|
|
||||||
<property name="bottomMargin">
|
// These functions get and set the stylesheet property
|
||||||
<number>0</number>
|
QString GetTemplateStyleSheet() const;
|
||||||
</property>
|
void SetTemplateStyleSheet(const QString& sheet);
|
||||||
</layout>
|
|
||||||
</widget>
|
signals:
|
||||||
</item>
|
void TemplateStyleSheetChanged();
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_recommended_accuracy">
|
private:
|
||||||
<property name="text">
|
void changeEvent(QEvent* event) override;
|
||||||
<string>We recommend setting accuracy to "Auto".</string>
|
void RetranslateUI();
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
void UpdateGroup(int index);
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
void Setup(const ConfigurationShared::Builder& builder);
|
||||||
</widget>
|
|
||||||
</item>
|
std::unique_ptr<Ui::ConfigureCpu> ui;
|
||||||
</layout>
|
|
||||||
</widget>
|
const Core::System& system;
|
||||||
</item>
|
|
||||||
<item>
|
const ConfigurationShared::ComboboxTranslationMap& combobox_translations;
|
||||||
<widget class="QGroupBox" name="backend_group">
|
std::vector<std::function<void(bool)>> apply_funcs{};
|
||||||
<property name="title">
|
|
||||||
<string>CPU Backend</string>
|
QComboBox* accuracy_combobox;
|
||||||
</property>
|
QComboBox* backend_combobox;
|
||||||
<layout class="QVBoxLayout">
|
|
||||||
<item>
|
// This variable will hold the raw stylesheet string
|
||||||
<widget class="QWidget" name="widget_backend" native="true">
|
QString m_template_style_sheet;
|
||||||
<layout class="QVBoxLayout" name="verticalLayout1">
|
};
|
||||||
<property name="leftMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
<property name="visible">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QGroupBox" name="unsafe_group">
|
|
||||||
<property name="title">
|
|
||||||
<string>Unsafe CPU Optimization Settings</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_accuracy_description">
|
|
||||||
<property name="text">
|
|
||||||
<string>These settings reduce accuracy for speed.</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QWidget" name="unsafe_widget" native="true">
|
|
||||||
<layout class="QVBoxLayout" name="unsafe_layout">
|
|
||||||
<property name="leftMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="verticalSpacer">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeType">
|
|
||||||
<enum>QSizePolicy::Expanding</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<resources/>
|
|
||||||
<connections/>
|
|
||||||
</ui>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user