DiffKeyThreshold::DiffKeyThreshold(DiffKey *plugin, int x, int y)
- : BC_FSlider(x, y, 0, 200, 200, 0, 100, plugin->config.threshold)
+ : BC_FSlider(x, y, 0, xS(200), yS(200), 0, 100, plugin->config.threshold)
{
this->plugin = plugin;
}
DiffKeySlope::DiffKeySlope(DiffKey *plugin, int x, int y)
- : BC_FSlider(x, y, 0, 200, 200, 0, 100, plugin->config.slope)
+ : BC_FSlider(x, y, 0, xS(200), yS(200), 0, 100, plugin->config.slope)
{
this->plugin = plugin;
}
DiffKeyGUI::DiffKeyGUI(DiffKey *plugin)
: PluginClientWindow(plugin,
- 320,
- 100,
- 320,
- 100,
+ xS(320),
+ yS(100),
+ xS(320),
+ yS(100),
0)
{
this->plugin = plugin;
void DiffKeyGUI::create_objects()
{
- int x = 10, y = 10;
+ int xs10 = xS(10), xs38 = xS(38);
+ int ys10 = yS(10);
+ int x = xs10, y = ys10;
BC_Title *title;
add_subwindow(title = new BC_Title(x, y, _("Threshold:")));
- x += title->get_w() + 10;
+ x += title->get_w() + xs10;
add_subwindow(threshold = new DiffKeyThreshold(plugin, x, y));
- x = 10;
- y += threshold->get_h() + 10;
+ x = xs10;
+ y += threshold->get_h() + ys10;
add_subwindow(title = new BC_Title(x, y, _("Slope:")));
- x += title->get_w() + 10;
+ x += title->get_w() + xs38;
add_subwindow(slope = new DiffKeySlope(plugin, x, y));
- x = 10;
- y += slope->get_h() + 10;
+ x = xs38;
+ y += slope->get_h() + ys10;
add_subwindow(do_value = new DiffKeyDoValue(plugin, x, y));