Loading...
Searching...
No Matches
ScenarioSelection.hpp
1#pragma once
2#include <Scenario/Process/ScenarioModel.hpp>
3
4#include <score/selection/Selection.hpp>
5
6namespace Scenario
7{
8inline bool selectionHasScenarioElements(const Selection& sel)
9{
10 if(sel.empty())
11 return false;
12 if(qobject_cast<const Scenario::ProcessModel*>(sel.begin()->data()))
13 return false;
14
15 return true;
16}
17
18SCORE_PLUGIN_SCENARIO_EXPORT
19std::vector<QObject*>
20findByAddress(const score::DocumentContext& ctx, const State::Address& root);
21}
Definition Selection.hpp:12
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13
The Address struct.
Definition Address.hpp:58
Definition DocumentContext.hpp:18