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 QWidget * saveOptionsWidget(QString)
Logtype
Log types for Message Window.
void initializePlugin()
Initialize Plugin.
Interface for all Plugins which provide scriptable Functions.
Interface class from which all plugins have to be created.
Interface for all Plugins which do logging to the logging window of the framework.
QWidget * loadOptionsWidget(QString)
Interface class for file handling.
QString description()
Return a description of what the plugin is doing.
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.
QString name()
Return a name for the plugin.