- x += 240; y = init_y;
- add_tool(new BC_Title(x, y, _("Hue"), SMALLFONT));
- y += 15;
-//printf("ColorWindow::create_objects 1 %p\n", this);
- add_tool(hue = new PaletteHue(this, x, y));
- y += 30;
-//printf("ColorWindow::create_objects 1\n");
- add_tool(new BC_Title(x, y, _("Saturation"), SMALLFONT));
- y += 15;
-//printf("ColorWindow::create_objects 1\n");
- add_tool(saturation = new PaletteSaturation(this, x, y));
- y += 30;
-//printf("ColorWindow::create_objects 1\n");
- add_tool(new BC_Title(x, y, _("Value"), SMALLFONT));
- y += 15;
-//printf("ColorWindow::create_objects 1\n");
- add_tool(value = new PaletteValue(this, x, y));
- y += 30;
-//printf("ColorWindow::create_objects 1\n");
- add_tool(new BC_Title(x, y, _("Red"), SMALLFONT));
- y += 15;
-//printf("ColorWindow::create_objects 1\n");
- add_tool(red = new PaletteRed(this, x, y));
- y += 30;
-//printf("ColorWindow::create_objects 1\n");
- add_tool(new BC_Title(x, y, _("Green"), SMALLFONT));
- y += 15;
-//printf("ColorWindow::create_objects 1\n");
- add_tool(green = new PaletteGreen(this, x, y));
- y += 30;
-//printf("ColorWindow::create_objects 1\n");
- add_tool(new BC_Title(x, y, _("Blue"), SMALLFONT));
- y += 15;
-//printf("ColorWindow::create_objects 1\n");
- add_tool(blue = new PaletteBlue(this, x, y));
-
- if(thread->do_alpha)
- {
- y += 30;
- add_tool(new BC_Title(x, y, _("Alpha"), SMALLFONT));
- y += 15;
- add_tool(alpha = new PaletteAlpha(this, x, y));
+ x += 240;
+ y = y0; add_tool(new BC_Title(x, y, _("Hue"), SMALLFONT));
+ y += 15; add_tool(hue = new PaletteHue(this, x, y));
+ y += 30; add_tool(new BC_Title(x, y, _("Saturation"), SMALLFONT));
+ y += 15; add_tool(saturation = new PaletteSaturation(this, x, y));
+ y += 30; add_tool(new BC_Title(x, y, _("Value"), SMALLFONT));
+ y += 15; add_tool(value = new PaletteValue(this, x, y));
+ y += 30; add_tool(new BC_Title(x, y, _("Red"), SMALLFONT));
+ y += 15; add_tool(red = new PaletteRed(this, x, y));
+ y += 30; add_tool(new BC_Title(x, y, _("Green"), SMALLFONT));
+ y += 15; add_tool(green = new PaletteGreen(this, x, y));
+ y += 30; add_tool(new BC_Title(x, y, _("Blue"), SMALLFONT));
+ y += 15; add_tool(blue = new PaletteBlue(this, x, y));
+
+ if(thread->do_alpha) {
+ y += 30; add_tool(new BC_Title(x, y, _("Alpha"), SMALLFONT));
+ y += 15; add_tool(alpha = new PaletteAlpha(this, x, y));
+ }
+ if( thread->do_okcancel ) {
+ add_tool(new BC_OKButton(this));
+ add_tool(new BC_CancelButton(this));