Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

Labels Class Reference

#include <labels.h>

List of all members.

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)

Public Attributes

MWindowmwindow
TimeBartimebar
EDLedl
char * xml_tag


Detailed Description

Definition at line 42 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().


Member Function Documentation

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

Definition at line 294 of file labels.C.

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

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

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

Definition at line 159 of file labels.C.

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

Referenced by EDL::copy().

void Labels::copy_from Labels labels  ) 
 

Definition at line 199 of file labels.C.

References edl, and Label::position.

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

int Labels::copy_length long  start,
long  end
 

Definition at line 187 of file labels.C.

References label_of(), and Label::position.

int Labels::delete_all  ) 
 

Definition at line 152 of file labels.C.

References remove().

Referenced by ~Labels().

void Labels::dump  ) 
 

Definition at line 30 of file labels.C.

References Label::position.

Referenced by EDL::dump().

int Labels::insert double  start,
double  length
 

Definition at line 381 of file labels.C.

References label_of(), and Label::position.

Referenced by modify_handles(), and paste_silence().

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

Definition at line 38 of file labels.C.

References edl, EDL::equivalent(), and Label::position.

Referenced by MWindow::paste_edls().

Label * Labels::label_of double  position  ) 
 

Definition at line 457 of file labels.C.

References Label::position.

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

int Labels::load FileXML xml,
uint32_t  load_flags
 

Definition at line 241 of file labels.C.

References edl, XMLTag::get_property(), label_of(), FileXML::read_tag(), FileXML::tag, XMLTag::title_is(), and xml_tag.

Referenced by EDL::load_xml().

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

Definition at line 399 of file labels.C.

References clear(), and insert().

Referenced by EDL::modify_edithandles().

Label * Labels::next_label double  position  ) 
 

Definition at line 354 of file labels.C.

References edl, EDL::equivalent(), and Label::position.

Referenced by VWindowEditing::next_label().

Labels & Labels::operator= Labels that  ) 
 

Definition at line 210 of file labels.C.

References copy_from().

int Labels::optimize  ) 
 

Definition at line 434 of file labels.C.

References Label::position.

Referenced by clear(), and paste_silence().

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::paste_silence double  start,
double  end
 

Definition at line 392 of file labels.C.

References insert(), and optimize().

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

Label * Labels::prev_label double  position  ) 
 

Definition at line 327 of file labels.C.

References edl, EDL::equivalent(), and Label::position.

Referenced by VWindowEditing::prev_label().

int Labels::save FileXML xml  ) 
 

Definition at line 218 of file labels.C.

References FileXML::append_newline(), FileXML::append_tag(), Label::position, XMLTag::set_property(), XMLTag::set_title(), and FileXML::tag.

int Labels::toggle_label double  start,
double  end
 

Definition at line 87 of file labels.C.

References edl, EDL::equivalent(), Label::position, and remove().

Referenced by MWindow::load_assets(), VWindowEditing::toggle_label(), MWindow::toggle_label(), and LabelUndoItem::undo().


Member Data Documentation

EDL* Labels::edl
 

Definition at line 83 of file labels.h.

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

MWindow* Labels::mwindow
 

Definition at line 81 of file labels.h.

TimeBar* Labels::timebar
 

Definition at line 82 of file labels.h.

char* Labels::xml_tag
 

Definition at line 84 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 Sun Jan 8 13:39:16 2006 for Cinelerra-svn by  doxygen 1.4.4