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

BatchRenderThread Class Reference

#include <batchrender.h>

List of all members.

Public Member Functions

 BatchRenderThread (MWindow *mwindow)
 BatchRenderThread ()
void handle_close_event (int result)
BC_Window * new_gui ()
int test_edl_files ()
void calculate_dest_paths (ArrayList< char * > *paths, Preferences *preferences, ArrayList< PluginServer * > *plugindb)
void load_jobs (char *path, Preferences *preferences)
void save_jobs (char *path)
void load_defaults (Defaults *defaults)
void save_defaults (Defaults *defaults)
char * create_path (char *string)
void new_job ()
void delete_job ()
BatchRenderJobget_current_job ()
Assetget_current_asset ()
char * get_current_edl ()
void start_rendering (char *config_path, char *batch_path)
void start_rendering ()
void stop_rendering ()
void update_active (int number)
void update_done (int number, int create_list, double elapsed_time)
void move_batch (int src, int dst)

Public Attributes

MWindowmwindow
double current_start
double current_end
BatchRenderJobdefault_job
ArrayList< BatchRenderJob * > jobs
BatchRenderGUIgui
int column_width [BATCHRENDER_COLUMNS]
int current_job
int rendering_job
int is_rendering


Detailed Description

Definition at line 59 of file batchrender.h.


Constructor & Destructor Documentation

BatchRenderThread::BatchRenderThread MWindow mwindow  ) 
 

Definition at line 179 of file batchrender.C.

References current_job, default_job, is_rendering, and rendering_job.

BatchRenderThread::BatchRenderThread  ) 
 

Definition at line 189 of file batchrender.C.

References current_job, default_job, is_rendering, mwindow, and rendering_job.


Member Function Documentation

void BatchRenderThread::calculate_dest_paths ArrayList< char * > *  paths,
Preferences preferences,
ArrayList< PluginServer * > *  plugindb
 

Definition at line 426 of file batchrender.C.

References TransportCommand::adjust_playback_range(), BatchRenderJob::asset, TransportCommand::change_type, TransportCommand::command, PackageDispatcher::create_packages(), BatchRenderJob::edl_path, BatchRenderJob::enabled, TransportCommand::end_position, TransportCommand::get_edl(), PackageDispatcher::get_total_packages(), jobs, EDL::load_xml(), mwindow, FileXML::read_from_file(), TransportCommand::set_playback_range(), TransportCommand::start_position, and BatchRenderJob::strategy.

Referenced by start_rendering().

char * BatchRenderThread::create_path char *  string  ) 
 

Definition at line 329 of file batchrender.C.

References BCASTDIR.

Referenced by load_jobs(), and save_jobs().

void BatchRenderThread::delete_job  ) 
 

Definition at line 348 of file batchrender.C.

References BatchRenderGUI::change_job(), BatchRenderGUI::create_list(), current_job, gui, and jobs.

Referenced by BatchRenderDelete::handle_event().

Asset * BatchRenderThread::get_current_asset  ) 
 

Definition at line 374 of file batchrender.C.

References BatchRenderJob::asset, and get_current_job().

Referenced by BatchRenderGUI::create_objects().

char * BatchRenderThread::get_current_edl  ) 
 

Definition at line 379 of file batchrender.C.

References BatchRenderJob::edl_path, and get_current_job().

Referenced by BatchRenderGUI::create_objects(), and BatchRenderEDLPath::handle_event().

BatchRenderJob * BatchRenderThread::get_current_job  ) 
 

Definition at line 359 of file batchrender.C.

References current_job, default_job, and jobs.

Referenced by BatchRenderGUI::change_job(), BatchRenderGUI::create_objects(), get_current_asset(), get_current_edl(), new_job(), and BatchRenderList::selection_changed().

void BatchRenderThread::handle_close_event int  result  ) 
 

Definition at line 199 of file batchrender.C.

References default_job, MWindow::defaults, jobs, mwindow, save_defaults(), and save_jobs().

void BatchRenderThread::load_defaults Defaults *  defaults  ) 
 

Definition at line 281 of file batchrender.C.

References BatchRenderJob::asset, BATCHRENDER_COLUMNS, column_width, default_job, BatchRenderJob::fix_strategy(), list_widths, and Asset::load_defaults().

Referenced by new_gui(), and start_rendering().

void BatchRenderThread::load_jobs char *  path,
Preferences preferences
 

Definition at line 240 of file batchrender.C.

References create_path(), jobs, BatchRenderJob::load(), FileXML::read_from_file(), FileXML::read_tag(), FileXML::tag, and XMLTag::title_is().

Referenced by new_gui(), and start_rendering().

void BatchRenderThread::move_batch int  src,
int  dst
 

Definition at line 597 of file batchrender.C.

References BatchRenderGUI::create_list(), gui, and jobs.

Referenced by BatchRenderList::drag_stop_event().

BC_Window * BatchRenderThread::new_gui  ) 
 

Definition at line 219 of file batchrender.C.

References MainSession::batchrender_h, MainSession::batchrender_w, MainSession::batchrender_x, MainSession::batchrender_y, BatchRenderGUI::create_objects(), current_end, current_start, default_job, MWindow::defaults, gui, load_defaults(), load_jobs(), mwindow, MWindow::preferences, and MWindow::session.

void BatchRenderThread::new_job  ) 
 

Definition at line 338 of file batchrender.C.

References BatchRenderGUI::change_job(), BatchRenderJob::copy_from(), BatchRenderGUI::create_list(), current_job, get_current_job(), gui, jobs, mwindow, and MWindow::preferences.

Referenced by BatchRenderNew::handle_event().

void BatchRenderThread::save_defaults Defaults *  defaults  ) 
 

Definition at line 303 of file batchrender.C.

References BatchRenderJob::asset, BATCHRENDER_COLUMNS, column_width, default_job, mwindow, MWindow::save_defaults(), Asset::save_defaults(), and BatchRenderJob::strategy.

Referenced by handle_close_event(), and start_rendering().

void BatchRenderThread::save_jobs char *  path  ) 
 

Definition at line 265 of file batchrender.C.

References create_path(), jobs, XMLTag::set_title(), FileXML::tag, and FileXML::write_to_file().

Referenced by handle_close_event(), and start_rendering().

void BatchRenderThread::start_rendering  ) 
 

Definition at line 517 of file batchrender.C.

References calculate_dest_paths(), MWindow::defaults, BatchRenderGUI::delete_batch, gui, is_rendering, jobs, mwindow, BatchRenderGUI::new_batch, MWindow::plugindb, MWindow::preferences, MWindow::render, save_defaults(), save_jobs(), Render::start_batches(), test_edl_files(), and ConfirmSave::test_files().

void BatchRenderThread::start_rendering char *  config_path,
char *  batch_path
 

Definition at line 477 of file batchrender.C.

References calculate_dest_paths(), MWindow::init_defaults(), MWindow::init_plugins(), jobs, Preferences::load_defaults(), load_defaults(), load_jobs(), save_defaults(), save_jobs(), Render::start_batches(), test_edl_files(), and ConfirmSave::test_files().

Referenced by BatchRenderStart::handle_event(), and main().

void BatchRenderThread::stop_rendering  ) 
 

Definition at line 554 of file batchrender.C.

References is_rendering, mwindow, MWindow::render, and Render::stop_operation().

Referenced by BatchRenderGUI::close_event(), BatchRenderCancel::handle_event(), BatchRenderStop::handle_event(), and BatchRenderCancel::keypress_event().

int BatchRenderThread::test_edl_files  ) 
 

Definition at line 386 of file batchrender.C.

References _, BatchRenderGUI::delete_batch, fclose(), fopen(), gui, MWindow::gui, is_rendering, jobs, mwindow, and BatchRenderGUI::new_batch.

Referenced by start_rendering().

void BatchRenderThread::update_active int  number  ) 
 

Definition at line 561 of file batchrender.C.

References BatchRenderGUI::create_list(), current_job, gui, is_rendering, and rendering_job.

Referenced by Render::run().

void BatchRenderThread::update_done int  number,
int  create_list,
double  elapsed_time
 

Definition at line 578 of file batchrender.C.

References BatchRenderGUI::create_list(), BatchRenderGUI::delete_batch, gui, jobs, and BatchRenderGUI::new_batch.

Referenced by Render::run().


Member Data Documentation

int BatchRenderThread::column_width[BATCHRENDER_COLUMNS]
 

Definition at line 102 of file batchrender.h.

Referenced by BatchRenderList::column_resize_event(), BatchRenderGUI::create_list(), load_defaults(), save_defaults(), and BatchRenderList::selection_changed().

double BatchRenderThread::current_end
 

Definition at line 98 of file batchrender.h.

Referenced by new_gui().

int BatchRenderThread::current_job
 

Definition at line 104 of file batchrender.h.

Referenced by BatchRenderThread(), BatchRenderGUI::create_list(), delete_job(), get_current_job(), new_job(), BatchRenderList::selection_changed(), and update_active().

double BatchRenderThread::current_start
 

Definition at line 97 of file batchrender.h.

Referenced by new_gui().

BatchRenderJob* BatchRenderThread::default_job
 

Definition at line 99 of file batchrender.h.

Referenced by BatchRenderThread(), get_current_job(), handle_close_event(), load_defaults(), new_gui(), and save_defaults().

BatchRenderGUI* BatchRenderThread::gui
 

Definition at line 101 of file batchrender.h.

Referenced by delete_job(), BatchRenderCancel::handle_event(), BatchRenderEDLPath::handle_event(), BatchRenderCancel::keypress_event(), move_batch(), new_gui(), new_job(), BatchRenderList::selection_changed(), start_rendering(), test_edl_files(), update_active(), and update_done().

int BatchRenderThread::is_rendering
 

Definition at line 107 of file batchrender.h.

Referenced by BatchRenderThread(), start_rendering(), stop_rendering(), test_edl_files(), and update_active().

ArrayList<BatchRenderJob*> BatchRenderThread::jobs
 

Definition at line 100 of file batchrender.h.

Referenced by calculate_dest_paths(), BatchRenderGUI::create_list(), delete_job(), get_current_job(), handle_close_event(), load_jobs(), move_batch(), new_job(), save_jobs(), start_rendering(), test_edl_files(), and update_done().

MWindow* BatchRenderThread::mwindow
 

Definition at line 96 of file batchrender.h.

Referenced by BatchRenderThread(), calculate_dest_paths(), handle_close_event(), new_gui(), new_job(), save_defaults(), start_rendering(), stop_rendering(), and test_edl_files().

int BatchRenderThread::rendering_job
 

Definition at line 106 of file batchrender.h.

Referenced by BatchRenderThread(), BatchRenderGUI::create_list(), and update_active().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:10 2006 for Cinelerra-svn by  doxygen 1.4.4