graphics_breakpoints.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <memory>
  6. #include <QDockWidget>
  7. #include "video_core/debug_utils/debug_utils.h"
  8. class QLabel;
  9. class QPushButton;
  10. class QTreeView;
  11. class BreakPointModel;
  12. class GraphicsBreakPointsWidget : public QDockWidget, Pica::DebugContext::BreakPointObserver {
  13. Q_OBJECT
  14. using Event = Pica::DebugContext::Event;
  15. public:
  16. explicit GraphicsBreakPointsWidget(std::shared_ptr<Pica::DebugContext> debug_context,
  17. QWidget* parent = nullptr);
  18. void OnPicaBreakPointHit(Pica::DebugContext::Event event, void* data) override;
  19. void OnPicaResume() override;
  20. public slots:
  21. void OnBreakPointHit(Pica::DebugContext::Event event, void* data);
  22. void OnItemDoubleClicked(const QModelIndex&);
  23. void OnResumeRequested();
  24. void OnResumed();
  25. signals:
  26. void Resumed();
  27. void BreakPointHit(Pica::DebugContext::Event event, void* data);
  28. void BreakPointsChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
  29. private:
  30. QLabel* status_text;
  31. QPushButton* resume_button;
  32. BreakPointModel* breakpoint_model;
  33. QTreeView* breakpoint_list;
  34. };