* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
+#ifdef HAVE_LV2
#include "clip.h"
#include "cstrdup.h"
#include "pluginlv2config.h"
#include "pluginlv2gui.h"
#include "pluginserver.h"
+#include "preferences.h"
#include "samples.h"
#include <ctype.h>
BC_Title *title;
int x = 10, y = 10, x1;
add_subwindow(title = new BC_Title(x, y, client->title));
-#ifdef HAVE_LV2UI
x1 = get_w() - BC_GenericButton::calculate_w(this, _("UI")) - 8;
add_subwindow(ui = new PluginLV2ClientUI(this, x1, y));
-#else
- ui = 0;
-#endif
y += title->get_h() + 10;
add_subwindow(varbl = new BC_Title(x, y, ""));
add_subwindow(range = new BC_Title(x+160, y, ""));
add_subwindow(panel);
panel->update();
show_window(1);
+
+ if( client->server->mwindow->preferences->autostart_lv2ui ) {
+ PluginLV2ParentUI *ui = get_ui();
+ ui->show();
+ }
}
int PluginLV2ClientWindow::resize_event(int w, int h)
{
int x1;
-#ifdef HAVE_LV2UI
x1 = w - ui->get_w() - 8;
ui->reposition_window(x1, ui->get_y());
-#endif
x1 = w - reset->get_w() - 8;
reset->reposition_window(x1, reset->get_y());
x1 = w - apply->get_w() - 8;
cp += sprintf(cp, " )");
float v = opt->get_value();
sprintf(val, "%f", v);
+ float p = (max-min) / slider->get_w();
+ slider->set_precision(p);
slider->update(slider->get_w(), v, min, max);
+ pot->set_precision(p);
pot->update(v, min, max);
}
else {
lv2_update();
}
+#endif