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

RecordGUI Class Reference

#include <recordgui.h>

List of all members.

Public Member Functions

 RecordGUI (MWindow *mwindow, Record *record)
 ~RecordGUI ()
void load_defaults ()
void save_defaults ()
int create_objects ()
void flash_batch ()
void update_batches ()
void update_sources ()
void update_batch_sources ()
void update_batch_tools ()
int resize_event (int w, int h)
int translation_event ()
char * get_path ()
int get_record_mode ()
int set_record_mode (int value)
int get_output_bits ()
int get_dither ()
int get_duplex_status ()
int set_duplex_status (int value)
int get_loop_status ()
int get_sample_rate ()
int get_enable_duplex ()
long get_playback_buffer ()
int set_loop_status (int value)
int update_duration_boxes ()
int keypress_event ()
int delete_all_labels ()
int calibrate_dc_offset ()
int calibrate_dc_offset (long new_value, int channel)
int update_dropped_frames (long new_dropped)
int update_clipped_samples (long new_clipped)
int set_translation (int x, int y, float z)
void update_labels (double new_position)
int update_position (double new_position)
int update_prev_label (long new_position)
int update_title (BC_Title *title, double position)
int goto_prev_label ()
int toggle_label ()

Public Attributes

ArrayList< BC_ListBoxItem * > batches [BATCH_COLUMNS]
ArrayList< BC_ListBoxItem * > modes
ArrayList< BC_ListBoxItem * > batch_numbers
ArrayList< BC_ListBoxItem * > sources
BC_Title * current_operation
BC_Title * position_title
BC_Title * prev_label_title
BC_Title * frames_dropped
BC_Title * samples_clipped
MWindowmwindow
Recordrecord
RecordGUIBatchesbatch_list
RecordPathbatch_path
RecordStatusThreadstatus_thread
TimeEntrybatch_start
TimeEntrybatch_duration
RecordStartTypestart_type
RecordTransportrecord_transport
BrowseButtonbatch_browse
RecordSourcebatch_source
RecordModebatch_mode
RecordGUINewBatchnew_batch
RecordGUIDeleteBatchdelete_batch
RecordGUIStartBatchesstart_batches
RecordGUIStopbatchesstop_batches
RecordGUIActivateBatchactivate_batch
RecordGUILabellabel_button
RecordGUIFillFramesfill_frames
RecordGUIMonitorVideomonitor_video
RecordGUIMonitorAudiomonitor_audio
RecordStartoverThreadstartover_thread
RecordCancelThreadcancel_thread
int column_widths [BATCH_COLUMNS]
LoadModeload_mode
int flash_color
RecordGUIModeMenurec_mode_menu
RecordGUILoopHr * loop_hr
RecordGUILoopMin * loop_min
RecordGUILoopSec * loop_sec
RecordGUIResetreset
RecordGUIDCOffsetdc_offset_button
RecordGUIDCOffsetTextdc_offset_text [MAXCHANNELS]
RecordMonitormonitor_video_window
BC_Meter * meter [MAXCHANNELS]
long total_dropped_frames
long total_clipped_samples

Static Public Attributes

static char * batch_titles [BATCH_COLUMNS]


Detailed Description

Definition at line 57 of file recordgui.h.


Constructor & Destructor Documentation

RecordGUI::RecordGUI MWindow mwindow,
Record record
 

Definition at line 38 of file recordgui.C.

RecordGUI::~RecordGUI  ) 
 

Definition at line 54 of file recordgui.C.

References batch_duration, batch_mode, batch_source, batch_start, cancel_thread, load_mode, startover_thread, and status_thread.


Member Function Documentation

int RecordGUI::calibrate_dc_offset long  new_value,
int  channel
 

int RecordGUI::calibrate_dc_offset  ) 
 

int RecordGUI::create_objects  ) 
 

Definition at line 112 of file recordgui.C.

References _, activate_batch, Asset::audio_data, batch_browse, batch_duration, batch_list, batch_mode, batch_path, batch_source, batch_start, Asset::bits, File::bitstostr(), LoadMode::calculate_h(), cancel_thread, FileMOV::compressiontostr(), LoadMode::create_objects(), RecordTransport::create_objects(), TimeEntry::create_objects(), Record::default_asset, delete_batch, Theme::draw_rwindow_bg(), fill_frames, flash_color, Asset::format, File::formattostr(), Asset::frame_rate, frames_dropped, LoadMode::get_h(), RecordTransport::get_h(), Theme::get_recordgui_sizes(), RecordTransport::get_w(), TimeEntry::get_w(), label_button, load_mode, Batch::mode_to_text(), modes, monitor_audio, monitor_video, mwindow, new_batch, Asset::path, position_title, prev_label_title, record, record_transport, Asset::sample_rate, samples_clipped, start_batches, startover_thread, status_thread, MWindow::theme, total_dropped_frames, update_batches(), Asset::vcodec, and Asset::video_data.

int RecordGUI::delete_all_labels  ) 
 

void RecordGUI::flash_batch  ) 
 

Definition at line 415 of file recordgui.C.

References BATCH_COLUMNS, batch_list, batch_titles, batches, column_widths, Record::current_batch, flash_color, and record.

Referenced by RecordThread::do_cron(), and Record::start_recording().

int RecordGUI::get_dither  ) 
 

int RecordGUI::get_duplex_status  ) 
 

int RecordGUI::get_enable_duplex  ) 
 

int RecordGUI::get_loop_status  ) 
 

int RecordGUI::get_output_bits  ) 
 

char* RecordGUI::get_path  ) 
 

long RecordGUI::get_playback_buffer  ) 
 

int RecordGUI::get_record_mode  ) 
 

int RecordGUI::get_sample_rate  ) 
 

int RecordGUI::goto_prev_label  ) 
 

int RecordGUI::keypress_event  ) 
 

Definition at line 1201 of file recordgui.C.

References RecordTransport::keypress_event(), and record_transport.

void RecordGUI::load_defaults  ) 
 

Definition at line 80 of file recordgui.C.

References BATCH_COLUMNS, column_widths, MWindow::defaults, and mwindow.

int RecordGUI::resize_event int  w,
int  h
 

Definition at line 525 of file recordgui.C.

References batch_list, Theme::draw_rwindow_bg(), Theme::get_recordgui_sizes(), LoadMode::get_y(), load_mode, Theme::loadmode_w, mwindow, LoadMode::reposition_window(), MainSession::rwindow_h, MainSession::rwindow_w, MainSession::rwindow_x, MainSession::rwindow_y, MWindow::session, and MWindow::theme.

void RecordGUI::save_defaults  ) 
 

Definition at line 101 of file recordgui.C.

References BATCH_COLUMNS, column_widths, MWindow::defaults, and mwindow.

int RecordGUI::set_duplex_status int  value  ) 
 

int RecordGUI::set_loop_status int  value  ) 
 

int RecordGUI::set_record_mode int  value  ) 
 

int RecordGUI::set_translation int  x,
int  y,
float  z
 

Definition at line 1176 of file recordgui.C.

References record, Record::video_x, Record::video_y, and Record::video_zoom.

Referenced by RecordGUIResetTranslation::handle_event(), and RecordMonitorGUI::keypress_event().

int RecordGUI::toggle_label  ) 
 

int RecordGUI::translation_event  ) 
 

Definition at line 517 of file recordgui.C.

References mwindow, MainSession::rwindow_x, MainSession::rwindow_y, and MWindow::session.

void RecordGUI::update_batch_sources  ) 
 

Definition at line 508 of file recordgui.C.

References batch_source, ChannelPicker::channel_listitems, RecordMonitorGUI::channel_picker, record, Record::record_monitor, and RecordMonitor::window.

Referenced by ChannelEditThread::run().

void RecordGUI::update_batch_tools  ) 
 

Definition at line 558 of file recordgui.C.

References batch_duration, batch_mode, batch_path, batch_source, batch_start, Batch::duration, Batch::get_current_asset(), Record::get_editing_batch(), Batch::get_source_text(), Batch::mode_to_text(), Asset::path, record, Batch::record_mode, Batch::start_day, Batch::start_time, and TimeEntry::update().

Referenced by Record::activate_batch(), Record::change_editing_batch(), Record::delete_batch(), and Record::new_batch().

void RecordGUI::update_batches  ) 
 

Definition at line 443 of file recordgui.C.

References BATCH_COLUMNS, batch_list, batch_titles, Record::batches, batches, column_widths, Record::current_batch, TimeEntry::day_table, Record::default_asset, Batch::duration, Record::editing_batch, MWindow::edl, Batch::enabled, Asset::frame_rate, EDLSession::frames_per_foot, Batch::get_current_asset(), Batch::mode_to_text(), mwindow, Batch::news, Asset::path, record, Batch::record_mode, Asset::sample_rate, EDL::session, Record::source_to_text(), Batch::start_day, Batch::start_time, and Batch::waiting.

Referenced by Record::activate_batch(), create_objects(), Record::delete_output_file(), RecordGUIBatches::drag_stop_event(), RecordGUIDeleteBatch::handle_event(), RecordGUINewBatch::handle_event(), RecordMode::handle_event(), RecordDuration::handle_event(), RecordStart::handle_event(), RecordPath::handle_event(), Record::open_output_file(), RecordGUIBatches::selection_changed(), Record::set_channel(), and Record::start_over().

int RecordGUI::update_clipped_samples long  new_clipped  ) 
 

Definition at line 1195 of file recordgui.C.

References status_thread, and RecordStatusThread::update_clipped_samples().

Referenced by RecordAudio::run().

int RecordGUI::update_dropped_frames long  new_dropped  ) 
 

Definition at line 1183 of file recordgui.C.

References status_thread, and RecordStatusThread::update_dropped_frames().

Referenced by RecordVideo::run().

int RecordGUI::update_duration_boxes  ) 
 

Definition at line 1271 of file recordgui.C.

Referenced by RecordEngine::run_script().

void RecordGUI::update_labels double  new_position  ) 
 

Definition at line 1206 of file recordgui.C.

References Record::get_current_batch(), Batch::labels, RecordLabel::position, prev_label_title, record, and update_title().

Referenced by RecordStatusThread::run(), and Record::toggle_label().

int RecordGUI::update_position double  new_position  ) 
 

Definition at line 1189 of file recordgui.C.

References status_thread, and RecordStatusThread::update_position().

Referenced by Record::activate_batch(), RecordVideo::rewind_file(), Record::rewind_file(), RecordVideo::run(), RecordAudio::run(), Record::start_over(), and RecordEngine::update_position().

int RecordGUI::update_prev_label long  new_position  ) 
 

Definition at line 1239 of file recordgui.C.

References prev_label_title, and update_title().

Referenced by RecordEngine::update_position().

void RecordGUI::update_sources  ) 
 

int RecordGUI::update_title BC_Title *  title,
double  position
 

Definition at line 1249 of file recordgui.C.

References Record::default_asset, MWindow::edl, Asset::frame_rate, EDLSession::frames_per_foot, RecordEngine::lock_window(), mwindow, record, Asset::sample_rate, EDL::session, EDLSession::time_format, and RecordEngine::unlock_window().

Referenced by RecordStatusThread::run(), update_labels(), and update_prev_label().


Member Data Documentation

RecordGUIActivateBatch* RecordGUI::activate_batch
 

Definition at line 106 of file recordgui.h.

Referenced by create_objects().

BrowseButton* RecordGUI::batch_browse
 

Definition at line 99 of file recordgui.h.

Referenced by create_objects().

TimeEntry* RecordGUI::batch_duration
 

Definition at line 96 of file recordgui.h.

Referenced by create_objects(), update_batch_tools(), and ~RecordGUI().

RecordGUIBatches* RecordGUI::batch_list
 

Definition at line 91 of file recordgui.h.

Referenced by create_objects(), flash_batch(), resize_event(), and update_batches().

RecordMode* RecordGUI::batch_mode
 

Definition at line 101 of file recordgui.h.

Referenced by create_objects(), update_batch_tools(), and ~RecordGUI().

ArrayList<BC_ListBoxItem*> RecordGUI::batch_numbers
 

Definition at line 80 of file recordgui.h.

RecordPath* RecordGUI::batch_path
 

Definition at line 93 of file recordgui.h.

Referenced by create_objects(), and update_batch_tools().

RecordSource* RecordGUI::batch_source
 

Definition at line 100 of file recordgui.h.

Referenced by create_objects(), Record::set_channel(), update_batch_sources(), update_batch_tools(), and ~RecordGUI().

TimeEntry* RecordGUI::batch_start
 

Definition at line 95 of file recordgui.h.

Referenced by create_objects(), update_batch_tools(), and ~RecordGUI().

char * RecordGUI::batch_titles [static]
 

Initial value:

 
{
        N_("On"),
        N_("Path"),
        N_("News"),
        N_("Start time"),
        N_("Duration"),
        N_("Source"),

}

Definition at line 113 of file recordgui.h.

Referenced by flash_batch(), and update_batches().

ArrayList<BC_ListBoxItem*> RecordGUI::batches[BATCH_COLUMNS]
 

Definition at line 76 of file recordgui.h.

Referenced by flash_batch(), and update_batches().

RecordCancelThread* RecordGUI::cancel_thread
 

Definition at line 112 of file recordgui.h.

Referenced by create_objects(), RecordGUICancel::handle_event(), and ~RecordGUI().

int RecordGUI::column_widths[BATCH_COLUMNS]
 

Definition at line 114 of file recordgui.h.

Referenced by RecordGUIBatches::column_resize_event(), flash_batch(), load_defaults(), save_defaults(), RecordGUIBatches::selection_changed(), and update_batches().

BC_Title* RecordGUI::current_operation
 

Definition at line 85 of file recordgui.h.

RecordGUIDCOffset* RecordGUI::dc_offset_button
 

Definition at line 142 of file recordgui.h.

RecordGUIDCOffsetText* RecordGUI::dc_offset_text[MAXCHANNELS]
 

Definition at line 143 of file recordgui.h.

Referenced by RecordEngine::calibrate_dc_offset().

RecordGUIDeleteBatch* RecordGUI::delete_batch
 

Definition at line 103 of file recordgui.h.

Referenced by create_objects().

RecordGUIFillFrames* RecordGUI::fill_frames
 

Definition at line 108 of file recordgui.h.

Referenced by create_objects().

int RecordGUI::flash_color
 

Definition at line 116 of file recordgui.h.

Referenced by create_objects(), and flash_batch().

BC_Title* RecordGUI::frames_dropped
 

Definition at line 88 of file recordgui.h.

Referenced by create_objects(), and RecordStatusThread::run().

RecordGUILabel* RecordGUI::label_button
 

Definition at line 107 of file recordgui.h.

Referenced by create_objects().

LoadMode* RecordGUI::load_mode
 

Definition at line 115 of file recordgui.h.

Referenced by create_objects(), resize_event(), and ~RecordGUI().

RecordGUILoopHr* RecordGUI::loop_hr
 

Definition at line 137 of file recordgui.h.

Referenced by RecordEngine::set_loop_duration().

RecordGUILoopMin* RecordGUI::loop_min
 

Definition at line 138 of file recordgui.h.

Referenced by RecordEngine::set_loop_duration().

RecordGUILoopSec* RecordGUI::loop_sec
 

Definition at line 139 of file recordgui.h.

Referenced by RecordEngine::set_loop_duration().

BC_Meter* RecordGUI::meter[MAXCHANNELS]
 

Definition at line 145 of file recordgui.h.

ArrayList<BC_ListBoxItem*> RecordGUI::modes
 

Definition at line 78 of file recordgui.h.

Referenced by create_objects().

RecordGUIMonitorAudio* RecordGUI::monitor_audio
 

Definition at line 110 of file recordgui.h.

Referenced by RecordMonitorGUI::close_event(), and create_objects().

RecordGUIMonitorVideo* RecordGUI::monitor_video
 

Definition at line 109 of file recordgui.h.

Referenced by RecordMonitorGUI::close_event(), and create_objects().

RecordMonitor* RecordGUI::monitor_video_window
 

Definition at line 144 of file recordgui.h.

Referenced by RecordEngine::run_script().

MWindow* RecordGUI::mwindow
 

Definition at line 89 of file recordgui.h.

Referenced by create_objects(), load_defaults(), resize_event(), save_defaults(), translation_event(), update_batches(), and update_title().

RecordGUINewBatch* RecordGUI::new_batch
 

Definition at line 102 of file recordgui.h.

Referenced by create_objects().

BC_Title* RecordGUI::position_title
 

Definition at line 86 of file recordgui.h.

Referenced by create_objects(), and RecordStatusThread::run().

BC_Title* RecordGUI::prev_label_title
 

Definition at line 87 of file recordgui.h.

Referenced by create_objects(), update_labels(), and update_prev_label().

RecordGUIModeMenu* RecordGUI::rec_mode_menu
 

Definition at line 136 of file recordgui.h.

Referenced by RecordEngine::run_script().

Record* RecordGUI::record
 

Definition at line 90 of file recordgui.h.

Referenced by create_objects(), flash_batch(), set_translation(), update_batch_sources(), update_batch_tools(), update_batches(), update_labels(), and update_title().

RecordTransport* RecordGUI::record_transport
 

Definition at line 98 of file recordgui.h.

Referenced by create_objects(), and keypress_event().

RecordGUIReset* RecordGUI::reset
 

Definition at line 140 of file recordgui.h.

BC_Title * RecordGUI::samples_clipped
 

Definition at line 88 of file recordgui.h.

Referenced by create_objects(), and RecordStatusThread::run().

ArrayList<BC_ListBoxItem*> RecordGUI::sources
 

Definition at line 83 of file recordgui.h.

RecordGUIStartBatches* RecordGUI::start_batches
 

Definition at line 104 of file recordgui.h.

Referenced by create_objects().

RecordStartType* RecordGUI::start_type
 

Definition at line 97 of file recordgui.h.

RecordStartoverThread* RecordGUI::startover_thread
 

Definition at line 111 of file recordgui.h.

Referenced by create_objects(), RecordGUIRewind::handle_event(), RecordGUIStartOver::handle_event(), and ~RecordGUI().

RecordStatusThread* RecordGUI::status_thread
 

Definition at line 94 of file recordgui.h.

Referenced by create_objects(), update_clipped_samples(), update_dropped_frames(), update_position(), and ~RecordGUI().

RecordGUIStopbatches* RecordGUI::stop_batches
 

Definition at line 105 of file recordgui.h.

long RecordGUI::total_clipped_samples
 

Definition at line 147 of file recordgui.h.

Referenced by RecordStatusThread::run(), and RecordAudio::run().

long RecordGUI::total_dropped_frames
 

Definition at line 146 of file recordgui.h.

Referenced by create_objects(), RecordVideo::run(), and RecordStatusThread::run().


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