X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Finterfaceprefs.C;h=3789bc1042bd941fc227c2118481c9a631060db8;hb=6108eb1d03fc6d0175618e7a3f82924bbb650f9b;hp=58aef4973aad16fc6daf2e54bef188257c921289;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/interfaceprefs.C b/cinelerra-5.1/cinelerra/interfaceprefs.C index 58aef497..3789bc10 100644 --- a/cinelerra-5.1/cinelerra/interfaceprefs.C +++ b/cinelerra-5.1/cinelerra/interfaceprefs.C @@ -140,9 +140,18 @@ void InterfacePrefs::create_objects() UseWarnVersion *ver_win = new UseWarnVersion(pwindow, x1, y1); add_subwindow(ver_win); y1 += ver_win->get_h() + 5; + BD_WarnRoot *bdwr_win = new BD_WarnRoot(pwindow, x1, y1); + add_subwindow(bdwr_win); + y1 += bdwr_win->get_h() + 5; PopupMenuBtnup *pop_win = new PopupMenuBtnup(pwindow, x1, y1); add_subwindow(pop_win); - y1 += pop_win->get_h() + 25; + y1 += pop_win->get_h() + 5; + TextboxFocusPolicy *focus_policy = new TextboxFocusPolicy(pwindow, x1, y1); + add_subwindow(focus_policy); + y1 += focus_policy->get_h() + 5; + + if( y < y1 ) y = y1; + y += 10; add_subwindow(new BC_Bar(5, y, get_w() - 10)); y += 5; @@ -711,6 +720,19 @@ int UseWarnVersion::handle_event() return 1; } +BD_WarnRoot::BD_WarnRoot(PreferencesWindow *pwindow, int x, int y) + : BC_CheckBox(x, y, pwindow->thread->preferences->bd_warn_root, + _("Create Bluray warns if not root")) +{ + this->pwindow = pwindow; +} + +int BD_WarnRoot::handle_event() +{ + pwindow->thread->preferences->bd_warn_root = get_value(); + return 1; +} + PopupMenuBtnup::PopupMenuBtnup(PreferencesWindow *pwindow, int x, int y) : BC_CheckBox(x, y, pwindow->thread->preferences->popupmenu_btnup, _("Popups activate on button up")) @@ -724,6 +746,20 @@ int PopupMenuBtnup::handle_event() return 1; } +TextboxFocusPolicy::TextboxFocusPolicy(PreferencesWindow *pwindow, int x, int y) + : BC_CheckBox(x, y, pwindow->thread->preferences->textbox_focus_policy, + _("Click to deactivate text focus")) +{ + this->pwindow = pwindow; +} + +int TextboxFocusPolicy::handle_event() +{ + pwindow->thread->preferences->textbox_focus_policy = get_value(); + return 1; +} + + ScanCommercials::ScanCommercials(PreferencesWindow *pwindow, int x, int y) : BC_CheckBox(x,