Don't expand all cinemas on opening KDM dialogs (#779).
[dcpomatic.git] / src / wx / filter_dialog.cc
index bd844845298bcdd3012eed9308ea732c33b4e765..306ee749dcc568c325e14d0a2a0758caed62f795 100644 (file)
 
 #include "lib/film.h"
 #include "filter_dialog.h"
-#include "filter_view.h"
+#include "filter_editor.h"
 
 using namespace std;
+using boost::bind;
 
 FilterDialog::FilterDialog (wxWindow* parent, vector<Filter const *> const & f)
-       : wxDialog (parent, wxID_ANY, _("Filters"))
-       , _filters (new FilterView (this, f))
+       : wxDialog (parent, wxID_ANY, wxString (_("Filters")))
+       , _filters (new FilterEditor (this, f))
 {
        wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
-       sizer->Add (_filters, 1, wxEXPAND);
+       sizer->Add (_filters, 1, wxEXPAND | wxALL, 6);
 
-       _filters->ActiveChanged.connect (sigc::mem_fun (*this, &FilterDialog::active_changed));
+       _filters->ActiveChanged.connect (bind (&FilterDialog::active_changed, this));
 
        wxSizer* buttons = CreateSeparatedButtonSizer (wxOK);
        if (buttons) {
@@ -45,7 +46,7 @@ FilterDialog::FilterDialog (wxWindow* parent, vector<Filter const *> const & f)
        sizer->Layout ();
        sizer->SetSizeHints (this);
 }
-       
+
 
 void
 FilterDialog::active_changed ()