+int PluginLV2ClientWindow::resize_event(int w, int h)
+{
+ int x1 = w - reset->get_w() - 8;
+ reset->reposition_window(x1, reset->get_y());
+ x1 = w - apply->get_w() - 8;
+ apply->reposition_window(x1, apply->get_y());
+ text->reposition_window(text->get_x(), text->get_y(), x1-text->get_x() - 8);
+ x1 = pot->get_x() + pot->get_w() + 10;
+ int w1 = w - slider->get_x() - 20;
+ slider->set_pointer_motion_range(w1);
+ slider->reposition_window(x1, slider->get_y(), w1, slider->get_h());
+ int panel_x = panel->get_x(), panel_y = panel->get_y();
+ panel->reposition_window(panel_x, panel_y, w-10-panel_x, h-10-panel_y);
+ return 1;
+}
+
+PluginLV2ClientPot::PluginLV2ClientPot(PluginLV2ClientWindow *gui, int x, int y)
+ : BC_FPot(x, y, 0.f, 0.f, 0.f)
+{
+ this->gui = gui;
+}
+
+int PluginLV2ClientPot::handle_event()
+{
+ if( gui->selected ) {
+ gui->selected->update(get_value());
+ gui->update_selected();
+ gui->plugin->send_configure_change();
+ }
+ return 1;
+}
+
+PluginLV2ClientSlider::PluginLV2ClientSlider(PluginLV2ClientWindow *gui, int x, int y)
+ : BC_FSlider(x, y, 0, gui->get_w()-x-20, gui->get_w()-x-20, 0.f, 0.f, 0.f)
+{
+ this->gui = gui;
+}
+
+int PluginLV2ClientSlider::handle_event()
+{
+ if( gui->selected ) {
+ gui->selected->update(get_value());
+ gui->update_selected();
+ gui->plugin->send_configure_change();
+ }
+ return 1;
+}
+