(Source List) Region List rewrite (gtk2 part)

See:  https://docs.google.com/document/d/1sI7p9RoRVZtNx2n67RvBa0_16fuZblV_lNkkKN2g93s/edit?usp=sharing
This commit is contained in:
Ben Loftis 2018-11-15 09:24:37 -06:00
parent 3e6ce20fd7
commit b1019bbbf6
9 changed files with 306 additions and 1182 deletions

View file

@ -2465,14 +2465,8 @@ Editor::set_state (const XMLNode& node, int version)
set_stationary_playhead (yn);
}
RegionListSortType sort_type;
if (node.get_property ("region-list-sort-type", sort_type)) {
_regions->reset_sort_type (sort_type, true);
}
if (node.get_property ("show-editor-mixer", yn)) {
yn = false;
node.get_property ("show-editor-mixer", yn);
{
Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action (X_("Editor"), X_("show-editor-mixer"));
/* do it twice to force the change */
tact->set_active (!yn);
@ -2582,7 +2576,6 @@ Editor::get_state ()
node->set_property ("maximised", _maximised);
node->set_property ("follow-playhead", _follow_playhead);
node->set_property ("stationary-playhead", _stationary_playhead);
node->set_property ("region-list-sort-type", _regions->sort_type ());
node->set_property ("mouse-mode", mouse_mode);
node->set_property ("join-object-range", smart_mode_action->get_active ());
@ -5720,18 +5713,6 @@ Editor::audition_region_from_region_list ()
_regions->selection_mapover (sigc::mem_fun (*this, &Editor::consider_auditioning));
}
void
Editor::hide_region_from_region_list ()
{
_regions->selection_mapover (sigc::mem_fun (*this, &Editor::hide_a_region));
}
void
Editor::show_region_in_region_list ()
{
_regions->selection_mapover (sigc::mem_fun (*this, &Editor::show_a_region));
}
void
Editor::step_edit_status_change (bool yn)
{