Remove film-specifity of dci name dialog and rename its source file.
[dcpomatic.git] / src / tools / servomatic_gui.cc
index 1d95f498a7fb4697baf47e2a85771ea2cb0f0d9f..610ba8005eb30aa5c70bac0e27e436571fa8069e 100644 (file)
@@ -23,6 +23,7 @@
 #include "wx_util.h"
 #include "lib/util.h"
 #include "lib/server.h"
+#include "lib/config.h"
 
 using namespace std;
 using namespace boost;
@@ -57,13 +58,13 @@ class StatusDialog : public wxDialog
 {
 public:
        StatusDialog ()
-               : wxDialog (0, wxID_ANY, _("DVD-o-matic encode server"), wxDefaultPosition, wxSize (600, 40), wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
+               : wxDialog (0, wxID_ANY, _("DVD-o-matic encode server"), wxDefaultPosition, wxSize (600, 80), wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
                , _timer (this, ID_timer)
        {
                _sizer = new wxFlexGridSizer (1, 6, 6);
                _sizer->AddGrowableCol (0, 1);
 
-               _text = new wxTextCtrl (this, wxID_ANY);
+               _text = new wxTextCtrl (this, wxID_ANY, _(""), wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
                _sizer->Add (_text, 1, wxEXPAND);
 
                SetSizer (_sizer);
@@ -141,7 +142,7 @@ private:
        void main_thread ()
        {
                Server server (&memory_log);
-               server.run ();
+               server.run (Config::instance()->num_local_encoding_threads ());
        }
 
        boost::thread* _thread;