Scrolling consistency improvements

Rework timeline scrolling
Add Invert Timeline Scroll Axes toggle
Make Ctrl to zoom more explicit in menu
Simplified and more consistent Graph View scroll/zoom:
 Shift to zoom horizontally, Alt to zoom vertically
Save and load Invert Timeline Scroll Axes setting
This commit is contained in:
Matt Mayfield
2019-03-06 15:15:44 -06:00
parent 0bc69af0f4
commit 84bed86d10
6 changed files with 648 additions and 576 deletions
+6 -1
View File
@@ -70,7 +70,8 @@ Config::Config()
center_timeline_timecodes(true),
waveform_resolution(64),
thumbnail_resolution(120),
add_default_effects_to_clips(true)
add_default_effects_to_clips(true),
horizontal_timeline_scroll(true)
{}
void Config::load(QString path) {
@@ -87,6 +88,9 @@ void Config::load(QString path) {
} else if (stream.name() == "ScrollZooms") {
stream.readNext();
scroll_zooms = (stream.text() == "1");
} else if (stream.name() == "HorizontalTimelineScroll") {
stream.readNext();
horizontal_timeline_scroll = (stream.text() == "1");
} else if (stream.name() == "EditToolSelectsLinks") {
stream.readNext();
edit_tool_selects_links = (stream.text() == "1");
@@ -233,6 +237,7 @@ void Config::save(QString path) {
stream.writeTextElement("Version", QString::number(olive::kSaveVersion));
stream.writeTextElement("ShowTrackLines", QString::number(show_track_lines));
stream.writeTextElement("ScrollZooms", QString::number(scroll_zooms));
stream.writeTextElement("HorizontalTimelineScroll", QString::number(horizontal_timeline_scroll));
stream.writeTextElement("EditToolSelectsLinks", QString::number(edit_tool_selects_links));
stream.writeTextElement("EditToolAlsoSeeks", QString::number(edit_tool_also_seeks));
stream.writeTextElement("SelectAlsoSeeks", QString::number(select_also_seeks));