#include <FileListC.h>
Inheritance diagram for FileListC:
Public Methods | |
virtual Edit::DataBlockI * | create () |
Create new file list. | |
virtual Edit::DataBlockI * | create (Edit::EditableI *pOriginal) |
Creates new file list(used internally), see Edit::EditableI::create(). | |
virtual void | copy (Edit::EditableI *pEditable) |
Deep copy from a data block, see Edit::DataBlockI::copy(). | |
virtual void | restore (Edit::EditableI *pEditable) |
Shallow copy from a editable, see Edit::EditableI::restore(). | |
virtual FileHandleC * | add_file (ImportableI *pImportable, FileHandleC *pFolder) |
Loads a file and adds it to the list. | |
virtual FileHandleC * | add_folder (const char *szName, FileHandleC *pFolder) |
virtual PajaTypes::uint32 | get_file_count () |
Returns number of files in the list. | |
virtual void | reload_file (PajaTypes::uint32 ui32Index, ImportInterfaceC *pIface) |
Reloads a file already in the list. | |
virtual void | replace_file (PajaTypes::uint32 ui32Index, const char *szName, ImportInterfaceC *pIface) |
Replaces a file inthe list with another file . | |
virtual FileHandleC * | get_file (PajaTypes::uint32 ui32Index) |
Returns the file at given index. | |
virtual FileHandleC * | get_file (const char *szName) |
Returns the file with given name. | |
virtual FileHandleC * | get_equal_file (ImportableI *pImportable) |
Returns equal file if exists. | |
virtual void | del_file (PajaTypes::uint32 ui32Index) |
Deletes the file at given index. | |
virtual void | del_file (FileHandleC *pHandle) |
Deletes the file at given handle. | |
virtual bool | prompt_properties (PajaTypes::uint32 ui32Index, PajaSystem::DeviceContextC *pContext, PajaSystem::TimeContextC *pTimeContext, ImportInterfaceC *pIface) |
Prompts file properties. | |
virtual PajaTypes::uint32 | save (FileIO::SaveC *pSave) |
Save editable to a Demopaja output stream. | |
virtual PajaTypes::uint32 | load (FileIO::LoadC *pLoad) |
Load editable from a Demopaja input stream. | |
Static Public Methods | |
FileListC * | create_new () |
Create new file list. | |
Protected Methods | |
FileListC () | |
Default constructor. | |
FileListC (Edit::EditableI *pOriginal) | |
Default constructor with reference to the original. | |
virtual | ~FileListC () |
Default destructor. | |
void | clear_list () |
Clears the internal file list, but doesn't delete the content. |
File list class manages the imported files. It checks for duplicates enables to load, reload, replace, and delete importable files. Changes made to file list are also undoable. This class is used internally.
This class is implemented by the system.
|
Default constructor.
|
|
Default constructor with reference to the original.
|
|
Default destructor.
|
|
Loads a file and adds it to the list.
|
|
Clears the internal file list, but doesn't delete the content.
|
|
Deep copy from a data block, see Edit::DataBlockI::copy().
Implements EditableI. |
|
Creates new file list(used internally), see Edit::EditableI::create().
Implements EditableI. |
|
Create new file list.
Implements EditableI. |
|
Create new file list.
|
|
Deletes the file at given handle.
|
|
Deletes the file at given index.
|
|
Returns equal file if exists.
|
|
Returns the file with given name.
|
|
Returns the file at given index.
|
|
Returns number of files in the list.
|
|
Load editable from a Demopaja input stream.
Implements EditableI. |
|
Prompts file properties.
|
|
Reloads a file already in the list. This method will create a new instace of the same plugin class and attach it to the file handle. The old instance is not used. The caller of this method is responsible to update every parameter which has the filehandle of this importable points. The Demopaja GUI does that every time the reload is requested. |
|
Replaces a file inthe list with another file . This method will create a new instace of the same plugin class and attach it to the file handle. The old instance is not used. The caller of this method is responsible to update every parameter which has the filehandle of this importable points. The Demopaja GUI does that every time the replace is requested. |
|
Shallow copy from a editable, see Edit::EditableI::restore().
Implements EditableI. |
|
Save editable to a Demopaja output stream.
Implements EditableI. |