Emit no audio from DCPs if none is mapped
[dcpomatic.git] / src / wx / check_box.cc
index 8f24f43ec73fc7cf17c43922d14ad0cff990c797..baec651c1b8ca58e18ee8c07e10e79958c374571 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2018 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2018-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #include "check_box.h"
 
+
 using std::cout;
 
+
 CheckBox::CheckBox (wxWindow* parent, wxString label)
        : wxCheckBox (parent, wxID_ANY, label)
-       , I18NHook (this)
+       , I18NHook (this, get_text())
 {
 
 }
 
+
 void
 CheckBox::set_text (wxString text)
 {
        SetLabel (text);
 }
 
+
 wxString
 CheckBox::get_text () const
 {
        return GetLabel ();
 }
+
+
+bool
+CheckBox::get() const
+{
+       return GetValue();
+}
+