PatchBay Class Reference

#include <patchbay.h>

Inherits BC_SubWindow.

Collaboration diagram for PatchBay:

Collaboration graph
[legend]

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_Pixmapmode_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 ()

Data Fields

ArrayList< PatchGUI * > patches
MWindowmwindow
MWindowGUIgui
int button_down
int new_status
int drag_operation
int reconfigure_trigger
BC_Pixmapmode_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::delete_all_patches (  ) 

Definition at line 125 of file patchbay.C.

References patches, and ArrayList< TYPE >::remove_all_objects().

Here is the call graph for this function:

int PatchBay::create_objects (  ) 

void PatchBay::resize_event (  ) 

int PatchBay::button_press_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 188 of file patchbay.C.

int PatchBay::cursor_motion_event (  )  [virtual]

BC_Pixmap * PatchBay::mode_to_icon ( int  mode  ) 

Definition at line 165 of file patchbay.C.

References mode_icons.

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

int PatchBay::icon_to_mode ( BC_Pixmap icon  ) 

Definition at line 170 of file patchbay.C.

References mode_icons.

PatchGUI * PatchBay::get_patch_of ( Track track  ) 

int PatchBay::update (  ) 

Definition at line 401 of file patchbay.C.

References ArrayList< TYPE >::append(), PatchGUI::create_objects(), MWindow::edl, List< TYPE >::first, mwindow, NEXT, PATCH_X, patches, ArrayList< TYPE >::remove_number(), ArrayList< TYPE >::total, TRACK_AUDIO, PatchGUI::track_id, TRACK_VIDEO, EDL::tracks, PatchGUI::update(), ArrayList< TYPE >::values, and BC_WindowBase::y.

Referenced by MWindow::add_audio_track_entry(), MWindow::add_video_track_entry(), ZoomTextBox::button_press_event(), TrackCanvas::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::expand_autos(), MWindow::goto_end(), MWindow::goto_start(), AutoZoom::handle_down_event(), ZoomTextBox::handle_event(), TrackScroll::handle_event(), SampleScroll::handle_event(), NudgePopupNative::handle_event(), NudgePopupSeconds::handle_event(), AutoZoom::handle_up_event(), MWindow::next_edit_handle(), MWindow::next_label(), MWindow::paste_automation(), MWindow::paste_default_keyframe(), MWindow::prev_edit_handle(), MWindow::prev_label(), TrackCanvas::repeat_event(), resize_event(), MTimeBar::select_label(), MWindow::select_point(), MWindow::shrink_autos(), MWindow::straighten_automation(), PatchGUI::toggle_behavior(), MWindow::trackmovement(), CTracking::update_tracker(), and MWindow::zoom_amp().

Here is the call graph for this function:

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

Definition at line 349 of file patchbay.C.

References PatchGUI::data_type, level, APatchGUI::meter, patches, ArrayList< TYPE >::total, TRACK_AUDIO, BC_Meter::update(), and ArrayList< TYPE >::values.

Referenced by Tracking::update_meters().

Here is the call graph for this function:

void PatchBay::stop_meters (  ) 

Definition at line 384 of file patchbay.C.

References PatchGUI::data_type, APatchGUI::meter, patches, BC_Meter::reset(), ArrayList< TYPE >::total, TRACK_AUDIO, and ArrayList< TYPE >::values.

Referenced by Tracking::stop_meters().

Here is the call graph for this function:

void PatchBay::synchronize_nudge ( int64_t  value,
Track skip 
)

Definition at line 495 of file patchbay.C.

References Track::data_type, MWindow::edl, List< TYPE >::first, get_patch_of(), mwindow, NEXT, EDL::tracks, PatchGUI::update(), PatchGUI::x, and PatchGUI::y.

Referenced by NudgePatch::set_value().

Here is the call graph for this function:

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

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

Definition at line 333 of file patchbay.C.

References BC_Meter::change_format(), PatchGUI::data_type, APatchGUI::meter, patches, ArrayList< TYPE >::total, TRACK_AUDIO, and ArrayList< TYPE >::values.

Referenced by PreferencesThread::apply_settings().

Here is the call graph for this function:

void PatchBay::reset_meters (  ) 

Definition at line 370 of file patchbay.C.

References PatchGUI::data_type, APatchGUI::meter, patches, BC_Meter::reset_over(), ArrayList< TYPE >::total, TRACK_AUDIO, and ArrayList< TYPE >::values.

Referenced by MWindow::reset_meters().

Here is the call graph for this function:

int PatchBay::resize_event ( int  top,
int  bottom 
) [virtual]

Reimplemented from BC_WindowBase.

Definition at line 523 of file patchbay.C.

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

Here is the call graph for this function:

Track * PatchBay::is_over_track (  ) 


Field Documentation

Definition at line 55 of file patchbay.h.

Definition at line 57 of file patchbay.h.

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

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().

Definition at line 60 of file patchbay.h.

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


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:35:00 2008 for Cinelerra by  doxygen 1.5.5