2015-01-06 14:37:26 +01:00
|
|
|
/*
|
2015-11-27 19:24:00 +01:00
|
|
|
Tangible - common implementation base of all relevant interface elements
|
2015-01-06 14:37:26 +01:00
|
|
|
|
|
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2015, 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.
|
|
|
|
|
|
|
|
|
|
* *****************************************************/
|
|
|
|
|
|
|
|
|
|
|
2015-11-28 01:20:40 +01:00
|
|
|
/** @file tangible.cpp
|
|
|
|
|
** Common base implementation of all tangible and connected interface elements.
|
2015-01-06 14:37:26 +01:00
|
|
|
**
|
2015-11-28 01:20:40 +01:00
|
|
|
** @see abstract-tangible-test.cpp
|
2015-01-06 14:37:26 +01:00
|
|
|
**
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2015-11-27 19:24:00 +01:00
|
|
|
//#include "lib/util.hpp"
|
2015-01-06 14:37:26 +01:00
|
|
|
//#include "lib/symbol.hpp"
|
|
|
|
|
//#include "include/logging.h"
|
2015-11-27 19:24:00 +01:00
|
|
|
#include "gui/model/tangible.hpp"
|
2015-01-06 14:37:26 +01:00
|
|
|
|
|
|
|
|
//#include <boost/noncopyable.hpp>
|
2015-11-28 01:20:40 +01:00
|
|
|
//#include <string>
|
|
|
|
|
//#include <map>
|
2015-01-06 14:37:26 +01:00
|
|
|
|
2015-11-28 01:20:40 +01:00
|
|
|
//using std::map;
|
|
|
|
|
//using std::string;
|
2015-01-06 14:37:26 +01:00
|
|
|
|
2015-11-28 01:20:40 +01:00
|
|
|
//using util::contains;
|
|
|
|
|
//using util::isnil;
|
2015-01-06 14:37:26 +01:00
|
|
|
|
|
|
|
|
namespace gui {
|
|
|
|
|
namespace model {
|
|
|
|
|
|
|
|
|
|
namespace { // internal details
|
|
|
|
|
|
|
|
|
|
} // internal details
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-11-28 01:20:40 +01:00
|
|
|
Tangible::~Tangible() { } // Emit VTables here...
|
2015-01-06 14:37:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @param id
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
string
|
|
|
|
|
fun (string& id)
|
|
|
|
|
{
|
|
|
|
|
return "x"+id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}} // namespace gui::model
|