|
From: Foster B. <fos...@us...> - 2005-03-31 18:51:15
|
Update of /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/visual/examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4121/adobe/test/visual/examples Modified Files: image_size.eve Log Message: bug fixes, additions to array_t, documentation update Index: image_size.eve =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/visual/examples/image_size.eve,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** image_size.eve 19 Mar 2005 00:16:43 -0000 1.1 --- image_size.eve 31 Mar 2005 18:51:01 -0000 1.2 *************** *** 3,110 **** */ ! dialog(name: "Image Size", placement: place_column) { ! row() { ! column() { ! size_group(bind: @byte_count, name: "Pixel Dimensions: ^", horizontal: align_fill) { - row(horizontal: align_fill) - { - column(guide_mask: [ ], horizontal: align_fill, child_horizontal: align_fill) - { - edit_number(name: "Width:", digits: 9, display_disable: true, - touch: [ @doc_resolution ], - units: [ { name: "pixels", bind: @dim_width_pixels, format: "#" }, - { name: "percent", bind: @dim_width_percent, format: "#.00" } ]); - - edit_number(name: "Height:", digits: 9, display_disable: true, - touch: [ @doc_resolution ], - units: [ { name: "pixels", bind: @dim_height_pixels, format: "#" }, - { name: "percent", bind: @dim_height_percent, format: "#.00" } ]); - } ! link(bind: @constrain, count: 2, value_on: true, value_off: false); ! } } ! ! group(name: "Document Size:", horizontal: align_fill) { ! row(horizontal: align_fill) ! { ! column(guide_mask: [ ], horizontal: align_fill, child_horizontal: align_fill) ! { ! edit_number(name: "Width:", digits: 9, ! touch: [ @doc_resolution ], ! units: [ { name: "percent", bind: @doc_width_percent, format: "#.00" }, ! { name: "inches", bind: @doc_width_inches, format: "#.000" }, ! { name: "cm", bind: @doc_width_inches, scale: [2.54, 0.0 ], format: "#.00" }, ! { name: "mm", bind: @doc_width_inches, scale: [ 25.4, 0.0 ], format: "#.0" }, ! { name: "points", bind: @doc_width_inches, scale: [ 72, 0 ], format: "#.0" }, ! { name: "picas", bind: @doc_width_inches, scale: [ 6, 0.0 ], format: "#.00" }, ! { name: "columns", bind: @doc_width_inches, scale: [ 1, 0.0 ], format: "#.000" } ! ]); ! ! edit_number(name: "Height:", digits: 9, ! touch: [ @doc_resolution ], ! units: [ { name: "percent", bind: @doc_height_percent, format: "#.00" }, ! { name: "inches", bind: @doc_height_inches, format: "#.000" }, ! { name: "cm", bind: @doc_height_inches, scale: [2.54, 0.0 ], format: "#.00" }, ! { name: "mm", bind: @doc_height_inches, scale: [ 25.4, 0.0 ], format: "#.0" }, ! { name: "points", bind: @doc_height_inches, scale: [ 72, 0 ], format: "#.0" }, ! { name: "picas", bind: @doc_height_inches, scale: [ 6, 0.0 ], format: "#.00" }, ! { name: "columns", bind: @doc_height_inches, scale: [ 1, 0.0 ], format: "#.000" } ! ]); ! ! edit_number(name: "Resolution:", digits: 9, ! format: "#.000", ! touch: [ @dim_width_pixels, @dim_height_pixels ], ! units: [ { name: "pixels/inch", bind: @doc_resolution }, ! { name: "pixels/cm", bind: @doc_resolution, scale: [0.393700787, 0.0 ] } ! ]); ! } ! ! overlay(vertical: align_fill) ! { ! link(bind: @resample, count: 3, value_on: false, value_off: true); ! link(bind: @constrain, count: 2, value_on: true, value_off: false); ! } ! } } ! ! column(guide_balance: [@guide_baseline]) { ! checkbox(bind: @scale_styles, name: "Scale Styles"); ! checkbox(bind: @constrain, name: "Constrain Proportions"); ! row(spacing: 5) ! { ! checkbox(bind: @resample, name: "Resample Image:"); ! popup( bind: @resample_method, ! items: [ { name: "Nearest Neighbor", value: @nearest }, ! { name: "Bilinear", value: @bilinear }, ! { name: "Bicubic", value: @bicubic }, ! { name: "Bicubic Smoother", value: @bicubic_smoother }, ! { name: "Bicubic Sharper", value: @bicubic_sharper } ]); ! } } } ! ! /* ! ! REVISIT (sparent) : Need to add variables to Eve2 for space_normal, space_small, space_large. ! ! */ ! ! column(child_horizontal: align_fill) { ! button(name: "OK", action: @ok, bind: @result, default: true); ! button( items: [ ! { name: "Cancel", action: @cancel }, ! { name: "Reset", action: @reset, modifiers: @opt } ! ]); ! ! button(name: "Auto...", action: @dialog, value: "image_size_auto.eve"); } } } --- 3,97 ---- */ ! dialog(name: "Image Size", placement: place_row) { ! column() { ! size_group(bind: @byte_count, name: "Pixel Dimensions: ^", horizontal: align_fill, placement: place_row) { ! column(guide_mask: [ ], horizontal: align_fill, child_horizontal: align_fill) { ! edit_number(name: "Height:", digits: 9, display_disable: true, ! touch: [ @doc_resolution ], ! units: [ { name: "pixels", bind: @dim_height_pixels, format: "#" }, ! { name: "percent", bind: @dim_height_percent, format: "#.00" } ]); } ! ! link(bind: @constrain, count: 2, value_on: true, value_off: false); ! } ! ! group(name: "Document Size:", horizontal: align_fill, placement: place_row) ! { ! column(guide_mask: [ ], horizontal: align_fill, child_horizontal: align_fill) { ! edit_number(name: "Width:", digits: 9, ! touch: [ @doc_resolution ], ! units: [ { name: "percent", bind: @doc_width_percent, format: "#.00" }, ! { name: "inches", bind: @doc_width_inches, format: "#.000" }, ! { name: "cm", bind: @doc_width_inches, scale: [2.54, 0.0 ], format: "#.00" }, ! { name: "mm", bind: @doc_width_inches, scale: [ 25.4, 0.0 ], format: "#.0" }, ! { name: "points", bind: @doc_width_inches, scale: [ 72, 0 ], format: "#.0" }, ! { name: "picas", bind: @doc_width_inches, scale: [ 6, 0.0 ], format: "#.00" }, ! { name: "columns", bind: @doc_width_inches, scale: [ 1, 0.0 ], format: "#.000" } ! ]); ! ! edit_number(name: "Height:", digits: 9, ! touch: [ @doc_resolution ], ! units: [ { name: "percent", bind: @doc_height_percent, format: "#.00" }, ! { name: "inches", bind: @doc_height_inches, format: "#.000" }, ! { name: "cm", bind: @doc_height_inches, scale: [2.54, 0.0 ], format: "#.00" }, ! { name: "mm", bind: @doc_height_inches, scale: [ 25.4, 0.0 ], format: "#.0" }, ! { name: "points", bind: @doc_height_inches, scale: [ 72, 0 ], format: "#.0" }, ! { name: "picas", bind: @doc_height_inches, scale: [ 6, 0.0 ], format: "#.00" }, ! { name: "columns", bind: @doc_height_inches, scale: [ 1, 0.0 ], format: "#.000" } ! ]); ! ! edit_number(name: "Resolution:", digits: 9, ! format: "#.000", ! touch: [ @dim_width_pixels, @dim_height_pixels ], ! units: [ { name: "pixels/inch", bind: @doc_resolution }, ! { name: "pixels/cm", bind: @doc_resolution, scale: [0.393700787, 0.0 ] } ! ]); } ! ! overlay(vertical: align_fill) { ! link(bind: @resample, count: 3, value_on: false, value_off: true); ! link(bind: @constrain, count: 2, value_on: true, value_off: false); } } ! ! column(guide_balance: [@guide_baseline]) { ! checkbox(bind: @scale_styles, name: "Scale Styles"); ! checkbox(bind: @constrain, name: "Constrain Proportions"); ! row(spacing: 5) ! { ! checkbox(bind: @resample, name: "Resample Image:"); ! popup( bind: @resample_method, ! items: [ { name: "Nearest Neighbor", value: @nearest }, ! { name: "Bilinear", value: @bilinear }, ! { name: "Bicubic", value: @bicubic }, ! { name: "Bicubic Smoother", value: @bicubic_smoother }, ! { name: "Bicubic Sharper", value: @bicubic_sharper } ]); ! } } } + + /* + + REVISIT (sparent) : Need to add variables to Eve2 for space_normal, space_small, space_large. + + */ + + column(child_horizontal: align_fill) + { + button(name: "OK", action: @ok, bind: @result, default: true); + button( items: [ + { name: "Cancel", action: @cancel }, + { name: "Reset", action: @reset, modifiers: @opt } + ]); + + button(name: "Auto...", action: @dialog, value: "image_size_auto.eve"); + } } |