static char const* _dcpomatic_combiner = "DCP-o-matic Combiner";
static char const* _dcpomatic_batch_converter = "DCP-o-matic Batch Converter";
+static bool const _show_splash = true;
+static bool const _show_tagline = true;
+static bool const _show_dcpomatic_website = true;
+
std::string
variant::dcpomatic()
return _dcpomatic_player_app;
}
+bool
+variant::show_splash()
+{
+ return _show_splash;
+}
+
+bool
+variant::show_tagline()
+{
+ return _show_tagline;
+}
+
+bool
+variant::show_dcpomatic_website()
+{
+ return _show_dcpomatic_website;
+}
+
#include "wx_util.h"
#include "wx_variant.h"
#include "lib/compose.hpp"
+#include "lib/variant.h"
#include "lib/version.h"
#include <dcp/warnings.h>
LIBDCP_DISABLE_WARNINGS
sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 2));
sizer->AddSpacer (12);
- t = new StaticText (
- this,
- _("Free, open-source DCP creation from almost anything."),
- wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER
- );
- t->SetFont (subtitle_font);
-
- sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 8));
-
- auto h = new wxHyperlinkCtrl (
- this, wxID_ANY,
- wxT ("dcpomatic.com"),
- wxT ("https://dcpomatic.com")
- );
+ if (variant::show_tagline())
+ {
+ t = new StaticText(
+ this,
+ _("Free, open-source DCP creation from almost anything."),
+ wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER
+ );
+ t->SetFont(subtitle_font);
+ sizer->Add(t, wxSizerFlags().Centre().Border(wxALL, 8));
+ }
- sizer->Add (h, wxSizerFlags().Centre().Border(wxALL, 8));
+ if (variant::show_dcpomatic_website())
+ {
+ auto h = new wxHyperlinkCtrl(
+ this, wxID_ANY,
+ wxT("dcpomatic.com"),
+ wxT("https://dcpomatic.com")
+ );
+ sizer->Add(h, wxSizerFlags().Centre().Border(wxALL, 8));
+ }
t = new StaticText (
this,
#include "lib/job.h"
#include "lib/job_manager.h"
#include "lib/util.h"
+#include "lib/variant.h"
#include "lib/version.h"
#include <dcp/locale_convert.h>
#include <dcp/warnings.h>
wxSplashScreen*
maybe_show_splash ()
{
+ if (!variant::show_splash()) {
+ return nullptr;
+ }
+
wxSplashScreen* splash = nullptr;
try {