Adapt properties dialog for direct MXF write.
authorCarl Hetherington <cth@carlh.net>
Mon, 11 Feb 2013 00:36:42 +0000 (00:36 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 11 Feb 2013 00:36:42 +0000 (00:36 +0000)
src/wx/properties_dialog.cc
src/wx/properties_dialog.h

index 338d0f972c7e7a104a872f95a3add26942a0d83d..a57aaf5b92c28289c355c98bc6cbd8ee8d4104a5 100644 (file)
@@ -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);
index 308c0f7b3f5bdced158de82e7362bbdae7711006..cae929e1894e19235dc84741a84ab6eab3adfda8 100644 (file)
@@ -32,8 +32,7 @@ private:
 
        boost::shared_ptr<Film> _film;
        wxStaticText* _frames;
-       wxStaticText* _disk_for_frames;
-       wxStaticText* _total_disk;
+       wxStaticText* _disk;
        ThreadedStaticText* _encoded;
 };