#include <maincursor.h>

Public Member Functions | |
| MainCursor (MWindow *mwindow, MWindowGUI *gui) | |
| ~MainCursor () | |
| void | create_objects () |
| int | repeat_event (int64_t duration) |
| void | draw (int flash) |
| void | hide (int do_plugintoggles=1) |
| void | flash () |
| void | activate () |
| void | deactivate () |
| void | show (int do_plugintoggles=1) |
| void | restore (int do_plugintoggles) |
| void | update () |
| void | focus_in_event () |
| void | focus_out_event () |
Data Fields | |
| MWindow * | mwindow |
| MWindowGUI * | gui |
| int | visible |
| double | selectionstart |
| double | selectionend |
| int64_t | zoom_sample |
| double | view_start |
| int64_t | pixel2 |
| int64_t | pixel1 |
| int | active |
| int | playing_back |
Definition at line 8 of file maincursor.h.
| MainCursor::MainCursor | ( | MWindow * | mwindow, | |
| MWindowGUI * | gui | |||
| ) |
| MainCursor::~MainCursor | ( | ) |
Definition at line 20 of file maincursor.C.
| void MainCursor::create_objects | ( | ) |
Definition at line 24 of file maincursor.C.
| int MainCursor::repeat_event | ( | int64_t | duration | ) |
Definition at line 60 of file maincursor.C.
References active, BC_Resources::blink_rate, draw(), flash(), BC_WindowBase::get_has_focus(), BC_WindowBase::get_resources(), gui, playing_back, selectionend, selectionstart, and visible.
Referenced by MWindowGUI::repeat_event().

| void MainCursor::draw | ( | int | flash | ) |
Definition at line 77 of file maincursor.C.
References MWindowGUI::canvas, BC_WindowBase::draw_box(), MWindow::edl, BC_WindowBase::get_h(), LocalSession::get_selectionend(), LocalSession::get_selectionstart(), BC_WindowBase::get_w(), gui, EDL::local_session, mwindow, pixel1, pixel2, TrackCanvas::refresh_plugintoggles(), EDLSession::sample_rate, selectionend, selectionstart, EDL::session, BC_WindowBase::set_color(), BC_WindowBase::set_inverse(), BC_WindowBase::set_opaque(), Units::to_int64(), LocalSession::view_start, view_start, visible, WHITE, LocalSession::zoom_sample, and zoom_sample.
Referenced by MWindow::add_audio_track_entry(), MWindow::add_video_track_entry(), MWindow::create_objects(), TrackCanvas::cursor_motion_event(), TrackScroll::handle_event(), SampleScroll::handle_event(), hide(), MWindow::next_edit_handle(), MWindow::next_label(), MWindow::prev_edit_handle(), MWindow::prev_label(), repeat_event(), restore(), MTimeBar::select_label(), CTimeBar::select_label(), MWindow::select_point(), TimeBar::select_region(), and show().

| void MainCursor::hide | ( | int | do_plugintoggles = 1 |
) |
Definition at line 135 of file maincursor.C.
References draw(), and visible.
Referenced by TrackCanvas::button_press_event(), TrackCanvas::cursor_motion_event(), TrackCanvas::draw(), MWindow::next_edit_handle(), MWindow::next_label(), MWindow::prev_edit_handle(), MWindow::prev_label(), MTimeBar::select_label(), CTimeBar::select_label(), MWindow::select_point(), TimeBar::select_region(), ZoomBar::set_selection(), and update().

| void MainCursor::flash | ( | ) |
Definition at line 130 of file maincursor.C.
References MWindowGUI::canvas, BC_WindowBase::flash(), BC_WindowBase::get_h(), gui, pixel1, and pixel2.
Referenced by deactivate(), focus_out_event(), repeat_event(), and update().

| void MainCursor::activate | ( | ) |
Definition at line 39 of file maincursor.C.
References active, BC_WindowBase::get_resources(), gui, and BC_WindowBase::set_repeat().
Referenced by TrackCanvas::activate().

| void MainCursor::deactivate | ( | ) |
Definition at line 49 of file maincursor.C.
References active, flash(), BC_WindowBase::get_resources(), gui, show(), and BC_WindowBase::unset_repeat().
Referenced by TrackCanvas::deactivate().

| void MainCursor::show | ( | int | do_plugintoggles = 1 |
) |
Definition at line 140 of file maincursor.C.
References draw(), and visible.
Referenced by TrackCanvas::button_press_event(), deactivate(), focus_out_event(), MWindow::samplemovement(), ZoomBar::set_selection(), MWindowGUI::update(), and update().

| void MainCursor::restore | ( | int | do_plugintoggles | ) |
Definition at line 146 of file maincursor.C.
References draw(), and visible.
Referenced by TrackCanvas::draw_overlays().

| void MainCursor::update | ( | ) |
Definition at line 110 of file maincursor.C.
References MWindowGUI::canvas, flash(), BC_WindowBase::flash(), BC_WindowBase::get_h(), gui, hide(), pixel1, pixel2, show(), and visible.
Referenced by TrackCanvas::drag_stop(), MWindow::goto_end(), MWindow::goto_start(), and CTracking::update_tracker().

| void MainCursor::focus_in_event | ( | ) |
| void MainCursor::focus_out_event | ( | ) |
Definition at line 33 of file maincursor.C.
References flash(), and show().
Referenced by MWindowGUI::focus_out_event().

Definition at line 28 of file maincursor.h.
Referenced by activate(), deactivate(), draw(), flash(), repeat_event(), and update().
Definition at line 29 of file maincursor.h.
Referenced by draw(), hide(), MainCursor(), repeat_event(), restore(), show(), and update().
| double MainCursor::selectionstart |
| double MainCursor::selectionend |
| int64_t MainCursor::zoom_sample |
| double MainCursor::view_start |
| int64_t MainCursor::pixel2 |
| int64_t MainCursor::pixel1 |
Definition at line 34 of file maincursor.h.
Referenced by activate(), deactivate(), MainCursor(), and repeat_event().
Definition at line 35 of file maincursor.h.
Referenced by MainCursor(), repeat_event(), CTracking::start_playback(), and CTracking::stop_playback().
1.5.5