Commit 5ecd01ba authored by Mike Kremer's avatar Mike Kremer

Added getAllFileFilters signal to LoadSaveInterface. This signal was...

Added getAllFileFilters signal to LoadSaveInterface. This signal was documented but in fact never implemented.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12739 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 27a9e6fc
......@@ -109,12 +109,17 @@ class LoadSaveInterface {
*
* @param _id Id of the object
*/
virtual void deleteObject( int _id ){};
virtual void deleteObject( int _id ) {};
/** \brief Delete all Objects
*
*/
virtual void deleteAllObjects(){};
virtual void deleteAllObjects() {};
/** \brief Get all file filters that are registered
*
*/
virtual void getAllFileFilters(QStringList& _filters) {};
private slots :
......
......@@ -83,14 +83,14 @@ void Core::resetScenegraph( bool _resetTrackBall ) {
//========================================================================================
void Core::slotGetAllFilters ( QStringList& _list){
void Core::slotGetAllFilters ( QStringList& _list){
/// \todo check why the supported Type is used here!
// Iterate over all types
for (int i=0; i < (int)supportedTypes().size(); i++){
QString f = supportedTypes()[i].plugin->getLoadFilters();
f = f.section(")",0,0).section("(",1,1).trimmed();
_list << (QString::number(supportedTypes()[i].plugin->supportedType().value()) + " " + f);
_list << f;
}
}
......
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