summaryrefslogtreecommitdiff
path: root/src/wx/kdm_cpl_panel.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-01-02 01:58:59 +0100
committerCarl Hetherington <cth@carlh.net>2024-01-02 01:59:02 +0100
commit082d1d408fb5b503dc7b50dc97241c4ae794a753 (patch)
tree4d614eb611772ad5dcead8b0b0dcf9af3ba99bd5 /src/wx/kdm_cpl_panel.h
parentbf4ea03da40f43219ae59568d0cc9535f2058b7f (diff)
Observe CPL changing, so that (e.g.) Make KDM button becomes sensitive
when selecting a screen and then choosing a CPL by browsing the filesystem (when there was no CPL previously selected).
Diffstat (limited to 'src/wx/kdm_cpl_panel.h')
-rw-r--r--src/wx/kdm_cpl_panel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wx/kdm_cpl_panel.h b/src/wx/kdm_cpl_panel.h
index 9ce90217e..91821d7a3 100644
--- a/src/wx/kdm_cpl_panel.h
+++ b/src/wx/kdm_cpl_panel.h
@@ -25,6 +25,7 @@ LIBDCP_DISABLE_WARNINGS
#include <wx/wx.h>
LIBDCP_ENABLE_WARNINGS
#include <boost/filesystem.hpp>
+#include <boost/signals2.hpp>
class KDMCPLPanel : public wxPanel
@@ -35,6 +36,8 @@ public:
boost::filesystem::path cpl () const;
bool has_selected () const;
+ boost::signals2::signal<void ()> Changed;
+
private:
void update_cpl_choice ();
void update_cpl_summary ();