summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-29 01:02:35 +0100
committerCarl Hetherington <cth@carlh.net>2025-10-29 01:02:35 +0100
commit8a30239ec528446462f3095c1374e2ac53e2b51e (patch)
tree36d9b653573f9b26d1a940be72762f20959b21d3
parent501e47b65eb72d20b3420d14412bd5720200be86 (diff)
White space: content_properties_dialog.{cc,h}
-rw-r--r--src/wx/content_properties_dialog.cc46
-rw-r--r--src/wx/content_properties_dialog.h4
2 files changed, 25 insertions, 25 deletions
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<const Film> film, shared_ptr<Content> content)
- : TableDialog (parent, _("Content Properties"), 2, 1, false)
+ContentPropertiesDialog::ContentPropertiesDialog(wxWindow* parent, shared_ptr<const Film> film, shared_ptr<Content> content)
+ : TableDialog(parent, _("Content Properties"), 2, 1, false)
{
map<UserProperty::Category, list<UserProperty>> grouped;
for (auto i: content->user_properties(film)) {
if (grouped.find(i.category) == grouped.end()) {
- grouped[i.category] = list<UserProperty> ();
+ grouped[i.category] = list<UserProperty>();
}
- 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<UserProperty::Category, list<UserProperty>> const & groups, UserProperty::Category category)
+ContentPropertiesDialog::maybe_add_group(map<UserProperty::Category, list<UserProperty>> 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 (map<UserProperty::Category, list<UserP
break;
}
- auto m = new StaticText (this, category_name);
- wxFont font (*wxNORMAL_FONT);
- font.SetWeight (wxFONTWEIGHT_BOLD);
- m->SetFont (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<const Film> film, std::shared_ptr<Content> content);
+ ContentPropertiesDialog(wxWindow* parent, std::shared_ptr<const Film> film, std::shared_ptr<Content> content);
private:
- void maybe_add_group (std::map<UserProperty::Category, std::list<UserProperty> > const & groups, UserProperty::Category category);
+ void maybe_add_group(std::map<UserProperty::Category, std::list<UserProperty> > const & groups, UserProperty::Category category);
};