std::string receive ()
{
- return _nanomsg->receive(-1).get();
+ return _nanomsg->receive(-1).get_value_or("");
}
void general_delay ()
--- /dev/null
+#!/bin/bash
+
+export LD_LIBRARY_PATH=build/src/lib:build/src/wx:$LD_LIBRARY_PATH
+
+build/features/dcpomatic_cucumber &
+sleep 5
+cucumber .
+
#include "wx/about_dialog.h"
#include "wx/content_panel.h"
-#include "wx/dkdm_dialog.h"
-#include "wx/export_subtitles_dialog.h"
-#include "wx/export_video_file_dialog.h"
#ifdef DCPOMATIC_CUCUMBER
#include "wx/cucumber_bridge.h"
#include "wx/cucumber_registry.h"
#endif
-#include "wx/standard_controls.h"
-#include "wx/film_viewer.h"
+#include "wx/dkdm_dialog.h"
+#include "wx/export_subtitles_dialog.h"
+#include "wx/export_video_file_dialog.h"
#include "wx/film_editor.h"
#include "wx/film_name_location_dialog.h"
#include "wx/film_viewer.h"
#include "audio_panel.h"
#include "content_panel.h"
-#include "content_panel.h"
#include "cucumber_bridge.h"
#include "cucumber_registry.h"
#include "dcpomatic_button.h"
#include "timeline_dialog.h"
#include "timing_panel.h"
#include "video_panel.h"
-#include "video_panel.h"
-#include "wx_util.h"
#include "wx_util.h"
#include "lib/audio_content.h"
#include "lib/case_insensitive_sorter.h"
#include "lib/film.h"
#include "lib/film_util.h"
#include "lib/image_content.h"
+#include "lib/job_manager.h"
#include "lib/log.h"
#include "lib/playlist.h"
#include "lib/scope_guard.h"
void
ContentPanel::cucumber_add_content_file (string filename)
{
- list<boost::filesystem::path> path_list;
- path_list.push_back (filename);
- add_files (path_list);
+ add_files ({filename});
+ auto jm = JobManager::instance ();
+ while (jm->work_to_do()) {
+ while (signal_manager->ui_idle()) {}
+ dcpomatic_sleep_seconds (1);
+ }
+ while (signal_manager->ui_idle()) {}
}
{
/* The playlist method that we end up calling has a mutex, so this should be ok */
std::string s;
- BOOST_FOREACH (shared_ptr<Content> i, _film->content()) {
+ for (auto content: _film->content()) {
bool alert;
- s += wx_to_std (text_for_content(i, alert)) + "\n";
+ s += wx_to_std (text_for_content(content, alert)) + "\n";
}
return s;
}
}
+#ifdef DCPOMATIC_CUCUMBER
+void
FilmEditor::cucumber_add_content_file (string filename)
{
_content_panel->cucumber_add_content_file (filename);
{
return _content_panel->cucumber_get_content_list ();
}
-
+#endif
private:
#ifdef DCPOMATIC_CUCUMBER
+ friend class DOMFrame;
void cucumber_add_content_file (std::string filename);
std::string cucumber_get_content_list ();
#endif
conf.env.ENABLE_DISK = conf.options.enable_disk
if conf.options.destdir == '':
conf.env.INSTALL_PREFIX = conf.options.prefix
- conf.env.ENABLE_CUCUMBER = conf.options.enable_cucumber
- if conf.options.install_prefix is None:
- conf.env.INSTALL_PREFIX = conf.env.PREFIX
else:
conf.env.INSTALL_PREFIX = conf.options.destdir
+ conf.env.ENABLE_CUCUMBER = conf.options.enable_cucumber
# Common CXXFLAGS
conf.env.append_value('CXXFLAGS', ['-D__STDC_CONSTANT_MACROS',