mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Move DolphinQt2 to DolphinQt
This commit is contained in:
67
Source/Core/DolphinQt/FIFO/FIFOAnalyzer.h
Normal file
67
Source/Core/DolphinQt/FIFO/FIFOAnalyzer.h
Normal file
@ -0,0 +1,67 @@
|
||||
// Copyright 2018 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class QGroupBox;
|
||||
class QLabel;
|
||||
class QLineEdit;
|
||||
class QListWidget;
|
||||
class QPushButton;
|
||||
class QSplitter;
|
||||
class QTextBrowser;
|
||||
class QTreeWidget;
|
||||
|
||||
class FIFOAnalyzer final : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit FIFOAnalyzer();
|
||||
~FIFOAnalyzer();
|
||||
|
||||
void Update();
|
||||
|
||||
private:
|
||||
void CreateWidgets();
|
||||
void ConnectWidgets();
|
||||
|
||||
void BeginSearch();
|
||||
void FindNext();
|
||||
void FindPrevious();
|
||||
|
||||
void ShowSearchResult(size_t index);
|
||||
|
||||
void UpdateTree();
|
||||
void UpdateDetails();
|
||||
void UpdateDescription();
|
||||
|
||||
QTreeWidget* m_tree_widget;
|
||||
QListWidget* m_detail_list;
|
||||
QTextBrowser* m_entry_detail_browser;
|
||||
QSplitter* m_object_splitter;
|
||||
|
||||
// Search
|
||||
QGroupBox* m_search_box;
|
||||
QLineEdit* m_search_edit;
|
||||
QPushButton* m_search_new;
|
||||
QPushButton* m_search_next;
|
||||
QPushButton* m_search_previous;
|
||||
QLabel* m_search_label;
|
||||
QSplitter* m_search_splitter;
|
||||
|
||||
struct SearchResult
|
||||
{
|
||||
int frame;
|
||||
int object;
|
||||
int cmd;
|
||||
};
|
||||
|
||||
std::vector<int> m_object_data_offsets;
|
||||
std::vector<SearchResult> m_search_results;
|
||||
};
|
Reference in New Issue
Block a user