51 #ifndef FILEINTERFACE_HH 52 #define FILEINTERFACE_HH 165 virtual int loadObject(QString _filename) = 0;
197 virtual bool saveObject(
int _id, QString _filename) = 0;
349 Q_DECLARE_INTERFACE(
FileInterface,
"OpenFlipper.FileInterface/1.0")
351 #endif // FILEINTERFACE_HH
virtual DataType supportedType()=0
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
virtual void openedFile(int _id)
This signal has to be emitted if an object has been loaded from a file.
virtual ~FileInterface()
Destructor.
virtual int loadObject(QString _filename)=0
Load an object from the given file.
virtual bool saveObject(int _id, QString _filename)=0
Save an object from the given file.
virtual QWidget * saveOptionsWidget(QString _currentFilter)=0
virtual QString getLoadFilters()=0
virtual bool saveObjects(IdList _ids, QString _filename)
Save multiple objects to one file.
Interface class for file handling.
std::vector< int > IdList
Standard Type for id Lists used for scripting.
virtual QString getSaveFilters()=0
virtual int loadObject(QString _filename, DataType _type)
Load an object from the given file.
virtual QWidget * loadOptionsWidget(QString _currentFilter)=0