- _sizer = new wxFlexGridSizer (1, 6, 6);
- _sizer->AddGrowableCol (0, 1);
+ wxFlexGridSizer* state_sizer = new wxFlexGridSizer (2, DCPOMATIC_SIZER_GAP, DCPOMATIC_SIZER_GAP);
+
+ add_label_to_sizer (state_sizer, this, _("Frames per second"), true);
+ _fps = new wxStaticText (this, wxID_ANY, wxT(""));
+ state_sizer->Add (_fps);
+
+ wxFlexGridSizer* log_sizer = new wxFlexGridSizer (1, DCPOMATIC_SIZER_GAP, DCPOMATIC_SIZER_GAP);
+ log_sizer->AddGrowableCol (0, 1);
+
+ wxClientDC dc (this);
+ wxSize size = dc.GetTextExtent (wxT ("This is the length of the file label it should be quite long"));
+ int const height = (size.GetHeight() + 2) * log_lines;
+ SetSize (700, height + DCPOMATIC_SIZER_GAP * 2);
+
+ _text = new wxTextCtrl (
+ this, wxID_ANY, std_to_wx (server_log->get()), wxDefaultPosition, wxSize (-1, height),
+ wxTE_READONLY | wxTE_MULTILINE
+ );