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