Commit dc1ef0f7 authored by Jan Möbius's avatar Jan Möbius
Browse files

Renamed Plugin

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10748 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 581d0c46
......@@ -45,7 +45,7 @@
#include <QFileInfo>
#include <QSettings>
#include "FilePlane.hh"
#include "FilePla.hh"
#include <iostream>
#include <ACG/GL/GLState.hh>
......@@ -57,23 +57,23 @@
#include <OpenFlipper/ACGHelper/DrawModeConverter.hh>
void FilePlanePlugin::initializePlugin() {
void FilePlaPlugin::initializePlugin() {
}
QString FilePlanePlugin::getLoadFilters() {
QString FilePlaPlugin::getLoadFilters() {
return QString( tr("Plane files ( *.pla )") );
};
QString FilePlanePlugin::getSaveFilters() {
QString FilePlaPlugin::getSaveFilters() {
return QString( tr("Plane files ( *.pla )") );
};
DataType FilePlanePlugin::supportedType() {
DataType FilePlaPlugin::supportedType() {
DataType type = DATA_PLANE;
return type;
}
int FilePlanePlugin::loadObject(QString _filename)
int FilePlaPlugin::loadObject(QString _filename)
{
int id = -1;
emit addEmptyObject( DATA_PLANE, id );
......@@ -120,7 +120,7 @@ int FilePlanePlugin::loadObject(QString _filename)
return id;
};
bool FilePlanePlugin::saveObject(int _id, QString _filename)
bool FilePlaPlugin::saveObject(int _id, QString _filename)
{
BaseObjectData* obj(0);
......@@ -151,7 +151,7 @@ bool FilePlanePlugin::saveObject(int _id, QString _filename)
return true;
}
QString FilePlanePlugin::get_unique_name(PlaneObject* _object)
QString FilePlaPlugin::get_unique_name(PlaneObject* _object)
{
bool name_unique = false;
......@@ -178,5 +178,5 @@ QString FilePlanePlugin::get_unique_name(PlaneObject* _object)
return QString(tr("Plane %1.pla").arg( cur_idx ));
}
Q_EXPORT_PLUGIN2( fileplaneplugin , FilePlanePlugin );
Q_EXPORT_PLUGIN2( fileplaplugin , FilePlaPlugin );
......@@ -40,8 +40,8 @@
* *
\*===========================================================================*/
#ifndef FILEPLANEPLUGIN_HH
#define FILEPLANEPLUGIN_HH
#ifndef FILEPLAPLUGIN_HH
#define FILEPLAPLUGIN_HH
#include <QObject>
......@@ -54,7 +54,7 @@
#include <OpenFlipper/BasePlugin/INIInterface.hh>
#include <ObjectTypes/Plane/Plane.hh>
class FilePlanePlugin : public QObject, BaseInterface, FileInterface, LoadSaveInterface, LoggingInterface, ScriptInterface, INIInterface
class FilePlaPlugin : public QObject, BaseInterface, FileInterface, LoadSaveInterface, LoggingInterface, ScriptInterface, INIInterface
{
Q_OBJECT
Q_INTERFACES(FileInterface)
......@@ -87,7 +87,7 @@ class FilePlanePlugin : public QObject, BaseInterface, FileInterface, LoadSaveIn
public :
~FilePlanePlugin() {};
~FilePlaPlugin() {};
QString name() { return (QString("FilePlane")); };
QString description( ) { return (QString(tr("Load/Save Planes"))); };
......@@ -115,4 +115,4 @@ class FilePlanePlugin : public QObject, BaseInterface, FileInterface, LoadSaveIn
QString get_unique_name(PlaneObject* _object);
};
#endif //FILEPLANEPLUGIN_HH
#endif //FILEPLAPLUGIN_HH
......@@ -40,9 +40,9 @@
* *
\*===========================================================================*/
#include "FilePlane.hh"
#include "FilePla.hh"
int FilePlanePlugin::addNewPlane() {
int FilePlaPlugin::addNewPlane() {
return addEmpty();
}
......
################################################################################
#
################################################################################
include( $$TOPDIR/qmake/all.include )
Plugin()
openmp()
DIRECTORIES = .
# Input
HEADERS += $$getFilesFromDir($$DIRECTORIES,*.hh)
SOURCES += $$getFilesFromDir($$DIRECTORIES,*.cc)
FORMS += $$getFilesFromDir($$DIRECTORIES,*.ui)
################################################################################
Supports Markdown
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