X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Feditable_list.h;h=902d1ccbbf213e7c53288cd1066579de58222348;hb=eff899ef357bb0b22a50accdfcb219e1eda9657d;hp=bd89090485a2fcfb8250c2ea0331f4fff70772e1;hpb=5c48efdde34ee11f135ea8b369d85d50d1410445;p=dcpomatic.git diff --git a/src/wx/editable_list.h b/src/wx/editable_list.h index bd8909048..902d1ccbb 100644 --- a/src/wx/editable_list.h +++ b/src/wx/editable_list.h @@ -61,6 +61,13 @@ namespace EditableListButton }; +enum class EditableListTitle +{ + VISIBLE, + INVISIBLE +}; + + /** @param T type of things being edited. * @param S dialog to edit a thing. * @param get Function to get a std::vector of the things being edited. @@ -77,7 +84,7 @@ public: std::function ()> get, std::function)> set, std::function column, - bool title, + EditableListTitle title, int buttons ) : wxPanel (parent) @@ -91,7 +98,7 @@ public: SetSizer (_sizer); long style = wxLC_REPORT | wxLC_SINGLE_SEL; - if (!title) { + if (title == EditableListTitle::INVISIBLE) { style |= wxLC_NO_HEADER; }