X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fcolorpicker.C;h=5c43fb93da1c49afe173a8970e5e0710cd26925e;hb=7dd4a71f0c957c2d95ae83fe789076d7445ecb60;hp=55a65231c1d0bab4692ef98d0d0c85b6b7c9159f;hpb=bce222d832cb4566d7aed76a656af8307e5f2f58;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/colorpicker.C b/cinelerra-5.1/cinelerra/colorpicker.C index 55a65231..5c43fb93 100644 --- a/cinelerra-5.1/cinelerra/colorpicker.C +++ b/cinelerra-5.1/cinelerra/colorpicker.C @@ -39,7 +39,7 @@ #define PALETTE_DATA "palette.dat" -ColorThread::ColorThread(int do_alpha, const char *title) +ColorPicker::ColorPicker(int do_alpha, const char *title) : BC_DialogThread() { this->title = title; @@ -49,17 +49,17 @@ ColorThread::ColorThread(int do_alpha, const char *title) this->alpha = 255; } -ColorThread::~ColorThread() +ColorPicker::~ColorPicker() { close_window(); } -void ColorThread::start_window(int output, int alpha, int do_okcancel) +void ColorPicker::start_window(int output, int alpha, int do_okcancel) { if( running() ) { ColorWindow *gui = (ColorWindow *)get_gui(); if( gui ) { - gui->lock_window("ColorThread::start_window"); + gui->lock_window("ColorPicker::start_window"); gui->raise_window(1); gui->unlock_window(); } @@ -71,7 +71,7 @@ void ColorThread::start_window(int output, int alpha, int do_okcancel) start(); } -BC_Window* ColorThread::new_gui() +BC_Window* ColorPicker::new_gui() { char window_title[BCTEXTLEN]; strcpy(window_title, _(PROGRAM_NAME ": ")); @@ -92,7 +92,7 @@ BC_Window* ColorThread::new_gui() return gui; } -void ColorThread::update_gui(int output, int alpha) +void ColorPicker::update_gui(int output, int alpha) { ColorWindow *gui = (ColorWindow *)get_gui(); if( !gui ) return; @@ -104,14 +104,14 @@ void ColorThread::update_gui(int output, int alpha) gui->unlock_window(); } -int ColorThread::handle_new_color(int output, int alpha) +int ColorPicker::handle_new_color(int output, int alpha) { - printf("ColorThread::handle_new_color undefined.\n"); + printf("ColorPicker::handle_new_color undefined.\n"); return 0; } -ColorWindow::ColorWindow(ColorThread *thread, int x, int y, int w, int h, const char *title) +ColorWindow::ColorWindow(ColorPicker *thread, int x, int y, int w, int h, const char *title) : BC_Window(title, x, y, w, h, w, h, 0, 0, 1) { this->thread = thread; @@ -214,9 +214,9 @@ void ColorWindow::create_objects() yuv_y = new PaletteYUV(this, x,y+=40, yuv.y, 0, 1); yuv_y->create_objects(); yuv_y->set_tooltip(_("Luminance")); yuv_u = new PaletteYUV(this, x,y+=25, yuv.u, 0, 1); - yuv_u->create_objects(); yuv_u->set_tooltip(_("Complement Blue")); + yuv_u->create_objects(); yuv_u->set_tooltip(_("Blue Luminance Difference")); yuv_v = new PaletteYUV(this, x,y+=25, yuv.v, 0, 1); - yuv_v->create_objects(); yuv_v->set_tooltip(_("Complement Red")); + yuv_v->create_objects(); yuv_v->set_tooltip(_("Red Luminance Difference")); if( thread->do_alpha ) { aph_a = new PaletteAPH(this, x,y+=40, aph, 0, 1); aph_a->create_objects(); aph_a->set_tooltip(_("Alpha"));