mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-03-06 13:33:57 +01:00
98 lines
2 KiB
C++
98 lines
2 KiB
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <QHBoxLayout>
|
|
#include <QPushButton>
|
|
#include <QComboBox>
|
|
#include <QTableWidget>
|
|
#include <QLabel>
|
|
#include <QHeaderView>
|
|
#include <QMenu>
|
|
|
|
//TODO: Implement function calls related to Save Data List.
|
|
//Those function calls may be needed to use this GUI.
|
|
//Currently this is only a stub.
|
|
|
|
//A stub for the struct sent to save_data_info_dialog.
|
|
struct save_data_information
|
|
{
|
|
|
|
};
|
|
//A stub for the sorting.
|
|
enum
|
|
{
|
|
SAVE_DATA_LIST_SORT_BY_USERID
|
|
};
|
|
//A stub for a single entry of save data. used to make a save data list or do management.
|
|
struct save_data_entry
|
|
{
|
|
|
|
};
|
|
|
|
//Used to display the information of a savedata.
|
|
//Not sure about what information should be displayed.
|
|
class save_data_info_dialog :public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
QTableWidget* m_list;
|
|
|
|
void UpdateData();
|
|
public:
|
|
save_data_info_dialog(QWidget* parent, const save_data_information& info);
|
|
};
|
|
|
|
//Simple way to show up the sort menu and other operations
|
|
//Like what you get when press Triangle on SaveData.
|
|
class save_data_manage_dialog :public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
QComboBox* m_sort_options;
|
|
unsigned int* m_sort_type;
|
|
|
|
private Q_SLOTS:
|
|
void OnInfo();
|
|
void OnCopy();
|
|
void OnDelete();
|
|
void OnApplySort();
|
|
public:
|
|
save_data_manage_dialog(QWidget* parent, unsigned int* sort_type, save_data_entry& save);
|
|
};
|
|
|
|
//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
|
|
|
|
QTableWidget* m_list;
|
|
QMenu* m_sort_options;
|
|
unsigned int m_sort_type;
|
|
unsigned int m_sort_type_count;
|
|
|
|
int m_sortColumn;
|
|
bool m_sortAscending;
|
|
|
|
void LoadEntries(void);
|
|
void UpdateList(void);
|
|
public:
|
|
save_data_list_dialog(QWidget* parent, bool enable_manage);
|
|
private:
|
|
QAction* userIDAct;
|
|
QAction* titleAct;
|
|
QAction* subtitleAct;
|
|
QAction* copyAct;
|
|
QAction* removeAct;
|
|
QAction* infoAct;
|
|
|
|
void OnSort(int id);
|
|
private Q_SLOTS:
|
|
void OnSelect();
|
|
void OnManage();
|
|
void OnEntryCopy();
|
|
void OnEntryRemove();
|
|
void OnEntryInfo();
|
|
void ShowContextMenu(const QPoint &pos);
|
|
};
|