- zoom_panel->zoom_text->add_item(new BC_MenuItem(AUTO_ZOOM));
- if(!mwindow->edl->session->cwindow_scrollbars) zoom_panel->set_text(AUTO_ZOOM);
+ auto_zoom = _(AUTO_ZOOM);
+ zoom_panel->zoom_text->add_item(new BC_MenuItem(auto_zoom));
+ if(!mwindow->edl->session->cwindow_scrollbars) zoom_panel->set_text(auto_zoom);
#ifdef USE_SLIDER
CWindowSlider::CWindowSlider(MWindow *mwindow, CWindow *cwindow, int x, int y, int pixels)
#ifdef USE_SLIDER
CWindowSlider::CWindowSlider(MWindow *mwindow, CWindow *cwindow, int x, int y, int pixels)
// if(mwindow->edl->local_session->preview_end <= 0 ||
// mwindow->edl->local_session->preview_end > new_length)
// mwindow->edl->local_session->preview_end = new_length;
// if(mwindow->edl->local_session->preview_end <= 0 ||
// mwindow->edl->local_session->preview_end > new_length)
// mwindow->edl->local_session->preview_end = new_length;
- update(mwindow->theme->cslider_w,
- mwindow->edl->local_session->get_selectionstart(1),
+ update(mwindow->theme->cslider_w,
+ mwindow->edl->local_session->get_selectionstart(1),
// CWindowDestination::CWindowDestination(MWindow *mwindow, CWindowGUI *cwindow, int x, int y)
// CWindowDestination::CWindowDestination(MWindow *mwindow, CWindowGUI *cwindow, int x, int y)
-// : BC_PopupTextBox(cwindow,
-// &cwindow->destinations,
+// : BC_PopupTextBox(cwindow,
+// &cwindow->destinations,
if(test_bbox(cursor_x, cursor_y, canvas_x0, canvas_y0)) {
selected_point = i;
}
if(test_bbox(cursor_x, cursor_y, canvas_x0, canvas_y0)) {
selected_point = i;
}
if(test_bbox(cursor_x, cursor_y, canvas_x3, canvas_y3)) {
selected_point = (i < points.size() - 1 ? i + 1 : 0);
}
if(test_bbox(cursor_x, cursor_y, canvas_x3, canvas_y3)) {
selected_point = (i < points.size() - 1 ? i + 1 : 0);
}
// sprintf(string, "%d", (i < points.size() - 1 ? i + 1 : 0));
// canvas->draw_text((int)canvas_x + CONTROL_W, (int)canvas_y + CONTROL_W, string);
}
// sprintf(string, "%d", (i < points.size() - 1 ? i + 1 : 0));
// canvas->draw_text((int)canvas_x + CONTROL_W, (int)canvas_y + CONTROL_W, string);
}
-
-// Draw second control point. Discard x2 and y2 after this.
- output_to_canvas(mwindow->edl, 0, x2, y2);
+// Draw second control point.
+ output_to_canvas(mwindow->edl, 0, canvas_x2, canvas_y2);
get_canvas()->draw_line(
(int)canvas_x, (int)canvas_y,
(int)canvas_x2, (int)canvas_y2);
get_canvas()->draw_rectangle(
get_canvas()->draw_line(
(int)canvas_x, (int)canvas_y,
(int)canvas_x2, (int)canvas_y2);
get_canvas()->draw_rectangle(
- (int)x2 - CONTROL_W / 2,
- (int)y2 - CONTROL_H / 2,
+ (int)canvas_x2 - CONTROL_W / 2,
+ (int)canvas_y2 - CONTROL_H / 2,
(int)canvas_x - FIRST_CONTROL_W,
(int)canvas_y - FIRST_CONTROL_H,
mask_label);
(int)canvas_x - FIRST_CONTROL_W,
(int)canvas_y - FIRST_CONTROL_H,
mask_label);
get_canvas()->draw_disc(
(int)canvas_x - FIRST_CONTROL_W / 2,
(int)canvas_y - FIRST_CONTROL_H / 2,
get_canvas()->draw_disc(
(int)canvas_x - FIRST_CONTROL_W / 2,
(int)canvas_y - FIRST_CONTROL_H / 2,
(FloatAuto*)gui->cwindow->calculate_affected_auto(
affected_z_autos, 1, &created, 0);
if(created) {
(FloatAuto*)gui->cwindow->calculate_affected_auto(
affected_z_autos, 1, &created, 0);
if(created) {
(FloatAuto*)gui->cwindow->calculate_affected_auto(
affected_x_autos, 1, &created, 0);
if(created) {
gui->affected_x->set_value(new_x);
redraw_canvas = 1;
}
(FloatAuto*)gui->cwindow->calculate_affected_auto(
affected_x_autos, 1, &created, 0);
if(created) {
gui->affected_x->set_value(new_x);
redraw_canvas = 1;
}
(FloatAuto*)gui->cwindow->calculate_affected_auto(
affected_y_autos, 1, &created, 0);
if(created) {
(FloatAuto*)gui->cwindow->calculate_affected_auto(
affected_y_autos, 1, &created, 0);
if(created) {
CLAMP(current_index, 0, total_zooms - 1);
zoom = my_zoom_table[current_index];
CLAMP(current_index, 0, total_zooms - 1);
zoom = my_zoom_table[current_index];
mwindow->theme->ccanvas_x,
mwindow->theme->ccanvas_y,
mwindow->theme->ccanvas_w,
mwindow->theme->ccanvas_x,
mwindow->theme->ccanvas_y,
mwindow->theme->ccanvas_w,
int x = (int)(gui->x_origin - cursor_x + gui->x_offset);
int y = (int)(gui->y_origin - cursor_y + gui->y_offset);
int x = (int)(gui->x_origin - cursor_x + gui->x_offset);
int y = (int)(gui->y_origin - cursor_y + gui->y_offset);
result = do_ruler(0, 1, 0, 0);
break;
case CWINDOW_MASK:
result = do_ruler(0, 1, 0, 0);
break;
case CWINDOW_MASK:
mwindow->gui->lock_window("CWindowCanvas::cursor_motion_event 1");
mwindow->gui->draw_overlays(1);
mwindow->gui->unlock_window();
mwindow->gui->lock_window("CWindowCanvas::cursor_motion_event 1");
mwindow->gui->draw_overlays(1);
mwindow->gui->unlock_window();
calculate_origin();
//printf("CWindowCanvas::button_press_event 2 %f %f\n", gui->x_origin, gui->y_origin, gui->x_origin, gui->y_origin);
calculate_origin();
//printf("CWindowCanvas::button_press_event 2 %f %f\n", gui->x_origin, gui->y_origin, gui->x_origin, gui->y_origin);
case CWINDOW_RULER:
result = do_ruler(0, 0, 1, 0);
break;
case CWINDOW_RULER:
result = do_ruler(0, 0, 1, 0);
break;
case CWINDOW_CAMERA:
result = test_bezier(1, redraw, redraw_canvas, rerender, 1);
break;
case CWINDOW_CAMERA:
result = test_bezier(1, redraw, redraw_canvas, rerender, 1);
break;
mwindow->gui->lock_window("CWindowCanvas::button_press_event 1");
mwindow->gui->draw_overlays(1);
mwindow->gui->unlock_window();
gui->update_tool();
mwindow->gui->lock_window("CWindowCanvas::button_press_event 1");
mwindow->gui->draw_overlays(1);
mwindow->gui->unlock_window();
gui->update_tool();
gui->lock_window("CWindowCanvas::button_press_event 1");
}
// rerendering can also be caused by press event
gui->lock_window("CWindowCanvas::button_press_event 1");
}
// rerendering can also be caused by press event
- calculate_sizes(mwindow->edl->get_aspect_ratio(),
- mwindow->edl->session->output_w,
- mwindow->edl->session->output_h,
+ calculate_sizes(mwindow->edl->get_aspect_ratio(),
+ mwindow->edl->session->output_w,
+ mwindow->edl->session->output_h,