ThresholdLowColorThread::ThresholdLowColorThread(ThresholdMain *plugin, ThresholdWindow *window)
- : ColorThread(1, _("Low color"))
+ : ColorPicker(1, _("Low color"))
{
this->plugin = plugin;
this->window = window;
ThresholdMidColorThread::ThresholdMidColorThread(ThresholdMain *plugin, ThresholdWindow *window)
- : ColorThread(1, _("Mid color"))
+ : ColorPicker(1, _("Mid color"))
{
this->plugin = plugin;
this->window = window;
ThresholdHighColorThread::ThresholdHighColorThread(ThresholdMain *plugin, ThresholdWindow *window)
- : ColorThread(1, _("High color"))
+ : ColorPicker(1, _("High color"))
{
this->plugin = plugin;
this->window = window;
flash(high_color_x, high_color_y, COLOR_W, COLOR_H);
}
+void ThresholdWindow::done_event(int result)
+{
+ low_color_thread->close_window();
+ mid_color_thread->close_window();
+ high_color_thread->close_window();
+}
+