2#include <Curve/Palette/CurveEditionSettings.hpp> 
    3#include <Curve/Point/CurvePointModel.hpp> 
    4#include <Curve/Point/CurvePointView.hpp> 
    5#include <Curve/Segment/CurveSegmentModel.hpp> 
    6#include <Curve/Segment/CurveSegmentView.hpp> 
    8#include <score/command/Dispatchers/CommandDispatcher.hpp> 
    9#include <score/document/DocumentContext.hpp> 
   10#include <score/graphics/GraphicsItem.hpp> 
   11#include <score/model/IdentifiedObjectMap.hpp> 
   12#include <score/selection/SelectionDispatcher.hpp> 
   18#include <score_plugin_curve_export.h> 
   31class SCORE_PLUGIN_CURVE_EXPORT 
Presenter final : 
public QObject
 
   43    return m_commandDispatcher.stack().context();
 
   46  const auto& points() 
const noexcept { 
return m_points; }
 
   47  const auto& segments() 
const noexcept { 
return m_segments; }
 
   52  const Model& model() 
const noexcept { 
return m_model; }
 
   53  View& view() 
const noexcept { 
return *m_view; }
 
   55  void setRect(
const QRectF& rect);
 
   57  void enableActions(
bool);
 
   65  void fillContextMenu(QMenu&, 
const QPoint&, 
const QPointF&);
 
   67  void removeSelection();
 
   70  bool boundedMove() 
const noexcept { 
return m_boundedMove; }
 
   71  void setBoundedMove(
bool b) 
noexcept { m_boundedMove = b; }
 
   73  QRectF rect() 
const noexcept { 
return m_localRect; }
 
   76  void contextMenuRequested(
const QPoint& arg_1, 
const QPointF& arg_2)
 
   77      E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, contextMenuRequested, arg_1, arg_2)
 
   88  void setupStateMachine();
 
  104  const Model& m_model;
 
  116  QMenu* m_contextMenu{};
 
  118  bool m_enabled = 
true;
 
  119  bool m_boundedMove = 
true;
 
 
The CommandDispatcher class.
Definition CommandDispatcher.hpp:13
Definition CurveEditionSettings.hpp:34
Definition CurveModel.hpp:25
Definition CurvePointView.hpp:24
Definition CurvePresenter.hpp:32
Definition CurveSegmentList.hpp:12
Definition CurveSegmentView.hpp:26
Definition CurveView.hpp:25
A map to access child objects through their id.
Definition IdentifiedObjectMap.hpp:16
Definition UuidKey.hpp:345
Utilities and base classes for 1D curves.
Definition FocusDispatcher.hpp:12
Definition CurveStyle.hpp:14
Definition GraphicsItem.hpp:47
Definition DocumentContext.hpp:18