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;
MEDIUMFONT, resources->text_default));
sprintf(string, "%ld", (long)pwindow->thread->preferences->index_count);
add_subwindow(icount = new IndexCount(x + 230, y, pwindow, string));
- add_subwindow(deleteall = new DeleteAllIndexes(mwindow, pwindow, 400, y));
+ add_subwindow(del_indexes = new DeleteAllIndexes(mwindow, pwindow, 400, y,
+ _("Delete existing indexes"), "[*.idx][*.toc][*.mkr]"));
y += 30;
add_subwindow(ffmpeg_marker_files = new IndexFFMPEGMarkerFiles(this, x, y));
- y += 35;
+ add_subwindow(del_clipngs = new DeleteAllIndexes(mwindow, pwindow, 400, y,
+ _("Delete clip thumbnails"), "clip_*.png"));
}
const char* InterfacePrefs::behavior_to_text(int mode)
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)