X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fgamma%2Fgammawindow.C;h=7e7322a6c60ad712f6ae5f1b9aa29467eaadb419;hp=b00d324512322c4f61673fef77e65c3e41a1e0a8;hb=0df48ad2d876409c5beeae2e21933a728ea76c33;hpb=bd570c5fa5f5473b670673368dc30356aa6c43fa diff --git a/cinelerra-5.1/plugins/gamma/gammawindow.C b/cinelerra-5.1/plugins/gamma/gammawindow.C index b00d3245..7e7322a6 100644 --- a/cinelerra-5.1/plugins/gamma/gammawindow.C +++ b/cinelerra-5.1/plugins/gamma/gammawindow.C @@ -27,10 +27,10 @@ GammaWindow::GammaWindow(GammaMain *client) : PluginClientWindow(client, - 400, - 380, - 400, - 380, + xS(400), + yS(380), + xS(400), + yS(380), 0) { this->client = client; @@ -38,56 +38,58 @@ GammaWindow::GammaWindow(GammaMain *client) void GammaWindow::create_objects() { - int x = 10, y = 10, x1 = x; + int xs10 = xS(10), xs100 = xS(100), xs110 = xS(110), xs190 = xS(190); + int ys10 = yS(10), ys180 = yS(180); + int x = xs10, y = ys10, x1 = x; add_subwindow(histogram = new BC_SubWindow(x, y, get_w() - x * 2, - get_h() - 180, + get_h() - ys180, WHITE)); - y += histogram->get_h() + 10; + y += histogram->get_h() + ys10; BC_Title *title; add_tool(title = new BC_Title(x, y, _("Maximum:"))); - x += title->get_w() + 10; + x += title->get_w() + xs10; x1 = x; // save x to align the two sliders add_tool(max_slider = new MaxSlider(client, this, x, y, - 190)); - x += max_slider->get_w() + 10; + xs190)); + x += max_slider->get_w() + xs10; add_tool(max_text = new MaxText(client, this, x, y, - 100)); - y += max_text->get_h() + 10; - x = 10; + xs100)); + y += max_text->get_h() + ys10; + x = xs10; add_tool(automatic = new GammaAuto(client, x, y)); - y += automatic->get_h() + 10; + y += automatic->get_h() + ys10; add_tool(title = new BC_Title(x, y, _("Gamma:"))); - x += title->get_w() + 10; + x += title->get_w() + xs10; x = x1; // recover x of the "MaxSlider" to align the "GammaSlider" add_tool(gamma_slider = new GammaSlider(client, this, x, y, - 190)); - x += gamma_slider->get_w() + 10; + xs190)); + x += gamma_slider->get_w() + xs10; add_tool(gamma_text = new GammaText(client, this, x, y, - 100)); - y += gamma_text->get_h() + 10; - x = 10; + xs100)); + y += gamma_text->get_h() + ys10; + x = xs10; add_tool(plot = new GammaPlot(client, x, y)); - y += plot->get_h() + 10; + y += plot->get_h() + ys10; add_tool(new GammaColorPicker(client, this, x, y)); - add_tool(reset = new GammaReset(client, this, get_w()-110, y)); + add_tool(reset = new GammaReset(client, this, get_w()-xs110, y)); show_window(); flush();