- add_label_to_sizer (table, this, _("Disk space required"), true);
- _disk = new wxStaticText (this, wxID_ANY, wxT (""));
- table->Add (_disk, 1, wxALIGN_CENTER_VERTICAL);
-
- add_label_to_sizer (table, this, _("Frames already encoded"), true);
- _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->time_to_video_frames (_film->length()))));
- double const disk = ((double) _film->j2k_bandwidth() / 8) * _film->length() / (TIME_HZ * 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;