mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-02-04 06:44:25 +01:00
* Split save_data_utility into two classes. * Add entry notes to saves. * Code review changes
51 lines
1.1 KiB
C++
51 lines
1.1 KiB
C++
#pragma once
|
|
|
|
// I just want the struct for the save data.
|
|
#include "stdafx.h"
|
|
#include "Emu/Memory/Memory.h"
|
|
#include "Emu/Cell/Modules/cellSaveData.h"
|
|
|
|
#include <QTableWidget>
|
|
#include <QDialog>
|
|
#include <QLabel>
|
|
|
|
//Display a list of SaveData. Would need to be initialized.
|
|
//Can also be used as a Save Data Chooser.
|
|
class save_data_list_dialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit save_data_list_dialog(const std::vector<SaveDataEntry>& entries, s32 focusedEntry, bool is_saving, QWidget* parent = nullptr);
|
|
|
|
s32 GetSelection();
|
|
private Q_SLOTS:
|
|
void OnEntryCopy();
|
|
void OnEntryRemove();
|
|
void OnEntryInfo();
|
|
void ShowContextMenu(const QPoint &pos);
|
|
private:
|
|
void UpdateSelectionLabel(void);
|
|
void LoadEntries(void);
|
|
void UpdateList(void);
|
|
void OnSort(int id);
|
|
|
|
s32 m_selectedEntry;
|
|
QLabel* selectedEntryLabel;
|
|
|
|
QTableWidget* m_list;
|
|
std::vector<SaveDataEntry> m_save_entries;
|
|
|
|
QMenu* m_sort_options;
|
|
|
|
int m_sortColumn;
|
|
bool m_sortAscending;
|
|
|
|
QAction* saveIDAct;
|
|
QAction* titleAct;
|
|
QAction* subtitleAct;
|
|
QAction* copyAct;
|
|
QAction* removeAct;
|
|
QAction* infoAct;
|
|
};
|