Virtual interface class for element importers.
bool queued()
Ture if the element has been prepared and queued for importing.
virtual void _cancel_move()=0
Cancel move.
void move()
Moves the element to the taget session.
static PBD::Signal< std::pair< bool, std::string >std::string, std::string)> Rename
Signal that requests for anew name.
virtual bool _prepare_move()=0
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)
virtual std::string get_name() const
XMLTree const & source
Source XML-tree.
void set_broken()
Set element broken.
virtual std::string get_info() const =0
static PBD::Signal< bool(std::string)> Prompt
Signal for ok/cancel prompting.
samplecnt_t rate_convert_samples(samplecnt_t samples) const
Converts samples so that times match the sessions sample rate.
ARDOUR::Session & session
Target session.
samplecnt_t sample_rate
The sample rate of the session from which we are importing.
bool broken()
Check if element is broken. Cannot be moved if broken.
std::string name
Name of element.
ElementImporter(XMLTree const &source, ARDOUR::Session &session)
virtual ImportStatus * get_import_status()
std::string timecode_to_string(Timecode::Time &time) const
Converts timecode time to a string.
virtual ~ElementImporter()
GtkImageIconNameData name
void session(lua_State *L)
Temporal::samplecnt_t samplecnt_t