+ _outline_width->SetToolTip (_("Outline width cannot be set unless you are burning in captions"));
+ }
+}
+
+void
+SubtitleAppearanceDialog::active_jobs_changed (optional<string> last)
+{
+ if (last && *last == "examine_subtitles") {
+ _colours_panel->Show (true);
+ if (_finding) {
+ _finding->Show (false);
+ }
+ add_colours ();
+ _overall_sizer->Layout ();
+ _overall_sizer->SetSizeHints (this);
+ }
+}
+
+void
+SubtitleAppearanceDialog::add_colours ()
+{
+ map<RGBA, RGBA> colours = _stream->colours ();
+ for (map<RGBA, RGBA>::const_iterator i = colours.begin(); i != colours.end(); ++i) {
+ wxPanel* from = new wxPanel (_colours_panel, wxID_ANY);
+ from->SetBackgroundColour (wxColour (i->first.r, i->first.g, i->first.b, i->first.a));
+ _colour_table->Add (from, 1, wxEXPAND);
+ RGBAColourPicker* to = new RGBAColourPicker (_colours_panel, i->second);
+ _colour_table->Add (to, 1, wxEXPAND);
+ _pickers[i->first] = to;