mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Move DolphinQt2 to DolphinQt
This commit is contained in:
53
Source/Core/DolphinQt/Debugger/WatchWidget.h
Normal file
53
Source/Core/DolphinQt/Debugger/WatchWidget.h
Normal file
@ -0,0 +1,53 @@
|
||||
// Copyright 2017 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QDockWidget>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
class QAction;
|
||||
class QTableWidget;
|
||||
class QTableWidgetItem;
|
||||
class QToolBar;
|
||||
class QCloseEvent;
|
||||
|
||||
class WatchWidget : public QDockWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit WatchWidget(QWidget* parent = nullptr);
|
||||
~WatchWidget();
|
||||
|
||||
void AddWatch(QString name, u32 addr);
|
||||
signals:
|
||||
void RequestMemoryBreakpoint(u32 addr);
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent*) override;
|
||||
|
||||
private:
|
||||
void CreateWidgets();
|
||||
void ConnectWidgets();
|
||||
|
||||
void OnLoad();
|
||||
void OnSave();
|
||||
|
||||
void Update();
|
||||
|
||||
void ShowContextMenu();
|
||||
void OnItemChanged(QTableWidgetItem* item);
|
||||
void DeleteWatch(int row);
|
||||
void AddWatchBreakpoint(int row);
|
||||
|
||||
void UpdateIcons();
|
||||
|
||||
QAction* m_load;
|
||||
QAction* m_save;
|
||||
QToolBar* m_toolbar;
|
||||
QTableWidget* m_table;
|
||||
|
||||
bool m_updating = false;
|
||||
};
|
Reference in New Issue
Block a user