mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-06-04 23:15:00 -06:00
- Added a trophy viewer (right click on game ==> trophy viewer) - Enabled Run button. - Switched gui settings to toml. - Added recent files (6 max) - Applied @raphaelthegreat suggestions and corrections (Thanks a lot). - Fixed several bugs and crashes. - Full screen should disabled by default. - Added region in list mode. - Added a simple temp elf list widget. - Added messages when extracting pkg (ex: installing a patch before the game...etc)
50 lines
1.2 KiB
C++
50 lines
1.2 KiB
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QFutureWatcher>
|
|
#include <QGraphicsBlurEffect>
|
|
#include <QHeaderView>
|
|
#include <QLabel>
|
|
#include <QPixmap>
|
|
#include <QScrollBar>
|
|
#include <QStyleOptionViewItem>
|
|
#include <QTableWidget>
|
|
#include <QVBoxLayout>
|
|
#include <QWidget>
|
|
#include <QtConcurrent/QtConcurrent>
|
|
#include "common/config.h"
|
|
#include "game_info.h"
|
|
#include "game_list_utils.h"
|
|
#include "gui_context_menus.h"
|
|
|
|
class GameGridFrame : public QTableWidget {
|
|
Q_OBJECT
|
|
|
|
Q_SIGNALS:
|
|
void GameGridFrameClosed();
|
|
|
|
public Q_SLOTS:
|
|
void SetGridBackgroundImage(int row, int column);
|
|
void RefreshGridBackgroundImage();
|
|
|
|
private:
|
|
QImage backgroundImage;
|
|
GameListUtils m_game_list_utils;
|
|
GuiContextMenus m_gui_context_menus;
|
|
std::shared_ptr<GameInfoClass> m_game_info;
|
|
std::shared_ptr<QVector<GameInfo>> m_games_shared;
|
|
|
|
public:
|
|
explicit GameGridFrame(std::shared_ptr<GameInfoClass> game_info_get, QWidget* parent = nullptr);
|
|
void PopulateGameGrid(QVector<GameInfo> m_games, bool fromSearch);
|
|
|
|
bool cellClicked = false;
|
|
int icon_size;
|
|
int windowWidth;
|
|
int crtRow;
|
|
int crtColumn;
|
|
int columnCnt;
|
|
};
|