44 #ifndef FILEVIEWPLUGIN_HH 45 #define FILEVIEWPLUGIN_HH 64 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileOfv")
66 void openedFile(
int _id );
67 void addEmptyObject(
DataType _type,
int& _id);
68 void load(QString _filename,
DataType _type,
int& _id);
69 void save(
int _id , QString _filename );
70 void log(
Logtype _type, QString _message);
71 void log(QString _message);
77 void fileOpened(
int ){};
87 QString
name() {
return (QString(
"FileView")); };
88 QString
description( ) {
return (QString(tr(
"Load/Save Views"))); };
100 int loadObject(QString _filename);
102 bool saveObject(
int _id, QString _filename);
104 QString version() {
return QString(
"1.0"); };
107 #endif //FILEVIEWPLUGIN_HH
QWidget * loadOptionsWidget(QString)
QString description()
Return a description of what the plugin is doing.
Logtype
Log types for Message Window.
QString name()
Return a name for the plugin.
Interface for all Plugins which do logging to the logging window of the framework.
QWidget * saveOptionsWidget(QString)
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
Interface for all Plugins which provide scriptable Functions.
void initializePlugin()
Initialize Plugin.
Interface class from which all plugins have to be created.
Interface class for file handling.
Interface for all plugins which want to Load or Save files and create Objects.