Commit 7a004117 authored by Dirk Wilden's avatar Dirk Wilden

just additional scripting functions

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9827 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 79eea4ba
......@@ -349,6 +349,12 @@ class DataControlPlugin : public QObject, BaseInterface, ToolboxInterface, KeyIn
* @return successfull
*/
bool unGroupObject(int _id);
/// Get all target objects of given type
IdList getTargetObjects(DataType _type);
/// Get all source objects of given type
IdList getSourceObjects(DataType _type);
/** @} */
......
......@@ -483,3 +483,36 @@ void DataControlPlugin::showAll() {
}
}
//******************************************************************************
/** \brief Get all target objects of given type
*
*/
IdList DataControlPlugin::getTargetObjects(DataType _type) {
IdList list;
for ( PluginFunctions::ObjectIterator o_it(PluginFunctions::TARGET_OBJECTS, _type); o_it != PluginFunctions::objectsEnd(); ++o_it)
list.push_back( o_it->id() );
return list;
}
//******************************************************************************
/** \brief Get all source objects of given type
*
*/
IdList DataControlPlugin::getSourceObjects(DataType _type) {
IdList list;
for ( PluginFunctions::ObjectIterator o_it(PluginFunctions::SOURCE_OBJECTS, _type); o_it != PluginFunctions::objectsEnd(); ++o_it)
list.push_back( o_it->id() );
return list;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment