score
Home
Classes
Namespaces
Files
ScenarioSelection.hpp
1
#pragma once
2
#include <Scenario/Process/ScenarioModel.hpp>
3
4
#include <score/selection/Selection.hpp>
5
6
namespace
Scenario
7
{
8
inline
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
18
SCORE_PLUGIN_SCENARIO_EXPORT
19
std::vector<QObject*>
20
findByAddress(
const
score::DocumentContext
& ctx,
const
State::Address
& root);
21
}
Selection
Definition:
Selection.hpp:12
Scenario
Main plug-in of score.
Definition:
score-plugin-dataflow/Dataflow/PortItem.hpp:14
State::Address
The Address struct.
Definition:
Address.hpp:58
score::DocumentContext
Definition:
DocumentContext.hpp:18