summaryrefslogtreecommitdiff
path: root/src/wx/content_properties_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-04-12 16:13:46 +0100
committerCarl Hetherington <cth@carlh.net>2016-05-18 11:50:29 +0100
commitfa369ef1db0e9f68fdc0145f86ce15446a750af5 (patch)
tree3990b80d820aa1cf54eeb398149c3f1f99ccf471 /src/wx/content_properties_dialog.cc
parentb1152a6bf9d24e220b4dd9aa5819e89adcdf8264 (diff)
Move UserProperty into its own file.
Diffstat (limited to 'src/wx/content_properties_dialog.cc')
-rw-r--r--src/wx/content_properties_dialog.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wx/content_properties_dialog.cc b/src/wx/content_properties_dialog.cc
index 37f96c156..fb583c751 100644
--- a/src/wx/content_properties_dialog.cc
+++ b/src/wx/content_properties_dialog.cc
@@ -42,15 +42,15 @@ ContentPropertiesDialog::ContentPropertiesDialog (wxWindow* parent, shared_ptr<C
add (_("Filename"), true);
add (new wxStaticText (this, wxID_ANY, std_to_wx (n)));
- map<string, list<Content::UserProperty> > grouped;
- BOOST_FOREACH (Content::UserProperty i, content->user_properties()) {
+ map<string, list<UserProperty> > grouped;
+ BOOST_FOREACH (UserProperty i, content->user_properties()) {
if (grouped.find(i.category) == grouped.end()) {
- grouped[i.category] = list<Content::UserProperty> ();
+ grouped[i.category] = list<UserProperty> ();
}
grouped[i.category].push_back (i);
}
- for (map<string, list<Content::UserProperty> >::const_iterator i = grouped.begin(); i != grouped.end(); ++i) {
+ for (map<string, list<UserProperty> >::const_iterator i = grouped.begin(); i != grouped.end(); ++i) {
wxStaticText* m = new wxStaticText (this, wxID_ANY, std_to_wx (i->first));
wxFont font (*wxNORMAL_FONT);
@@ -62,7 +62,7 @@ ContentPropertiesDialog::ContentPropertiesDialog (wxWindow* parent, shared_ptr<C
add (m, false);
add_spacer ();
- BOOST_FOREACH (Content::UserProperty j, i->second) {
+ BOOST_FOREACH (UserProperty j, i->second) {
add (std_to_wx (j.key), true);
add (new wxStaticText (this, wxID_ANY, std_to_wx (j.value + " " + j.unit)));
}