From 8a30239ec528446462f3095c1374e2ac53e2b51e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 29 Oct 2025 01:02:35 +0100 Subject: White space: content_properties_dialog.{cc,h} --- src/wx/content_properties_dialog.cc | 46 ++++++++++++++++++------------------- src/wx/content_properties_dialog.h | 4 ++-- 2 files changed, 25 insertions(+), 25 deletions(-) (limited to 'src') diff --git a/src/wx/content_properties_dialog.cc b/src/wx/content_properties_dialog.cc index da4243cb4..a50cfec04 100644 --- a/src/wx/content_properties_dialog.cc +++ b/src/wx/content_properties_dialog.cc @@ -36,34 +36,34 @@ using std::shared_ptr; using std::dynamic_pointer_cast; -ContentPropertiesDialog::ContentPropertiesDialog (wxWindow* parent, shared_ptr film, shared_ptr content) - : TableDialog (parent, _("Content Properties"), 2, 1, false) +ContentPropertiesDialog::ContentPropertiesDialog(wxWindow* parent, shared_ptr film, shared_ptr content) + : TableDialog(parent, _("Content Properties"), 2, 1, false) { map> grouped; for (auto i: content->user_properties(film)) { if (grouped.find(i.category) == grouped.end()) { - grouped[i.category] = list (); + grouped[i.category] = list(); } - grouped[i.category].push_back (i); + grouped[i.category].push_back(i); } - maybe_add_group (grouped, UserProperty::GENERAL); - maybe_add_group (grouped, UserProperty::VIDEO); - maybe_add_group (grouped, UserProperty::AUDIO); - maybe_add_group (grouped, UserProperty::LENGTH); + maybe_add_group(grouped, UserProperty::GENERAL); + maybe_add_group(grouped, UserProperty::VIDEO); + maybe_add_group(grouped, UserProperty::AUDIO); + maybe_add_group(grouped, UserProperty::LENGTH); /* Nasty hack to stop the bottom property being cut off on Windows / OS X */ - add (wxString(), false); - add (wxString(), false); + add(wxString(), false); + add(wxString(), false); - layout (); + layout(); } void -ContentPropertiesDialog::maybe_add_group (map> const & groups, UserProperty::Category category) +ContentPropertiesDialog::maybe_add_group(map> const & groups, UserProperty::Category category) { - auto i = groups.find (category); + auto i = groups.find(category); if (i == groups.end()) { return; } @@ -84,18 +84,18 @@ ContentPropertiesDialog::maybe_add_group (mapSetFont (font); + 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 (); + 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))); + 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))); } } diff --git a/src/wx/content_properties_dialog.h b/src/wx/content_properties_dialog.h index c7efa4497..0b914f56e 100644 --- a/src/wx/content_properties_dialog.h +++ b/src/wx/content_properties_dialog.h @@ -33,8 +33,8 @@ class UserProperty; class ContentPropertiesDialog : public TableDialog { public: - ContentPropertiesDialog (wxWindow* parent, std::shared_ptr film, std::shared_ptr content); + ContentPropertiesDialog(wxWindow* parent, std::shared_ptr film, std::shared_ptr content); private: - void maybe_add_group (std::map > const & groups, UserProperty::Category category); + void maybe_add_group(std::map > const & groups, UserProperty::Category category); }; -- cgit v1.2.3