add proxy index builds, perperual session, backup.prev, disarmed track indication...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / appearanceprefs.C
index 90b39c0028d568a651e4dd368514a7eeac8fb232..15e61cdfa23c85be241c6b40ec91ef11d2ab529b 100644 (file)
@@ -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,8 @@ 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;
+       add_subwindow(perpetual = new PerpetualSession(x1, y1, pwindow));
        if( y < y1 ) y = y1;
 }
 
@@ -539,6 +547,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 +630,17 @@ int YuvColorRangeItem::handle_event()
        return popup->handle_event();
 }
 
+
+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;
+}
+