Include tidying.
[dcpomatic.git] / src / wx / kdm_dialog.cc
index 3dd1c2029bafcb9d0cbd86263b48ce6bf9e518c2..7046c160e58b4f1513d694119db27175cdb948c9 100644 (file)
@@ -24,6 +24,7 @@
 #include "lib/cinema.h"
 #include "lib/config.h"
 #include "lib/film.h"
+#include "lib/screen.h"
 #include <libcxml/cxml.h>
 #ifdef DCPOMATIC_USE_OWN_DIR_PICKER
 #include "dir_picker_ctrl.h"
@@ -62,7 +63,7 @@ KDMDialog::KDMDialog (wxWindow* parent, boost::shared_ptr<const Film> film)
        vertical->Add (h, 0, wxALIGN_CENTER_VERTICAL);
 
        wxBoxSizer* targets = new wxBoxSizer (wxHORIZONTAL);
-       _targets = new wxTreeCtrl (this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_HIDE_ROOT | wxTR_MULTIPLE | wxTR_HAS_BUTTONS);
+       _targets = new wxTreeCtrl (this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_HIDE_ROOT | wxTR_MULTIPLE | wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT);
        targets->Add (_targets, 1, wxEXPAND | wxTOP | wxRIGHT, DCPOMATIC_SIZER_GAP);
 
        _root = _targets->AddRoot ("Foo");
@@ -305,6 +306,7 @@ KDMDialog::add_screen (shared_ptr<Cinema> c, shared_ptr<Screen> s)
        }
 
        _screens[_targets->AppendItem (i->first, std_to_wx (s->name))] = s;
+       _targets->Expand (i->first);
 }
 
 void