+}
+
+ColorWindow::~ColorWindow()
+{
+}
+
+void ColorWindow::create_objects()
+{
+ BC_WindowBase::create_objects();
+ ColorGUI::create_objects();
+ thread->create_objects(this);
+}
+
+void ColorWindow::update_gui(int color, int alpha)
+{
+ lock_window("ColorWindow::update_gui");
+ this->color = color;
+ this->alpha = alpha;
+ change_values();
+ update_display();
+ unlock_window();
+}
+int ColorWindow::handle_new_color(int color, int alpha)
+{
+ lock_window("ColorWindow::handle_new_color");
+ thread->handle_new_color(color, alpha);
+ unlock_window();
+ return 1;
+}
+
+
+ColorGUI::ColorGUI(BC_WindowBase *window)
+{
+ this->window = window;
+ this->title = 0;
+ this->do_alpha = 0;
+ this->ok_cancel = 0;
+ this->color = this->orig_color = BLACK;
+ this->alpha = this->orig_alpha = 255;
+