62 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileLgt")
64 void openedFile(
int _id );
65 void addEmptyObject(
DataType _type,
int& _id);
66 void load(QString _filename,
DataType _type,
int& _id);
67 void save(
int _id , QString _filename );
68 void log(
Logtype _type, QString _message);
69 void log(QString _message);
71 void updatedObject(
int _id,
const UpdateType& _type);
75 void fileOpened(
int ){};
85 QString
name() {
return (QString(
"FileLight")); };
86 QString
description( ) {
return (QString(tr(
"Load/Save Lights"))); };
98 int loadObject(QString _filename);
100 bool saveObject(
int _id, QString _filename);
102 QString version() {
return QString(
"1.0"); };
QString name()
Return a name for the plugin.
Logtype
Log types for Message Window.
QString description()
Return a description of what the plugin is doing.
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.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
Interface class from which all plugins have to be created.
Interface class for file handling.
QWidget * saveOptionsWidget(QString)
QWidget * loadOptionsWidget(QString)
void initializePlugin()
Initialize Plugin.