44 #ifndef FILEPLAPLUGIN_HH 45 #define FILEPLAPLUGIN_HH 66 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FilePla")
69 void openedFile(
int _id );
70 void addEmptyObject(
DataType _type,
int& _id);
71 void load(QString _filename,
DataType _type,
int& _id);
72 void save(
int _id , QString _filename );
73 void log(
Logtype _type, QString _message);
74 void log(QString _message);
75 void updatedObject(
int _identifier,
const UpdateType& _type);
79 void fileOpened(
int ){};
89 QString
name() {
return (QString(
"FilePlane")); };
90 QString
description( ) {
return (QString(tr(
"Load/Save Planes"))); };
102 int loadObject(QString _filename);
104 bool saveObject(
int _id, QString _filename);
106 QString version() {
return QString(
"1.0"); };
110 #endif //FILEPLAPLUGIN_HH
Logtype
Log types for Message Window.
Interface for all plugins which want to Load or Save files and create Objects.
Interface for all Plugins which provide scriptable Functions.
Interface for all Plugins which do logging to the logging window of the framework.
QWidget * loadOptionsWidget(QString)
Interface class from which all plugins have to be created.
Interface class for file handling.
QString name()
Return a name for the plugin.
QString description()
Return a description of what the plugin is doing.
QWidget * saveOptionsWidget(QString)
void initializePlugin()
Initialize Plugin.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )