score
Home
Classes
Namespaces
Files
plugins/score-plugin-media/Media/Merger/commands.hpp
1
#pragma once
2
#include <Media/Commands/MediaCommandFactory.hpp>
3
#include <Media/Merger/Model.hpp>
4
5
#include <score/command/Command.hpp>
6
#include <score/command/PropertyCommand.hpp>
7
#include <score/model/path/Path.hpp>
8
#include <score/model/path/PathSerialization.hpp>
9
10
namespace
Media
11
{
12
class
SetMergeInCount
final :
public
score::PropertyCommand
13
{
14
SCORE_COMMAND_DECL(Media::CommandFactoryName(),
SetMergeInCount
,
"Set in count"
)
15
public
:
16
SetMergeInCount
(
const
Merger::Model
& path, std::size_t newval)
17
:
score::PropertyCommand
{std::move(path),
"inCount"
, QVariant::fromValue(newval)}
18
{
19
}
20
};
21
class
SetMergeMode
final :
public
score::PropertyCommand
22
{
23
SCORE_COMMAND_DECL(Media::CommandFactoryName(),
SetMergeMode
,
"Set mode"
)
24
public
:
25
SetMergeMode
(
const
Merger::Model
& path, Merger::Model::Mode newval)
26
:
score::PropertyCommand
{std::move(path),
"mode"
, QVariant::fromValue(newval)}
27
{
28
}
29
};
30
}
Media::Merger::Model
Definition:
score-plugin-media/Media/Merger/Model.hpp:17
Media::SetMergeInCount
Definition:
plugins/score-plugin-media/Media/Merger/commands.hpp:13
Media::SetMergeMode
Definition:
plugins/score-plugin-media/Media/Merger/commands.hpp:22
score::PropertyCommand
The PropertyCommand class.
Definition:
PropertyCommand.hpp:21