: BC_ISlider(x,
y,
0,
- 190,
- 200,
+ xS(190),
+ yS(200),
1,
256,
plugin->config.frames)
DenoiseVideoWindow::DenoiseVideoWindow(DenoiseVideo *plugin)
: PluginClientWindow(plugin,
- 250,
- 300,
- 250,
- 300,
+ xS(250),
+ yS(300),
+ xS(250),
+ yS(300),
0)
{
this->plugin = plugin;
void DenoiseVideoWindow::create_objects()
{
- int x = 10, y = 10;
+ int xs10 = xS(10);
+ int ys5 = yS(5), ys10 = yS(10), ys30 = yS(30);
+ int x = xs10, y = ys10;
BC_Title *title;
BC_Bar *bar;
add_subwindow(new BC_Title(x, y, _("Frames to accumulate:")));
- y += 20;
+ y += yS(20);
add_subwindow(frames = new DenoiseVideoFrames(plugin, x, y));
- y += frames->get_h() + 5;
+ y += frames->get_h() + ys5;
add_subwindow(title = new BC_Title(x, y, _("Threshold:")));
- y += title->get_h() + 5;
+ y += title->get_h() + ys5;
threshold = new DenoiseVideoThreshold(plugin, this, x, y);
threshold->create_objects();
- y += threshold->get_h() + 5;
+ y += threshold->get_h() + ys5;
add_subwindow(bar = new BC_Bar(x, y, get_w() - x * 2));
- y += bar->get_h() + 5;
+ y += bar->get_h() + ys5;
add_subwindow(count_changed = new DenoiseVideoCountChanged(plugin,
this,
x,
y));
- y += count_changed->get_h() + 5;
+ y += count_changed->get_h() + ys5;
add_subwindow(count_same = new DenoiseVideoCountSame(plugin,
this,
x,
y));
- y += count_same->get_h() + 5;
+ y += count_same->get_h() + ys5;
add_subwindow(bar = new BC_Bar(x, y, get_w() - x * 2));
- y += bar->get_h() + 5;
+ y += bar->get_h() + ys5;
add_subwindow(do_r = new DenoiseVideoToggle(plugin, this, x, y, &plugin->config.do_r, _("Red")));
- y += 30;
+ y += ys30;
add_subwindow(do_g = new DenoiseVideoToggle(plugin, this, x, y, &plugin->config.do_g, _("Green")));
- y += 30;
+ y += ys30;
add_subwindow(do_b = new DenoiseVideoToggle(plugin, this, x, y, &plugin->config.do_b, _("Blue")));
- y += 30;
+ y += ys30;
add_subwindow(do_a = new DenoiseVideoToggle(plugin, this, x, y, &plugin->config.do_a, _("Alpha")));
show_window();
flush();