y += 5;
add_subwindow(new BC_Title(x, y, _("Operation:"), LARGEFONT,
resources->text_default));
- y += 35;
int y1 = y;
+ y += 15;
+
AndroidRemote *android_remote = new AndroidRemote(pwindow, x2, y);
add_subwindow(android_remote);
y += android_remote->get_h() + 10;
add_subwindow(title = new BC_Title(x2, y, _("PIN:")));
AndroidPIN *android_pin = new AndroidPIN(pwindow, x3, y);
add_subwindow(android_pin);
- y += title->get_h() + 30;
+ y += title->get_h() + 20;
ShBtnPrefs *shbtn_prefs = new ShBtnPrefs(pwindow, this, x2, y);
add_subwindow(shbtn_prefs);
- y += shbtn_prefs->get_h() + 30;
+ y += shbtn_prefs->get_h() + 20;
+
+ add_subwindow(reload_plugins = new PrefsReloadPlugins(pwindow, this, x2, y));
+ y += reload_plugins->get_h() + 10;
add_subwindow(title = new BC_Title(x2, y, _("Default LV2_PATH:")));
y += title->get_h() + 10;
y += 30;
y2 = y;
- x = x0; y = y1;
+ x = x0; y = y1 + 35;
add_subwindow(file_probes = new PrefsFileProbes(pwindow, this, x, y));
y += 30;
return 1;
}
+PrefsReloadPlugins::PrefsReloadPlugins(PreferencesWindow *pwindow,
+ InterfacePrefs *iface_prefs, int x, int y)
+ : BC_GenericButton(x, y, _("Reload plugin index"))
+{
+ this->pwindow = pwindow;
+ this->iface_prefs = iface_prefs;
+}
+
+int PrefsReloadPlugins::handle_event()
+{
+ pwindow->thread->reload_plugins = 1;
+ text_color(get_resources()->button_highlighted);
+ draw_face(1);
+ return 1;
+}
+
PrefsLV2PathText::PrefsLV2PathText(PreferencesWindow *pwindow,
InterfacePrefs *subwindow, int x, int y, int w)
: BC_TextBox(x, y, w, 1, pwindow->thread->preferences->lv2_path)