50 #ifndef FILELIGHTPLUGIN_HH
51 #define FILELIGHTPLUGIN_HH
71 #if QT_VERSION >= 0x050000
72 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileLgt")
75 void openedFile(
int _id );
76 void addEmptyObject(
DataType _type,
int& _id);
77 void load(QString _filename,
DataType _type,
int& _id);
78 void save(
int _id , QString _filename );
79 void log(
Logtype _type, QString _message);
80 void log(QString _message);
82 void updatedObject(
int _id,
const UpdateType& _type);
86 void fileOpened(
int ){};
96 QString
name() {
return (QString(
"FileLight")); };
97 QString
description( ) {
return (QString(tr(
"Load/Save Lights"))); };
109 int loadObject(QString _filename);
111 bool saveObject(
int _id, QString _filename);
113 QString version() {
return QString(
"1.0"); };
117 #endif //FILELIGHTPLUGIN_HH
Interface class from which all plugins have to be created.
QWidget * saveOptionsWidget(QString)
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.
void initializePlugin()
Initialize Plugin.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
QString description()
Return a description of what the plugin is doing.
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)