...which opens more questions than it solves at the moment. Especially note #1096, the question how to refer to object-IDs Maybe we need to enable sending EntryIDs via GenNode? Anyway, the magic spell is broken now: we have a way how to establish commands and how to issue them from the UI, with full integration of UI-Bus, layer separation facade, instance management and ProcDispatcher Looks like a stepping stone
94 lines
2.6 KiB
C++
94 lines
2.6 KiB
C++
/*
|
|
ScopeCmd - actual proc command scripts for actions within model scope
|
|
|
|
Copyright (C) Lumiera.org
|
|
2017, Hermann Vosseler <Ichthyostega@web.de>
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License as
|
|
published by the Free Software Foundation; either version 2 of
|
|
the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
* *****************************************************/
|
|
|
|
|
|
/** @file scope-cmd.cpp
|
|
** Actual definition of Proc-Layer command scripts for actions within scope.
|
|
** Here "scope" means a scope within the high-level model, which could be
|
|
** - a track or media bin
|
|
** - a clip
|
|
** - an effect
|
|
** @todo WIP 3/2017 early draft
|
|
**
|
|
** @see cmd.hpp
|
|
** @see command.hpp
|
|
** @see command-def.hpp
|
|
** @see cmd-context.hpp
|
|
** @see SessionCommandFunction_test
|
|
**
|
|
*/
|
|
|
|
|
|
#include "proc/cmd.hpp"
|
|
#include "proc/control/command-def.hpp"
|
|
//#include "proc/mobject/session.hpp"
|
|
//#include "lib/symbol.hpp"
|
|
#include "lib/idi/entry-id.hpp"
|
|
//#include "lib/format-string.hpp"
|
|
|
|
//#include <string>
|
|
|
|
using lib::hash::LuidH;
|
|
//using std::string;
|
|
//using util::cStr;
|
|
//using util::_Fmt;
|
|
|
|
|
|
namespace proc {
|
|
namespace cmd {
|
|
namespace error = lumiera::error;
|
|
|
|
//using mobject::Session;
|
|
|
|
namespace { // implementation helper...
|
|
}//(End) implementation helper
|
|
|
|
|
|
|
|
|
|
/** @todo placeholder 4/2017
|
|
*/
|
|
//COMMAND_DEFINITION (session_newSequence)
|
|
// {
|
|
// def.operation ([](LuidH context, LuidH newID)
|
|
// {
|
|
// UNIMPLEMENTED ("add a new Sequence into the given context scope within the Session");
|
|
// })
|
|
// .captureUndo ([](LuidH, LuidH addedSeq) -> LuidH
|
|
// {
|
|
// return addedSeq;
|
|
// })
|
|
// .undoOperation ([](LuidH context, LuidH addedSeq, LuidH newID)
|
|
// {
|
|
// REQUIRE (addedSeq == newID);
|
|
// UNIMPLEMENTED ("how to remove a sub-sequence from the given context");
|
|
// });
|
|
// };
|
|
|
|
|
|
|
|
|
|
/** more to come here...*/
|
|
|
|
|
|
|
|
}} // namespace proc::cmd
|