4 LofWindow::LofWindow(LofEffect *plugin)
5 : PluginClientWindow(plugin, 260, 160, 260, 160, 0)
10 void LofWindow::create_objects()
13 BC_Title *title = new BC_Title(x, y, _("Show last good output frame"));
14 add_subwindow(title); y += title->get_h() + 5;
15 title = new BC_Title(x+20, y, _("(you should fix the input)"));
16 add_subwindow(title); y += title->get_h() + 20;
17 add_tool(errfrms = new LofToggle(this, &plugin->config.errs, x, y, _("errant frames")));
18 y += errfrms->get_h() + 5;
19 add_tool(misfrms = new LofToggle(this, &plugin->config.miss, x, y, _("missed frames")));
20 y += misfrms->get_h() + 5;
21 add_tool(mrkfrms = new LofToggle(this, &plugin->config.mark, x, y, _("mark fixed frames")));
26 void LofWindow::update()
28 errfrms->update(plugin->config.errs);
29 misfrms->update(plugin->config.miss);
30 mrkfrms->update(plugin->config.mark);
33 LofToggle::LofToggle(LofWindow *lofwin, int *output, int x, int y, const char *lbl)
34 : BC_CheckBox(x, y, *output, lbl)
36 this->lofwin = lofwin;
37 this->output = output;
40 LofToggle::~LofToggle()
44 int LofToggle::handle_event()
46 *output = get_value();
47 lofwin->plugin->send_configure_change();