- add_subwindow(title = new BC_Title(x, y + 10, _("Radius:")));
- add_subwindow(radius = new UnsharpRadius(plugin, x + x1, y));
- x2 = 285 - 10 - clrBtn_w;
- add_subwindow(radiusClr = new UnsharpSliderClr(plugin, this, x2, y + 10, clrBtn_w, RESET_RADIUS));
-
- y += 40;
- add_subwindow(title = new BC_Title(x, y + 10, _("Amount:")));
- add_subwindow(amount = new UnsharpAmount(plugin, x + x1, y));
- add_subwindow(amountClr = new UnsharpSliderClr(plugin, this, x2, y + 10, clrBtn_w, RESET_AMOUNT));
-
- y += 40;
- add_subwindow(title = new BC_Title(x, y + 10, _("Threshold:")));
- add_subwindow(threshold = new UnsharpThreshold(plugin, x + x1, y));
- add_subwindow(thresholdClr = new UnsharpSliderClr(plugin, this, x2, y + 10, clrBtn_w, RESET_THRESHOLD));
-
- y += 50;
- add_subwindow(reset = new UnsharpReset(plugin, this, x, y));
- add_subwindow(default_settings = new UnsharpDefaultSettings(plugin, this,
- (285 - 10 - defaultBtn_w), y, defaultBtn_w));
+ BC_Title *title;
+ BC_Bar *bar;
+
+// Radius
+ y += ys10;
+ add_subwindow(title = new BC_Title(x, y, _("Radius:")));
+ radius_text = new UnsharpRadiusText(this, plugin, (x + x2), y);
+ radius_text->create_objects();
+ radius_slider = new UnsharpRadiusSlider(this, plugin, x3, y, xs200);
+ add_subwindow(radius_slider);
+ clr_x = x3 + radius_slider->get_w() + x;
+ add_subwindow(radius_clr = new UnsharpClr(this, plugin,
+ clr_x, y, RESET_RADIUS));
+ y += ys30;
+// Amount
+ add_subwindow(title = new BC_Title(x, y, _("Amount:")));
+ amount_text = new UnsharpAmountText(this, plugin, (x + x2), y);
+ amount_text->create_objects();
+ amount_slider = new UnsharpAmountSlider(this, plugin, x3, y, xs200);
+ add_subwindow(amount_slider);
+ add_subwindow(amount_clr = new UnsharpClr(this, plugin,
+ clr_x, y, RESET_AMOUNT));
+ y += ys30;
+// Threshold
+ add_subwindow(title = new BC_Title(x, y, _("Threshold:")));
+ threshold_text = new UnsharpThresholdText(this, plugin, (x + x2), y);
+ threshold_text->create_objects();
+ threshold_slider = new UnsharpThresholdSlider(this, plugin, x3, y, xs200);
+ add_subwindow(threshold_slider);
+ add_subwindow(threshold_clr = new UnsharpClr(this, plugin,
+ clr_x, y, RESET_THRESHOLD));
+ y += ys40;
+
+// Reset section
+ add_subwindow(bar = new BC_Bar(x, y, get_w()-2*x));
+ y += ys10;
+ add_subwindow(reset = new UnsharpReset(this, plugin, x, y));
+ add_subwindow(default_settings = new UnsharpDefaultSettings(this,plugin,
+ (get_w() - xs10 - defaultBtn_w), y, defaultBtn_w));