Labels Class Reference

#include <labels.h>

Inherits List< Label >.

Collaboration diagram for Labels:

Collaboration graph
[legend]

Public Member Functions

 Labels (EDL *edl, char *xml_tag)
virtual ~Labels ()
void dump ()
Labelsoperator= (Labels &that)
void copy_from (Labels *labels)
int toggle_label (double start, double end)
int delete_all ()
int save (FileXML *xml)
int load (FileXML *xml, uint32_t load_flags)
void insert_labels (Labels *labels, double start, double length, int paste_silence=1)
int modify_handles (double oldposition, double newposition, int currentend, int handle_mode, int edit_labels)
int copy (double start, double end, FileXML *xml)
int copy_length (long start, long end)
int insert (double start, double length)
int paste (long start, long end, long total_length, FileXML *xml)
int paste_output (long startproject, long endproject, long startsource, long endsource, RecordLabels *labels)
int clear (double start, double end, int follow=1)
int paste_silence (double start, double end)
int optimize ()
Labelprev_label (double position)
Labelnext_label (double position)
Labellabel_of (double position)

Data Fields

MWindowmwindow
TimeBartimebar
EDLedl
char * xml_tag

Detailed Description

Definition at line 43 of file labels.h.


Constructor & Destructor Documentation

Labels::Labels ( EDL edl,
char *  xml_tag 
)

Definition at line 18 of file labels.C.

Labels::~Labels (  )  [virtual]

Definition at line 25 of file labels.C.

References delete_all().

Here is the call graph for this function:


Member Function Documentation

void Labels::dump (  ) 

Definition at line 30 of file labels.C.

References List< Label >::first, and NEXT.

Referenced by EDL::dump().

Labels & Labels::operator= ( Labels that  ) 

Definition at line 214 of file labels.C.

References copy_from().

Here is the call graph for this function:

void Labels::copy_from ( Labels labels  ) 

Definition at line 203 of file labels.C.

References List< Label >::append(), edl, List< TYPE >::first, List< Label >::last, and NEXT.

Referenced by EDL::copy_all(), and operator=().

Here is the call graph for this function:

int Labels::toggle_label ( double  start,
double  end 
)

int Labels::delete_all (  ) 

Definition at line 152 of file labels.C.

References List< Label >::last.

Referenced by ~Labels().

int Labels::save ( FileXML xml  ) 

int Labels::load ( FileXML xml,
uint32_t  load_flags 
)

Definition at line 250 of file labels.C.

References BCTEXTLEN, edl, XMLTag::get_property(), List< Label >::insert_before(), label_of(), FileXML::read_tag(), FileXML::tag, Label::textstr, XMLTag::title_is(), and xml_tag.

Referenced by EDL::load_xml().

Here is the call graph for this function:

void Labels::insert_labels ( Labels labels,
double  start,
double  length,
int  paste_silence = 1 
)

int Labels::modify_handles ( double  oldposition,
double  newposition,
int  currentend,
int  handle_mode,
int  edit_labels 
)

Definition at line 415 of file labels.C.

References clear(), and insert().

Referenced by EDL::modify_edithandles().

Here is the call graph for this function:

int Labels::copy ( double  start,
double  end,
FileXML xml 
)

Definition at line 159 of file labels.C.

References FileXML::append_newline(), FileXML::append_tag(), BCTEXTLEN, label_of(), NEXT, Label::position, XMLTag::set_property(), XMLTag::set_title(), FileXML::tag, Label::textstr, and xml_tag.

Referenced by EDL::copy().

Here is the call graph for this function:

int Labels::copy_length ( long  start,
long  end 
)

Definition at line 191 of file labels.C.

References label_of(), NEXT, and Label::position.

Here is the call graph for this function:

int Labels::insert ( double  start,
double  length 
)

Definition at line 397 of file labels.C.

References label_of(), NEXT, and Label::position.

Referenced by modify_handles(), and paste_silence().

Here is the call graph for this function:

int Labels::paste ( long  start,
long  end,
long  total_length,
FileXML xml 
)

int Labels::paste_output ( long  startproject,
long  endproject,
long  startsource,
long  endsource,
RecordLabels labels 
)

int Labels::clear ( double  start,
double  end,
int  follow = 1 
)

Definition at line 310 of file labels.C.

References label_of(), NEXT, optimize(), and Label::position.

Referenced by EDL::clear(), MWindow::clear_labels(), modify_handles(), and MWindow::paste_edls().

Here is the call graph for this function:

int Labels::paste_silence ( double  start,
double  end 
)

Definition at line 408 of file labels.C.

References insert(), and optimize().

Referenced by EDL::clear(), and EDL::paste_silence().

Here is the call graph for this function:

int Labels::optimize (  ) 

Definition at line 450 of file labels.C.

References List< Label >::first, NEXT, and Label::position.

Referenced by clear(), and paste_silence().

Label * Labels::prev_label ( double  position  ) 

Definition at line 343 of file labels.C.

References edl, EDL::equivalent(), List< Label >::first, List< Label >::last, NEXT, Label::position, and PREVIOUS.

Referenced by VWindowEditing::prev_label(), and MWindow::prev_label().

Here is the call graph for this function:

Label * Labels::next_label ( double  position  ) 

Definition at line 370 of file labels.C.

References edl, EDL::equivalent(), List< Label >::first, List< Label >::last, NEXT, Label::position, and PREVIOUS.

Referenced by VWindowEditing::next_label(), and MWindow::next_label().

Here is the call graph for this function:

Label * Labels::label_of ( double  position  ) 

Definition at line 473 of file labels.C.

References List< Label >::first, NEXT, and Label::position.

Referenced by clear(), copy(), copy_length(), insert(), and load().


Field Documentation

Definition at line 82 of file labels.h.

Definition at line 83 of file labels.h.

Definition at line 84 of file labels.h.

Referenced by copy_from(), insert_labels(), load(), next_label(), prev_label(), and toggle_label().

Definition at line 85 of file labels.h.

Referenced by copy(), load(), and EDL::load_xml().


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

Generated on Mon Apr 28 14:29:15 2008 for Cinelerra by  doxygen 1.5.5