ardour
|
#include <audio_region_importer.h>
Public Member Functions | |
AudioRegionImporter (XMLTree const &source, Session &session, AudioRegionImportHandler &handler, XMLNode const &node) | |
~AudioRegionImporter () | |
std::string | get_info () const |
ImportStatus * | get_import_status () |
void | add_sources_to_session () |
XMLNode const & | get_xml () |
Public Member Functions inherited from ARDOUR::ElementImporter | |
ElementImporter (XMLTree const &source, ARDOUR::Session &session) | |
virtual | ~ElementImporter () |
virtual std::string | get_name () const |
bool | prepare_move () |
void | cancel_move () |
void | move () |
Moves the element to the taget session. More... | |
bool | broken () |
Check if element is broken. Cannot be moved if broken. More... | |
Protected Member Functions | |
bool | _prepare_move () |
void | _cancel_move () |
Cancel move. More... | |
void | _move () |
Protected Member Functions inherited from ARDOUR::ElementImporter | |
bool | queued () |
Ture if the element has been prepared and queued for importing. More... | |
std::string | timecode_to_string (Timecode::Time &time) const |
Converts timecode time to a string. More... | |
framecnt_t | rate_convert_samples (framecnt_t samples) const |
Converts samples so that times match the sessions sample rate. More... | |
std::string | rate_convert_samples (std::string const &samples) const |
Converts samples so that times match the sessions sample rate (for straight use in XML) More... | |
void | set_broken () |
Set element broken. More... | |
Private Member Functions | |
bool | parse_xml_region () |
bool | parse_source_xml () |
std::string | get_sound_dir (XMLTree const &tree) |
void | prepare_region () |
void | prepare_sources () |
Private Attributes | |
XMLNode | xml_region |
AudioRegionImportHandler & | handler |
PBD::ID | old_id |
PBD::ID | id |
std::list< std::string > | filenames |
ImportStatus | status |
std::vector< boost::shared_ptr < Region > > | region |
bool | region_prepared |
bool | sources_prepared |
Additional Inherited Members | |
Static Public Attributes inherited from ARDOUR::ElementImporter | |
static PBD::Signal2< std::pair < bool, std::string > , std::string, std::string > | Rename |
Signal that requests for anew name. More... | |
static PBD::Signal1< bool, std::string > | Prompt |
Signal for ok/cancel prompting. More... | |
Protected Attributes inherited from ARDOUR::ElementImporter | |
XMLTree const & | source |
Source XML-tree. More... | |
ARDOUR::Session & | session |
Target session. More... | |
std::string | name |
Name of element. More... | |
framecnt_t | sample_rate |
The sample rate of the session from which we are importing. More... | |
Definition at line 72 of file audio_region_importer.h.
AudioRegionImporter::AudioRegionImporter | ( | XMLTree const & | source, |
Session & | session, | ||
AudioRegionImportHandler & | handler, | ||
XMLNode const & | node | ||
) |
Definition at line 109 of file audio_region_importer.cc.
AudioRegionImporter::~AudioRegionImporter | ( | ) |
Definition at line 123 of file audio_region_importer.cc.
|
protectedvirtual |
Cancel move.
Implements ARDOUR::ElementImporter.
Definition at line 163 of file audio_region_importer.cc.
|
protectedvirtual |
Moves the element to the taget session In addition to actually adding the element to the session changing ids, renaming files etc. should be taken care of.
Implements ARDOUR::ElementImporter.
Definition at line 168 of file audio_region_importer.cc.
|
protectedvirtual |
Should take care of all tasks that need to be done before moving the element. This includes prompting the user for more information if necessary.
Implements ARDOUR::ElementImporter.
Definition at line 157 of file audio_region_importer.cc.
void AudioRegionImporter::add_sources_to_session | ( | ) |
Definition at line 373 of file audio_region_importer.cc.
|
inlinevirtual |
Gets import status, if applicable.
Reimplemented from ARDOUR::ElementImporter.
Definition at line 80 of file audio_region_importer.h.
|
virtual |
Gets a textual representation of the element
Implements ARDOUR::ElementImporter.
Definition at line 128 of file audio_region_importer.cc.
|
private |
Definition at line 291 of file audio_region_importer.cc.
XMLNode const & AudioRegionImporter::get_xml | ( | ) |
Definition at line 389 of file audio_region_importer.cc.
|
private |
Definition at line 233 of file audio_region_importer.cc.
|
private |
Definition at line 183 of file audio_region_importer.cc.
|
private |
Definition at line 298 of file audio_region_importer.cc.
|
private |
Definition at line 329 of file audio_region_importer.cc.
|
private |
Definition at line 97 of file audio_region_importer.h.
|
private |
Definition at line 94 of file audio_region_importer.h.
|
private |
Definition at line 96 of file audio_region_importer.h.
|
private |
Definition at line 95 of file audio_region_importer.h.
|
private |
Definition at line 106 of file audio_region_importer.h.
|
private |
Definition at line 107 of file audio_region_importer.h.
|
private |
Definition at line 108 of file audio_region_importer.h.
|
private |
Definition at line 98 of file audio_region_importer.h.
|
private |
Definition at line 93 of file audio_region_importer.h.