mirror of https://github.com/PCSX2/pcsx2.git
41 lines
890 B
C++
41 lines
890 B
C++
// SPDX-FileCopyrightText: 2002-2024 PCSX2 Dev Team
|
|
// SPDX-License-Identifier: GPL-3.0+
|
|
|
|
#pragma once
|
|
|
|
#include "ui_NewInputRecordingDlg.h"
|
|
|
|
#include "pcsx2/Recording/InputRecording.h"
|
|
|
|
#include <QtWidgets/QDialog>
|
|
|
|
class NewInputRecordingDlg final : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit NewInputRecordingDlg(QWidget* parent = nullptr);
|
|
~NewInputRecordingDlg();
|
|
|
|
InputRecording::Type getInputRecType();
|
|
std::string getFilePath();
|
|
std::string getAuthorName();
|
|
|
|
private Q_SLOTS:
|
|
void onRecordingTypePowerOnChecked(bool checked);
|
|
void onRecordingTypeSaveStateChecked(bool checked);
|
|
|
|
void onBrowseForPathClicked();
|
|
void onAuthorNameChanged(const QString& text);
|
|
|
|
private:
|
|
Ui::NewInputRecordingDlg m_ui;
|
|
|
|
InputRecording::Type m_recType = InputRecording::Type::POWER_ON;
|
|
QString m_filePath = "";
|
|
QString m_authorName = "";
|
|
|
|
bool isFormValid();
|
|
void updateFormStatus();
|
|
};
|