42 #ifndef FILESKLPLUGIN_HH 43 #define FILESKLPLUGIN_HH 54 #include <OpenFlipper/BasePlugin/INIInterface.hh> 66 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-FileSkeleton")
68 void openedFile(
int _id );
69 void addEmptyObject(
DataType _type,
int& _id);
70 void load(QString _filename,
DataType _type,
int& _id);
71 void save(
int _id , QString _filename );
72 void log(
Logtype _type, QString _message);
73 void log(QString _message);
74 void updatedObject(
int _identifier,
const UpdateType& _type);
78 void fileOpened(
int ){};
91 QString
name() {
return (QString(
"FileSKL")); };
92 QString
description( ) {
return (QString(
"Load/Save Skeletons")); };
104 int loadObject(QString _filename);
106 bool saveObject(
int _id, QString _filename);
109 template<
typename Skeleton>
bool LoadSkeleton(
Skeleton *_pSkeleton, QString _filename);
110 template<
typename Skeleton>
bool SaveSkeleton(
Skeleton *_pSkeleton, QString _filename);
114 #endif //FILESKLPLUGIN_HH Interface class for Plugins which have to store information in ini files.
Logtype
Log types for Message Window.
Interface for all plugins which want to Load or Save files and create Objects.
Interface for all Plugins which provide scriptable Functions.
Interface for all Plugins which do logging to the logging window of the framework.
QString name()
Return a name for the plugin.
QWidget * saveOptionsWidget(QString)
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
void loadIniFile(INIFile &_ini, int _id)
Load per object settings.
Interface class from which all plugins have to be created.
Interface class for file handling.
QWidget * loadOptionsWidget(QString)
void saveIniFile(INIFile &_ini, int _id)
Save per object settings.
QString description()
Return a description of what the plugin is doing.
void initializePlugin()
Initialize Plugin.
Class for the handling of simple configuration files.