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: [ 1, 0.0 ], format: "#.000" } ! ]); ! ! edit_number(name: "<xstr id='image_size_height'>Height:</xstr>", digits: 9, ! touch: [ @doc_resolution ], ! units: [ { name: "<xstr id='image_size_percent'>percent</xstr>", bind: @doc_height_percent, format: "#.00" }, ! { name: "<xstr id='image_size_inches'>inches</xstr>", bind: @doc_height_inches, format: "#.000" }, ! { name: "<xstr id='image_size_cm'>cm</xstr>", bind: @doc_height_inches, scale: [2.54, 0.0 ], format: "#.00" }, ! { name: "<xstr id='image_size_mm'>mm</xstr>", bind: @doc_height_inches, scale: [ 25.4, 0.0 ], format: "#.0" }, ! { name: "<xstr id='image_size_points'>points</xstr>", bind: @doc_height_inches, scale: [ 72, 0 ], format: "#.0" }, ! { name: "<xstr id='image_size_picas'>picas</xstr>", bind: @doc_height_inches, scale: [ 6, 0.0 ], format: "#.00" }, ! { name: "<xstr id='image_size_columns'>columns</xstr>", bind: @doc_height_inches, scale: [ 1, 0.0 ], format: "#.000" } ! ]); ! ! edit_number(name: "<xstr id='image_size_resolution'>Resolution:</xstr>", digits: 9, ! format: "#.000", ! touch: [ @dim_width_pixels, @dim_height_pixels ], ! units: [ { name: "<xstr id='image_size_pixels_per_inch'>pixels/inch</xstr>", bind: @doc_resolution }, ! { name: "<xstr id='image_size_pixels_per_cm'>pixels/cm</xstr>", 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); ! } } } --- 5,70 ---- */ ! layout image_size { ! view dialog(name: "<xstr id='image_size_dialog_title'>Image Size</xstr>", placement: place_row) { column() { ! group(name: "<xstr id='image_size_dimensions_group'>Pixel Dimensions</xstr>", horizontal: align_fill, placement: place_row) { ! 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, placement: place_row) { ! 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: [ 1, 0.0 ], format: "#.000" } ! ]); ! ! edit_number(name: "<xstr id='image_size_height'>Height:</xstr>", digits: 9, ! touch: [ @doc_resolution ], ! units: [ { name: "<xstr id='image_size_percent'>percent</xstr>", bind: @doc_height_percent, format: "#.00" }, ! { name: "<xstr id='image_size_inches'>inches</xstr>", bind: @doc_height_inches, format: "#.000" }, ! { name: "<xstr id='image_size_cm'>cm</xstr>", bind: @doc_height_inches, scale: [2.54, 0.0 ], format: "#.00" }, ! { name: "<xstr id='image_size_mm'>mm</xstr>", bind: @doc_height_inches, scale: [ 25.4, 0.0 ], format: "#.0" }, ! { name: "<xstr id='image_size_points'>points</xstr>", bind: @doc_height_inches, scale: [ 72, 0 ], format: "#.0" }, ! { name: "<xstr id='image_size_picas'>picas</xstr>", bind: @doc_height_inches, scale: [ 6, 0.0 ], format: "#.00" }, ! { name: "<xstr id='image_size_columns'>columns</xstr>", bind: @doc_height_inches, scale: [ 1, 0.0 ], format: "#.000" } ]); ! edit_number(name: "<xstr id='image_size_resolution'>Resolution:</xstr>", digits: 9, ! format: "#.000", ! touch: [ @dim_width_pixels, @dim_height_pixels ], ! units: [ { name: "<xstr id='image_size_pixels_per_inch'>pixels/inch</xstr>", bind: @doc_resolution }, ! { name: "<xstr id='image_size_pixels_per_cm'>pixels/cm</xstr>", 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); } } --- NEW FILE: overconstrain.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 overconstrain { view dialog(name: "Cycle Test", grow: true) { edit_number(name: "x:", bind: @x); edit_number(name: "y:", bind: @y); } } --- NEW FILE: mini_image_size.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 mini_image_size { input: original_width : 5 * 300; original_height : 7 * 300; interface: constrain : true; width_pixels : original_width <== round(width_pixels); height_pixels : original_height <== round(height_pixels); width_percent; height_percent; logic: relate { width_pixels <== round(width_percent * original_width / 100); width_percent <== width_pixels * 100 / original_width; } relate { height_pixels <== round(height_percent * original_height / 100); height_percent <== height_pixels * 100 / original_height; } when (constrain) relate { width_percent <== height_percent; height_percent <== width_percent; } output: result <== { height: height_pixels, width: width_pixels }; } --- NEW FILE: video.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 video { view dialog(name: "Inequality Example", grow: true) { row(child_horizontal: align_fill, horizontal: align_fill) { column(child_horizontal: align_fill, horizontal: align_fill) { edit_number(bind: @video_bitrate, name: "Video Bitrate:", format: "#.", digits: 9); edit_number(bind: @audio_bitrate, name: "Audio Bitrate:", format: "#.", digits: 9); edit_number(bind: @total_size, name: "File Size:", format: "#.", digits: 9); } column(child_horizontal: align_fill, horizontal: align_right) { button(name: "OK", default: true, bind: @total_size); button( items: [ {name: "Cancel", action: @cancel}, {name: "Reset", action: @reset, modifiers: @opt} ]); } } } } Index: image_size.adm =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/begin/examples/image_size.adm,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** image_size.adm 6 Jan 2006 18:03:01 -0000 1.2 --- image_size.adm 24 Jan 2006 19:38:50 -0000 1.3 *************** *** 49,53 **** } ! relate { doc_height_inches <== doc_height_percent * original_doc_height / 100; doc_height_percent <== doc_height_inches * 100 / original_doc_height; --- 49,53 ---- } ! weak { doc_height_inches <== doc_height_percent * original_doc_height / 100; doc_height_percent <== doc_height_inches * 100 / original_doc_height; Index: find_and_replace.eve =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/begin/examples/find_and_replace.eve,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** find_and_replace.eve 6 Jan 2006 18:03:01 -0000 1.3 --- find_and_replace.eve 24 Jan 2006 19:38:50 -0000 1.4 *************** *** 3,7 **** Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://opensource.adobe.com/licenses.html) ! ANOMALIES WRT ORIGINAL DIALOG: (OD stands for Original Dialog) - OD has popup button of width 0 to display MRU search/replace/patterns strings --- 3,7 ---- Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://opensource.adobe.com/licenses.html) ! ANOMALIES WRT ORIGINAL DIALOG: (OD stands for Original Dialog) - OD has popup button of width 0 to display MRU search/replace/patterns strings *************** *** 30,125 **** */ ! dialog(name: "Find & Replace", placement: place_row) { ! column() { ! row(guide_mask: [ ]) { ! popup( name: 'Search For:', popup_bind: @recent_search_strings, popup_placement: @down, items: [ ! { name: '(recent search strings)', value: empty }, ! { name: '-', value: @pattern_separator } ]); ! static_text(name: "<xstr id='section_symbol'>§</xstr>"); ! checkbox(name: 'Use Grep'); ! } ! popup( name: 'Patterns:', popup_bind: @patterns, 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 } ! ]); ! edit_text(size: @size_small, characters: 60, lines: 3, scrollable: false, monospaced: true, vertical: align_fill); ! row(horizontal: align_fill) ! { ! column() { ! checkbox(name: 'Start at Top', bind: @start_at_top, value: true); ! checkbox(name: 'Wrap Around', bind: @wrap_around, value: true); ! checkbox(name: 'Search Backwards', bind: @search_backwards, value: true); ! checkbox(name: 'Case Sensitive', bind: @case_sensitive, value: true); } ! column(horizontal: align_center, vertical: align_fill) { ! checkbox(name: 'Search Selection Only', bind: @search_selection_only, value: true); ! checkbox(name: 'Extend Selection', bind: @extend_selection, value: true); ! checkbox(name: 'Match Entire Words', bind: @match_entire_words, value: true, vertical: align_bottom); } ! } ! row(guide_mask: [ ]) ! { ! popup( name: 'Replace With:', popup_bind: @recent_search_strings, popup_placement: @down, items: [ ! { name: '(recent replace strings)', value: empty }, { name: '-', value: @pattern_separator } ! ]); ! static_text(name: "<xstr id='section_symbol'>§</xstr>"); ! } ! edit_text(size: @size_small, characters: 60, lines: 3, scrollable: false, monospaced: true, vertical: align_fill); ! separator(); ! checkbox(name: 'Multi-File Search', bind: @multi_file_search, value: true); ! popup( name: 'Saved Search Sources:', popup_bind: @saved_search_sources, popup_placement: @down, ! items: [ ! { name: 'Remember This Set...', value: empty }, ! { name: '-', value: @pattern_separator } ! ], guide_mask: [ ]); ! row(horizontal: align_fill) ! { ! button(name: 'Icon', width: 32, height: 32); ! edit_text(bind: @multi_file_search_folder, size: @size_small, characters: 30, lines: 3, monospaced: true, horizontal: align_fill, vertical: align_fill); ! } ! } ! column(child_horizontal: align_fill, vertical: align_fill, spacing: 20) ! { ! column(child_horizontal: align_fill) ! { ! button(name: 'Find', default: true); ! button(name: 'Find All'); ! } ! column(child_horizontal: align_fill) ! { ! button(name: 'Replace'); ! button(name: 'Replace All'); ! } ! column(child_horizontal: align_fill) ! { ! button(name: "Don't Find"); ! } ! column(child_horizontal: align_fill) ! { ! button(name: 'Cancel', cancel: true, action: @cancel); } ! column(child_horizontal: align_fill, vertical: align_bottom, spacing: 20) { ! button(name: 'Other...'); ! button(name: 'Options...', action: @dialog, value: "find_and_replace_options.eve"); } } --- 30,128 ---- */ ! layout find_and_replace { ! view dialog(name: "Find & Replace", placement: place_row) { ! column() { ! row(guide_mask: [ ]) ! { ! popup( name: 'Search For:', popup_bind: @recent_search_strings, popup_placement: @down, ! items: [ ! { name: '(recent search strings)', value: empty }, ! { name: '-', value: @pattern_separator } ! ]); ! static_text(name: "<xstr id='section_symbol'>§</xstr>"); ! checkbox(name: 'Use Grep'); ! } ! popup( name: 'Patterns:', popup_bind: @patterns, 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 } ]); ! edit_text(size: @size_small, characters: 60, lines: 3, scrollable: false, monospaced: true, vertical: align_fill); ! row(horizontal: align_fill) { ! column() ! { ! checkbox(name: 'Start at Top', bind: @start_at_top, value: true); ! checkbox(name: 'Wrap Around', bind: @wrap_around, value: true); ! checkbox(name: 'Search Backwards', bind: @search_backwards, value: true); ! checkbox(name: 'Case Sensitive', bind: @case_sensitive, value: true); ! } ! column(horizontal: align_center, vertical: align_fill) ! { ! checkbox(name: 'Search Selection Only', bind: @search_selection_only, value: true); ! checkbox(name: 'Extend Selection', bind: @extend_selection, value: true); ! checkbox(name: 'Match Entire Words', bind: @match_entire_words, value: true, vertical: align_bottom); ! } } ! row(guide_mask: [ ]) { ! popup( name: 'Replace With:', popup_bind: @recent_search_strings, popup_placement: @down, ! items: [ ! { name: '(recent replace strings)', value: empty }, ! { name: '-', value: @pattern_separator } ! ]); ! static_text(name: "<xstr id='section_symbol'>§</xstr>"); } ! edit_text(size: @size_small, characters: 60, lines: 3, scrollable: false, monospaced: true, vertical: align_fill); ! separator(); ! checkbox(name: 'Multi-File Search', bind: @multi_file_search, value: true); ! popup( name: 'Saved Search Sources:', popup_bind: @saved_search_sources, popup_placement: @down, items: [ ! { name: 'Remember This Set...', value: empty }, { name: '-', value: @pattern_separator } ! ], guide_mask: [ ]); ! row(horizontal: align_fill) ! { ! button(name: 'Icon', width: 32, height: 32); ! edit_text(bind: @multi_file_search_folder, size: @size_small, characters: 30, lines: 3, monospaced: true, horizontal: align_fill, vertical: align_fill); ! } } ! column(child_horizontal: align_fill, vertical: align_fill, spacing: 20) { ! column(child_horizontal: align_fill) ! { ! button(name: 'Find', default: true); ! button(name: 'Find All'); ! } ! column(child_horizontal: align_fill) ! { ! button(name: 'Replace'); ! button(name: 'Replace All'); ! } ! column(child_horizontal: align_fill) ! { ! button(name: "Don't Find"); ! } ! column(child_horizontal: align_fill) ! { ! button(name: 'Cancel', cancel: true, action: @cancel); ! } ! column(child_horizontal: align_fill, vertical: align_bottom, spacing: 20) ! { ! button(name: 'Other...'); ! button(name: 'Options...', action: @dialog, value: "find_and_replace_options.eve"); ! } } } --- NEW FILE: cycle_test.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: x : 0 <== x + y; y : 0 <== x + y; } Index: slider_suite.eve =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/begin/examples/slider_suite.eve,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** slider_suite.eve 6 Jan 2006 18:03:01 -0000 1.2 --- slider_suite.eve 24 Jan 2006 19:38:50 -0000 1.3 *************** *** 5,38 **** */ ! dialog(name: "Slider Suite", grow: true, horizontal: align_fill) { ! row(child_horizontal: align_fill, horizontal: align_fill) { ! column() ! { ! edit_number(name: "Value:", bind: @slider_value_1, digits: 3, format: "#"); ! group(placement: place_row, name: "Vertical Sliders", child_horizontal: align_fill) ! { ! slider(bind: @slider_value_1, slider_point: @left, orientation: @vertical, format: {first: 0, last: 100, interval: 1}); ! slider(bind: @slider_value_2, slider_point: @right, orientation: @vertical, format: {first: 0, last: 100, interval: 1}); ! slider(bind: @slider_value_1, orientation: @vertical, format: {first: 0, last: 100, interval: 1}); ! slider(bind: @slider_value_2, slider_point: @right, slider_ticks: 11, orientation: @vertical, format: {first: 0, last: 100, interval: 1}); } ! group(placement: place_column, name: "Horizontal Sliders", horizontal: align_fill, child_horizontal: align_fill) { ! slider(bind: @slider_value_2, slider_point: @up, format: {first: 0, last: 100, interval: 1}); ! slider(bind: @slider_value_1, slider_point: @down, format: {first: 0, last: 100, interval: 1}); ! slider(bind: @slider_value_2, format: {first: 0, last: 100, interval: 1}); ! slider(bind: @slider_value_1, slider_point: @down, slider_ticks: 11, format: {first: 0, last: 100, interval: 1}); } } - column(child_horizontal: align_fill, horizontal: align_right) - { - button(name: "OK", default: true, bind: @slider_value_1); - button( items: [ - {name: "Cancel", action: @cancel}, - {name: "Reset", action: @reset, modifiers: @opt} - ]); - } } } --- 5,41 ---- */ ! layout slider_suite { ! view dialog(name: "Slider Suite", grow: true, horizontal: align_fill) { ! row(child_horizontal: align_fill, horizontal: align_fill) ! { ! column() ! { ! edit_number(name: "Value:", bind: @slider_value_1, digits: 3, format: "#"); ! group(placement: place_row, name: "Vertical Sliders", child_horizontal: align_fill) ! { ! slider(bind: @slider_value_1, slider_point: @left, orientation: @vertical, format: {first: 0, last: 100, interval: 1}); ! slider(bind: @slider_value_2, slider_point: @right, orientation: @vertical, format: {first: 0, last: 100, interval: 1}); ! slider(bind: @slider_value_1, orientation: @vertical, format: {first: 0, last: 100, interval: 1}); ! slider(bind: @slider_value_2, slider_point: @right, slider_ticks: 11, orientation: @vertical, format: {first: 0, last: 100, interval: 1}); ! } ! group(placement: place_column, name: "Horizontal Sliders", horizontal: align_fill, child_horizontal: align_fill) ! { ! slider(bind: @slider_value_2, slider_point: @up, format: {first: 0, last: 100, interval: 1}); ! slider(bind: @slider_value_1, slider_point: @down, format: {first: 0, last: 100, interval: 1}); ! slider(bind: @slider_value_2, format: {first: 0, last: 100, interval: 1}); ! slider(bind: @slider_value_1, slider_point: @down, slider_ticks: 11, format: {first: 0, last: 100, interval: 1}); ! } } ! column(child_horizontal: align_fill, horizontal: align_right) { ! button(name: "OK", default: true, bind: @slider_value_1); ! button( items: [ ! {name: "Cancel", action: @cancel}, ! {name: "Reset", action: @reset, modifiers: @opt} ! ]); } } } } Index: alignment_test.eve =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/begin/examples/alignment_test.eve,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** alignment_test.eve 6 Jan 2006 18:03:01 -0000 1.2 --- alignment_test.eve 24 Jan 2006 19:38:50 -0000 1.3 *************** *** 5,62 **** */ ! dialog(name: "Alignment Test", spacing: 6) { ! group(placement: place_column, name: "Colon Alignment 1") ! { ! edit_text(bind: @alignment, characters: 10, name: "Apple:"); ! edit_text(bind: @alignment, characters: 10, name: "Orange:"); ! edit_text(bind: @alignment, characters: 10, name: "Orangutan:"); ! popup(name: "Foo:", items: [{name: "Item One", value: @one}, {name: "Item Two", value: @two}]); ! popup(name: "Alignment:", items: [{name: "Item One", value: @one}, {name: "Item Two", value: @two}]); ! } ! column() { ! group(placement: place_column, name: "Colon Alignment 2") { ! edit_text(bind: @alignment, characters: 10, name: "Alignment:"); ! ! row(spacing: 4) ! { ! static_text(name: "Alignment:"); ! edit_text(bind: @alignment, characters: 10); ! } ! popup(name: "Alignment:", items: [{name: "Item One", value: @one}, {name: "Item Two", value: @two}]); - - row(spacing: 4) - { - static_text(name: "Alignment:"); - popup(items: [{name: "Item One", value: @one}, {name: "Item Two", value: @two}]); - } } ! } ! column() ! { ! group(placement: place_column, name: "No lables") { ! edit_text(bind: @alignment, characters: 10); ! popup(items: [{name: "Item One", value: @one}, {name: "Item Two", value: @two}]); } ! group(placement: place_column, name: "Other Texts") { ! row() { ! static_text(name: "A great yellow | OL"); ! button(name: "Alignment"); } } ! } ! column(child_horizontal: align_fill) ! { ! button(name: "OK", default: true); ! button( items: [ ! { name: "Cancel", action: @cancel }, ! { name: "Reset", action: @reset, modifiers: @opt } ! ]); } } --- 5,65 ---- */ ! layout alignment_test { ! view dialog(name: "Alignment Test", spacing: 6) { ! group(placement: place_column, name: "Colon Alignment 1") { ! edit_text(bind: @alignment, characters: 10, name: "Apple:"); ! edit_text(bind: @alignment, characters: 10, name: "Orange:"); ! edit_text(bind: @alignment, characters: 10, name: "Orangutan:"); ! popup(name: "Foo:", items: [{name: "Item One", value: @one}, {name: "Item Two", value: @two}]); popup(name: "Alignment:", items: [{name: "Item One", value: @one}, {name: "Item Two", value: @two}]); } ! column() { ! group(placement: place_column, name: "Colon Alignment 2") ! { ! edit_text(bind: @alignment, characters: 10, name: "Alignment:"); ! ! row(spacing: 4) ! { ! static_text(name: "Alignment:"); ! edit_text(bind: @alignment, characters: 10); ! } ! ! popup(name: "Alignment:", items: [{name: "Item One", value: @one}, {name: "Item Two", value: @two}]); ! ! row(spacing: 4) ! { ! static_text(name: "Alignment:"); ! popup(items: [{name: "Item One", value: @one}, {name: "Item Two", value: @two}]); ! } ! } } ! column() { ! group(placement: place_column, name: "No lables") { ! edit_text(bind: @alignment, characters: 10); ! popup(items: [{name: "Item One", value: @one}, {name: "Item Two", value: @two}]); ! } ! group(placement: place_column, name: "Other Texts") ! { ! row() ! { ! static_text(name: "A great yellow | OL"); ! button(name: "Alignment"); ! } } } ! column(child_horizontal: align_fill) ! { ! button(name: "OK", default: true); ! button( items: [ ! { name: "Cancel", action: @cancel }, ! { name: "Reset", action: @reset, modifiers: @opt } ! ]); ! } } } --- NEW FILE: grow.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 grow { view dialog(name: "Hello World", grow: true, placement: place_column, spacing: 10, vertical: align_fill) { row(horizontal: align_fill) { static_text(horizontal: align_fill, name: "NOTICE: All information contained herein is, and remains the property of " "Adobe Systems Incorporated and its suppliers, if any. The intellectual and " "technical concepts contained herein are proprietary to Adobe Systems Incorporated " "and its suppliers and may be covered by U.S. and Foreign Patents, patents " "in process, and are protected by trade secret or copyright law. Dissemination " "of this information or reproduction of this material is strictly forbidden " "unless prior written permission is obtained from Adobe Systems Incorporated." , wrap: true); button(name: "OK", bind: @done); } button(name: "Center", horizontal: align_center); row(horizontal: align_fill, child_horizontal: align_proportional) { button(name: "Button"); button(name: "Button"); button(name: "Button"); checkbox(name: "Button"); } row(horizontal: align_fill) { button(name: "Name", horizontal: align_fill); button(name: "Name", horizontal: align_fill); } row(horizontal: align_fill) { button(name: "Name", horizontal: align_left); button(name: "Name", horizontal: align_center); button(name: "Name", horizontal: align_right); } row(horizontal: align_fill) { button(name: "Name", horizontal: align_center); button(name: "Name", horizontal: align_center); button(name: "Name", horizontal: align_center); } row(horizontal: align_fill, vertical: align_fill) { button(name: "Name", horizontal: align_left); button(name: "Name", horizontal: align_fill, vertical: align_bottom); } } } --- NEW FILE: cycle_test.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 cycle_test { view dialog(name: "Cycle Test", grow: true) { edit_number(name: "x:", bind: @x); edit_number(name: "y:", bind: @y); } } --- NEW FILE: overconstrain.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: x : 0; y : 0; logic: relate { x <== y; y <== x; } relate { x <== y; y <== x; } } --- NEW FILE: inequality.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 inequality { view dialog(name: "Inequality Example", grow: true) { row(child_horizontal: align_fill, horizontal: align_fill) { column(child_horizontal: align_fill, horizontal: align_fill) { slider(bind: @min_value, slider_point: @down, format: {first: 0, last: 100, interval: 1}); slider(bind: @value, format: {first: 0, last: 100, interval: 1}); slider(bind: @max_value, slider_point: @up, format: {first: 0, last: 100, interval: 1}); } column(child_horizontal: align_fill, horizontal: align_right) { button(name: "OK", default: true, bind: @value); button( items: [ {name: "Cancel", action: @cancel}, {name: "Reset", action: @reset, modifiers: @opt} ]); } } } } --- NEW FILE: optional_panel.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 optional_panel { view dialog(name: "Calculations", placement: place_column) { checkbox(name: "Mask", bind: @mask); optional (bind: @mask, value: true) { checkbox(name: "Show", bind: @show); } optional (bind: @show, value: true) { group(name: "Stuff") { checkbox(name: "More!", bind: @more); optional (bind: @more, value: true) ... [truncated message content] |