Timeline selection is now controlled by lib::time::Control

This commit is contained in:
Michael R. Fisher 2011-10-22 20:27:29 -05:00
parent 0378f9266e
commit 8ff36fc209

View file

@ -121,14 +121,8 @@ IBeamTool::on_button_press_event(GdkEventButton* event)
// User began the drag in clear space, begin a Select drag
dragType = Selection;
pinnedDragTime = time;
selectionControl (TimeSpan(time, Duration::NIL));
selectionControl (TimeSpan(time, Duration::NIL)); //TODO: TimelineState Needs a listener for selection changes
state->selection_changed_signal().emit();
std::cout << "\n" << std::string(time) << "\n";
std::cout << std::string(state->get_selection().start()) << "\n\n";
//state->setSelection (Mutation::changeTime (time));
//state->setSelection (Mutation::changeDuration (Duration::NIL));
////////////"//////////////////////////////////////////TICKET #797 : this is cheesy. Should provide a single Mutation to change all
}
}
}
@ -206,11 +200,9 @@ IBeamTool::set_leading_x(const int x)
if (newStartPoint > pinnedDragTime)
newStartPoint=pinnedDragTime; // use the smaller one as selection start
// selectionControl (TimeSpan(newStartPoint, Duration(selectionLength)));
//state->setSelection (Mutation::changeTime(newStartPoint) , set_playback_period);
// state->setSelection (Mutation::changeDuration(selectionLength), set_playback_period);
//////////////////////////////////////////////////////TICKET #797 : this is cheesy. Should provide a single Mutation to change all at once
//TODO: TimelineState Needs a listener for selection changes
selectionControl (TimeSpan (newStartPoint, Duration(selectionLength)));
state->selection_changed_signal().emit();
}
void