add view thumbnail size pref, rework vicon view popup, add view popup zoom scale
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / preferences.C
index 5f9d40ea241dc280b8181a5a357ec0b2248fd937..6a35151855fb6650e850b599cb7d336859d2b9b2 100644 (file)
@@ -68,6 +68,7 @@ Preferences::Preferences()
        autostart_lv2ui = 0;
        trap_sigsegv = 1;
        trap_sigintr = 1;
+       awindow_picon_h = 50;
        theme[0] = 0;
        plugin_icons[0] = 0;
        strcpy(snapshot_path, "/tmp");
@@ -172,6 +173,7 @@ void Preferences::copy_from(Preferences *that)
        use_thumbnails = that->use_thumbnails;
        keyframe_reticle = that->keyframe_reticle;
        perpetual_session = that->perpetual_session;
+       awindow_picon_h = that->awindow_picon_h;
        strcpy(theme, that->theme);
        strcpy(plugin_icons, that->plugin_icons);
        strcpy(snapshot_path, that->snapshot_path);
@@ -313,6 +315,7 @@ int Preferences::load_defaults(BC_Hash *defaults)
        trap_sigsegv = defaults->get("TRAP_SIGSEGV", trap_sigsegv);
        trap_sigintr = defaults->get("TRAP_SIGINTR", trap_sigintr);
 
+       awindow_picon_h = defaults->get("AWINDOW_PICON_H", awindow_picon_h);
        strcpy(theme, _(DEFAULT_THEME));
        strcpy(plugin_icons, DEFAULT_PICON);
        defaults->get("THEME", theme);
@@ -385,7 +388,7 @@ int Preferences::load_defaults(BC_Hash *defaults)
        shbtn_prefs.remove_all_objects();
        int shbtns_total = defaults->get("SHBTNS_TOTAL", -1);
        if( shbtns_total < 0 ) {
-               shbtn_prefs.append(new ShBtnPref(_("Features5"), "$CIN_BROWSER file://$CIN_DAT/doc/Features5.pdf", 0));
+               shbtn_prefs.append(new ShBtnPref(_("Features"), "$CIN_BROWSER file://$CIN_DAT/doc/Features5.pdf", 0));
                shbtn_prefs.append(new ShBtnPref(_("Online Help"), "$CIN_BROWSER https://cinelerra-cv.org/docs.php", 0));
                shbtn_prefs.append(new ShBtnPref(_("Original Manual"), "$CIN_BROWSER file://$CIN_DAT/doc/cinelerra.html", 0));
                shbtn_prefs.append(new ShBtnPref(_("Setting Shell Commands"), "$CIN_BROWSER file://$CIN_DAT/doc/ShellCmds.html", 0));
@@ -454,6 +457,7 @@ int Preferences::save_defaults(BC_Hash *defaults)
        defaults->update("AUTOSTART_LV2UI", autostart_lv2ui);
        defaults->update("TRAP_SIGSEGV", trap_sigsegv);
        defaults->update("TRAP_SIGINTR", trap_sigintr);
+       defaults->update("AWINDOW_PICON_H", awindow_picon_h);
        defaults->update("THEME", theme);
        defaults->update("PLUGIN_ICONS", plugin_icons);
        defaults->update("SNAPSHOT_PATH", snapshot_path);