BreakpointPanel.hxx 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #ifndef BREAKPOINTS_VIEW_H
  9. #define BREAKPOINTS_VIEW_H
  10. #if !defined(Q_MOC_RUN)
  11. #include <AzCore/base.h>
  12. #include <AzCore/Memory/SystemAllocator.h>
  13. #include <QtCore/QObject>
  14. #include <QtWidgets/QWidget>
  15. #include <QtWidgets/QTableWidget>
  16. #include "LUABreakpointTrackerMessages.h"
  17. #endif
  18. #pragma once
  19. class DHBreakpointsWidget : public QTableWidget, LUAEditor::LUABreakpointTrackerMessages::Bus::Handler
  20. {
  21. Q_OBJECT;
  22. public:
  23. // CLASS ALLOCATOR INTENIONALLY OMITTED so that we can be factoried by Qt code.
  24. DHBreakpointsWidget( QWidget * parent = 0 );
  25. virtual ~DHBreakpointsWidget();
  26. void CreateContextMenu();
  27. QAction *actionDeleteSelected;
  28. QAction *actionDeleteAll;
  29. //////////////////////////////////////////////////////////////////////////
  30. //Debugger Messages, from the LUAEditor::LUABreakpointTrackerMessages::Bus
  31. virtual void BreakpointsUpdate(const LUAEditor::BreakpointMap& uniqueBreakpoints);
  32. virtual void BreakpointHit(const LUAEditor::Breakpoint& breakpoint);
  33. virtual void BreakpointResume();
  34. private:
  35. void RemoveRow( int which );
  36. void CreateBreakpoint(const AZStd::string& debugName, int lineNumber);
  37. void RemoveBreakpoint(const AZStd::string& debugName, int lineNumber);
  38. void PullFromContext();
  39. bool m_PauseUpdates;
  40. public slots:
  41. void OnDoubleClicked( const QModelIndex & );
  42. void DeleteSelected();
  43. void DeleteAll();
  44. };
  45. #endif