+ wxString category_name;
+ switch (i->first) {
+ case UserProperty::GENERAL:
+ category_name = _("General");
+ break;
+ case UserProperty::VIDEO:
+ category_name = _("Video");
+ break;
+ case UserProperty::AUDIO:
+ category_name = _("Audio");
+ break;
+ case UserProperty::LENGTH:
+ category_name = _("Length");
+ break;
+ }
+
+ auto m = new StaticText (this, category_name);
+ wxFont font (*wxNORMAL_FONT);
+ font.SetWeight (wxFONTWEIGHT_BOLD);
+ m->SetFont (font);
+
+ add_spacer ();
+ add_spacer ();
+ add (m, false);
+ add_spacer ();
+
+ for (auto j: i->second) {
+ add_label_to_sizer (_table, this, std_to_wx(j.key), true, 0, wxALIGN_TOP);
+ add (new StaticText (this, std_to_wx (j.value + " " + j.unit)));
+ }