#include "edits.h"
#include "edl.h"
#include "edlsession.h"
+#include "gwindowgui.h"
#include "keyframe.h"
#include "labels.h"
#include "localsession.h"
break;
case AUTOGROUPTYPE_X:
case AUTOGROUPTYPE_Y:
- val = floor(val + 5);
+ val = floor(val + 50);
break;
}
}
break;
case AUTOGROUPTYPE_X:
case AUTOGROUPTYPE_Y:
- val = floor(val-5);
+ val = floor(val-50);
break;
}
}
}
}
+void MWindow::update_autorange(int type, int increment, int use_max)
+{
+ gui->lock_window("MWindow::update_autorange");
+ int group = Automation::autogrouptype(type, 0);
+ change_currentautorange(group, increment, use_max);
+ int color = GWindowGUI::auto_colors[type];
+ gui->zoombar->update_autozoom(group, color);
+ gui->draw_overlays(0);
+ gui->update_patchbay();
+ gui->flash_canvas(1);
+ gui->unlock_window();
+}
void MWindow::expand_autos(int changeall, int domin, int domax)
{
double MWindow::get_position()
{
- return edl->local_session->get_selectionstart(1);
+ return edl->local_session->get_selectionstart(1);
}
void MWindow::set_position(double position)
{
- if( position != get_position() ) {
- if( position < 0 ) position = 0;
- edl->local_session->set_selectionstart(position);
- edl->local_session->set_selectionend(position);
- gui->lock_window();
- find_cursor();
- gui->update(1, NORMAL_DRAW, 1, 1, 1, 1, 0);
- gui->unlock_window();
- cwindow->update(1, 0, 0, 0, 0);
- }
+ if( position != get_position() ) {
+ if( position < 0 ) position = 0;
+ edl->local_session->set_selectionstart(position);
+ edl->local_session->set_selectionend(position);
+ gui->lock_window();
+ find_cursor();
+ gui->update(1, NORMAL_DRAW, 1, 1, 1, 1, 0);
+ gui->unlock_window();
+ cwindow->update(1, 0, 0, 0, 0);
+ }
+}
+
+
+double MWindow::get_timecode_offset()
+{
+ return edl->session->timecode_offset;
+}
+
+void MWindow::set_timecode_offset(double offset)
+{
+ edl->session->time_format = TIME_TIMECODE;
+ edl->session->timecode_offset = offset;
+ gui->lock_window();
+ gui->update(1, NORMAL_DRAW, 1, 1, 1, 1, 0);
+ gui->unlock_window();
+ cwindow->update(1, 0, 0, 0, 0);
}