X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Finterfaceprefs.C;h=60241a77972e2723fc5d17d124ec062090560bb2;hp=9c0b51dd2e5bed868856c75a71f07766172323ea;hb=7eded24eb31529ad7652dea64e34b0a6210e5be1;hpb=702161ddaf384a773831f1643fca0a54133625b2 diff --git a/cinelerra-5.1/cinelerra/interfaceprefs.C b/cinelerra-5.1/cinelerra/interfaceprefs.C index 9c0b51dd..60241a77 100644 --- a/cinelerra-5.1/cinelerra/interfaceprefs.C +++ b/cinelerra-5.1/cinelerra/interfaceprefs.C @@ -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)