-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[scenario] Create an interactive dot when double-clicking in the back…
…ground of the score
- Loading branch information
Showing
6 changed files
with
41 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 0 additions & 43 deletions
43
src/plugins/score-plugin-scenario/Scenario/Commands/TimeSync/SetAutoTrigger.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +0,0 @@ | ||
// This is an open source non-commercial project. Dear PVS-Studio, please check | ||
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com | ||
#include "SetAutoTrigger.hpp" | ||
|
||
#include <Scenario/Document/TimeSync/TimeSyncModel.hpp> | ||
|
||
#include <score/model/path/PathSerialization.hpp> | ||
|
||
namespace Scenario | ||
{ | ||
namespace Command | ||
{ | ||
|
||
SetAutoTrigger::SetAutoTrigger(const TimeSyncModel& tn, bool b) | ||
: m_path{std::move(tn)} | ||
, m_old{tn.autotrigger()} | ||
, m_new{b} | ||
{ | ||
} | ||
|
||
void SetAutoTrigger::undo(const score::DocumentContext& ctx) const | ||
{ | ||
auto& tn = m_path.find(ctx); | ||
tn.setAutotrigger(m_old); | ||
} | ||
|
||
void SetAutoTrigger::redo(const score::DocumentContext& ctx) const | ||
{ | ||
auto& tn = m_path.find(ctx); | ||
tn.setAutotrigger(m_new); | ||
} | ||
|
||
void SetAutoTrigger::serializeImpl(DataStreamInput& s) const | ||
{ | ||
s << m_path << m_old << m_new; | ||
} | ||
|
||
void SetAutoTrigger::deserializeImpl(DataStreamOutput& s) | ||
{ | ||
s >> m_path >> m_old >> m_new; | ||
} | ||
} | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters