2017-08-30 14:44:28 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-08-30 14:44:28 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-02-16 19:24:57 +00:00
|
|
|
#include <QWidget>
|
2017-08-30 14:44:28 +00:00
|
|
|
|
2021-03-16 04:02:25 +00:00
|
|
|
#include "Core/Core.h"
|
|
|
|
|
2017-08-30 14:44:28 +00:00
|
|
|
class QDialogButtonBox;
|
|
|
|
class QLabel;
|
|
|
|
class QPushButton;
|
|
|
|
class QSpinBox;
|
2021-09-06 01:51:52 +00:00
|
|
|
class QTabWidget;
|
2022-01-06 22:38:09 +00:00
|
|
|
class ToolTipCheckBox;
|
2024-01-05 08:31:59 +00:00
|
|
|
class FifoPlayer;
|
2018-05-14 20:01:23 +00:00
|
|
|
class FIFOAnalyzer;
|
2017-08-30 14:44:28 +00:00
|
|
|
|
2021-02-16 19:24:57 +00:00
|
|
|
class FIFOPlayerWindow : public QWidget
|
2017-08-30 14:44:28 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2024-01-05 08:31:59 +00:00
|
|
|
explicit FIFOPlayerWindow(FifoPlayer& fifo_player, QWidget* parent = nullptr);
|
2017-08-30 14:44:28 +00:00
|
|
|
~FIFOPlayerWindow();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void LoadFIFORequested(const QString& path);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void CreateWidgets();
|
2022-01-06 22:38:09 +00:00
|
|
|
void LoadSettings();
|
2017-08-30 14:44:28 +00:00
|
|
|
void ConnectWidgets();
|
2022-01-06 22:38:09 +00:00
|
|
|
void AddDescriptions();
|
2017-08-30 14:44:28 +00:00
|
|
|
|
|
|
|
void LoadRecording();
|
|
|
|
void SaveRecording();
|
|
|
|
void StartRecording();
|
|
|
|
void StopRecording();
|
|
|
|
|
|
|
|
void OnEmulationStarted();
|
|
|
|
void OnEmulationStopped();
|
|
|
|
void OnLimitsChanged();
|
|
|
|
void OnRecordingDone();
|
|
|
|
void OnFIFOLoaded();
|
2022-01-06 22:38:09 +00:00
|
|
|
void OnConfigChanged();
|
2017-08-30 14:44:28 +00:00
|
|
|
|
|
|
|
void UpdateControls();
|
|
|
|
void UpdateInfo();
|
|
|
|
void UpdateLimits();
|
|
|
|
|
2021-02-16 19:24:57 +00:00
|
|
|
bool eventFilter(QObject* object, QEvent* event) final override;
|
|
|
|
|
2024-01-05 08:31:59 +00:00
|
|
|
FifoPlayer& m_fifo_player;
|
|
|
|
|
2017-08-30 14:44:28 +00: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;
|
2022-01-06 22:38:09 +00:00
|
|
|
ToolTipCheckBox* m_early_memory_updates;
|
2022-01-06 22:47:36 +00:00
|
|
|
ToolTipCheckBox* m_loop;
|
2017-08-30 14:44:28 +00:00
|
|
|
QDialogButtonBox* m_button_box;
|
2018-05-14 20:01:23 +00:00
|
|
|
|
2021-09-06 01:51:52 +00:00
|
|
|
QWidget* m_main_widget;
|
|
|
|
QTabWidget* m_tab_widget;
|
|
|
|
|
2018-05-14 20:01:23 +00:00
|
|
|
FIFOAnalyzer* m_analyzer;
|
2021-03-16 04:02:25 +00:00
|
|
|
Core::State m_emu_state = Core::State::Uninitialized;
|
2017-08-30 14:44:28 +00:00
|
|
|
};
|