X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fscreens_panel.cc;h=8db7a10355f14400e806baa134cf8acd18f17dde;hb=95c48153421b1a6e0d7ca6cf5e67cd7623c03dc7;hp=908e94f4dab8b0bbb5d2f46796705f0a76d63846;hpb=443a7d74ff2a49ad45a4fb44f92abd619bc0a0b0;p=dcpomatic.git diff --git a/src/wx/screens_panel.cc b/src/wx/screens_panel.cc index 908e94f4d..8db7a1035 100644 --- a/src/wx/screens_panel.cc +++ b/src/wx/screens_panel.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2015-2016 Carl Hetherington + Copyright (C) 2015-2018 Carl Hetherington This file is part of DCP-o-matic. @@ -18,13 +18,14 @@ */ -#include "lib/config.h" -#include "lib/cinema.h" -#include "lib/screen.h" #include "screens_panel.h" #include "wx_util.h" #include "cinema_dialog.h" #include "screen_dialog.h" +#include "dcpomatic_button.h" +#include "lib/config.h" +#include "lib/cinema.h" +#include "lib/screen.h" #include using std::list; @@ -35,6 +36,7 @@ using std::string; using std::make_pair; using boost::shared_ptr; using boost::optional; +using namespace dcpomatic; ScreensPanel::ScreensPanel (wxWindow* parent) : wxPanel (parent, wxID_ANY) @@ -54,17 +56,17 @@ ScreensPanel::ScreensPanel (wxWindow* parent) wxBoxSizer* target_buttons = new wxBoxSizer (wxVERTICAL); - _add_cinema = new wxButton (this, wxID_ANY, _("Add Cinema...")); + _add_cinema = new Button (this, _("Add Cinema...")); target_buttons->Add (_add_cinema, 1, wxEXPAND | wxBOTTOM, DCPOMATIC_BUTTON_STACK_GAP); - _edit_cinema = new wxButton (this, wxID_ANY, _("Edit Cinema...")); + _edit_cinema = new Button (this, _("Edit Cinema...")); target_buttons->Add (_edit_cinema, 1, wxEXPAND | wxBOTTOM, DCPOMATIC_BUTTON_STACK_GAP); - _remove_cinema = new wxButton (this, wxID_ANY, _("Remove Cinema")); + _remove_cinema = new Button (this, _("Remove Cinema")); target_buttons->Add (_remove_cinema, 1, wxEXPAND | wxBOTTOM, DCPOMATIC_BUTTON_STACK_GAP); - _add_screen = new wxButton (this, wxID_ANY, _("Add Screen...")); + _add_screen = new Button (this, _("Add Screen...")); target_buttons->Add (_add_screen, 1, wxEXPAND | wxBOTTOM, DCPOMATIC_BUTTON_STACK_GAP); - _edit_screen = new wxButton (this, wxID_ANY, _("Edit Screen...")); + _edit_screen = new Button (this, _("Edit Screen...")); target_buttons->Add (_edit_screen, 1, wxEXPAND | wxBOTTOM, DCPOMATIC_BUTTON_STACK_GAP); - _remove_screen = new wxButton (this, wxID_ANY, _("Remove Screen")); + _remove_screen = new Button (this, _("Remove Screen")); target_buttons->Add (_remove_screen, 1, wxEXPAND | wxBOTTOM, DCPOMATIC_BUTTON_STACK_GAP); targets->Add (target_buttons, 0, 0); @@ -222,7 +224,7 @@ ScreensPanel::add_screen_clicked () } } - shared_ptr s (new Screen (d->name(), d->recipient(), d->trusted_devices())); + shared_ptr s (new Screen (d->name(), d->notes(), d->recipient(), d->trusted_devices())); c->add_screen (s); optional id = add_screen (c, s); if (id) {