2016-09-26 c.hetherington <cth@carlh.net>
+ * Fix multi-select in the timeline (#954).
+
* Add option to Windows installer to add desktop shortcuts (#965).
* Updated zh_CN translation from 刘汉源.
}
}
+void
+ContentPanel::set_selection (ContentList cl)
+{
+ ContentList content = _film->content ();
+ for (size_t i = 0; i < content.size(); ++i) {
+ if (find(cl.begin(), cl.end(), content[i]) != cl.end()) {
+ _content->SetItemState (i, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED);
+ } else {
+ _content->SetItemState (i, 0, wxLIST_STATE_SELECTED);
+ }
+ }
+}
+
void
ContentPanel::film_content_changed (int property)
{
void set_film (boost::shared_ptr<Film>);
void set_general_sensitivity (bool s);
void set_selection (boost::weak_ptr<Content>);
+ void set_selection (ContentList cl);
void film_changed (Film::Property p);
void film_content_changed (int p);
if (_down_view) {
_down_view->content()->set_change_signals_frequent (false);
- _content_panel->set_selection (_down_view->content ());
}
+ _content_panel->set_selection (selected_content ());
set_position_from_event (ev);
/* Clear up up the stuff we don't do during drag */