mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
submenu 'Keys and Shortcuts'
This commit is contained in:
parent
9fd5a54c42
commit
9d07223d87
@ -750,33 +750,36 @@ set(QT_GUI src/qt_gui/about_dialog.cpp
|
|||||||
src/qt_gui/background_music_player.h
|
src/qt_gui/background_music_player.h
|
||||||
src/qt_gui/cheats_patches.cpp
|
src/qt_gui/cheats_patches.cpp
|
||||||
src/qt_gui/cheats_patches.h
|
src/qt_gui/cheats_patches.h
|
||||||
src/qt_gui/main_window_ui.h
|
|
||||||
src/qt_gui/main_window.cpp
|
|
||||||
src/qt_gui/main_window.h
|
|
||||||
src/qt_gui/gui_context_menus.h
|
|
||||||
src/qt_gui/game_list_utils.h
|
|
||||||
src/qt_gui/game_info.cpp
|
|
||||||
src/qt_gui/game_info.h
|
|
||||||
src/qt_gui/game_list_frame.cpp
|
|
||||||
src/qt_gui/game_list_frame.h
|
|
||||||
src/qt_gui/game_grid_frame.cpp
|
|
||||||
src/qt_gui/game_grid_frame.h
|
|
||||||
src/qt_gui/game_install_dialog.cpp
|
|
||||||
src/qt_gui/game_install_dialog.h
|
|
||||||
src/qt_gui/install_dir_select.cpp
|
|
||||||
src/qt_gui/install_dir_select.h
|
|
||||||
src/qt_gui/pkg_viewer.cpp
|
|
||||||
src/qt_gui/pkg_viewer.h
|
|
||||||
src/qt_gui/trophy_viewer.cpp
|
|
||||||
src/qt_gui/trophy_viewer.h
|
|
||||||
src/qt_gui/elf_viewer.cpp
|
src/qt_gui/elf_viewer.cpp
|
||||||
src/qt_gui/elf_viewer.h
|
src/qt_gui/elf_viewer.h
|
||||||
|
src/qt_gui/game_info.cpp
|
||||||
|
src/qt_gui/game_info.h
|
||||||
|
src/qt_gui/game_install_dialog.cpp
|
||||||
|
src/qt_gui/game_install_dialog.h
|
||||||
|
src/qt_gui/game_list_frame.cpp
|
||||||
|
src/qt_gui/game_list_frame.h
|
||||||
|
src/qt_gui/game_list_utils.h
|
||||||
|
src/qt_gui/game_grid_frame.cpp
|
||||||
|
src/qt_gui/game_grid_frame.h
|
||||||
|
src/qt_gui/keys_shortcuts_dialog.cpp
|
||||||
|
src/qt_gui/keys_shortcuts_dialog.h
|
||||||
|
src/qt_gui/keys_shortcuts_dialog.ui
|
||||||
|
src/qt_gui/gui_context_menus.h
|
||||||
|
src/qt_gui/install_dir_select.cpp
|
||||||
|
src/qt_gui/install_dir_select.h
|
||||||
|
src/qt_gui/main.cpp
|
||||||
|
src/qt_gui/main_window.cpp
|
||||||
|
src/qt_gui/main_window.h
|
||||||
src/qt_gui/main_window_themes.cpp
|
src/qt_gui/main_window_themes.cpp
|
||||||
src/qt_gui/main_window_themes.h
|
src/qt_gui/main_window_themes.h
|
||||||
|
src/qt_gui/main_window_ui.h
|
||||||
|
src/qt_gui/pkg_viewer.cpp
|
||||||
|
src/qt_gui/pkg_viewer.h
|
||||||
src/qt_gui/settings_dialog.cpp
|
src/qt_gui/settings_dialog.cpp
|
||||||
src/qt_gui/settings_dialog.h
|
src/qt_gui/settings_dialog.h
|
||||||
src/qt_gui/settings_dialog.ui
|
src/qt_gui/settings_dialog.ui
|
||||||
src/qt_gui/main.cpp
|
src/qt_gui/trophy_viewer.cpp
|
||||||
|
src/qt_gui/trophy_viewer.h
|
||||||
${EMULATOR}
|
${EMULATOR}
|
||||||
${RESOURCE_FILES}
|
${RESOURCE_FILES}
|
||||||
${TRANSLATIONS}
|
${TRANSLATIONS}
|
||||||
|
@ -32,6 +32,7 @@ path = [
|
|||||||
"src/images/grid_icon.png",
|
"src/images/grid_icon.png",
|
||||||
"src/images/iconsize_icon.png",
|
"src/images/iconsize_icon.png",
|
||||||
"src/images/ko-fi.png",
|
"src/images/ko-fi.png",
|
||||||
|
"src/images/keys.png",
|
||||||
"src/images/keys_icon.png",
|
"src/images/keys_icon.png",
|
||||||
"src/images/list_icon.png",
|
"src/images/list_icon.png",
|
||||||
"src/images/list_mode_icon.png",
|
"src/images/list_mode_icon.png",
|
||||||
|
BIN
src/images/keys.png
Normal file
BIN
src/images/keys.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 129 KiB |
18
src/qt_gui/keys_shortcuts_dialog.cpp
Normal file
18
src/qt_gui/keys_shortcuts_dialog.cpp
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#include <QImage>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QPixmap>
|
||||||
|
#include "keys_shortcuts_dialog.h"
|
||||||
|
#include "ui_keys_shortcuts_dialog.h"
|
||||||
|
|
||||||
|
KeysShortcutsDialog::KeysShortcutsDialog(QWidget* parent)
|
||||||
|
: QDialog(parent), ui(new Ui::KeysShortcutsDialog) {
|
||||||
|
ui->setupUi(this);
|
||||||
|
ui->shad_text->setText(tr("KeysShortcutsDialog_MSG").replace("\\n", "\n"));
|
||||||
|
}
|
||||||
|
|
||||||
|
KeysShortcutsDialog::~KeysShortcutsDialog() {
|
||||||
|
delete ui;
|
||||||
|
}
|
25
src/qt_gui/keys_shortcuts_dialog.h
Normal file
25
src/qt_gui/keys_shortcuts_dialog.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <QDesktopServices>
|
||||||
|
#include <QDialog>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QPixmap>
|
||||||
|
#include <QUrl>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class KeysShortcutsDialog;
|
||||||
|
}
|
||||||
|
|
||||||
|
class KeysShortcutsDialog : public QDialog {
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit KeysShortcutsDialog(QWidget* parent = nullptr);
|
||||||
|
~KeysShortcutsDialog();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::KeysShortcutsDialog* ui;
|
||||||
|
};
|
71
src/qt_gui/keys_shortcuts_dialog.ui
Normal file
71
src/qt_gui/keys_shortcuts_dialog.ui
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
||||||
|
SPDX-License-Identifier: GPL-2.0-or-later -->
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>KeysShortcutsDialog</class>
|
||||||
|
<widget class="QDialog" name="KeysShortcutsDialog">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>780</width>
|
||||||
|
<height>600</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Keys and Shortcuts</string>
|
||||||
|
</property>
|
||||||
|
<property name="windowIcon">
|
||||||
|
<iconset>
|
||||||
|
<normaloff>:/images/shadps4.ico</normaloff>:/images/shadps4.ico</iconset>
|
||||||
|
</property>
|
||||||
|
<widget class="QLabel" name="image">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>20</x>
|
||||||
|
<y>220</y>
|
||||||
|
<width>740</width>
|
||||||
|
<height>350</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="frameShape">
|
||||||
|
<enum>QFrame::Shape::NoFrame</enum>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="pixmap">
|
||||||
|
<pixmap>:/images/keys.png</pixmap>
|
||||||
|
</property>
|
||||||
|
<property name="scaledContents">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QLabel" name="shad_text">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>20</x>
|
||||||
|
<y>20</y>
|
||||||
|
<width>740</width>
|
||||||
|
<height>200</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<pointsize>14</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>KeysShortcutsDialog_MSG</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -6,6 +6,7 @@
|
|||||||
#include <QProgressDialog>
|
#include <QProgressDialog>
|
||||||
|
|
||||||
#include "about_dialog.h"
|
#include "about_dialog.h"
|
||||||
|
#include "keys_shortcuts_dialog.h"
|
||||||
#include "cheats_patches.h"
|
#include "cheats_patches.h"
|
||||||
#ifdef ENABLE_UPDATER
|
#ifdef ENABLE_UPDATER
|
||||||
#include "check_update.h"
|
#include "check_update.h"
|
||||||
@ -268,8 +269,8 @@ void MainWindow::CreateConnects() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
connect(ui->keys_shortcuts, &QAction::triggered, this, [this]() {
|
connect(ui->keys_shortcuts, &QAction::triggered, this, [this]() {
|
||||||
auto aboutDialog = new AboutDialog(this);
|
auto keysShortcutsDialog = new KeysShortcutsDialog(this);
|
||||||
aboutDialog->exec();
|
keysShortcutsDialog->exec();
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(ui->aboutAct, &QAction::triggered, this, [this]() {
|
connect(ui->aboutAct, &QAction::triggered, this, [this]() {
|
||||||
|
@ -1488,4 +1488,12 @@
|
|||||||
<translation>Failed to create the update script file</translation>
|
<translation>Failed to create the update script file</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>KeysShortcutsDialog</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../keys_shortcuts_dialog.cpp" line="57"/>
|
||||||
|
<source>KeysShortcutsDialog_MSG</source>
|
||||||
|
<translation>F7 : Captures mouse and enables mouse movement input.\nF8 : Reparse keyboard input.\nF9 : Pause emulator (in Debug Menu).\nF10 : FPS counter.\nLCtrl + F10 : Debug Menu.\nF11 : Fullscreen.\nF12 : Captures a frame when RenderDoc is enabled.</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
</TS>
|
</TS>
|
@ -8,6 +8,7 @@
|
|||||||
<file>images/stop_icon.png</file>
|
<file>images/stop_icon.png</file>
|
||||||
<file>images/file_icon.png</file>
|
<file>images/file_icon.png</file>
|
||||||
<file>images/folder_icon.png</file>
|
<file>images/folder_icon.png</file>
|
||||||
|
<file>images/keys.png</file>
|
||||||
<file>images/keys_icon.png</file>
|
<file>images/keys_icon.png</file>
|
||||||
<file>images/themes_icon.png</file>
|
<file>images/themes_icon.png</file>
|
||||||
<file>images/iconsize_icon.png</file>
|
<file>images/iconsize_icon.png</file>
|
||||||
|
Loading…
Reference in New Issue
Block a user