Commit 06b379c5 authored by Jan Möbius's avatar Jan Möbius

Removed the old addEmpty function from all File Plugins (wasn't used anyway)

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15087 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6966e434
...@@ -80,9 +80,6 @@ class FileLightPlugin : public QObject, BaseInterface, FileInterface, LoadSaveIn ...@@ -80,9 +80,6 @@ class FileLightPlugin : public QObject, BaseInterface, FileInterface, LoadSaveIn
void initializePlugin(); void initializePlugin();
// Deprecated!
int addEmpty() { return -1; };
public : public :
~FileLightPlugin() {}; ~FileLightPlugin() {};
...@@ -104,8 +101,6 @@ class FileLightPlugin : public QObject, BaseInterface, FileInterface, LoadSaveIn ...@@ -104,8 +101,6 @@ class FileLightPlugin : public QObject, BaseInterface, FileInterface, LoadSaveIn
bool saveObject(int _id, QString _filename); bool saveObject(int _id, QString _filename);
int addNewLight();
QString version() { return QString("1.0"); }; QString version() { return QString("1.0"); };
private : private :
......
/*===========================================================================*\
* *
* OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org *
* *
*--------------------------------------------------------------------------- *
* This file is part of OpenFlipper. *
* *
* OpenFlipper is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of *
* the License, or (at your option) any later version with the *
* following exceptions: *
* *
* If other files instantiate templates or use macros *
* or inline functions from this file, or you compile this file and *
* link it with other files to produce an executable, this file does *
* not by itself cause the resulting executable to be covered by the *
* GNU Lesser General Public License. This exception does not however *
* invalidate any other reasons why the executable file might be *
* covered by the GNU Lesser General Public License. *
* *
* OpenFlipper 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 Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU LesserGeneral Public *
* License along with OpenFlipper. If not, *
* see <http://www.gnu.org/licenses/>. *
* *
\*===========================================================================*/
/*===========================================================================*\
* *
* $Revision$ *
* $LastChangedBy$ *
* $Date$ *
* *
\*===========================================================================*/
#include "FileLgt.hh"
int FileLightPlugin::addNewLight() {
return addEmpty();
}
...@@ -79,9 +79,6 @@ class FileViewPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInt ...@@ -79,9 +79,6 @@ class FileViewPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInt
void initializePlugin(); void initializePlugin();
// Deprecated!
int addEmpty() { return -1; };
public : public :
~FileViewPlugin() {}; ~FileViewPlugin() {};
......
/*===========================================================================*\
* *
* OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org *
* *
*--------------------------------------------------------------------------- *
* This file is part of OpenFlipper. *
* *
* OpenFlipper is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of *
* the License, or (at your option) any later version with the *
* following exceptions: *
* *
* If other files instantiate templates or use macros *
* or inline functions from this file, or you compile this file and *
* link it with other files to produce an executable, this file does *
* not by itself cause the resulting executable to be covered by the *
* GNU Lesser General Public License. This exception does not however *
* invalidate any other reasons why the executable file might be *
* covered by the GNU Lesser General Public License. *
* *
* OpenFlipper 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 Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU LesserGeneral Public *
* License along with OpenFlipper. If not, *
* see <http://www.gnu.org/licenses/>. *
* *
\*===========================================================================*/
/*===========================================================================*\
* *
* $Revision$ *
* $LastChangedBy$ *
* $Date$ *
* *
\*===========================================================================*/
#include "FileOfv.hh"
...@@ -78,9 +78,6 @@ class FilePlaPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInte ...@@ -78,9 +78,6 @@ class FilePlaPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInte
void initializePlugin(); void initializePlugin();
// Deprecated!
int addEmpty() { return -1; };
public : public :
~FilePlaPlugin() {}; ~FilePlaPlugin() {};
......
/*===========================================================================*\
* *
* OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org *
* *
*--------------------------------------------------------------------------- *
* This file is part of OpenFlipper. *
* *
* OpenFlipper is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of *
* the License, or (at your option) any later version with the *
* following exceptions: *
* *
* If other files instantiate templates or use macros *
* or inline functions from this file, or you compile this file and *
* link it with other files to produce an executable, this file does *
* not by itself cause the resulting executable to be covered by the *
* GNU Lesser General Public License. This exception does not however *
* invalidate any other reasons why the executable file might be *
* covered by the GNU Lesser General Public License. *
* *
* OpenFlipper 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 Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU LesserGeneral Public *
* License along with OpenFlipper. If not, *
* see <http://www.gnu.org/licenses/>. *
* *
\*===========================================================================*/
/*===========================================================================*\
* *
* $Revision$ *
* $LastChangedBy$ *
* $Date$ *
* *
\*===========================================================================*/
#include "FilePla.hh"
int FilePlaPlugin::addNewPlane() {
return addEmpty();
}
...@@ -44,11 +44,6 @@ class FilePolyLinePlugin : public QObject, BaseInterface, FileInterface, LoadSav ...@@ -44,11 +44,6 @@ class FilePolyLinePlugin : public QObject, BaseInterface, FileInterface, LoadSav
void initializePlugin(); void initializePlugin();
public slots:
// Deprecated
int addEmpty() { return -1; };
public : public :
~FilePolyLinePlugin() {}; ~FilePolyLinePlugin() {};
......
#include "FilePolyLine.hh"
int FilePolyLinePlugin::addNewPolyLine( ) {
return addEmpty();
}
...@@ -105,8 +105,6 @@ class FileSKLPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInte ...@@ -105,8 +105,6 @@ class FileSKLPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInte
bool saveObject(int _id, QString _filename); bool saveObject(int _id, QString _filename);
int addNewSkeleton();
private : private :
template<typename Skeleton> bool LoadSkeleton(Skeleton *_pSkeleton, QString _filename); template<typename Skeleton> bool LoadSkeleton(Skeleton *_pSkeleton, QString _filename);
template<typename Skeleton> bool SaveSkeleton(Skeleton *_pSkeleton, QString _filename); template<typename Skeleton> bool SaveSkeleton(Skeleton *_pSkeleton, QString _filename);
......
#include "FileSkeleton.hh"
int FileSKLPlugin::addNewSkeleton( ) {
return addEmpty();
}
...@@ -80,9 +80,6 @@ class FileSPHPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInte ...@@ -80,9 +80,6 @@ class FileSPHPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInte
void initializePlugin(); void initializePlugin();
// Deprecated!
int addEmpty() { return -1; };
public : public :
~FileSPHPlugin() {}; ~FileSPHPlugin() {};
...@@ -104,8 +101,6 @@ class FileSPHPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInte ...@@ -104,8 +101,6 @@ class FileSPHPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInte
bool saveObject(int _id, QString _filename); bool saveObject(int _id, QString _filename);
int addNewSphere();
QString version() { return QString("1.0"); }; QString version() { return QString("1.0"); };
private : private :
......
/*===========================================================================*\
* *
* OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org *
* *
*--------------------------------------------------------------------------- *
* This file is part of OpenFlipper. *
* *
* OpenFlipper is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of *
* the License, or (at your option) any later version with the *
* following exceptions: *
* *
* If other files instantiate templates or use macros *
* or inline functions from this file, or you compile this file and *
* link it with other files to produce an executable, this file does *
* not by itself cause the resulting executable to be covered by the *
* GNU Lesser General Public License. This exception does not however *
* invalidate any other reasons why the executable file might be *
* covered by the GNU Lesser General Public License. *
* *
* OpenFlipper 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 Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU LesserGeneral Public *
* License along with OpenFlipper. If not, *
* see <http://www.gnu.org/licenses/>. *
* *
\*===========================================================================*/
/*===========================================================================*\
* *
* $Revision$ *
* $LastChangedBy$ *
* $Date$ *
* *
\*===========================================================================*/
#include "FileSPH.hh"
int FileSPHPlugin::addNewSphere() {
return addEmpty();
}
...@@ -86,9 +86,6 @@ class FileSTLPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInte ...@@ -86,9 +86,6 @@ class FileSTLPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInte
void initializePlugin(); void initializePlugin();
// Deprecated!
int addEmpty() { return -1; };
/// Slot called when user wants to save the given Load options as default /// Slot called when user wants to save the given Load options as default
void slotLoadDefault(); void slotLoadDefault();
......
...@@ -97,9 +97,6 @@ class FileScriptPlugin : public QObject, BaseInterface, FileInterface, LoadSaveI ...@@ -97,9 +97,6 @@ class FileScriptPlugin : public QObject, BaseInterface, FileInterface, LoadSaveI
int loadObject(QString _filename); int loadObject(QString _filename);
/// No objects are added by this Plugin so ignore the addEmpty call
int addEmpty(){ return -1; };
/// No objects are saved by this Plugin so ignore the saveObject call /// No objects are saved by this Plugin so ignore the saveObject call
bool saveObject(int /*_id*/, QString /*_filename*/) { return false;} bool saveObject(int /*_id*/, QString /*_filename*/) { return false;}
......
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