X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fmarkers_dialog.cc;h=04a3b878c265de72880dc94dec1a1c3b71039ee3;hb=56e0452ce0f436e7c54a49c68b272797f92a7ffe;hp=6658fdb4545fb6eb12736a18a04aecf34caa407f;hpb=9911663f3edd47eddde43b00d20f7b718bac786b;p=dcpomatic.git diff --git a/src/wx/markers_dialog.cc b/src/wx/markers_dialog.cc index 6658fdb45..04a3b878c 100644 --- a/src/wx/markers_dialog.cc +++ b/src/wx/markers_dialog.cc @@ -18,6 +18,7 @@ */ + #include "markers_dialog.h" #include "wx_util.h" #include "timecode.h" @@ -31,6 +32,7 @@ #include #include + using std::cout; using std::shared_ptr; using std::weak_ptr; @@ -39,6 +41,7 @@ using boost::optional; using boost::bind; using dcpomatic::DCPTime; + class Marker { public: @@ -112,6 +115,7 @@ private: Button* set_button; }; + MarkersDialog::MarkersDialog (wxWindow* parent, weak_ptr film, weak_ptr viewer) : wxDialog (parent, wxID_ANY, _("Markers")) , _film (film) @@ -132,5 +136,11 @@ MarkersDialog::MarkersDialog (wxWindow* parent, weak_ptr film, weak_ptr(this, grid, r++, film, viewer, _("Last frame of moving credits"), dcp::Marker::LFMC)); sizer->Add (grid, 0, wxALL, 8); + + auto buttons = CreateSeparatedButtonSizer (wxCLOSE); + if (buttons) { + sizer->Add (buttons, wxSizerFlags().Expand().DoubleBorder()); + } + SetSizerAndFit (sizer); }