add gang points to mask_gui, add missing projector xform to centroid marker, fix...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / appearanceprefs.C
index 0fb0ba3f82a0273dc444d5c5825fb48ed2a5750a..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;
@@ -219,6 +219,9 @@ void AppearancePrefs::create_objects()
        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;
 }
 
@@ -777,3 +780,16 @@ int CtrlToggle::handle_event()
        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;
+}
+