mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-15 19:35:26 +00:00
d55e41a19e
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
* compatibility_data: added compatibility related settings to gui * New game compatibility section in settings dialog * Context menu now has a compatibility section * Adjusted minimum size of updater section to 265 * update translations * revert to deprecated statechanged * fix display compatibility data option
51 lines
1.5 KiB
C++
51 lines
1.5 KiB
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QScrollBar>
|
|
|
|
#include "background_music_player.h"
|
|
#include "common/config.h"
|
|
#include "game_info.h"
|
|
#include "game_list_utils.h"
|
|
#include "gui_context_menus.h"
|
|
#include "qt_gui/compatibility_info.h"
|
|
|
|
class GameGridFrame : public QTableWidget {
|
|
Q_OBJECT
|
|
|
|
Q_SIGNALS:
|
|
void GameGridFrameClosed();
|
|
|
|
public Q_SLOTS:
|
|
void SetGridBackgroundImage(int row, int column);
|
|
void RefreshGridBackgroundImage();
|
|
void PlayBackgroundMusic(QString path);
|
|
void onCurrentCellChanged(int currentRow, int currentColumn, int previousRow,
|
|
int previousColumn);
|
|
|
|
private:
|
|
QImage backgroundImage;
|
|
GameListUtils m_game_list_utils;
|
|
GuiContextMenus m_gui_context_menus;
|
|
std::shared_ptr<GameInfoClass> m_game_info;
|
|
std::shared_ptr<CompatibilityInfoClass> m_compat_info;
|
|
std::shared_ptr<QVector<GameInfo>> m_games_shared;
|
|
bool validCellSelected = false;
|
|
|
|
public:
|
|
explicit GameGridFrame(std::shared_ptr<GameInfoClass> game_info_get,
|
|
std::shared_ptr<CompatibilityInfoClass> compat_info_get,
|
|
QWidget* parent = nullptr);
|
|
void PopulateGameGrid(QVector<GameInfo> m_games, bool fromSearch);
|
|
bool IsValidCellSelected();
|
|
|
|
bool cellClicked = false;
|
|
int icon_size;
|
|
int windowWidth;
|
|
int crtRow;
|
|
int crtColumn;
|
|
int columnCnt;
|
|
};
|