#include <wx/progdlg.h>
using std::string;
+using std::cout;
using boost::shared_ptr;
using boost::weak_ptr;
using boost::optional;
void
ContentView::update ()
{
- if (!IsShown()) {
- return;
- }
-
shared_ptr<Film> film = _film.lock ();
if (!film) {
return;
return shared_ptr<Content>();
}
+
+void
+ContentView::set_film (weak_ptr<Film> film)
+{
+ _film = film;
+}
void update ();
boost::shared_ptr<Content> get (std::string digest) const;
+ void set_film (boost::weak_ptr<Film> film);
private:
void add (boost::shared_ptr<Content> content);
using std::string;
using std::list;
+using std::cout;
using std::make_pair;
using std::exception;
using boost::optional;
film_changed ();
setup_sensitivity ();
- _content_view->update ();
update_playlist_directory ();
JobManager::instance()->ActiveJobsChanged.connect (
if (_film) {
_film->Change.connect (boost::bind (&Controls::film_change, this, _1, _2));
}
+
+ _content_view->set_film (film);
+ _content_view->update ();
}
shared_ptr<Film>