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

PatchBay Class Reference

#include <patchbay.h>

List of all members.

Public Member Functions

 PatchBay (MWindow *mwindow, MWindowGUI *gui)
 ~PatchBay ()
int delete_all_patches ()
int create_objects ()
void resize_event ()
int button_press_event ()
int cursor_motion_event ()
BC_Pixmap * mode_to_icon (int mode)
int icon_to_mode (BC_Pixmap *icon)
PatchGUIget_patch_of (Track *track)
int update ()
void update_meters (ArrayList< double > *module_levels)
void stop_meters ()
void synchronize_nudge (int64_t value, Track *skip)
void synchronize_faders (float value, int data_type, Track *skip)
void change_meter_format (int mode, int min, int max)
void reset_meters ()
int resize_event (int top, int bottom)
Trackis_over_track ()

Public Attributes

ArrayList< PatchGUI * > patches
MWindowmwindow
MWindowGUIgui
int button_down
int new_status
int drag_operation
int reconfigure_trigger
BC_Pixmap * mode_icons [TRANSFER_TYPES]
NudgePopupnudge_popup


Detailed Description

Definition at line 17 of file patchbay.h.


Constructor & Destructor Documentation

PatchBay::PatchBay MWindow mwindow,
MWindowGUI gui
 

Definition at line 107 of file patchbay.C.

References button_down, drag_operation, Tracks::NONE, and reconfigure_trigger.

PatchBay::~PatchBay  ) 
 

Definition at line 120 of file patchbay.C.


Member Function Documentation

int PatchBay::button_press_event  ) 
 

Definition at line 185 of file patchbay.C.

Referenced by NudgePatch::button_press_event().

void PatchBay::change_meter_format int  mode,
int  min,
int  max
 

Definition at line 330 of file patchbay.C.

References PatchGUI::data_type, APatchGUI::meter, patches, and TRACK_AUDIO.

Referenced by PreferencesThread::apply_settings().

int PatchBay::create_objects  ) 
 

Definition at line 131 of file patchbay.C.

References NudgePopup::create_objects(), mode_icons, mwindow, nudge_popup, and MWindow::theme.

Referenced by MWindowGUI::create_objects().

int PatchBay::cursor_motion_event  ) 
 

Definition at line 222 of file patchbay.C.

References _, EDLSession::auto_conf, Track::automation, AutoConf::autos, Automation::autos, MWindowGUI::canvas, drag_operation, Track::draw, Tracks::DRAW, TrackCanvas::draw_overlays(), MWindow::edl, Tracks::EXPAND, Track::expand_view, Track::gang, Tracks::GANG, Autos::get_auto_for_editing(), Autos::get_prev_auto(), LocalSession::get_selectionstart(), MWindow::gui, EDL::local_session, Tracks::MUTE, mwindow, new_status, Tracks::NONE, Track::play, Tracks::PLAY, Track::record, Tracks::RECORD, MWindow::restart_brender(), EDL::session, MWindow::sync_parameters(), MWindow::theme, LocalSession::track_start, MWindow::trackmovement(), EDL::tracks, MWindow::undo, update(), MainUndo::update_undo(), IntAuto::value, Track::vertical_span(), and Track::y_pixel.

int PatchBay::delete_all_patches  ) 
 

Definition at line 125 of file patchbay.C.

References patches.

PatchGUI * PatchBay::get_patch_of Track track  ) 
 

Definition at line 507 of file patchbay.C.

References patches.

Referenced by synchronize_faders(), and synchronize_nudge().

int PatchBay::icon_to_mode BC_Pixmap *  icon  ) 
 

Definition at line 167 of file patchbay.C.

References mode_icons.

Track * PatchBay::is_over_track  ) 
 

Definition at line 193 of file patchbay.C.

References MWindow::edl, mwindow, MWindow::theme, EDL::tracks, Track::vertical_span(), and Track::y_pixel.

Referenced by TrackCanvas::drag_motion().

BC_Pixmap * PatchBay::mode_to_icon int  mode  ) 
 

Definition at line 162 of file patchbay.C.

References mode_icons.

Referenced by VModePatch::update(), and VModePatch::VModePatch().

void PatchBay::reset_meters  ) 
 

Definition at line 367 of file patchbay.C.

References PatchGUI::data_type, APatchGUI::meter, patches, and TRACK_AUDIO.

Referenced by MWindow::reset_meters().

int PatchBay::resize_event int  top,
int  bottom
 

Definition at line 517 of file patchbay.C.

References mwindow, Theme::patchbay_h, Theme::patchbay_w, Theme::patchbay_x, Theme::patchbay_y, and MWindow::theme.

void PatchBay::resize_event  ) 
 

Definition at line 174 of file patchbay.C.

References mwindow, Theme::patchbay_h, Theme::patchbay_w, Theme::patchbay_x, Theme::patchbay_y, MWindow::theme, and update().

Referenced by MWindowGUI::resize_event().

void PatchBay::stop_meters  ) 
 

Definition at line 381 of file patchbay.C.

References PatchGUI::data_type, APatchGUI::meter, patches, and TRACK_AUDIO.

Referenced by Tracking::stop_meters().

void PatchBay::synchronize_faders float  value,
int  data_type,
Track skip
 

Definition at line 459 of file patchbay.C.

References Track::automation, Automation::autos, CLAMP, Track::data_type, MWindow::edl, Track::gang, Autos::get_auto_for_editing(), get_patch_of(), LocalSession::get_selectionstart(), EDL::local_session, mwindow, Track::record, TRACK_AUDIO, EDL::tracks, PatchGUI::update(), FloatAuto::value, PatchGUI::x, and PatchGUI::y.

Referenced by VFadePatch::handle_event(), and AFadePatch::handle_event().

void PatchBay::synchronize_nudge int64_t  value,
Track skip
 

Definition at line 489 of file patchbay.C.

References Track::data_type, MWindow::edl, Track::gang, get_patch_of(), mwindow, Track::nudge, Track::record, EDL::tracks, PatchGUI::update(), PatchGUI::x, and PatchGUI::y.

Referenced by NudgePatch::set_value().

int PatchBay::update  ) 
 

Definition at line 398 of file patchbay.C.

References PatchGUI::create_objects(), Track::data_type, MWindow::edl, Track::get_id(), mwindow, PATCH_X, patches, TRACK_AUDIO, TRACK_VIDEO, EDL::tracks, and Track::y_pixel.

Referenced by MWindow::add_audio_track_entry(), MWindow::add_video_track_entry(), TrackCanvas::button_press_event(), ExpandPatch::button_press_event(), MutePatch::button_press_event(), DrawPatch::button_press_event(), GangPatch::button_press_event(), RecordPatch::button_press_event(), PlayPatch::button_press_event(), MWindow::clear_automation(), MWindow::clear_default_keyframe(), MWindow::create_objects(), TrackCanvas::cursor_motion_event(), cursor_motion_event(), MWindow::cut_automation(), MWindow::cut_default_keyframe(), TrackCanvas::drag_stop(), MWindow::goto_end(), MWindow::goto_start(), TrackScroll::handle_event(), SampleScroll::handle_event(), NudgePopupNative::handle_event(), NudgePopupSeconds::handle_event(), MWindow::next_label(), MWindow::paste_automation(), MWindow::paste_default_keyframe(), MWindow::prev_label(), TrackCanvas::repeat_event(), resize_event(), MWindow::select_point(), PatchGUI::toggle_behavior(), MWindow::trackmovement(), NudgePatch::update(), CTracking::update_tracker(), and MWindow::zoom_amp().

void PatchBay::update_meters ArrayList< double > *  module_levels  ) 
 

Definition at line 346 of file patchbay.C.

References PatchGUI::data_type, APatchGUI::meter, patches, and TRACK_AUDIO.

Referenced by Tracking::update_meters().


Member Data Documentation

int PatchBay::button_down
 

Definition at line 57 of file patchbay.h.

Referenced by DrawPatchOld::cursor_moved_over(), RecordPatchOld::cursor_moved_over(), PlayPatchOld::cursor_moved_over(), DrawPatchOld::handle_event(), RecordPatchOld::handle_event(), PlayPatchOld::handle_event(), PatchBay(), and PatchGUI::toggle_behavior().

int PatchBay::drag_operation
 

Definition at line 57 of file patchbay.h.

Referenced by ExpandPatch::button_release_event(), MutePatch::button_release_event(), DrawPatch::button_release_event(), GangPatch::button_release_event(), RecordPatch::button_release_event(), PlayPatch::button_release_event(), cursor_motion_event(), PatchBay(), and PatchGUI::toggle_behavior().

MWindowGUI* PatchBay::gui
 

Definition at line 55 of file patchbay.h.

BC_Pixmap* PatchBay::mode_icons[TRANSFER_TYPES]
 

Definition at line 58 of file patchbay.h.

Referenced by create_objects(), icon_to_mode(), and mode_to_icon().

MWindow* PatchBay::mwindow
 

Definition at line 54 of file patchbay.h.

Referenced by create_objects(), cursor_motion_event(), is_over_track(), resize_event(), synchronize_faders(), synchronize_nudge(), and update().

int PatchBay::new_status
 

Definition at line 57 of file patchbay.h.

Referenced by cursor_motion_event(), DrawPatchOld::cursor_moved_over(), RecordPatchOld::cursor_moved_over(), PlayPatchOld::cursor_moved_over(), DrawPatchOld::handle_event(), RecordPatchOld::handle_event(), PlayPatchOld::handle_event(), and PatchGUI::toggle_behavior().

NudgePopup* PatchBay::nudge_popup
 

Definition at line 60 of file patchbay.h.

Referenced by NudgePatch::button_press_event(), and create_objects().

ArrayList<PatchGUI*> PatchBay::patches
 

Definition at line 42 of file patchbay.h.

Referenced by change_meter_format(), delete_all_patches(), get_patch_of(), reset_meters(), stop_meters(), update(), and update_meters().

int PatchBay::reconfigure_trigger
 

Definition at line 57 of file patchbay.h.

Referenced by PlayPatchOld::handle_event(), and PatchBay().


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