upgrade bld_prep.sh debian libpng, add rectify timeline audio pref, rework maskgui...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / appearanceprefs.C
index e27ebd02354ce14628dc61b41046819bcfbaf9fa..79c2c03b694c9350c767eebdfa3d48647eece562 100644 (file)
@@ -93,7 +93,7 @@ void AppearancePrefs::create_objects()
        thumbnail_size = new ViewThumbnailSize(pwindow, this, x2, y);
        thumbnail_size->create_objects();
        y += thumbnail_size->get_h() + 5;
-       add_subwindow(new BC_Title(x1, y, _("Vicon memory size:")));
+       add_subwindow(new BC_Title(x1, y, _("Vicon quality:")));
        vicon_size = new ViewViconSize(pwindow, this, x2, y);
        vicon_size->create_objects();
        y += vicon_size->get_h() + 5;
@@ -184,6 +184,9 @@ void AppearancePrefs::create_objects()
        UseTipWindow *tip_win = new UseTipWindow(pwindow, x1, y1);
        add_subwindow(tip_win);
        y1 += tip_win->get_h() + 5;
+       AutocolorAssets *autocolor_assets = new AutocolorAssets(pwindow, x1, y1);
+       add_subwindow(autocolor_assets);
+       y1 += autocolor_assets->get_h() + 5;
        UseWarnIndecies *idx_win = new UseWarnIndecies(pwindow, x1, y1);
        add_subwindow(idx_win);
        y1 += idx_win->get_h() + 5;
@@ -213,6 +216,12 @@ void AppearancePrefs::create_objects()
        PerpetualSession *perpetual = new PerpetualSession(x1, y1, pwindow);
        add_subwindow(perpetual);
        y1 += perpetual->get_h() + 5;
+       CtrlToggle *ctrl_toggle = new CtrlToggle(x1, y1, pwindow);
+       add_subwindow(ctrl_toggle);
+       y1 += ctrl_toggle->get_h() + 5;
+       RectifyAudioToggle *rect_toggle = new RectifyAudioToggle(x1, y1, pwindow);
+       add_subwindow(rect_toggle);
+       y1 += rect_toggle->get_h() + 5;
        if( y < y1 ) y = y1;
 }
 
@@ -626,6 +635,19 @@ int ForwardRenderDisplacement::handle_event()
        return 1;
 }
 
+AutocolorAssets::AutocolorAssets(PreferencesWindow *pwindow, int x, int y)
+ : BC_CheckBox(x, y, pwindow->thread->preferences->autocolor_assets,
+       _("Autocolor assets"))
+{
+       this->pwindow = pwindow;
+}
+
+int AutocolorAssets::handle_event()
+{
+       pwindow->thread->preferences->autocolor_assets = get_value();
+       return 1;
+}
+
 HighlightInverseColor::HighlightInverseColor(PreferencesWindow *pwindow, int x, int y, const char *hex)
  : BC_TextBox(x, y, 80, 1, hex)
 {
@@ -745,3 +767,29 @@ int PerpetualSession::handle_event()
        return 1;
 }
 
+CtrlToggle::CtrlToggle(int x, int y, PreferencesWindow *pwindow)
+ : BC_CheckBox(x, y,
+       pwindow->thread->preferences->ctrl_toggle, _("Clears before toggle"))
+{
+       this->pwindow = pwindow;
+}
+
+int CtrlToggle::handle_event()
+{
+       pwindow->thread->preferences->ctrl_toggle = get_value();
+       return 1;
+}
+
+RectifyAudioToggle::RectifyAudioToggle(int x, int y, PreferencesWindow *pwindow)
+ : BC_CheckBox(x, y,
+       pwindow->thread->preferences->rectify_audio, _("Timeline Rectify Audio"))
+{
+       this->pwindow = pwindow;
+}
+
+int RectifyAudioToggle::handle_event()
+{
+       pwindow->thread->preferences->rectify_audio = get_value();
+       return 1;
+}
+