diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-12-08 21:38:33 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-12-08 21:38:33 +0000 |
| commit | 92477aa8600f1d27fdc821a6d80e716cd89d6c55 (patch) | |
| tree | 2ba1ff265271ce7c8bf3755c0f713dce13aa643c /src/wx/swaroop_controls.cc | |
| parent | 22fde9d8dac5a7fd6ff826392612ad8581e83b3b (diff) | |
swaroop: progress dialogue when loading SPL.
Diffstat (limited to 'src/wx/swaroop_controls.cc')
| -rw-r--r-- | src/wx/swaroop_controls.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wx/swaroop_controls.cc b/src/wx/swaroop_controls.cc index 567784b3a..2a1e7c69b 100644 --- a/src/wx/swaroop_controls.cc +++ b/src/wx/swaroop_controls.cc @@ -26,6 +26,7 @@ #include "lib/player_video.h" #include "lib/dcp_content.h" #include <wx/listctrl.h> +#include <wx/progdlg.h> using std::string; using std::cout; @@ -228,7 +229,7 @@ SwaroopControls::spl_selection_changed () return; } - _selected_playlist = selected; + wxProgressDialog progress (_("DCP-o-matic"), _("Loading playlist")); shared_ptr<Film> film (new Film(optional<boost::filesystem::path>())); @@ -241,8 +242,13 @@ SwaroopControls::spl_selection_changed () _current_spl_view->InsertItem (it); film->add_content (i.content); ++N; + if (!progress.Pulse()) { + /* user pressed cancel */ + return; + } } + _selected_playlist = selected; ResetFilm (film); } |
