comparison src/rcfile.c @ 1893:5f724783a871

save and load stereo options
author Vladimir Nadvornik <nadvornik@suse.cz>
date Sun, 20 Mar 2011 11:11:08 +0100
parents 359d910c7ce0
children 26dfd7a4d130
comparison
equal deleted inserted replaced
1892:e250a4b38301 1893:5f724783a871
440 WRITE_NL(); WRITE_BOOL(*options, metadata.confirm_on_image_change); 440 WRITE_NL(); WRITE_BOOL(*options, metadata.confirm_on_image_change);
441 WRITE_NL(); WRITE_BOOL(*options, metadata.confirm_on_dir_change); 441 WRITE_NL(); WRITE_BOOL(*options, metadata.confirm_on_dir_change);
442 WRITE_NL(); WRITE_BOOL(*options, metadata.keywords_case_sensitive); 442 WRITE_NL(); WRITE_BOOL(*options, metadata.keywords_case_sensitive);
443 WRITE_NL(); WRITE_BOOL(*options, metadata.write_orientation); 443 WRITE_NL(); WRITE_BOOL(*options, metadata.write_orientation);
444 444
445 WRITE_NL(); WRITE_UINT(*options, stereo.mode);
446 WRITE_NL(); WRITE_UINT(*options, stereo.fsmode);
447 WRITE_NL(); WRITE_BOOL(*options, stereo.enable_fsmode);
448 WRITE_NL(); WRITE_UINT(*options, stereo.fixed_w);
449 WRITE_NL(); WRITE_UINT(*options, stereo.fixed_h);
450 WRITE_NL(); WRITE_UINT(*options, stereo.fixed_x1);
451 WRITE_NL(); WRITE_UINT(*options, stereo.fixed_y1);
452 WRITE_NL(); WRITE_UINT(*options, stereo.fixed_x2);
453 WRITE_NL(); WRITE_UINT(*options, stereo.fixed_y2);
445 } 454 }
446 455
447 static void write_color_profile(GString *outstr, gint indent) 456 static void write_color_profile(GString *outstr, gint indent)
448 { 457 {
449 gint i; 458 gint i;
701 if (READ_BOOL(*options, metadata.confirm_on_image_change)) continue; 710 if (READ_BOOL(*options, metadata.confirm_on_image_change)) continue;
702 if (READ_BOOL(*options, metadata.confirm_on_dir_change)) continue; 711 if (READ_BOOL(*options, metadata.confirm_on_dir_change)) continue;
703 if (READ_BOOL(*options, metadata.keywords_case_sensitive)) continue; 712 if (READ_BOOL(*options, metadata.keywords_case_sensitive)) continue;
704 if (READ_BOOL(*options, metadata.write_orientation)) continue; 713 if (READ_BOOL(*options, metadata.write_orientation)) continue;
705 714
715 if (READ_UINT(*options, stereo.mode)) continue;
716 if (READ_UINT(*options, stereo.fsmode)) continue;
717 if (READ_BOOL(*options, stereo.enable_fsmode)) continue;
718 if (READ_UINT(*options, stereo.fixed_w)) continue;
719 if (READ_UINT(*options, stereo.fixed_h)) continue;
720 if (READ_UINT(*options, stereo.fixed_x1)) continue;
721 if (READ_UINT(*options, stereo.fixed_y1)) continue;
722 if (READ_UINT(*options, stereo.fixed_x2)) continue;
723 if (READ_UINT(*options, stereo.fixed_y2)) continue;
724
706 log_printf("unknown attribute %s = %s\n", option, value); 725 log_printf("unknown attribute %s = %s\n", option, value);
707 } 726 }
708 727
709 return TRUE; 728 return TRUE;
710 } 729 }