*/
+#include "dcpomatic_button.h"
+#include "rename_template_dialog.h"
#include "templates_dialog.h"
#include "wx_util.h"
-#include "rename_template_dialog.h"
-#include "dcpomatic_button.h"
#include "lib/config.h"
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
#include <wx/wx.h>
+LIBDCP_ENABLE_WARNINGS
using std::string;
SetSizer (_sizer);
auto hs = new wxBoxSizer (wxHORIZONTAL);
- _list = new wxListCtrl (this, wxID_ANY, wxDefaultPosition, wxSize (200, 100), wxLC_REPORT | wxLC_SINGLE_SEL);
+ _list = new wxListCtrl(this, wxID_ANY, wxDefaultPosition, wxSize(400, 300), wxLC_REPORT | wxLC_SINGLE_SEL);
wxListItem ip;
ip.SetId (0);
{
auto s = new wxBoxSizer (wxVERTICAL);
_rename = new Button (this, _("Rename..."));
- s->Add (_rename, 0, wxTOP | wxBOTTOM, 2);
+ s->Add(_rename, 0, wxTOP | wxBOTTOM | wxEXPAND, 2);
_remove = new Button (this, _("Remove"));
- s->Add (_remove, 0, wxTOP | wxBOTTOM, 2);
+ s->Add(_remove, 0, wxTOP | wxBOTTOM | wxEXPAND, 2);
hs->Add (s, 0, wxLEFT, DCPOMATIC_SIZER_X_GAP);
}
_list->Bind (wxEVT_SIZE, bind(&TemplatesDialog::resized, this, _1));
_config_connection = Config::instance()->Changed.connect (bind(&TemplatesDialog::refresh, this));
+ Fit();
+
refresh ();
selection_changed ();
}