#include <zoompanel.h>
Inherited by AmpZoomPanel, CWindowZoom, SampleZoomPanel, TrackZoomPanel, and VWindowZoom.

Public Member Functions | |
| ZoomPanel (MWindow *mwindow, BC_WindowBase *subwindow, double value, int x, int y, int w, double min=1, double max=131072, int zoom_type=ZOOM_PERCENTAGE) | |
| ZoomPanel (MWindow *mwindow, BC_WindowBase *subwindow, double value, int x, int y, int w, double *user_table, int user_size, int zoom_type=ZOOM_PERCENTAGE) | |
| ~ZoomPanel () | |
| virtual int | handle_event () |
| int | get_w () |
| void | calculate_menu () |
| void | update_menu () |
| int | create_objects () |
| double | get_value () |
| char * | get_text () |
| void | set_text (char *text) |
| char * | value_to_text (double value, int use_table=1) |
| double | text_to_zoom (char *text, int use_table=1) |
| void | update (double value) |
| void | update (char *value) |
| void | reposition_window (int x, int y) |
| void | set_menu_images (VFrame **data) |
| void | set_tumbler_images (VFrame **data) |
Data Fields | |
| MWindow * | mwindow |
| BC_WindowBase * | subwindow |
| int | x |
| int | y |
| int | w |
| double | value |
| ZoomPopup * | zoom_text |
| ZoomTumbler * | zoom_tumbler |
| char | string [BCTEXTLEN] |
| double | min |
| double | max |
| double * | user_table |
| int | user_size |
| int | zoom_type |
| ArrayList< ZoomHash * > | zoom_table |
| VFrame ** | menu_images |
| VFrame ** | tumbler_images |
Definition at line 26 of file zoompanel.h.
| ZoomPanel::ZoomPanel | ( | MWindow * | mwindow, | |
| BC_WindowBase * | subwindow, | |||
| double | value, | |||
| int | x, | |||
| int | y, | |||
| int | w, | |||
| double | min = 1, |
|||
| double | max = 131072, |
|||
| int | zoom_type = ZOOM_PERCENTAGE | |||
| ) |
Definition at line 41 of file zoompanel.C.
References menu_images, tumbler_images, user_size, and user_table.
| ZoomPanel::ZoomPanel | ( | MWindow * | mwindow, | |
| BC_WindowBase * | subwindow, | |||
| double | value, | |||
| int | x, | |||
| int | y, | |||
| int | w, | |||
| double * | user_table, | |||
| int | user_size, | |||
| int | zoom_type = ZOOM_PERCENTAGE | |||
| ) |
| ZoomPanel::~ZoomPanel | ( | ) |
Definition at line 91 of file zoompanel.C.
References ArrayList< TYPE >::remove_all_objects(), zoom_table, zoom_text, and zoom_tumbler.

| virtual int ZoomPanel::handle_event | ( | ) | [inline, virtual] |
Reimplemented in CWindowZoom, VWindowZoom, SampleZoomPanel, AmpZoomPanel, and TrackZoomPanel.
Definition at line 49 of file zoompanel.h.
Referenced by ZoomTumbler::handle_down_event(), ZoomPopup::handle_event(), and ZoomTumbler::handle_up_event().
| int ZoomPanel::get_w | ( | ) |
Definition at line 162 of file zoompanel.C.
References BC_WindowBase::get_w(), zoom_text, and zoom_tumbler.
Referenced by ZoomBar::create_objects().

| void ZoomPanel::calculate_menu | ( | ) |
Definition at line 98 of file zoompanel.C.
References BC_PopupMenu::add_item(), ArrayList< TYPE >::append(), BC_WindowBase::BC_MenuItem, max, min, user_size, user_table, value_to_text(), zoom_table, and zoom_text.
Referenced by create_objects(), and update_menu().

| void ZoomPanel::update_menu | ( | ) |
Definition at line 118 of file zoompanel.C.
References calculate_menu(), ArrayList< TYPE >::remove_all_objects(), BC_PopupMenu::remove_item(), BC_PopupMenu::total_items(), zoom_table, and zoom_text.
Referenced by ZoomBar::redraw_time_dependancies().

| int ZoomPanel::create_objects | ( | ) |
Definition at line 139 of file zoompanel.C.
References BC_WindowBase::add_subwindow(), calculate_menu(), BC_WindowBase::get_w(), mwindow, subwindow, x, y, zoom_text, and zoom_tumbler.
Referenced by ZoomBar::create_objects(), CWindowGUI::create_objects(), and ZoomBar::resize_event().

| double ZoomPanel::get_value | ( | ) |
Definition at line 167 of file zoompanel.C.
References value.
Referenced by TrackZoomPanel::handle_event(), AmpZoomPanel::handle_event(), SampleZoomPanel::handle_event(), and CWindowZoom::handle_event().
| char * ZoomPanel::get_text | ( | ) |
Definition at line 172 of file zoompanel.C.
References BC_PopupMenu::get_text(), and zoom_text.
Referenced by CWindowZoom::handle_event().

| void ZoomPanel::set_text | ( | char * | text | ) |
Definition at line 177 of file zoompanel.C.
References BC_PopupMenu::set_text(), and zoom_text.
Referenced by CWindowGUI::create_objects().

| char * ZoomPanel::value_to_text | ( | double | value, | |
| int | use_table = 1 | |||
| ) |
Definition at line 194 of file zoompanel.C.
References MWindowGUI::canvas, MWindow::edl, EQUIV, EDLSession::frame_rate, EDLSession::frames_per_foot, BC_WindowBase::get_w(), MWindow::gui, mwindow, EDLSession::sample_rate, EDL::session, string, ZoomHash::text, EDLSession::time_format, ArrayList< TYPE >::total, Units::totext(), ZoomHash::value, ArrayList< TYPE >::values, ZOOM_FLOAT, ZOOM_LONG, ZOOM_PERCENTAGE, zoom_table, ZOOM_TIME, and zoom_type.
Referenced by calculate_menu(), ZoomTumbler::handle_down_event(), ZoomTumbler::handle_up_event(), and update().

| double ZoomPanel::text_to_zoom | ( | char * | text, | |
| int | use_table = 1 | |||
| ) |
Definition at line 239 of file zoompanel.C.
References MWindowGUI::canvas, MWindow::edl, EDLSession::frame_rate, EDLSession::frames_per_foot, Units::fromtext(), BC_WindowBase::get_w(), MWindow::gui, mwindow, EDLSession::sample_rate, EDL::session, ZoomHash::text, EDLSession::time_format, ArrayList< TYPE >::total, ZoomHash::value, ArrayList< TYPE >::values, ZOOM_FLOAT, ZOOM_LONG, ZOOM_PERCENTAGE, zoom_table, ZOOM_TIME, and zoom_type.
Referenced by ZoomPopup::handle_event().

| void ZoomPanel::update | ( | double | value | ) |
Definition at line 182 of file zoompanel.C.
References BC_PopupMenu::set_text(), value_to_text(), and zoom_text.
Referenced by TrackZoomPanel::handle_event(), ZoomBar::redraw_time_dependancies(), CWindowCanvas::test_zoom(), ZoomBar::update(), CWindow::update(), CWindowGUI::zoom_canvas(), and MWindow::zoom_sample().

| void ZoomPanel::update | ( | char * | value | ) |
Definition at line 188 of file zoompanel.C.
References BC_PopupMenu::set_text(), and zoom_text.

| void ZoomPanel::reposition_window | ( | int | x, | |
| int | y | |||
| ) |
Definition at line 154 of file zoompanel.C.
References BC_WindowBase::get_w(), BC_Tumbler::reposition_window(), BC_PopupMenu::reposition_window(), zoom_text, and zoom_tumbler.
Referenced by CWindowGUI::resize_event().

| void ZoomPanel::set_menu_images | ( | VFrame ** | data | ) |
Definition at line 129 of file zoompanel.C.
References menu_images.
Referenced by ZoomBar::create_objects(), and ZoomBar::resize_event().
| void ZoomPanel::set_tumbler_images | ( | VFrame ** | data | ) |
Definition at line 134 of file zoompanel.C.
References tumbler_images.
Referenced by ZoomBar::create_objects(), and ZoomBar::resize_event().
Reimplemented in CWindowZoom, VWindowZoom, SampleZoomPanel, AmpZoomPanel, and TrackZoomPanel.
Definition at line 66 of file zoompanel.h.
Referenced by create_objects(), text_to_zoom(), and value_to_text().
| int ZoomPanel::x |
| int ZoomPanel::y |
| int ZoomPanel::w |
Definition at line 70 of file zoompanel.h.
| double ZoomPanel::value |
Definition at line 71 of file zoompanel.h.
Referenced by get_value(), ZoomTumbler::handle_down_event(), ZoomPopup::handle_event(), and ZoomTumbler::handle_up_event().
Definition at line 73 of file zoompanel.h.
Referenced by calculate_menu(), create_objects(), ZoomBar::create_objects(), CWindowGUI::create_objects(), get_text(), get_w(), ZoomTumbler::handle_down_event(), ZoomTumbler::handle_up_event(), reposition_window(), set_text(), update(), update_menu(), and ~ZoomPanel().
Definition at line 74 of file zoompanel.h.
Referenced by create_objects(), ZoomBar::create_objects(), get_w(), CWindowGUI::keyboard_zoomin(), CWindowGUI::keyboard_zoomout(), reposition_window(), and ~ZoomPanel().
| char ZoomPanel::string[BCTEXTLEN] |
| double ZoomPanel::min |
Definition at line 76 of file zoompanel.h.
Referenced by calculate_menu(), ZoomTumbler::handle_down_event(), ZoomTumbler::handle_up_event(), and ZoomPanel().
| double ZoomPanel::max |
Definition at line 76 of file zoompanel.h.
Referenced by calculate_menu(), ZoomTumbler::handle_down_event(), ZoomTumbler::handle_up_event(), and ZoomPanel().
| double* ZoomPanel::user_table |
Definition at line 77 of file zoompanel.h.
Referenced by calculate_menu(), ZoomTumbler::handle_down_event(), ZoomTumbler::handle_up_event(), and ZoomPanel().
Definition at line 78 of file zoompanel.h.
Referenced by calculate_menu(), ZoomTumbler::handle_down_event(), ZoomTumbler::handle_up_event(), and ZoomPanel().
Definition at line 80 of file zoompanel.h.
Referenced by calculate_menu(), text_to_zoom(), update_menu(), value_to_text(), and ~ZoomPanel().
1.5.5