rpcsx/rpcs3/rpcs3qt/save_data_list_dialog.h
Megamouse 95231c4dee [Qt] style adjustments 4
rename more members and clean headers
adjust some connects
2017-09-08 19:23:34 +01:00

39 lines
860 B
C++

#pragma once
// I just want the struct for the save data.
#include "stdafx.h"
#include "Emu/System.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 OnEntryInfo();
void OnSort(int logicalIndex);
private:
void UpdateSelectionLabel(void);
void UpdateList(void);
s32 m_entry;
QLabel* m_entry_label;
QTableWidget* m_list;
std::vector<SaveDataEntry> m_save_entries;
int m_sort_column;
bool m_sort_ascending;
};