2020-02-01 04:35:00 +00:00
|
|
|
// Copyright 2020 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
|
|
|
#include <QDialog>
|
|
|
|
#include "common/param_package.h"
|
|
|
|
#include "core/dumping/ffmpeg_backend.h"
|
|
|
|
|
2020-02-28 10:26:20 +00:00
|
|
|
class QTreeWidgetItem;
|
|
|
|
|
2020-02-01 04:35:00 +00:00
|
|
|
namespace Ui {
|
|
|
|
class OptionsDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class OptionsDialog : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-02-28 10:26:20 +00:00
|
|
|
explicit OptionsDialog(QWidget* parent, std::vector<VideoDumper::OptionInfo> specific_options,
|
|
|
|
std::vector<VideoDumper::OptionInfo> generic_options,
|
2020-02-01 04:35:00 +00:00
|
|
|
const std::string& current_value);
|
|
|
|
~OptionsDialog() override;
|
|
|
|
|
|
|
|
std::string GetCurrentValue() const;
|
|
|
|
|
|
|
|
private:
|
2020-02-28 10:26:20 +00:00
|
|
|
void PopulateOptions();
|
|
|
|
void OnSetOptionValue(QTreeWidgetItem* item);
|
2020-02-01 04:35:00 +00:00
|
|
|
|
|
|
|
std::unique_ptr<Ui::OptionsDialog> ui;
|
2020-02-28 10:26:20 +00:00
|
|
|
std::vector<VideoDumper::OptionInfo> specific_options;
|
|
|
|
std::vector<VideoDumper::OptionInfo> generic_options;
|
2020-02-01 04:35:00 +00:00
|
|
|
Common::ParamPackage current_values;
|
|
|
|
};
|