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
QWidget * loadOptionsWidget(QString)
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
Logtype
Log types for Message Window.
void initializePlugin()
Initialize Plugin.
Interface for all Plugins which provide scriptable Functions.
QString name()
Return a name for the plugin.
Interface class from which all plugins have to be created.
Interface for all Plugins which do logging to the logging window of the framework.
QString description()
Return a description of what the plugin is doing.
Interface class for file handling.
Interface for all plugins which want to Load or Save files and create Objects.
QWidget * saveOptionsWidget(QString)