fix display of time selection rect(s) when switching mouse modes

This commit is contained in:
Paul Davis 2014-02-26 10:50:51 -05:00
parent c04285addf
commit 5cbb60d339
2 changed files with 23 additions and 0 deletions

View File

@ -1646,6 +1646,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
Selection* cut_buffer;
void time_selection_changed ();
void update_time_selection_display ();
void track_selection_changed ();
void region_selection_changed ();
sigc::connection editor_regions_selection_changed_connection;

View File

@ -499,10 +499,32 @@ Editor::mouse_mode_toggled (MouseMode m)
set_canvas_cursor ();
set_gain_envelope_visibility ();
update_time_selection_display ();
MouseModeChanged (); /* EMIT SIGNAL */
}
void
Editor::update_time_selection_display ()
{
if (smart_mode_action->get_active()) {
/* not sure what to do here */
if (mouse_mode == MouseObject) {
} else {
}
} else {
switch (mouse_mode) {
case MouseRange:
selection->clear_objects ();
break;
default:
selection->clear_time ();
break;
}
}
}
void
Editor::step_mouse_mode (bool next)
{