Cleanup: extract sorted_cinemas().
[dcpomatic.git] / src / wx / check_box.cc
index d41b8a3f1e3a2e261b2d39bbe7eab08810ee8763..baec651c1b8ca58e18ee8c07e10e79958c374571 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2018-2019 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, get_text())
@@ -29,14 +32,24 @@ CheckBox::CheckBox (wxWindow* parent, wxString label)
 
 }
 
+
 void
 CheckBox::set_text (wxString text)
 {
        SetLabel (text);
 }
 
+
 wxString
 CheckBox::get_text () const
 {
        return GetLabel ();
 }
+
+
+bool
+CheckBox::get() const
+{
+       return GetValue();
+}
+