draw_top_background(get_parent(), 0, 0, get_w(), get_h());
sample_zoom = new SampleZoomPanel(mwindow, this, x, y);
- sample_zoom->set_menu_images(mwindow->theme->get_image_set("zoombar_menu", 0));
- sample_zoom->set_tumbler_images(mwindow->theme->get_image_set("zoombar_tumbler", 0));
sample_zoom->create_objects();
- sample_zoom->zoom_text->set_tooltip(_("Duration visible in the timeline"));
- sample_zoom->zoom_tumbler->set_tooltip(_("Duration visible in the timeline"));
+ sample_zoom->set_tooltip(_("Duration visible in the timeline"));
x += sample_zoom->get_w();
amp_zoom = new AmpZoomPanel(mwindow, this, x, y);
- amp_zoom->set_menu_images(mwindow->theme->get_image_set("zoombar_menu", 0));
- amp_zoom->set_tumbler_images(mwindow->theme->get_image_set("zoombar_tumbler", 0));
amp_zoom->create_objects();
- amp_zoom->zoom_text->set_tooltip(_("Audio waveform scale"));
- amp_zoom->zoom_tumbler->set_tooltip(_("Audio waveform scale"));
+ amp_zoom->set_tooltip(_("Audio waveform scale"));
x += amp_zoom->get_w();
track_zoom = new TrackZoomPanel(mwindow, this, x, y);
- track_zoom->set_menu_images(mwindow->theme->get_image_set("zoombar_menu", 0));
- track_zoom->set_tumbler_images(mwindow->theme->get_image_set("zoombar_tumbler", 0));
track_zoom->create_objects();
- track_zoom->zoom_text->set_tooltip(_("Height of tracks in the timeline"));
- track_zoom->zoom_tumbler->set_tooltip(_("Height of tracks in the timeline"));
+ track_zoom->set_tooltip(_("Height of tracks in the timeline"));
x += track_zoom->get_w() + 10;
int wid = 120;
void ZoomBar::resize_event()
{
- reposition_window(mwindow->theme->mzoom_x,
- mwindow->theme->mzoom_y,
- mwindow->theme->mzoom_w,
- mwindow->theme->mzoom_h);
-
+ reposition_window(mwindow->theme->mzoom_x, mwindow->theme->mzoom_y,
+ mwindow->theme->mzoom_w, mwindow->theme->mzoom_h);
draw_top_background(get_parent(), 0, 0, get_w(), get_h());
- int x = 3, y = 1;
- if (sample_zoom) delete sample_zoom;
- sample_zoom = new SampleZoomPanel(mwindow, this, x, y);
- sample_zoom->set_menu_images(mwindow->theme->get_image_set("zoombar_menu", 0));
- sample_zoom->set_tumbler_images(mwindow->theme->get_image_set("zoombar_tumbler", 0));
- sample_zoom->create_objects();
-// x += sample_zoom->get_w();
-// amp_zoom->reposition_window(x, y);
-// x += amp_zoom->get_w();
-// track_zoom->reposition_window(x, y);
- flash();
}
void ZoomBar::redraw_time_dependancies()
{
if(new_position != old_position)
{
- Units::totext(string,
- new_position,
+ Units::totext(string, new_position,
mwindow->edl->session->sample_rate,
mwindow->edl->session->time_format,
mwindow->edl->session->frame_rate,
-SampleZoomPanel::SampleZoomPanel(MWindow *mwindow,
- ZoomBar *zoombar,
- int x,
- int y)
- : ZoomPanel(mwindow,
- zoombar,
- mwindow->edl->local_session->zoom_sample,
- x,
- y,
- 110,
- MIN_ZOOM_TIME,
- MAX_ZOOM_TIME,
- ZOOM_TIME)
+SampleZoomPanel::SampleZoomPanel(MWindow *mwindow, ZoomBar *zoombar, int x, int y)
+ : ZoomPanel(mwindow, zoombar, mwindow->edl->local_session->zoom_sample,
+ x, y, 110, MIN_ZOOM_TIME, MAX_ZOOM_TIME, ZOOM_TIME)
{
this->mwindow = mwindow;
this->zoombar = zoombar;
AmpZoomPanel::AmpZoomPanel(MWindow *mwindow, ZoomBar *zoombar, int x, int y)
- : ZoomPanel(mwindow,
- zoombar,
- mwindow->edl->local_session->zoom_y,
- x,
- y,
- 80,
- MIN_AMP_ZOOM,
- MAX_AMP_ZOOM,
- ZOOM_LONG)
+ : ZoomPanel(mwindow, zoombar, mwindow->edl->local_session->zoom_y,
+ x, y, 80, MIN_AMP_ZOOM, MAX_AMP_ZOOM, ZOOM_LONG)
{
this->mwindow = mwindow;
this->zoombar = zoombar;
}
TrackZoomPanel::TrackZoomPanel(MWindow *mwindow, ZoomBar *zoombar, int x, int y)
- : ZoomPanel(mwindow,
- zoombar,
- mwindow->edl->local_session->zoom_track,
- x,
- y,
- 70,
- MIN_TRACK_ZOOM,
- MAX_TRACK_ZOOM,
- ZOOM_LONG)
+ : ZoomPanel(mwindow, zoombar, mwindow->edl->local_session->zoom_track,
+ x, y, 70, MIN_TRACK_ZOOM, MAX_TRACK_ZOOM, ZOOM_LONG)
{
this->mwindow = mwindow;
this->zoombar = zoombar;
AutoZoom::AutoZoom(MWindow *mwindow, ZoomBar *zoombar, int x, int y, int changemax)
- : BC_Tumbler(x,
- y,
- mwindow->theme->get_image_set("zoombar_tumbler"))
+ : BC_Tumbler(x, y, mwindow->theme->get_image_set("zoombar_tumbler"))
{
this->mwindow = mwindow;
this->zoombar = zoombar;
int FromTextBox::update_position(double new_position)
{
- new_position += mwindow->edl->session->get_frame_offset() /
- mwindow->edl->session->frame_rate;;
Units::totext(string,
new_position,
mwindow->edl->session->time_format,
int ToTextBox::update_position(double new_position)
{
- new_position += mwindow->edl->session->get_frame_offset() /
- mwindow->edl->session->frame_rate;
- Units::totext(string,
- new_position,
+ Units::totext(string, new_position,
mwindow->edl->session->time_format,
mwindow->edl->session->sample_rate,
mwindow->edl->session->frame_rate,