X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fplugins%2Faging%2Fagingwindow.C;h=9ccb4d8aac15be402975ba743d06d38c47afa7e5;hb=300cfc94af29dda96d2f5e5e7b64ab559452fd8d;hp=9c702d7ed42610fabfd24d7b14d490adcbf72e36;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/aging/agingwindow.C b/cinelerra-5.1/plugins/aging/agingwindow.C index 9c702d7e..9ccb4d8a 100644 --- a/cinelerra-5.1/plugins/aging/agingwindow.C +++ b/cinelerra-5.1/plugins/aging/agingwindow.C @@ -24,7 +24,7 @@ #include "language.h" AgingWindow::AgingWindow(AgingMain *plugin) - : PluginClientWindow(plugin, 300, 180, 300, 180, 0) + : PluginClientWindow(plugin, xS(300), yS(180), xS(300), yS(180), 0) { this->plugin = plugin; } @@ -35,30 +35,32 @@ AgingWindow::~AgingWindow() void AgingWindow::create_objects() { - int x = 10, y = 10; + int xs100 = xS(100); + int ys5 = yS(5), ys15 = yS(15), ys180 = yS(180); + int x = xS(10), y = yS(10); BC_Title *title; add_subwindow(title = new BC_Title(x, y, _("Aging:"))); - y += title->get_h() + 15; + y += title->get_h() + ys15; add_subwindow(color = new AgingCheckBox(this, x, y, &plugin->config.colorage, _("Grain"))); - y += color->get_h() + 5; + y += color->get_h() + ys5; add_subwindow(scratches = new AgingCheckBox(this, x, y, &plugin->config.scratch, _("Scratch"))); - add_subwindow(scratch_count = new AgingISlider(this, x+100, y, 180, + add_subwindow(scratch_count = new AgingISlider(this, x+xs100, y, ys180, 0,SCRATCH_MAX, &plugin->config.scratch_lines)); - y += scratches->get_h() + 5; + y += scratches->get_h() + ys5; add_subwindow(pits = new AgingCheckBox(this, x, y, &plugin->config.pits, _("Pits"))); - add_subwindow(pit_count = new AgingISlider(this, x+100, y, 180, + add_subwindow(pit_count = new AgingISlider(this, x+xs100, y, ys180, 0,100, &plugin->config.pits_interval)); - y += pits->get_h() + 5; + y += pits->get_h() + ys5; add_subwindow(dust = new AgingCheckBox(this, x, y, &plugin->config.dust, _("Dust"))); - add_subwindow(dust_count = new AgingISlider(this, x+100, y, 180, + add_subwindow(dust_count = new AgingISlider(this, x+xs100, y, ys180, 0,100, &plugin->config.dust_interval)); show_window(1); @@ -80,6 +82,7 @@ AgingISlider::~AgingISlider() int AgingISlider::handle_event() { int ret = BC_ISlider::handle_event(); + *output = get_value(); win->plugin->send_configure_change(); return ret; }