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

MainIndexes Class Reference

#include <mainindexes.h>

List of all members.

Public Member Functions

 MainIndexes (MWindow *mwindow)
 ~MainIndexes ()
void add_next_asset (File *file, Asset *asset)
void start_loop ()
void stop_loop ()
void start_build ()
void run ()
void interrupt_build ()
void load_next_assets ()
void delete_current_assets ()

Public Attributes

ArrayList< Asset * > current_assets
ArrayList< Asset * > next_assets
int interrupt_flag
int done
MWindowmwindow
Condition * input_lock
Mutex * next_lock
Condition * interrupt_lock
IndexFileindexfile


Detailed Description

Definition at line 14 of file mainindexes.h.


Constructor & Destructor Documentation

MainIndexes::MainIndexes MWindow mwindow  ) 
 

Definition at line 20 of file mainindexes.C.

References done, indexfile, input_lock, interrupt_flag, interrupt_lock, and next_lock.

MainIndexes::~MainIndexes  ) 
 

Definition at line 33 of file mainindexes.C.

References MainProgress::cancelled, indexfile, input_lock, interrupt_lock, MWindow::mainprogress, mwindow, next_lock, and stop_loop().


Member Function Documentation

void MainIndexes::add_next_asset File file,
Asset asset
 

Definition at line 43 of file mainindexes.C.

References IndexFile::close_index(), File::get_index(), IndexFile::get_index_filename(), Preferences::index_directory, Asset::index_status, indexfile, mwindow, next_assets, next_lock, File::open_file(), IndexFile::open_index(), Asset::path, and MWindow::preferences.

Referenced by MWindow::load_filenames(), MainUndoStackItem::load_from_undo(), MWindow::paste_edls(), MWindow::rebuild_indices(), and AssetEdit::run().

void MainIndexes::delete_current_assets  ) 
 

Definition at line 107 of file mainindexes.C.

References current_assets.

Referenced by load_next_assets().

void MainIndexes::interrupt_build  ) 
 

Definition at line 138 of file mainindexes.C.

References indexfile, interrupt_flag, IndexFile::interrupt_index(), and interrupt_lock.

Referenced by MWindow::interrupt_indexes().

void MainIndexes::load_next_assets  ) 
 

Definition at line 150 of file mainindexes.C.

References current_assets, delete_current_assets(), next_assets, and next_lock.

Referenced by run().

void MainIndexes::run  ) 
 

Definition at line 165 of file mainindexes.C.

References _, Asset::audio_data, IndexFile::close_index(), IndexFile::create_index(), current_assets, done, MWindow::edl, MWindow::gui, Asset::index_status, indexfile, input_lock, interrupt_flag, interrupt_lock, MainProgressBar::is_cancelled(), load_next_assets(), MWindow::mainprogress, mwindow, IndexFile::open_index(), EDL::set_index_file(), MainProgress::start_progress(), and MainProgressBar::stop_progress().

void MainIndexes::start_build  ) 
 

Definition at line 128 of file mainindexes.C.

References input_lock, and interrupt_flag.

Referenced by MWindow::load_filenames(), MainUndoStackItem::load_from_undo(), MWindow::paste_edls(), MWindow::rebuild_indices(), and AssetEdit::run().

void MainIndexes::start_loop  ) 
 

Definition at line 112 of file mainindexes.C.

References interrupt_flag.

Referenced by MWindow::init_indexes().

void MainIndexes::stop_loop  ) 
 

Definition at line 118 of file mainindexes.C.

References done, input_lock, interrupt_flag, and interrupt_lock.

Referenced by ~MainIndexes().


Member Data Documentation

ArrayList<Asset*> MainIndexes::current_assets
 

Definition at line 30 of file mainindexes.h.

Referenced by delete_current_assets(), load_next_assets(), and run().

int MainIndexes::done
 

Definition at line 34 of file mainindexes.h.

Referenced by MainIndexes(), run(), and stop_loop().

IndexFile* MainIndexes::indexfile
 

Definition at line 39 of file mainindexes.h.

Referenced by add_next_asset(), interrupt_build(), MainIndexes(), run(), and ~MainIndexes().

Condition* MainIndexes::input_lock
 

Definition at line 36 of file mainindexes.h.

Referenced by MainIndexes(), run(), start_build(), stop_loop(), and ~MainIndexes().

int MainIndexes::interrupt_flag
 

Definition at line 33 of file mainindexes.h.

Referenced by interrupt_build(), MainIndexes(), run(), start_build(), start_loop(), and stop_loop().

Condition* MainIndexes::interrupt_lock
 

Definition at line 38 of file mainindexes.h.

Referenced by interrupt_build(), MainIndexes(), run(), stop_loop(), and ~MainIndexes().

MWindow* MainIndexes::mwindow
 

Definition at line 35 of file mainindexes.h.

Referenced by add_next_asset(), run(), and ~MainIndexes().

ArrayList<Asset*> MainIndexes::next_assets
 

Definition at line 31 of file mainindexes.h.

Referenced by add_next_asset(), and load_next_assets().

Mutex* MainIndexes::next_lock
 

Definition at line 37 of file mainindexes.h.

Referenced by add_next_asset(), load_next_assets(), MainIndexes(), and ~MainIndexes().


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