_recipients->RecipientsChanged.connect (boost::bind(&DKDMDialog::setup_sensitivity, this));
_timing->TimingChanged.connect (boost::bind(&DKDMDialog::setup_sensitivity, this));
_make->Bind (wxEVT_BUTTON, boost::bind(&DKDMDialog::make_clicked, this));
+ _cpl->Changed.connect(boost::bind(&DKDMDialog::setup_sensitivity, this));
setup_sensitivity ();
_dcp_directory->SetLabel (std_to_wx (_cpls[n].dcp_directory));
_cpl_id->SetLabel (std_to_wx (_cpls[n].cpl_id));
_cpl_annotation_text->SetLabel (std_to_wx(_cpls[n].cpl_annotation_text.get_value_or("")));
+
+ Changed();
}
void
#include <wx/wx.h>
LIBDCP_ENABLE_WARNINGS
#include <boost/filesystem.hpp>
+#include <boost/signals2.hpp>
class KDMCPLPanel : public wxPanel
boost::filesystem::path cpl () const;
bool has_selected () const;
+ boost::signals2::signal<void ()> Changed;
+
private:
void update_cpl_choice ();
void update_cpl_summary ();
_screens->ScreensChanged.connect (boost::bind (&KDMDialog::setup_sensitivity, this));
_timing->TimingChanged.connect (boost::bind (&KDMDialog::setup_sensitivity, this));
_make->Bind (wxEVT_BUTTON, boost::bind (&KDMDialog::make_clicked, this));
+ _cpl->Changed.connect(boost::bind(&KDMDialog::setup_sensitivity, this));
setup_sensitivity ();
_internal->Bind (wxEVT_RADIOBUTTON, bind (&SelfDKDMDialog::dkdm_write_type_changed, this));
_write_to->Bind (wxEVT_RADIOBUTTON, bind (&SelfDKDMDialog::dkdm_write_type_changed, this));
+ _cpl->Changed.connect(boost::bind(&SelfDKDMDialog::setup_sensitivity, this));
}