Updated nl_NL translation from Rob van Nieuwkerk.
[dcpomatic.git] / src / wx / editable_list.h
index eb06f4cf8869a835273f2c44ac8b2a04941db5ba..ef8862b3a69076c83271903aae0d3b428b9e2cb9 100644 (file)
@@ -22,6 +22,7 @@
 #define DCPOMATIC_EDITABLE_LIST_H
 
 #include "wx_util.h"
+#include "dcpomatic_button.h"
 #include <wx/wx.h>
 #include <wx/listctrl.h>
 #include <boost/function.hpp>
@@ -72,13 +73,13 @@ public:
 
                {
                        wxSizer* s = new wxBoxSizer (wxVERTICAL);
-                       _add = new wxButton (this, wxID_ANY, _("Add..."));
+                       _add = new Button (this, _("Add..."));
                        s->Add (_add, 0, wxTOP | wxBOTTOM, 2);
                        if (can_edit) {
-                               _edit = new wxButton (this, wxID_ANY, _("Edit..."));
+                               _edit = new Button (this, _("Edit..."));
                                s->Add (_edit, 0, wxTOP | wxBOTTOM, 2);
                        }
-                       _remove = new wxButton (this, wxID_ANY, _("Remove"));
+                       _remove = new Button (this, _("Remove"));
                        s->Add (_remove, 0, wxTOP | wxBOTTOM, 2);
                        _sizer->Add (s, 0, wxLEFT, DCPOMATIC_SIZER_X_GAP);
                }
@@ -91,7 +92,11 @@ public:
 
                _list->Bind (wxEVT_COMMAND_LIST_ITEM_SELECTED, boost::bind (&EditableList::selection_changed, this));
                _list->Bind (wxEVT_COMMAND_LIST_ITEM_DESELECTED, boost::bind (&EditableList::selection_changed, this));
+#if BOOST_VERSION >= 106100
+               _list->Bind (wxEVT_SIZE, boost::bind (&EditableList::resized, this, boost::placeholders::_1));
+#else
                _list->Bind (wxEVT_SIZE, boost::bind (&EditableList::resized, this, _1));
+#endif
 
                refresh ();
                selection_changed ();