50 #ifndef FILEPLAPLUGIN_HH
51 #define FILEPLAPLUGIN_HH
72 #if QT_VERSION >= 0x050000
73 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FilePla")
77 void openedFile(
int _id );
78 void addEmptyObject(
DataType _type,
int& _id);
79 void load(QString _filename,
DataType _type,
int& _id);
80 void save(
int _id , QString _filename );
81 void log(
Logtype _type, QString _message);
82 void log(QString _message);
83 void updatedObject(
int _identifier,
const UpdateType& _type);
87 void fileOpened(
int ){};
97 QString
name() {
return (QString(
"FilePlane")); };
98 QString
description( ) {
return (QString(tr(
"Load/Save Planes"))); };
110 int loadObject(QString _filename);
112 bool saveObject(
int _id, QString _filename);
114 QString version() {
return QString(
"1.0"); };
118 #endif //FILEPLAPLUGIN_HH
void initializePlugin()
Initialize Plugin.
Interface class from which all plugins have to be created.
QString description()
Return a description of what the plugin is doing.
Logtype
Log types for Message Window.
Interface for all Plugins which do logging to the logging window of the framework.
Interface class for file handling.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
QWidget * saveOptionsWidget(QString)
Interface for all Plugins which provide scriptable Functions.
Interface for all plugins which want to Load or Save files and create Objects.
QString name()
Return a name for the plugin.
QWidget * loadOptionsWidget(QString)