2017-08-30 08:44:28 -06:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-04 19:22:19 -06:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-08-30 08:44:28 -06:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-02-16 12:24:57 -07:00
|
|
|
#include <QWidget>
|
2017-08-30 08:44:28 -06:00
|
|
|
|
2021-03-15 22:02:25 -06:00
|
|
|
#include "Core/Core.h"
|
|
|
|
|
2017-08-30 08:44:28 -06:00
|
|
|
class QCheckBox;
|
|
|
|
class QDialogButtonBox;
|
|
|
|
class QLabel;
|
|
|
|
class QPushButton;
|
|
|
|
class QSpinBox;
|
2018-05-14 14:01:23 -06:00
|
|
|
class FIFOAnalyzer;
|
2017-08-30 08:44:28 -06:00
|
|
|
|
2021-02-16 12:24:57 -07:00
|
|
|
class FIFOPlayerWindow : public QWidget
|
2017-08-30 08:44:28 -06:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit FIFOPlayerWindow(QWidget* parent = nullptr);
|
|
|
|
~FIFOPlayerWindow();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void LoadFIFORequested(const QString& path);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void CreateWidgets();
|
|
|
|
void ConnectWidgets();
|
|
|
|
|
|
|
|
void LoadRecording();
|
|
|
|
void SaveRecording();
|
|
|
|
void StartRecording();
|
|
|
|
void StopRecording();
|
|
|
|
|
|
|
|
void OnEmulationStarted();
|
|
|
|
void OnEmulationStopped();
|
|
|
|
void OnLimitsChanged();
|
|
|
|
void OnEarlyMemoryUpdatesChanged(bool enabled);
|
|
|
|
void OnRecordingDone();
|
|
|
|
void OnFIFOLoaded();
|
|
|
|
|
|
|
|
void UpdateControls();
|
|
|
|
void UpdateInfo();
|
|
|
|
void UpdateLimits();
|
|
|
|
|
2021-02-16 12:24:57 -07:00
|
|
|
bool eventFilter(QObject* object, QEvent* event) final override;
|
|
|
|
|
2017-08-30 08:44:28 -06:00
|
|
|
QLabel* m_info_label;
|
|
|
|
QPushButton* m_load;
|
|
|
|
QPushButton* m_save;
|
|
|
|
QPushButton* m_record;
|
|
|
|
QPushButton* m_stop;
|
|
|
|
QSpinBox* m_frame_range_from;
|
|
|
|
QLabel* m_frame_range_from_label;
|
|
|
|
QSpinBox* m_frame_range_to;
|
|
|
|
QLabel* m_frame_range_to_label;
|
|
|
|
QSpinBox* m_frame_record_count;
|
|
|
|
QLabel* m_frame_record_count_label;
|
|
|
|
QSpinBox* m_object_range_from;
|
|
|
|
QLabel* m_object_range_from_label;
|
|
|
|
QSpinBox* m_object_range_to;
|
|
|
|
QLabel* m_object_range_to_label;
|
|
|
|
QCheckBox* m_early_memory_updates;
|
|
|
|
QDialogButtonBox* m_button_box;
|
2018-05-14 14:01:23 -06:00
|
|
|
|
|
|
|
FIFOAnalyzer* m_analyzer;
|
2021-03-15 22:02:25 -06:00
|
|
|
Core::State m_emu_state = Core::State::Uninitialized;
|
2017-08-30 08:44:28 -06:00
|
|
|
};
|