X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fappearanceprefs.C;h=2f51f61fb359cdf4a71ff18a5e4b7f22b68ed524;hb=5877eaa318ed3060f57621657c0888258da41a59;hp=90b39c0028d568a651e4dd368514a7eeac8fb232;hpb=243336668c89096732786c6b3f3c5918aa2eff26;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/appearanceprefs.C b/cinelerra-5.1/cinelerra/appearanceprefs.C index 90b39c00..2f51f61f 100644 --- a/cinelerra-5.1/cinelerra/appearanceprefs.C +++ b/cinelerra-5.1/cinelerra/appearanceprefs.C @@ -135,6 +135,12 @@ void AppearancePrefs::create_objects() x, y)); x = x0; y += 35; + add_subwindow(new BC_Bar(5, y, get_w()/2 - 30)); + y += 15; + + add_subwindow(new BC_Title(x, y, _("Color:"), LARGEFONT, + resources->text_default)); + y += 35; add_subwindow(title = new BC_Title(x, y, _("Highlighting Inversion color:"))); x += title->get_w() + margin; char hex_color[BCSTRLEN]; @@ -184,6 +190,13 @@ void AppearancePrefs::create_objects() add_subwindow(displacement); y1 += displacement->get_h() + 5; add_subwindow(thumbnails = new ViewThumbnails(x1, y1, pwindow)); + y1 += thumbnails->get_h() + 5; + PrefsAutostartLV2UI *autostart_lv2ui = new PrefsAutostartLV2UI(x1, y1,pwindow); + add_subwindow(autostart_lv2ui); + y1 += autostart_lv2ui->get_h() + 5; + PerpetualSession *perpetual = new PerpetualSession(x1, y1, pwindow); + add_subwindow(perpetual); + y1 += perpetual->get_h() + 5; if( y < y1 ) y = y1; } @@ -539,6 +552,7 @@ int HighlightInverseColor::handle_event() const char *YuvColorSpace::color_space[] = { N_("BT601"), N_("BT709"), + N_("BT2020"), }; YuvColorSpace::YuvColorSpace(int x, int y, PreferencesWindow *pwindow) @@ -621,3 +635,29 @@ int YuvColorRangeItem::handle_event() return popup->handle_event(); } + +PrefsAutostartLV2UI::PrefsAutostartLV2UI(int x, int y, PreferencesWindow *pwindow) + : BC_CheckBox(x, y, + pwindow->thread->preferences->autostart_lv2ui, _("Auto start lv2 gui")) +{ + this->pwindow = pwindow; +} +int PrefsAutostartLV2UI::handle_event() +{ + pwindow->thread->preferences->autostart_lv2ui = get_value(); + return 1; +} + +PerpetualSession::PerpetualSession(int x, int y, PreferencesWindow *pwindow) + : BC_CheckBox(x, y, + pwindow->thread->preferences->perpetual_session, _("Perpetual session")) +{ + this->pwindow = pwindow; +} + +int PerpetualSession::handle_event() +{ + pwindow->thread->preferences->perpetual_session = get_value(); + return 1; +} +