Scratchpad.h 440 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "BitInspectorPanel.h"
  3. #include "RunData.h"
  4. #include <QMenu>
  5. class Scratchpad : public BitInspectorPanel
  6. {
  7. Q_OBJECT
  8. public:
  9. Scratchpad(QWidget *parent);
  10. ~Scratchpad();
  11. void addPoint(const SolutionPointData& point);
  12. void clear();
  13. protected:
  14. QMenu* contextMenu = new QMenu(this);
  15. void contextMenuEvent(QContextMenuEvent* event) override;
  16. private:
  17. //Points to display
  18. std::vector<SolutionPointData> points;
  19. };