/* AssetController - asset management UI top level Copyright (C) Lumiera.org 2017, Hermann Vosseler 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 asset-controller.cpp ** Implementation of the asset management UI top level. ** ** @todo WIP 2/2017 early draft / foundations of "interaction control" ** */ #include "gui/setting/asset-controller.hpp" //#include "gui/ctrl/global-ctx.hpp" #include "lib/diff/tree-mutator.hpp" //#include "lib/util.hpp" //using util::cStr; using lib::diff::TreeMutator; //using util::isnil; namespace gui { namespace setting { // dtors via smart-ptr invoked from here... AssetController::~AssetController() { } /** * Establish the UI section to deal with _asset management_. * AssetController is connected to the UI-Bus and will be populated * with content from the session via _diff messages._ * @see tree-mutator.hpp */ AssetController::AssetController (ID identity, ctrl::BusTerm& nexus) : model::Controller{identity, nexus} { } void AssetController::buildMutator (TreeMutator::Handle buffer) { // using Attrib = std::pair; // using lib::diff::collection; buffer.create ( TreeMutator::build() ); UNIMPLEMENTED ("create a sensible binding between AssetManager in the section and AssetController in the UI"); } /** */ }}// namespace gui::setting