mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
#ifndef MEMORYCARDMANAGERDIALOG_H
|
|
#define MEMORYCARDMANAGERDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QDir>
|
|
#include <boost/filesystem.hpp>
|
|
#include "saves/SaveImporter.h"
|
|
#include "saves/SaveExporter.h"
|
|
#include "saves/MemoryCard.h"
|
|
|
|
namespace Ui {
|
|
class MemoryCardManagerDialog;
|
|
}
|
|
|
|
class MemoryCardManagerDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MemoryCardManagerDialog(QWidget *parent = 0);
|
|
~MemoryCardManagerDialog();
|
|
|
|
private:
|
|
CSaveImporterBase::OVERWRITE_PROMPT_RETURN OnImportOverwrite(const boost::filesystem::path&);
|
|
void populateSaveList();
|
|
|
|
Ui::MemoryCardManagerDialog *ui;
|
|
CMemoryCard m_MemoryCard0;
|
|
CMemoryCard m_MemoryCard1;
|
|
CMemoryCard* m_pMemoryCard[2];
|
|
CMemoryCard* m_pCurrentMemoryCard;
|
|
|
|
QString m_lastpath = QDir::homePath();
|
|
|
|
private slots:
|
|
void on_import_saves_button_clicked();
|
|
void on_comboBox_currentIndexChanged(int index);
|
|
void on_savelistWidget_currentRowChanged(int currentRow);
|
|
void on_delete_save_button_clicked();
|
|
void on_export_save_button_clicked();
|
|
};
|
|
|
|
#endif // MEMORYCARDMANAGERDIALOG_H
|