50 #ifndef FILEVIEWPLUGIN_HH
51 #define FILEVIEWPLUGIN_HH
70 #if QT_VERSION >= 0x050000
71 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileOfv")
74 void openedFile(
int _id );
75 void addEmptyObject(
DataType _type,
int& _id);
76 void load(QString _filename,
DataType _type,
int& _id);
77 void save(
int _id , QString _filename );
78 void log(
Logtype _type, QString _message);
79 void log(QString _message);
85 void fileOpened(
int ){};
95 QString
name() {
return (QString(
"FileView")); };
96 QString
description( ) {
return (QString(tr(
"Load/Save Views"))); };
108 int loadObject(QString _filename);
110 bool saveObject(
int _id, QString _filename);
112 QString version() {
return QString(
"1.0"); };
115 #endif //FILEVIEWPLUGIN_HH
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
Interface for all plugins which want to Load or Save files and create Objects.
Interface for all Plugins which provide scriptable Functions.
QWidget * loadOptionsWidget(QString)
Interface for all Plugins which do logging to the logging window of the framework.
QWidget * saveOptionsWidget(QString)
Interface class from which all plugins have to be created.
void initializePlugin()
Initialize Plugin.
Logtype
Log types for Message Window.
Interface class for file handling.
QString description()
Return a description of what the plugin is doing.
QString name()
Return a name for the plugin.