- 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));
- table->Add (_encoded, 1, wxALIGN_CENTER_VERTICAL);
-
- _frames->SetLabel (std_to_wx (lexical_cast<string> (_film->video_length())));
- FrameRateConversion frc (_film->video_frame_rate(), _film->dcp_frame_rate());
- int const dcp_length = _film->video_length() * frc.factor();
- double const disk = ((double) _film->j2k_bandwidth() / 8) * dcp_length / (_film->dcp_frame_rate() * 1073741824.0f);
- stringstream s;
+ add (_("Frames already encoded"), true);
+ _encoded = add (new ThreadedStaticText (this, _("counting..."), boost::bind (&PropertiesDialog::frames_already_encoded, this)));
+ _encoded->Finished.connect (boost::bind (&PropertiesDialog::layout, this));
+ _frames->SetLabel (std_to_wx (lexical_cast<string> (_film->length().frames (_film->video_frame_rate ()))));
+ double const disk = double (_film->required_disk_space()) / 1073741824.0f;
+ SafeStringStream s;