reload plugin btn in prefs, speed gang fader tweaks
[goodguy/history.git] / cinelerra-5.1 / cinelerra / interfaceprefs.C
index 9c0b51dd2e5bed868856c75a71f07766172323ea..60241a77972e2723fc5d17d124ec062090560bb2 100644 (file)
@@ -125,9 +125,10 @@ void InterfacePrefs::create_objects()
        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;
@@ -139,11 +140,14 @@ void InterfacePrefs::create_objects()
        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;
@@ -152,7 +156,7 @@ void InterfacePrefs::create_objects()
        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;
 
@@ -647,6 +651,22 @@ int PrefsAutostartLV2UI::handle_event()
        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)