- Bind (wxEVT_TIMER, boost::bind (&StatusDialog::update, this), ID_timer);
- _timer.Start (1000);
+ log_sizer->Add (_text, 1, wxEXPAND);
+
+ wxBoxSizer* overall_sizer = new wxBoxSizer (wxVERTICAL);
+ overall_sizer->Add (state_sizer, 0, wxALL, DCPOMATIC_SIZER_GAP);
+ overall_sizer->Add (log_sizer, 1, wxEXPAND | wxALL, DCPOMATIC_SIZER_GAP);
+ SetSizer (overall_sizer);
+ overall_sizer->Layout ();
+
+ Bind (wxEVT_TIMER, boost::bind (&StatusDialog::update_state, this));
+ _timer.reset (new wxTimer (this));
+ _timer->Start (1000);
+
+ server_log->Appended.connect (bind (&StatusDialog::appended, this, _1));
+ server_log->Removed.connect (bind (&StatusDialog::removed, this, _1));