LoadSaveInterface Class Reference

Interface for all plugins which want to load or save files. More...

#include <LoadSaveInterface.hh>

List of all members.

Signals

virtual void load (QString, DataType, int &)
virtual void addEmptyObject (DataType, int &)
virtual void copyObject (int, int &)
virtual void save (int, QString)
virtual void openedFile (int)
 file has been opened
virtual void emptyObjectAdded (int)
 Emit this signal if an empty object has been created.
virtual void getAllFilters (QStringList &)
 get a list of all Filters
virtual void deleteObject (int)
 Delete an object.
virtual void deleteAllObjects ()
 Delete all Objects.

Public Member Functions

virtual ~LoadSaveInterface ()
 Destructor.

Private Slots

virtual void fileOpened (int)
 A file has been opened.
virtual void addedEmptyObject (int)
 An empty object has been added.
virtual void objectDeleted (int)
 An object was deleted.

Detailed Description

Interface for all plugins which want to load or save files.

Using this interface you can instruct the core to open/save objects or create new empty objects.

Definition at line 65 of file LoadSaveInterface.hh.


Member Function Documentation

virtual void LoadSaveInterface::addedEmptyObject ( int   )  [inline, private, virtual, slot]

An empty object has been added.

This slot is called if an empty object has been added by the core.

Parameters:
_id Id of the new object

Definition at line 146 of file LoadSaveInterface.hh.

virtual void LoadSaveInterface::addEmptyObject ( DataType  ,
int &   
) [inline, virtual, signal]

Add an empty object of the given type

Parameters:
_type Type to be created
_id Here the id of the loaded object is returned. id its -1 something went wrong

Definition at line 86 of file LoadSaveInterface.hh.

virtual void LoadSaveInterface::copyObject ( int  ,
int &   
) [inline, virtual, signal]

Create a copy of an existing object

Parameters:
_oldId id of the object to copy
_newId id of the new object created

Definition at line 93 of file LoadSaveInterface.hh.

virtual void LoadSaveInterface::deleteAllObjects (  )  [inline, virtual, signal]

Delete all Objects.

Definition at line 130 of file LoadSaveInterface.hh.

virtual void LoadSaveInterface::deleteObject ( int   )  [inline, virtual, signal]

Delete an object.

Parameters:
_id Id of the object

Definition at line 125 of file LoadSaveInterface.hh.

virtual void LoadSaveInterface::emptyObjectAdded ( int   )  [inline, virtual, signal]

Emit this signal if an empty object has been created.

Parameters:
_id Id of the added object

Definition at line 110 of file LoadSaveInterface.hh.

virtual void LoadSaveInterface::fileOpened ( int   )  [inline, private, virtual, slot]

A file has been opened.

This slot is called if a file has been opened by the core.

Parameters:
_id Id of the new object

Definition at line 139 of file LoadSaveInterface.hh.

virtual void LoadSaveInterface::getAllFilters ( QStringList &   )  [inline, virtual, signal]

get a list of all Filters

request a list of all Filters

Parameters:
_list StringList where the filters should be put into

Definition at line 118 of file LoadSaveInterface.hh.

virtual void LoadSaveInterface::load ( QString  ,
DataType  ,
int &   
) [inline, virtual, signal]

Tries to load the file as a given type

Parameters:
_filename Filename of the File to load
_type Type to be loaded
_id Here the id of the loaded object is returned. id its -1 something went wrong

Definition at line 79 of file LoadSaveInterface.hh.

virtual void LoadSaveInterface::objectDeleted ( int   )  [inline, private, virtual, slot]

An object was deleted.

Parameters:
_id Id of the object

Definition at line 152 of file LoadSaveInterface.hh.

virtual void LoadSaveInterface::openedFile ( int   )  [inline, virtual, signal]

file has been opened

Parameters:
_id Id of the opened object

Definition at line 105 of file LoadSaveInterface.hh.

virtual void LoadSaveInterface::save ( int  ,
QString   
) [inline, virtual, signal]
Parameters:
_id Object to Save
_filename Filename to save it to (Leave as "" to automatically determine filename)

Definition at line 100 of file LoadSaveInterface.hh.


The documentation for this class was generated from the following file:

acg pic Project OpenFlipper, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .