156 virtual int loadObject(QString _filename) = 0;
188 virtual bool saveObject(
int _id, QString _filename) = 0;
340 Q_DECLARE_INTERFACE(
FileInterface,
"OpenFlipper.FileInterface/1.0")
virtual QWidget * saveOptionsWidget(QString _currentFilter)=0
virtual QString getLoadFilters()=0
virtual ~FileInterface()
Destructor.
std::vector< int > IdList
Standard Type for id Lists used for scripting.
virtual int loadObject(QString _filename, DataType _type)
Load an object from the given file.
virtual bool saveObject(int _id, QString _filename)=0
Save an object from the given file.
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 int loadObject(QString _filename)=0
Load an object from the given file.
virtual bool saveObjects(IdList _ids, QString _filename)
Save multiple objects to one file.
virtual QWidget * loadOptionsWidget(QString _currentFilter)=0
virtual QString getSaveFilters()=0
Interface class for file handling.