Loading...
Searching...
No Matches
DisplayedElementsModel.hpp
1#pragma once
2#include <Scenario/Document/DisplayedElements/DisplayedElementsContainer.hpp>
3
4#include <score/selection/Selection.hpp>
5
6#include <tuple>
7
8namespace Scenario
9{
10class IntervalModel;
11class EventModel;
12class StateModel;
13class TimeSyncModel;
14
15class SCORE_PLUGIN_SCENARIO_EXPORT DisplayedElementsModel
16{
17public:
18 DisplayedElementsModel() = default;
19 bool initialized() const { return m_initialized; }
20
21 void setSelection(const Selection&);
22
23 void setDisplayedElements(DisplayedElementsContainer&&);
24 IntervalModel& interval() const;
25
26 TimeSyncModel& startTimeSync() const;
27 TimeSyncModel& endTimeSync() const;
28
29 EventModel& startEvent() const;
30 EventModel& endEvent() const;
31
32 StateModel& startState() const;
33 StateModel& endState() const;
34
35private:
37 bool m_initialized = false;
38};
39}
Definition DisplayedElementsModel.hpp:16
Definition EventModel.hpp:36
Definition IntervalModel.hpp:50
Definition StateModel.hpp:63
Definition TimeSyncModel.hpp:34
Definition Selection.hpp:12
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13
Definition DisplayedElementsContainer.hpp:17