Update of /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/begin/examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12473/adobe-source/adobe/test/begin/examples Modified Files: alignment_test.eve checkbox_control.eve checkbox_radio_button_suite.eve e01_clipping_path.eve edit_text_suite.eve find_and_replace.eve find_and_replace_options.eve image_size.adm image_size.eve image_size_auto.eve list_box_emulator.eve named_function_suite.eve progress_bar_suite.eve slider_suite.eve sort_lines.eve tabs_and_panels.eve Added Files: cycle_test.adm cycle_test.eve grow.adm grow.eve inequality.adm inequality.eve mini_image_size.adm mini_image_size.eve mini_image_size_2.eve optional_panel.adm optional_panel.eve overconstrain.adm overconstrain.eve video.adm video.eve Log Message: moved win/ directories to win32/ to anticipate a possible widgets port for WPF; added a 'mini-sheet' to Eve so you can save UI state information (what tab is currently selected) without mucking up your Adam model; started the modal_dialog_interface, an API that'll be used to direct a modal dialog interaction between the user and the application (it's still in its infancy); other misc bug fixes Index: checkbox_radio_button_suite.eve =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/begin/examples/checkbox_radio_button_suite.eve,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** checkbox_radio_button_suite.eve 6 Jan 2006 18:03:01 -0000 1.2 --- checkbox_radio_button_suite.eve 24 Jan 2006 19:38:50 -0000 1.3 *************** *** 5,24 **** */ ! dialog(name: "Checkbox & Radio Button Suite") { ! row(child_horizontal: align_fill) { ! column() { ! group(placement: place_row, name: "Horizontal Checkboxes", child_horizontal: align_fill) ! { ! checkbox(name: "Checkbox A", bind: @checkbox_1); ! checkbox(name: "Checkbox B", bind: @checkbox_2); ! checkbox(name: "Checkbox C", bind: @checkbox_3); ! checkbox(bind: @checkbox_empty); ! } ! group(placement: place_row, name: "Vertical Checkboxes & Radio Buttons", horizontal: align_fill, child_horizontal: align_fill) { ! column(vertical: align_top, guide_mask: []) { checkbox(name: "Checkbox A", bind: @checkbox_1); --- 5,17 ---- */ ! layout checkbox_radio_button_suite { ! view dialog(name: "Checkbox & Radio Button Suite") { ! row(child_horizontal: align_fill) { ! column() { ! group(placement: place_row, name: "Horizontal Checkboxes", child_horizontal: align_fill) { checkbox(name: "Checkbox A", bind: @checkbox_1); *************** *** 27,54 **** checkbox(bind: @checkbox_empty); } ! column(vertical: align_top, guide_mask: []) { ! radio_button(name: "Radio Button A", bind: @radio_button_1, value: @a); ! radio_button(name: "Radio Button B", bind: @radio_button_1, value: @b); ! radio_button(name: "Radio Button C", bind: @radio_button_1, value: @c); ! radio_button(bind: @radio_button_1, value: @none); } } ! group(placement: place_row, name: "Horizontal Radio Buttons", child_horizontal: align_fill) { ! radio_button(name: "Radio Button A", bind: @radio_button_1, value: @a); ! radio_button(name: "Radio Button B", bind: @radio_button_1, value: @b); ! radio_button(name: "Radio Button C", bind: @radio_button_1, value: @c); ! radio_button(bind: @radio_button_1, value: @none); } } - column(child_horizontal: align_fill) - { - button(name: "OK", default: true); - button( items: [ - { name: "Cancel", action: @cancel }, - { name: "Reset", action: @reset, modifiers: @opt } - ]); - } } } --- 20,57 ---- checkbox(bind: @checkbox_empty); } ! group(placement: place_row, name: "Vertical Checkboxes & Radio Buttons", horizontal: align_fill, child_horizontal: align_fill) { ! column(vertical: align_top, guide_mask: []) ! { ! checkbox(name: "Checkbox A", bind: @checkbox_1); ! checkbox(name: "Checkbox B", bind: @checkbox_2); ! checkbox(name: "Checkbox C", bind: @checkbox_3); ! checkbox(bind: @checkbox_empty); ! } ! column(vertical: align_top, guide_mask: []) ! { ! radio_button(name: "Radio Button A", bind: @radio_button_1, value: @a); ! radio_button(name: "Radio Button B", bind: @radio_button_1, value: @b); ! radio_button(name: "Radio Button C", bind: @radio_button_1, value: @c); ! radio_button(bind: @radio_button_1, value: @none); ! } ! } ! group(placement: place_row, name: "Horizontal Radio Buttons", child_horizontal: align_fill) ! { ! radio_button(name: "Radio Button A", bind: @radio_button_1, value: @a); ! radio_button(name: "Radio Button B", bind: @radio_button_1, value: @b); ! radio_button(name: "Radio Button C", bind: @radio_button_1, value: @c); ! radio_button(bind: @radio_button_1, value: @none); } } ! column(child_horizontal: align_fill) { ! button(name: "OK", default: true); ! button( items: [ ! { name: "Cancel", action: @cancel }, ! { name: "Reset", action: @reset, modifiers: @opt } ! ]); } } } } Index: e01_clipping_path.eve =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/begin/examples/e01_clipping_path.eve,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** e01_clipping_path.eve 6 Jan 2006 18:03:01 -0000 1.2 --- e01_clipping_path.eve 24 Jan 2006 19:38:50 -0000 1.3 *************** *** 5,20 **** */ ! dialog(name: "Clipping Path") { ! column(child_horizontal: align_fill) { ! popup(name: "Path:", bind: @path, items: ! [ ! { name: "None", value: empty }, ! { name: "Path 1", value: 1 }, ! { name: "Path 2", value: 2 } ! ]); ! edit_number(name: "Flatness:", digits: 9, bind: @flatness); } - button(name: "OK", default: true, bind: @result); } --- 5,23 ---- */ ! layout clipping_path { ! view dialog(name: "Clipping Path") { ! column(child_horizontal: align_fill) ! { ! popup(name: "Path:", bind: @path, items: ! [ ! { name: "None", value: empty }, ! { name: "Path 1", value: 1 }, ! { name: "Path 2", value: 2 } ! ]); ! edit_number(name: "Flatness:", digits: 9, bind: @flatness); ! } ! button(name: "OK", default: true, bind: @result); } } Index: sort_lines.eve =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/begin/examples/sort_lines.eve,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sort_lines.eve 6 Jan 2006 18:03:01 -0000 1.3 --- sort_lines.eve 24 Jan 2006 19:38:50 -0000 1.4 *************** *** 4,7 **** --- 4,8 ---- or a copy at http://opensource.adobe.com/licenses.html) + ANOMALIES WRT ORIGINAL DIALOG: (OD stands for Original Dialog) - Popup menu with 0 width for applying values to an Adam field. *************** *** 13,76 **** */ ! dialog(name: "Sort Lines", placement: place_column, spacing: 10) { ! row(horizontal: align_fill) ! { ! group(name: 'Sorting Options', horizontal: align_fill) ! { ! checkbox(name: 'Numbers Match by Value', bind: @numbers_match_by_value, value: true); ! checkbox(name: 'Ignore Leading White Space', bind: @ignore_leading_white_space, value: true); ! checkbox(name: 'Reverse Sort', bind: @reverse_sort, value: true); ! checkbox(name: 'Use Pattern', bind: @sort_using_pattern, value: true); ! } ! group(name: 'Result Destinations', vertical: align_fill, horizontal: align_fill) ! { ! checkbox(name: 'Clipboard', bind: @lines_to_clipboard, value: true); ! checkbox(name: 'New Document', bind: @lines_to_new_doc, value: true); ! checkbox(name: 'Replace Selection', bind: @lines_replace_selection, value: true); ! } ! } ! group(name: 'Pattern Options', placement: place_column, horizontal: align_fill) { row(horizontal: align_fill) { ! static_text(name: 'Search Pattern:'); ! popup( name: ' ', popup_bind: @search_pattern, popup_placement: @down, ! items: [ ! { name: 'Add...', value: @pattern_add }, ! { name: '-', value: @pattern_separator }, ! { name: 'Pascal Comment to C Comment', value: @pattern_p_to_c }, ! { name: 'C++ Comment to C Comment', value: @pattern_cpp_to_c }, ! { name: 'Run of Spaces to One Tab', value: @pattern_spaces_to_tab }, ! { name: 'C Function Header', value: @pattern_c_header }, ! { name: 'C Comment to Pascal Comment', value: @pattern_pascal_to_c }, ! { name: 'Shift Variables Right', value: @pattern_var_right }, ! { name: 'Lower Case SRC values in IMG tags', value: @pattern_img_tag_process }, ! { name: 'Lower Case HREF values in A tags', value: @pattern_a_tag_process }, ! { name: 'Column #2', value: @pattern_column_2 } ! ]); ! column(horizontal: align_fill) { ! edit_text(bind: @search_string, horizontal: align_fill, characters: 40); ! checkbox(name: 'Case Sensitive', bind: @case_sensitive, value: true); } } ! row(horizontal: align_fill) { ! static_text(name: 'Sort Using:'); ! column(horizontal: align_fill) { ! radio_button(name: 'Entire Search Pattern', bind: @sort_using, value: @entire_search_pattern); ! radio_button(name: 'All Sub-Patterns (\1\2...\N)', bind: @sort_using, value: @all_subpatterns); ! radio_button(name: 'Specific Sub-Patterns:', bind: @sort_using, value: @subpattern); ! edit_text(bind: @subpattern_expression, horizontal: align_fill); } } ! } ! row(horizontal: align_fill) ! { ! button(name: "Don't Sort", action: @cancel); ! button(name: "Cancel", cancel: true, action: @cancel, horizontal: align_right); ! button(name: "Sort", default: true, horizontal: align_right); } } --- 14,80 ---- */ ! layout sort_lines { ! view dialog(name: "Sort Lines", placement: place_column, spacing: 10) { row(horizontal: align_fill) { ! group(name: 'Sorting Options', horizontal: align_fill) { ! checkbox(name: 'Numbers Match by Value', bind: @numbers_match_by_value, value: true); ! checkbox(name: 'Ignore Leading White Space', bind: @ignore_leading_white_space, value: true); ! checkbox(name: 'Reverse Sort', bind: @reverse_sort, value: true); ! checkbox(name: 'Use Pattern', bind: @sort_using_pattern, value: true); ! } ! group(name: 'Result Destinations', vertical: align_fill, horizontal: align_fill) ! { ! checkbox(name: 'Clipboard', bind: @lines_to_clipboard, value: true); ! checkbox(name: 'New Document', bind: @lines_to_new_doc, value: true); ! checkbox(name: 'Replace Selection', bind: @lines_replace_selection, value: true); } } ! group(name: 'Pattern Options', placement: place_column, horizontal: align_fill) { ! row(horizontal: align_fill) { ! static_text(name: 'Search Pattern:'); ! popup( name: ' ', popup_bind: @search_pattern, popup_placement: @down, ! items: [ ! { name: 'Add...', value: @pattern_add }, ! { name: '-', value: @pattern_separator }, ! { name: 'Pascal Comment to C Comment', value: @pattern_p_to_c }, ! { name: 'C++ Comment to C Comment', value: @pattern_cpp_to_c }, ! { name: 'Run of Spaces to One Tab', value: @pattern_spaces_to_tab }, ! { name: 'C Function Header', value: @pattern_c_header }, ! { name: 'C Comment to Pascal Comment', value: @pattern_pascal_to_c }, ! { name: 'Shift Variables Right', value: @pattern_var_right }, ! { name: 'Lower Case SRC values in IMG tags', value: @pattern_img_tag_process }, ! { name: 'Lower Case HREF values in A tags', value: @pattern_a_tag_process }, ! { name: 'Column #2', value: @pattern_column_2 } ! ]); ! column(horizontal: align_fill) ! { ! edit_text(bind: @search_string, horizontal: align_fill, characters: 40); ! checkbox(name: 'Case Sensitive', bind: @case_sensitive, value: true); ! } ! } ! row(horizontal: align_fill) ! { ! static_text(name: 'Sort Using:'); ! column(horizontal: align_fill) ! { ! radio_button(name: 'Entire Search Pattern', bind: @sort_using, value: @entire_search_pattern); ! radio_button(name: 'All Sub-Patterns (\1\2...\N)', bind: @sort_using, value: @all_subpatterns); ! radio_button(name: 'Specific Sub-Patterns:', bind: @sort_using, value: @subpattern); ! edit_text(bind: @subpattern_expression, horizontal: align_fill); ! } } } ! row(horizontal: align_fill) ! { ! button(name: "Don't Sort", action: @cancel); ! button(name: "Cancel", cancel: true, action: @cancel, horizontal: align_right); ! button(name: "Sort", default: true, horizontal: align_right); ! } } } Index: named_function_suite.eve =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/begin/examples/named_function_suite.eve,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** named_function_suite.eve 6 Jan 2006 18:03:01 -0000 1.2 --- named_function_suite.eve 24 Jan 2006 19:38:50 -0000 1.3 *************** *** 5,35 **** */ ! dialog(name: "Named Function Suite") { ! row(child_horizontal: align_fill) { ! column(child_horizontal: align_fill) { ! static_text(name: "This dialog is useful for testing the functionality of the named functions. Hit the OK button to see a result set containing values processed by the built-in functions.", wrap: true); ! ! group(name: "Contributing Test") { ! edit_number(name: "Value:", bind: @contributing_test, digits: 10); } ! ! group(name: "Scale Test") { ! edit_number(name: "Celsius:", bind: @celsius, digits: 10); ! edit_number(name: "Fahrenheit:", bind: @fahrenheit, digits: 10); } } - column(child_horizontal: align_fill) - { - button(name: "OK", default: true, bind: @result); - button( items: [ - {name: "Cancel", action: @cancel}, - {name: "Reset", action: @reset, modifiers: @opt} - ]); - } } } --- 5,38 ---- */ ! layout named_function_suite { ! view dialog(name: "Named Function Suite") { ! row(child_horizontal: align_fill) { ! column(child_horizontal: align_fill) { ! static_text(name: "This dialog is useful for testing the functionality of the named functions. Hit the OK button to see a result set containing values processed by the built-in functions.", wrap: true); ! ! group(name: "Contributing Test") ! { ! edit_number(name: "Value:", bind: @contributing_test, digits: 10); ! } ! ! group(name: "Scale Test") ! { ! edit_number(name: "Celsius:", bind: @celsius, digits: 10); ! edit_number(name: "Fahrenheit:", bind: @fahrenheit, digits: 10); ! } } ! column(child_horizontal: align_fill) { ! button(name: "OK", default: true, bind: @result); ! button( items: [ ! {name: "Cancel", action: @cancel}, ! {name: "Reset", action: @reset, modifiers: @opt} ! ]); } } } } --- NEW FILE: grow.adm --- /* Copyright 2005-2006 Adobe Systems Incorporated Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://opensource.adobe.com/licenses.html) */ sheet hello_world { output: done <== "Hello World Completed!"; } --- NEW FILE: mini_image_size.eve --- /* Copyright 2005-2006 Adobe Systems Incorporated Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://opensource.adobe.com/licenses.html) */ layout mini_image_size { interface: percent: false; view dialog (name: "Mini Image Size") { column() { overlay() { panel(bind: @percent, value: true) { edit_number(name: "Height:", bind: @height_percent, digits: 7, format: "#.00"); edit_number(name: "Width:", bind: @width_percent, digits: 7, format: "#.00"); } panel(bind: @percent, value: false) { edit_number(name: "Height:", bind: @height_pixels, digits: 7, format: "#"); edit_number(name: "Width:", bind: @width_pixels, digits: 7, format: "#"); } } checkbox(name: "Constrain Proportions", bind: @constrain); checkbox(name: "Percent", bind: @percent); } column() { button(name: "OK", bind: @result, action: @ok, default: true); button( items: [ { name: "Cancel", action: @cancel }, { name: "Reset", action: @reset, modifiers: @opt } ]); } } } Index: list_box_emulator.eve =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/begin/examples/list_box_emulator.eve,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** list_box_emulator.eve 6 Jan 2006 18:03:01 -0000 1.2 --- list_box_emulator.eve 24 Jan 2006 19:38:50 -0000 1.3 *************** *** 5,30 **** */ ! dialog(name: "List Box Emulator", placement: place_column) { ! row() { ! group(name: 'Selected Item', spacing: 10, child_horizontal: align_fill, vertical: align_fill) { ! radio_button(name: "Item 1", bind: @selection, value: @item_1); ! radio_button(name: "Item 2", bind: @selection, value: @item_2); ! radio_button(name: "Item 3", bind: @selection, value: @item_3); ! radio_button(name: "(no item)", bind: @selection, value: @item_end); } ! group(name: 'List commands', spacing: 10, child_horizontal: align_fill, vertical: align_fill) { ! button(name: "Add Item", action: @ok, bind: @add_params); ! button(name: "Insert Item", action: @ok, bind: @insert_params); ! button(name: "Delete Item", action: @ok, bind: @delete_params); } } - - row(horizontal: align_right) - { - button(name: "Cancel", cancel: true, action: @cancel); - } } --- 5,33 ---- */ ! layout list_box_emulator { ! view dialog(name: "List Box Emulator", placement: place_column) { ! row() { ! group(name: 'Selected Item', spacing: 10, child_horizontal: align_fill, vertical: align_fill) ! { ! radio_button(name: "Item 1", bind: @selection, value: @item_1); ! radio_button(name: "Item 2", bind: @selection, value: @item_2); ! radio_button(name: "Item 3", bind: @selection, value: @item_3); ! radio_button(name: "(no item)", bind: @selection, value: @item_end); ! } ! group(name: 'List commands', spacing: 10, child_horizontal: align_fill, vertical: align_fill) ! { ! button(name: "Add Item", action: @ok, bind: @add_params); ! button(name: "Insert Item", action: @ok, bind: @insert_params); ! button(name: "Delete Item", action: @ok, bind: @delete_params); ! } } ! ! row(horizontal: align_right) { ! button(name: "Cancel", cancel: true, action: @cancel); } } } --- NEW FILE: mini_image_size_2.eve --- /* Copyright 2005-2006 Adobe Systems Incorporated Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://opensource.adobe.com/licenses.html) */ layout mini_image_size { view dialog (name: "Mini Image Size") { column() { edit_number(name: "Height:", digits: 7, units: [ { name: "pixels", bind: @height_pixels, format: "#" }, { name: "percent", bind: @height_percent, format: "#.00" } ]); edit_number(name: "Width:", digits: 7, units: [ { name: "pixels", bind: @width_pixels, format: "#" }, { name: "percent", bind: @width_percent, format: "#.00" } ]); checkbox(name: "Constrain Proportions", bind: @constrain); } column() { button(name: "OK", action: @ok, default: true); button( items: [ { name: "Cancel", action: @cancel }, { name: "Reset", action: @reset, modifiers: @opt } ]); } } } Index: progress_bar_suite.eve =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/begin/examples/progress_bar_suite.eve,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** progress_bar_suite.eve 6 Jan 2006 18:03:01 -0000 1.2 --- progress_bar_suite.eve 24 Jan 2006 19:38:50 -0000 1.3 *************** *** 5,42 **** */ ! dialog(name: "Progress Bar Suite") { ! row(child_horizontal: align_fill) { ! column(child_horizontal: align_fill) { ! group(placement: place_column, name: "Change me!", child_horizontal: align_fill) ! { ! edit_number(name: "Value:", bind: @progress_value, digits: 3, format: "#"); ! slider(bind: @progress_value, format: {first: 0, last: 100, interval: 1}); ! } ! row() { ! group(placement: place_row, name: "Vert.", child_horizontal: align_fill) { ! progress_bar(bind: @progress_value, orientation: @vertical, format: {first: 0, last: 100, interval: 1}); ! /*progress_bar(bind: @progress_value, orientation: @vertical, is_relevance: true, format: {first: 0, last: 100, interval: 1});*/ ! progress_bar(bind: @progress_value, orientation: @vertical, is_indeterminate: true); } ! group(placement: place_column, name: "Horiz.", vertical: align_fill, child_horizontal: align_fill) { ! progress_bar(bind: @progress_value, format: {first: 0, last: 100, interval: 1}); ! /*progress_bar(bind: @progress_value, is_relevance: true, format: {first: 0, last: 100, interval: 1});*/ ! progress_bar(bind: @progress_value, is_indeterminate: true); } } ! } ! column(child_horizontal: align_fill) ! { ! button(name: "OK", default: true); ! button( items: [ ! {name: "Cancel", action: @cancel}, ! {name: "Reset", action: @reset, modifiers: @opt} ! ]); } } --- 5,45 ---- */ ! layout progress_bar_suite { ! view dialog(name: "Progress Bar Suite") { ! row(child_horizontal: align_fill) { ! column(child_horizontal: align_fill) { ! group(placement: place_column, name: "Change me!", child_horizontal: align_fill) { ! edit_number(name: "Value:", bind: @progress_value, digits: 3, format: "#"); ! slider(bind: @progress_value, format: {first: 0, last: 100, interval: 1}); } ! row() { ! group(placement: place_row, name: "Vert.", child_horizontal: align_fill) ! { ! progress_bar(bind: @progress_value, orientation: @vertical, format: {first: 0, last: 100, interval: 1}); ! /*progress_bar(bind: @progress_value, orientation: @vertical, is_relevance: true, format: {first: 0, last: 100, interval: 1});*/ ! progress_bar(bind: @progress_value, orientation: @vertical, is_indeterminate: true); ! } ! group(placement: place_column, name: "Horiz.", vertical: align_fill, child_horizontal: align_fill) ! { ! progress_bar(bind: @progress_value, format: {first: 0, last: 100, interval: 1}); ! /*progress_bar(bind: @progress_value, is_relevance: true, format: {first: 0, last: 100, interval: 1});*/ ! progress_bar(bind: @progress_value, is_indeterminate: true); ! } } } ! column(child_horizontal: align_fill) ! { ! button(name: "OK", default: true); ! button( items: [ ! {name: "Cancel", action: @cancel}, ! {name: "Reset", action: @reset, modifiers: @opt} ! ]); ! } } } Index: edit_text_suite.eve =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/begin/examples/edit_text_suite.eve,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** edit_text_suite.eve 6 Jan 2006 18:03:01 -0000 1.3 --- edit_text_suite.eve 24 Jan 2006 19:38:50 -0000 1.4 *************** *** 5,25 **** */ ! dialog(name: "<xstr id='edit_text_suite_dialog_title'>Edit Text Suite</xstr>") { ! row(child_horizontal: align_fill) { ! group(placement: place_column, name: "<xstr id='edit_text_suite_dialog_title'>Edit Text Suite</xstr>", child_horizontal: align_fill) ! { ! edit_text(bind: @edit_text_value, characters: 10, name: "<xstr id='et_suite_label'>Label Name:</xstr>"); ! edit_text(bind: @edit_text_value, scrollable: true, characters: 10, lines: 10, name: "<xstr id='et_suite_label'>Label Name:</xstr>"); ! checkbox(bind: @disabled, name: "<xstr id='et_suite_disabled'>Disabled</xstr>"); ! } ! column(child_horizontal: align_fill) { ! button(name: "<xstr id='ok'>OK</xstr>", default: true); ! button( items: [ ! { name: "<xstr id='cancel'>Cancel</xstr>", action: @cancel }, ! { name: "<xstr id='reset'>Reset</xstr>", action: @reset, modifiers: @opt } ! ]); } } --- 5,28 ---- */ ! layout edit_text_suite { ! view dialog(name: "<xstr id='edit_text_suite_dialog_title'>Edit Text Suite</xstr>") { ! row(child_horizontal: align_fill) { ! group(placement: place_column, name: "<xstr id='edit_text_suite_dialog_title'>Edit Text Suite</xstr>", child_horizontal: align_fill) ! { ! edit_text(bind: @edit_text_value, characters: 10, name: "<xstr id='et_suite_label'>Label Name:</xstr>"); ! edit_text(bind: @edit_text_value, scrollable: true, characters: 10, lines: 10, name: "<xstr id='et_suite_label'>Label Name:</xstr>"); ! checkbox(bind: @disabled, name: "<xstr id='et_suite_disabled'>Disabled</xstr>"); ! } ! column(child_horizontal: align_fill) ! { ! button(name: "<xstr id='ok'>OK</xstr>", default: true); ! button( items: [ ! { name: "<xstr id='cancel'>Cancel</xstr>", action: @cancel }, ! { name: "<xstr id='reset'>Reset</xstr>", action: @reset, modifiers: @opt } ! ]); ! } } } --- NEW FILE: optional_panel.adm --- /* Copyright 2005-2006 Adobe Systems Incorporated Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://opensource.adobe.com/licenses.html) */ sheet image_size { interface: mask : false; show : false; more : true; less : false; output: result <== true; } --- NEW FILE: inequality.adm --- /* Copyright 2005-2006 Adobe Systems Incorporated Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://opensource.adobe.com/licenses.html) */ sheet slider_suite { interface: value : 42; min_value : 0; max_value : 100; logic: relate { value <== min(value, max_value); max_value <== max(value, max_value); } relate { value <== max(value, min_value); min_value <== min(value, min_value); } } --- NEW FILE: video.adm --- /* Copyright 2005-2006 Adobe Systems Incorporated Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://opensource.adobe.com/licenses.html) */ sheet slider_suite { input: total_time : 120 * 60; // a two hour movie width : 720; height : 480; interface: video_bitrate : 200; audio_bitrate : 96; total_size; frame_rate : 30; frame_height : height; frame_width : width; frame_depth : 16; logic: /* relate { video_size <== frame_width * frame_height * frame_depth; } */ relate { video_bitrate <== total_size / total_time - audio_bitrate; audio_bitrate <== total_size / total_time - video_bitrate; total_size <== (video_bitrate + audio_bitrate) * total_time; } } Index: image_size.eve =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/begin/examples/image_size.eve,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** image_size.eve 6 Jan 2006 18:03:01 -0000 1.4 --- image_size.eve 24 Jan 2006 19:38:50 -0000 1.5 *************** *** 5,76 **** */ ! dialog(name: "<xstr id='image_size_dialog_title'>Image Size</xstr>", placement: place_column) { ! row() { column() { ! group(name: "<xstr id='image_size_dimensions_group'>Pixel Dimensions</xstr>", horizontal: align_fill) { ! row(horizontal: align_fill) { ! column(guide_mask: [ ], horizontal: align_fill, child_horizontal: align_fill) ! { ! edit_number(name: "<xstr id='image_size_width'>Width:</xstr>", digits: 9, display_disable: true, ! touch: [ @doc_resolution ], ! units: [ { name: "<xstr id='image_size_pixels'>pixels</xstr>", bind: @dim_width_pixels, format: "#" }, ! { name: "<xstr id='image_size_percent'>percent</xstr>", bind: @dim_width_percent, format: "#.00" } ]); ! ! edit_number(name: "<xstr id='image_size_height'>Height:</xstr>", digits: 9, display_disable: true, ! touch: [ @doc_resolution ], ! units: [ { name: "<xstr id='image_size_pixels'>pixels</xstr>", bind: @dim_height_pixels, format: "#" }, ! { name: "<xstr id='image_size_percent'>percent</xstr>", bind: @dim_height_percent, format: "#.00" } ]); ! } ! ! link(bind: @constrain, count: 2, value_on: true, value_off: false); } } ! group(name: "<xstr id='image_size_size_group'>Document Size:</xstr>", horizontal: align_fill) { ! row(horizontal: align_fill) { ! column(guide_mask: [ ], horizontal: align_fill, child_horizontal: align_fill) ! { ! edit_number(name: "<xstr id='image_size_width'>Width:</xstr>", digits: 9, ! touch: [ @doc_resolution ], ! units: [ { name: "<xstr id='image_size_percent'>percent</xstr>", bind: @doc_width_percent, format: "#.00" }, ! { name: "<xstr id='image_size_inches'>inches</xstr>", bind: @doc_width_inches, format: "#.000" }, ! { name: "<xstr id='image_size_cm'>cm</xstr>", bind: @doc_width_inches, scale: [2.54, 0.0 ], format: "#.00" }, ! { name: "<xstr id='image_size_mm'>mm</xstr>", bind: @doc_width_inches, scale: [ 25.4, 0.0 ], format: "#.0" }, ! { name: "<xstr id='image_size_points'>points</xstr>", bind: @doc_width_inches, scale: [ 72, 0 ], format: "#.0" }, ! { name: "<xstr id='image_size_picas'>picas</xstr>", bind: @doc_width_inches, scale: [ 6, 0.0 ], format: "#.00" }, ! { name: "<xstr id='image_size_columns'>columns</xstr>", bind: @doc_width_inches, scale: ... [truncated message content] |