Update frames computed label in a separate thread to avoid holding up the GUI.
[dcpomatic.git] / src / wx / properties_dialog.h
index 25c11e8d0025f8a206df1dbb799170ab751ba3a2..f72c8341945f06cd34be59caba16cf11fba15375 100644 (file)
@@ -20,6 +20,7 @@
 #include <wx/wx.h>
 
 class Film;
+class ThreadedStaticText;
 
 class PropertiesDialog : public wxDialog
 {
@@ -27,9 +28,12 @@ public:
        PropertiesDialog (wxWindow *, Film *);
 
 private:
+       std::string frames_already_encoded () const;
+
+       Film* _film;
        wxStaticText* _frames;
        wxStaticText* _disk_for_frames;
        wxStaticText* _total_disk;
-       wxStaticText* _encoded;
+       ThreadedStaticText* _encoded;
 };