using std::list;
using std::pair;
+using std::cout;
using std::map;
using std::make_pair;
using boost::shared_ptr;
sizer->Add (targets, 1, wxEXPAND);
- _targets->Bind (wxEVT_COMMAND_TREE_SEL_CHANGED, boost::bind (&ScreensPanel::selection_changed, this));
+ _targets->Bind (wxEVT_COMMAND_TREE_SEL_CHANGED, &ScreensPanel::selection_changed, this);
_add_cinema->Bind (wxEVT_COMMAND_BUTTON_CLICKED, boost::bind (&ScreensPanel::add_cinema_clicked, this));
_edit_cinema->Bind (wxEVT_COMMAND_BUTTON_CLICKED, boost::bind (&ScreensPanel::edit_cinema_clicked, this));
SetSizer (sizer);
}
+ScreensPanel::~ScreensPanel ()
+{
+ _targets->Unbind (wxEVT_COMMAND_TREE_SEL_CHANGED, &ScreensPanel::selection_changed, this);
+}
+
list<pair<wxTreeItemId, shared_ptr<Cinema> > >
ScreensPanel::selected_cinemas () const
{
}
void
-ScreensPanel::selection_changed ()
+ScreensPanel::selection_changed (wxTreeEvent &)
{
setup_sensitivity ();
ScreensChanged ();