summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-02-11 00:36:42 +0000
committerCarl Hetherington <cth@carlh.net>2013-02-11 00:36:42 +0000
commit8e0242d7edcea2944aef3382f70e4e2fab7d12d9 (patch)
tree5c6b4eefa5d312af0dfa1d5079e31ca0a9768125 /src
parentbeea3beacba34c11b6b73323f4c3c8590a9aa73e (diff)
Adapt properties dialog for direct MXF write.
Diffstat (limited to 'src')
-rw-r--r--src/wx/properties_dialog.cc18
-rw-r--r--src/wx/properties_dialog.h3
2 files changed, 6 insertions, 15 deletions
diff --git a/src/wx/properties_dialog.cc b/src/wx/properties_dialog.cc
index 338d0f972..a57aaf5b9 100644
--- a/src/wx/properties_dialog.cc
+++ b/src/wx/properties_dialog.cc
@@ -42,13 +42,9 @@ PropertiesDialog::PropertiesDialog (wxWindow* parent, shared_ptr<Film> film)
_frames = new wxStaticText (this, wxID_ANY, wxT (""));
table->Add (_frames, 1, wxALIGN_CENTER_VERTICAL);
- add_label_to_sizer (table, this, _("Disk space required for frames"));
- _disk_for_frames = new wxStaticText (this, wxID_ANY, wxT (""));
- table->Add (_disk_for_frames, 1, wxALIGN_CENTER_VERTICAL);
-
- add_label_to_sizer (table, this, _("Total disk space required"));
- _total_disk = new wxStaticText (this, wxID_ANY, wxT (""));
- table->Add (_total_disk, 1, wxALIGN_CENTER_VERTICAL);
+ add_label_to_sizer (table, this, _("Disk space required"));
+ _disk = new wxStaticText (this, wxID_ANY, wxT (""));
+ table->Add (_disk, 1, wxALIGN_CENTER_VERTICAL);
add_label_to_sizer (table, this, _("Frames already encoded"));
_encoded = new ThreadedStaticText (this, _("counting..."), boost::bind (&PropertiesDialog::frames_already_encoded, this));
@@ -59,14 +55,10 @@ PropertiesDialog::PropertiesDialog (wxWindow* parent, shared_ptr<Film> film)
double const disk = ((double) _film->j2k_bandwidth() / 8) * _film->length().get() / (_film->frames_per_second () * 1073741824);
stringstream s;
s << fixed << setprecision (1) << disk << "Gb";
- _disk_for_frames->SetLabel (std_to_wx (s.str ()));
- stringstream t;
- t << fixed << setprecision (1) << (disk * 2) << "Gb";
- _total_disk->SetLabel (std_to_wx (t.str ()));
+ _disk->SetLabel (std_to_wx (s.str ()));
} else {
_frames->SetLabel (_("unknown"));
- _disk_for_frames->SetLabel (_("unknown"));
- _total_disk->SetLabel (_("unknown"));
+ _disk->SetLabel (_("unknown"));
}
wxBoxSizer* overall_sizer = new wxBoxSizer (wxVERTICAL);
diff --git a/src/wx/properties_dialog.h b/src/wx/properties_dialog.h
index 308c0f7b3..cae929e18 100644
--- a/src/wx/properties_dialog.h
+++ b/src/wx/properties_dialog.h
@@ -32,8 +32,7 @@ private:
boost::shared_ptr<Film> _film;
wxStaticText* _frames;
- wxStaticText* _disk_for_frames;
- wxStaticText* _total_disk;
+ wxStaticText* _disk;
ThreadedStaticText* _encoded;
};