LeftBrace.hpp
1 #pragma once
2 
3 // RENAMEME IntervalBraces
4 
5 #include "IntervalBrace.hpp"
6 
7 #include <Scenario/Document/ScenarioDocument/ScenarioDocumentViewConstants.hpp>
8 namespace Scenario
9 {
10 
11 class SCORE_PLUGIN_SCENARIO_EXPORT LeftBraceView final : public IntervalBrace
12 {
13 public:
14  LeftBraceView(const IntervalView& parentCstr, QGraphicsItem* parent)
15  : IntervalBrace{parentCstr, parent}
16  {
17  this->setToolTip(QObject::tr(
18  "Interval left brace\nDrag to change the minimal duration of an interval."));
19  }
20  ~LeftBraceView() override;
21 
22  static const constexpr int Type = ItemType::LeftBrace;
23  int type() const final override { return Type; }
24 };
25 
26 class SCORE_PLUGIN_SCENARIO_EXPORT RightBraceView final : public IntervalBrace
27 {
28 public:
29  RightBraceView(const IntervalView& parentCstr, QGraphicsItem* parent)
30  : IntervalBrace{parentCstr, parent}
31  {
32  this->setRotation(180);
33  this->setToolTip(QObject::tr(
34  "Interval right brace\nDrag to change the maximal duration of an interval."));
35  }
36  ~RightBraceView() override;
37 
38  static const constexpr int Type = ItemType::RightBrace;
39  int type() const final override { return Type; }
40 };
41 }
Definition: IntervalBrace.hpp:14
Definition: IntervalView.hpp:34
Definition: LeftBrace.hpp:12
Definition: LeftBrace.hpp:27
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14