sproutcore 1.5.0-java → 1.6.0.beta.2-java
Sign up to get free protection for your applications and to get access to all the features.
- data/.mailmap +32 -0
- data/CHANGELOG +15 -0
- data/Rakefile +18 -0
- data/VERSION.yml +2 -2
- data/bin/sc-build +0 -5
- data/bin/sc-build-number +0 -5
- data/bin/sc-docs +0 -5
- data/bin/sc-gen +0 -5
- data/bin/sc-init +0 -5
- data/bin/sc-manifest +0 -5
- data/bin/sc-server +0 -5
- data/bin/sproutcore +0 -5
- data/lib/frameworks/sproutcore/Buildfile +3 -3
- data/lib/frameworks/sproutcore/CHANGELOG.md +21 -0
- data/lib/frameworks/sproutcore/README.md +77 -7
- data/lib/frameworks/sproutcore/frameworks/ajax/system/request.js +0 -2
- data/lib/frameworks/sproutcore/frameworks/animation/core.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/array.js +1 -17
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/controller.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/object.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controls/button.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/collection.js +23 -21
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/delegate_support.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/checkbox_support.js +36 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/text_field_support.js +126 -7
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js +13 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/device.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +16 -16
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/platform.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/render_context.js +1 -34
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/root_responder.js +29 -23
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/sparse_array.js +8 -4
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/string.js +20 -23
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controls/button.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/checkbox_support.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/text_field_support.js +115 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/collection.js +49 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/handlebars.js +19 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template.js +1 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view.js +38 -41
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/animation.js +4 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/base.js +1 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout.js +1 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +7 -82
- data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +12 -5
- data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/array_observers.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/debug/core.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/core.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/slider.css +33 -30
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +12 -11
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +7 -7
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +20 -20
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/navigation_builder.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +10 -10
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +24 -23
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +51 -54
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/modal.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +29 -29
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_source.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +6 -6
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/responder.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/checkbox.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/master_detail.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/progress.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio.js +7 -7
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio_group.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/slider.js +7 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +31 -31
- data/lib/frameworks/sproutcore/frameworks/desktop/system/undo_manager.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +35 -29
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +61 -50
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +9 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +6 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/experimental/Buildfile +2 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/coders/object.js +12 -12
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/designs.js +6 -6
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/page_files.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_style_sheet.js +7 -9
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/object_designer.js +13 -13
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/view_designer.js +37 -37
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/object.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/page.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/view.js +4 -3
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/mixins/snap_lines.js +7 -6
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/designer_drop_target.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/drawing.js +49 -42
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/high_light.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/page_item_view.js +6 -6
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/device.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/english.lproj/default_styles.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/english.lproj/strings.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/mixins/edit_mode.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/mixins/emptiness.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/render_delegates/form.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/render_delegates/form_row.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_checkbox_field.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_field.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_label.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_radio_field.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_row.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_text_field.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/views/form.js +13 -14
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/views/form_row.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +4 -6
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +0 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +2 -4
- data/lib/frameworks/sproutcore/frameworks/foundation/system/image_queue.js +8 -12
- data/lib/frameworks/sproutcore/frameworks/foundation/views/inline_text_field.js +28 -34
- data/lib/frameworks/sproutcore/frameworks/{foundation → routing}/system/routes.js +31 -47
- data/lib/frameworks/sproutcore/frameworks/{foundation → routing}/tests/system/routes.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +15 -21
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +8 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array_observers.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/binding.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +66 -133
- data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +68 -139
- data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +11 -11
- data/lib/frameworks/sproutcore/frameworks/testing/system/suite.js +23 -29
- data/lib/frameworks/sproutcore/lib/index.rhtml +5 -2
- data/lib/sproutcore.rb +2 -9
- data/lib/sproutcore/builders/minify.rb +5 -5
- data/lib/sproutcore/helpers/minifier.rb +6 -10
- data/lib/sproutcore/models/target.rb +2 -2
- data/lib/sproutcore/rack/proxy.rb +8 -7
- data/lib/sproutcore/tools.rb +16 -5
- data/spec/lib/builders/html_spec.rb +5 -5
- data/sproutcore.gemspec +11 -5
- data/vendor/chance/lib/chance.rb +4 -2
- data/{lib/sproutcore/vendor → vendor}/jsdoc/README.txt +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Chain.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Dumper.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Hash.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Link.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Namespace.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Opt.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Reflection.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/String.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Testrun.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/FOODOC.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/DomReader.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/XMLDoc.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/XMLParse.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/DocComment.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/DocTag.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/JsDoc.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/JsPlate.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Lang.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Parser.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/PluginManager.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Symbol.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/SymbolSet.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TextStream.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Token.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TokenReader.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TokenStream.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Util.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Walker.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/main.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/commentSrcJson.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/frameworkPrototype.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/functionCall.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/publishSrcHilite.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/sproutcoreTags.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/symbolLink.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/tagParamConfig.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/tagSynonyms.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/run.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/t/TestDoc.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/t/runner.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/addon.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/anon_inner.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/augments.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/augments2.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/borrows.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/borrows2.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/config.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/constructs.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/encoding.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/encoding_other.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/functions_anon.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/functions_nested.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/global.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/globals.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/ignore.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/inner.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/jsdoc_test.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/lend.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/memberof.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/memberof_constructor.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/name.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/namespace_nested.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/nocode.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/oblit_anon.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/overview.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/param_inline.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/params_optional.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_nested.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_oblit.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_oblit_constructor.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/public.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shared.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shared2.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shortcuts.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/static_this.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/synonyms.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/tosource.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/variable_redefine.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/changes.txt +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/conf/sample.conf +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/java/build.xml +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/java/build_1.4.xml +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/java/classes/js.jar +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/java/src/JsDebugRun.java +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/java/src/JsRun.java +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/jsdebug.jar +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/jsrun.jar +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/t/TestDoc.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/t/runner.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/addon.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/anon_inner.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/augments.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/augments2.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/borrows.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/borrows2.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/config.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/constructs.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/encoding.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/encoding_other.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/functions_anon.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/functions_nested.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/global.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/globals.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/ignore.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/inner.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/jsdoc_test.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/lend.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/memberof.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/memberof_constructor.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/name.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/namespace_nested.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/nocode.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/oblit_anon.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/overview.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/param_inline.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/params_optional.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_nested.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_oblit.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_oblit_constructor.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/public.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shared.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shared2.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shortcuts.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/static_this.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/synonyms.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/tosource.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/variable_redefine.js +0 -0
- data/vendor/sproutcore/{src/SCCompiler/lib/yuicompressor-2.4.4.jar → lib/yuicompressor-2.4.6.jar} +0 -0
- metadata +169 -178
- data/lib/frameworks/sproutcore/frameworks/desktop/views/file.js +0 -148
- data/lib/sproutcore/vendor/github_gem_lint.rb +0 -22
- data/vendor/sproutcore/SCCompiler.jar +0 -0
- data/vendor/sproutcore/lib/args4j-2.0.12.jar +0 -0
- data/vendor/sproutcore/lib/yuicompressor-2.4.2.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/build.xml +0 -74
- data/vendor/sproutcore/src/SCCompiler/lib/args4j-2.0.12.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/lib/htmlcompressor-0.9.3.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/lib/yuicompressor-2.4.2.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/manifest.mf +0 -3
- data/vendor/sproutcore/src/SCCompiler/nbproject/build-impl.xml +0 -894
- data/vendor/sproutcore/src/SCCompiler/nbproject/genfiles.properties +0 -8
- data/vendor/sproutcore/src/SCCompiler/nbproject/private/config.properties +0 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.properties +0 -10
- data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.xml +0 -4
- data/vendor/sproutcore/src/SCCompiler/nbproject/project.properties +0 -90
- data/vendor/sproutcore/src/SCCompiler/nbproject/project.xml +0 -15
- data/vendor/sproutcore/src/SCCompiler/src/com/sproutcore/Main.java +0 -348
@@ -113,6 +113,14 @@ SC.SegmentedView = SC.View.extend(SC.Control,
|
|
113
113
|
*/
|
114
114
|
allowsMultipleSelection: NO,
|
115
115
|
|
116
|
+
/**
|
117
|
+
If YES, it will set the segment value even if an action is defined.
|
118
|
+
|
119
|
+
@type Boolean
|
120
|
+
@default NO
|
121
|
+
*/
|
122
|
+
selectSegmentWhenTriggeringAction: NO,
|
123
|
+
|
116
124
|
/**
|
117
125
|
@type Boolean
|
118
126
|
@default YES
|
@@ -954,8 +962,7 @@ SC.SegmentedView = SC.View.extend(SC.Control,
|
|
954
962
|
if (resp) resp.sendAction(action, target, this, this.get('pane'));
|
955
963
|
}
|
956
964
|
|
957
|
-
|
958
|
-
if(!action && val !== undefined) {
|
965
|
+
if(val !== undefined && (!action || this.get('selectSegmentWhenTriggeringAction'))) {
|
959
966
|
this.set('value', value);
|
960
967
|
}
|
961
968
|
|
@@ -759,7 +759,7 @@ SC.SelectView = SC.ButtonView.extend(
|
|
759
759
|
return YES;
|
760
760
|
}
|
761
761
|
else {
|
762
|
-
|
762
|
+
return sc_super();
|
763
763
|
}
|
764
764
|
},
|
765
765
|
|
@@ -776,7 +776,7 @@ SC.SelectView = SC.ButtonView.extend(
|
|
776
776
|
this.resignFirstResponder() ;
|
777
777
|
}
|
778
778
|
}
|
779
|
-
return
|
779
|
+
return sc_super();
|
780
780
|
},
|
781
781
|
|
782
782
|
/** @private
|
@@ -284,7 +284,12 @@ SC.SelectFieldView = SC.FieldView.extend(
|
|
284
284
|
_valueKeyObserver: function() {
|
285
285
|
this.set('cpDidChange', YES);
|
286
286
|
}.observes('valueKey'),
|
287
|
-
|
287
|
+
|
288
|
+
/** @private */
|
289
|
+
_isEnabledObserver: function() {
|
290
|
+
this.set('cpDidChange', YES);
|
291
|
+
}.observes('isEnabled'),
|
292
|
+
|
288
293
|
// .......................................
|
289
294
|
// PRIVATE
|
290
295
|
//
|
@@ -19,7 +19,7 @@
|
|
19
19
|
|
20
20
|
This class is most useful when placed inside a ScrollView.
|
21
21
|
|
22
|
-
To use it, simply set the
|
22
|
+
To use it, simply set the `content` property to a string of the HTML you
|
23
23
|
would like to display.
|
24
24
|
|
25
25
|
@extends SC.View
|
@@ -8,21 +8,21 @@
|
|
8
8
|
|
9
9
|
/**
|
10
10
|
|
11
|
-
Generic base class to encode a view hierarchy.
|
11
|
+
Generic base class to encode a view hierarchy. `ViewCoder`s are used to
|
12
12
|
collect the properties that may be included in a view design and then to
|
13
13
|
serialize that design to a JavaScript string that can be evaled.
|
14
14
|
|
15
|
-
To encode a view with a ViewCoder
|
15
|
+
To encode a view with a `ViewCoder`, simply call `SC.ViewCoder.encode(view)`.
|
16
16
|
Most of the time, however, you will not initiate coding directly but instead
|
17
|
-
work with the coder while designing an SC.DesignerView subclass.
|
17
|
+
work with the coder while designing an `SC.DesignerView` subclass.
|
18
18
|
|
19
|
-
|
19
|
+
## Using a Coder
|
20
20
|
|
21
21
|
When you are passed an instance of a coder, you can simply write attributes
|
22
22
|
into the coder using one of the many encoding methods defined on the view.
|
23
23
|
Encoding methods are defined for most primitive view types.
|
24
24
|
|
25
|
-
|
25
|
+
coder.string("firstName" , "Charles").string('lastName', 'Jolley');
|
26
26
|
|
27
27
|
@extends SC.Object
|
28
28
|
*/
|
@@ -32,7 +32,7 @@ SC.ObjectCoder = SC.Object.extend({
|
|
32
32
|
// PROPERTIES
|
33
33
|
//
|
34
34
|
|
35
|
-
/** The className used to emit the design. */
|
35
|
+
/** The `className` used to emit the design. */
|
36
36
|
className: 'SC.Object',
|
37
37
|
|
38
38
|
/**
|
@@ -130,7 +130,7 @@ SC.ObjectCoder = SC.Object.extend({
|
|
130
130
|
},
|
131
131
|
|
132
132
|
/**
|
133
|
-
Encodes a bool, mapped as YES or NO
|
133
|
+
Encodes a bool, mapped as `YES` or `NO`
|
134
134
|
|
135
135
|
@param key {String} the key to set
|
136
136
|
@param val {Boolean} the value
|
@@ -146,8 +146,8 @@ SC.ObjectCoder = SC.Object.extend({
|
|
146
146
|
on object members before processing to allow you to normalize. The
|
147
147
|
method signature must be:
|
148
148
|
|
149
|
-
|
150
|
-
|
149
|
+
function convert(value, rootObject, key);
|
150
|
+
|
151
151
|
The rootObject and key will be set to give you the context in the
|
152
152
|
hierarchy.
|
153
153
|
|
@@ -202,7 +202,7 @@ SC.ObjectCoder = SC.Object.extend({
|
|
202
202
|
Encodes a hash of objects. The object values must be simple objects for
|
203
203
|
this method to work. You can also optionally pass a processing function
|
204
204
|
that will be invoked for each value, giving you a chance to convert the
|
205
|
-
value first. The signature must be (key, value, rootObject)
|
205
|
+
value first. The signature must be `(key, value, rootObject)`.
|
206
206
|
|
207
207
|
@param key {String} the key to set
|
208
208
|
@param val {Object} the value
|
@@ -230,7 +230,7 @@ SC.ObjectCoder = SC.Object.extend({
|
|
230
230
|
Encodes a array of objects. The object values must be simple objects for
|
231
231
|
this method to work. You can also optionally pass a processing function
|
232
232
|
that will be invoked for each value, giving you a chance to convert the
|
233
|
-
value first. The signature must be (index, value, rootObject)
|
233
|
+
value first. The signature must be `(index, value, rootObject)`.
|
234
234
|
|
235
235
|
@param key {String} the key to set
|
236
236
|
@param val {Object} the value
|
@@ -304,7 +304,7 @@ SC.ObjectCoder = SC.Object.extend({
|
|
304
304
|
|
305
305
|
/**
|
306
306
|
Begins encoding with a particular object, setting the className to the
|
307
|
-
object's className
|
307
|
+
object's `className`. This is used internally by the `encode()` method.
|
308
308
|
*/
|
309
309
|
begin: function(object) {
|
310
310
|
var methodName = this.get('encodeMethodName');
|
data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/designs.js
CHANGED
@@ -68,10 +68,10 @@ SC.designsController = SC.ArrayController.create(SC.CollectionViewDelegate,
|
|
68
68
|
general which operations you might support and specifically the operations
|
69
69
|
you would support if the user dropped an item over a specific location.
|
70
70
|
|
71
|
-
If the proposedDropOperation parameter is SC.DROP_ON or
|
72
|
-
then the proposedInsertionPoint will be a
|
73
|
-
should determine the specific operations you
|
74
|
-
dropped the drag item at that point.
|
71
|
+
If the `proposedDropOperation` parameter is `SC.DROP_ON` or
|
72
|
+
`SC.DROP_BEFORE`, then the `proposedInsertionPoint` will be a
|
73
|
+
non-negative value and you should determine the specific operations you
|
74
|
+
will support if the user dropped the drag item at that point.
|
75
75
|
|
76
76
|
If you do not like the proposed drop operation or insertion point, you
|
77
77
|
can override these properties as well by setting the proposedDropOperation
|
@@ -99,12 +99,12 @@ SC.designsController = SC.ArrayController.create(SC.CollectionViewDelegate,
|
|
99
99
|
|
100
100
|
/**
|
101
101
|
Called by the collection view to actually accept a drop. This method will
|
102
|
-
only be invoked AFTER your validateDrop method has been called to
|
102
|
+
only be invoked *AFTER* your `validateDrop` method has been called to
|
103
103
|
determine if you want to even allow the drag operation to go through.
|
104
104
|
|
105
105
|
You should actually make changes to the data model if needed here and
|
106
106
|
then return the actual drag operation that was performed. If you return
|
107
|
-
SC.DRAG_NONE and the dragOperation was SC.DRAG_REORDER
|
107
|
+
SC.DRAG_NONE and the dragOperation was `SC.DRAG_REORDER`, then the default
|
108
108
|
reorder behavior will be provided by the collection view.
|
109
109
|
|
110
110
|
@param view {SC.CollectionView}
|
data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_style_sheet.js
CHANGED
@@ -10,8 +10,8 @@ sc_require('css/css_rule') ;
|
|
10
10
|
/**
|
11
11
|
@class SC.CSSStyleSheet
|
12
12
|
|
13
|
-
A style sheet object wraps a document style sheet object.
|
14
|
-
re-use stylesheet objects as needed.
|
13
|
+
A style sheet object wraps a document style sheet object. `C.CSSStyleSheet`
|
14
|
+
will re-use stylesheet objects as needed.
|
15
15
|
|
16
16
|
@extends SC.Object
|
17
17
|
*/
|
@@ -57,7 +57,7 @@ SC.CSSStyleSheet = SC.Object.extend(
|
|
57
57
|
isEnabledBindingDefault: SC.Binding.bool(),
|
58
58
|
|
59
59
|
/**
|
60
|
-
DO NOT MODIFY THIS OBJECT DIRECTLY
|
60
|
+
**DO NOT MODIFY THIS OBJECT DIRECTLY!!!!** Use the methods defined on this
|
61
61
|
object to update properties of the style sheet; otherwise, your changes
|
62
62
|
will not be reflected.
|
63
63
|
|
@@ -137,14 +137,12 @@ SC.mixin(SC.CSSStyleSheet,
|
|
137
137
|
/** SC.CSSStyleSheet */{
|
138
138
|
|
139
139
|
/**
|
140
|
-
Find a stylesheet object by name or href. If by name,
|
140
|
+
Find a stylesheet object by name or href. If by name, `.css` will be
|
141
141
|
appended automatically.
|
142
142
|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
sc_assert(ss === ss2) ; // SC.CSSStyleSheet objects are stable
|
147
|
-
}}}
|
143
|
+
var ss = SC.CSSStyleSheet.find('style.css') ;
|
144
|
+
var ss2 = SC.CSSStyleSheet.find('style') ; // same thing
|
145
|
+
sc_assert(ss === ss2) ; // SC.CSSStyleSheet objects are stable
|
148
146
|
|
149
147
|
@param {String} nameOrUrl a stylsheet name or href to find
|
150
148
|
@returns {SC.CSSStyleSheet} null if not found
|
@@ -8,10 +8,10 @@
|
|
8
8
|
/*global SC */
|
9
9
|
|
10
10
|
/** @class
|
11
|
-
This is a basic designer used for all SC.
|
12
|
-
mode.
|
11
|
+
This is a basic designer used for all `SC.Object`s that are created in
|
12
|
+
design mode.
|
13
13
|
|
14
|
-
FIXME: have SC.ViewDesigner subclass this designer.....
|
14
|
+
FIXME: have `SC.ViewDesigner` subclass this designer.....
|
15
15
|
|
16
16
|
@extends SC.Object
|
17
17
|
@since SproutCore 1.0
|
@@ -25,10 +25,10 @@ SC.ObjectDesigner = SC.Object.extend(
|
|
25
25
|
/** The class for the design. Set when the object is created. */
|
26
26
|
objectClass: null,
|
27
27
|
|
28
|
-
/** Set to YES if the object is currently selected for editing. */
|
28
|
+
/** Set to `YES` if the object is currently selected for editing. */
|
29
29
|
designIsSelected: NO,
|
30
30
|
|
31
|
-
/** Set to YES if this particular designer should not be enabled. */
|
31
|
+
/** Set to `YES` if this particular designer should not be enabled. */
|
32
32
|
designIsEnabled: YES,
|
33
33
|
|
34
34
|
/**
|
@@ -84,7 +84,7 @@ SC.ObjectDesigner = SC.Object.extend(
|
|
84
84
|
Array of properties that can be encoded directly. This is an easy way to
|
85
85
|
add support for simple properties that need to be written to the design
|
86
86
|
without added code. These properties will be encoded by
|
87
|
-
encodeDesignProperties()
|
87
|
+
`encodeDesignProperties()`.
|
88
88
|
|
89
89
|
You can add to this array in your subclasses.
|
90
90
|
*/
|
@@ -126,8 +126,8 @@ SC.ObjectDesigner = SC.Object.extend(
|
|
126
126
|
|
127
127
|
/**
|
128
128
|
Invoked by a design coder to encode design properties. The default
|
129
|
-
implementation invoked encodeDesignProperties() and
|
130
|
-
encodeChildViewsDesign()
|
129
|
+
implementation invoked `encodeDesignProperties()` and
|
130
|
+
`encodeChildViewsDesign()`. You can override this method with your own
|
131
131
|
additional encoding if you like.
|
132
132
|
*/
|
133
133
|
encodeDesign: function(coder) {
|
@@ -150,7 +150,7 @@ SC.ObjectDesigner = SC.Object.extend(
|
|
150
150
|
Array of localized that can be encoded directly. This is an easy way to
|
151
151
|
add support for simple properties that need to be written to the
|
152
152
|
localization without added code. These properties will be encoded by
|
153
|
-
encodeLocalizedProperties()
|
153
|
+
`encodeLocalizedProperties()`.
|
154
154
|
|
155
155
|
You can add to this array in your subclasses.
|
156
156
|
*/
|
@@ -158,8 +158,8 @@ SC.ObjectDesigner = SC.Object.extend(
|
|
158
158
|
|
159
159
|
/**
|
160
160
|
Invoked by a localization coder to encode design properties. The default
|
161
|
-
implementation invoked encodeLocalizedProperties() and
|
162
|
-
encodeChildViewsLoc()
|
161
|
+
implementation invoked `encodeLocalizedProperties()` and
|
162
|
+
`encodeChildViewsLoc()`. You can override this method with your own
|
163
163
|
additional encoding if you like.
|
164
164
|
*/
|
165
165
|
encodeLoc: function(coder) {
|
@@ -187,7 +187,7 @@ SC.ObjectDesigner = SC.Object.extend(
|
|
187
187
|
awakeDesign: function() {},
|
188
188
|
|
189
189
|
/**
|
190
|
-
The unknownProperty handler will pass through to the object by default.
|
190
|
+
The `unknownProperty` handler will pass through to the object by default.
|
191
191
|
This will often provide you the support you need without needing to
|
192
192
|
customize the Designer. Just make sure you don't define a conflicting
|
193
193
|
property name on the designer itself!
|
@@ -295,4 +295,4 @@ SC.ObjectDesigner.mixin({
|
|
295
295
|
}
|
296
296
|
}
|
297
297
|
|
298
|
-
});
|
298
|
+
});
|
@@ -11,9 +11,9 @@ sc_require('views/high_light');
|
|
11
11
|
/** @class
|
12
12
|
|
13
13
|
A Designer class provides the core editing functionality you need to edit
|
14
|
-
a view in the UI. When your app loads in design.mode
|
14
|
+
a view in the UI. When your app loads in `design.mode`, a peer Designer
|
15
15
|
instance is created for every view using the class method Designer or
|
16
|
-
SC.ViewDesigner if the view class does not define a Designer class.
|
16
|
+
`SC.ViewDesigner` if the view class does not define a Designer class.
|
17
17
|
|
18
18
|
Whenever you put your app into design mode, all events will be routed first
|
19
19
|
to the peer designer for an object, which will have an opportunity to
|
@@ -22,12 +22,12 @@ sc_require('views/high_light');
|
|
22
22
|
Likewise, the designer palettes provided by the view builder will focus on
|
23
23
|
the designer instead of the view itself.
|
24
24
|
|
25
|
-
|
25
|
+
## Designer UI
|
26
26
|
|
27
27
|
The basic ViewDesigner class automatically handles the UI interaction for
|
28
28
|
layout. You can also double click on the view to perform a default action.
|
29
29
|
|
30
|
-
For views with isContainerView set to YES
|
30
|
+
For views with `isContainerView` set to `YES`, double clicking on the view will
|
31
31
|
automatically "focus" the view. This allows you to select the view's
|
32
32
|
children instead of the view itself.
|
33
33
|
|
@@ -73,8 +73,8 @@ SC.ViewDesigner = SC.Object.extend(
|
|
73
73
|
If set to NO, the default childView encoding will not run. You can use
|
74
74
|
this option, for example, if your view creates its own childViews.
|
75
75
|
|
76
|
-
Alternatively, you can override the encodeChildViewsDesign() and
|
77
|
-
encodeChildViewsLoc() methods.
|
76
|
+
Alternatively, you can override the `encodeChildViewsDesign()` and
|
77
|
+
`encodeChildViewsLoc()` methods.
|
78
78
|
|
79
79
|
@property {Boolean}
|
80
80
|
*/
|
@@ -88,12 +88,12 @@ SC.ViewDesigner = SC.Object.extend(
|
|
88
88
|
//
|
89
89
|
|
90
90
|
/**
|
91
|
-
Set to NO to hide horizontal resize handles
|
91
|
+
Set to `NO` to hide horizontal resize handles
|
92
92
|
*/
|
93
93
|
canResizeHorizontal: YES,
|
94
94
|
|
95
95
|
/**
|
96
|
-
Set to NO to resize vertical handles
|
96
|
+
Set to `NO` to resize vertical handles
|
97
97
|
*/
|
98
98
|
canResizeVertical: YES,
|
99
99
|
|
@@ -113,12 +113,12 @@ SC.ViewDesigner = SC.Object.extend(
|
|
113
113
|
minHeight: 10,
|
114
114
|
|
115
115
|
/**
|
116
|
-
Determines maximum allowed width. null means no limit
|
116
|
+
Determines maximum allowed width. `null` means no limit
|
117
117
|
*/
|
118
118
|
maxWidth: 100000000,
|
119
119
|
|
120
120
|
/**
|
121
|
-
Determines maximum allowed height. null means no limit
|
121
|
+
Determines maximum allowed height. `null` means no limit
|
122
122
|
*/
|
123
123
|
maxHeight: 100000000,
|
124
124
|
|
@@ -142,11 +142,11 @@ SC.ViewDesigner = SC.Object.extend(
|
|
142
142
|
The current anchor location. This determines which of the other dimension
|
143
143
|
metrics are actually used to compute the layout. The value may be one of:
|
144
144
|
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
145
|
+
TOP_LEFT, TOP_CENTER, TOP_RIGHT, TOP_HEIGHT,
|
146
|
+
CENTER_LEFT, CENTER_CENTER, CENTER_RIGHT, CENTER_HEIGHT
|
147
|
+
BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, BOTTOM_HEIGHT,
|
148
|
+
WIDTH_LEFT, WIDTH_CENTER, WIDTH_RIGHT, WIDTH_HEIGHT,
|
149
|
+
null
|
150
150
|
|
151
151
|
@property
|
152
152
|
@type {Number}
|
@@ -237,21 +237,21 @@ SC.ViewDesigner = SC.Object.extend(
|
|
237
237
|
},
|
238
238
|
|
239
239
|
/**
|
240
|
-
Returns the top offset of the current layout or null if not defined
|
240
|
+
Returns the top offset of the current layout or `null` if not defined
|
241
241
|
*/
|
242
242
|
layoutTop: function(key, value) {
|
243
243
|
return this._layoutProperty('top', value);
|
244
244
|
}.property('layout').cacheable(),
|
245
245
|
|
246
246
|
/**
|
247
|
-
Returns the bottom offset of the current layout or null if not defined
|
247
|
+
Returns the bottom offset of the current layout or `null` if not defined
|
248
248
|
*/
|
249
249
|
layoutBottom: function(key, value) {
|
250
250
|
return this._layoutProperty('bottom', value);
|
251
251
|
}.property('layout').cacheable(),
|
252
252
|
|
253
253
|
/**
|
254
|
-
Returns the centerY offset of the current layout or null if not defined
|
254
|
+
Returns the centerY offset of the current layout or `null` if not defined
|
255
255
|
*/
|
256
256
|
layoutCenterY: function(key, value) {
|
257
257
|
return this._layoutProperty('centerY', value);
|
@@ -265,35 +265,35 @@ SC.ViewDesigner = SC.Object.extend(
|
|
265
265
|
}.property('layout').cacheable(),
|
266
266
|
|
267
267
|
/**
|
268
|
-
Returns the top offset of the current layout or null if not defined
|
268
|
+
Returns the top offset of the current layout or `null` if not defined
|
269
269
|
*/
|
270
270
|
layoutTop: function(key, value) {
|
271
271
|
return this._layoutProperty('top', value);
|
272
272
|
}.property('layout').cacheable(),
|
273
273
|
|
274
274
|
/**
|
275
|
-
Returns the left offset of the current layout or null if not defined
|
275
|
+
Returns the left offset of the current layout or `null` if not defined
|
276
276
|
*/
|
277
277
|
layoutLeft: function(key, value) {
|
278
278
|
return this._layoutProperty('left', value);
|
279
279
|
}.property('layout').cacheable(),
|
280
280
|
|
281
281
|
/**
|
282
|
-
Returns the right offset of the current layout or null if not defined
|
282
|
+
Returns the right offset of the current layout or `null` if not defined
|
283
283
|
*/
|
284
284
|
layoutRight: function(key, value) {
|
285
285
|
return this._layoutProperty('right', value);
|
286
286
|
}.property('layout').cacheable(),
|
287
287
|
|
288
288
|
/**
|
289
|
-
Returns the centerX offset of the current layout or null if not defined
|
289
|
+
Returns the centerX offset of the current layout or `null` if not defined
|
290
290
|
*/
|
291
291
|
layoutCenterX: function(key, value) {
|
292
292
|
return this._layoutProperty('centerX', value);
|
293
293
|
}.property('layout').cacheable(),
|
294
294
|
|
295
295
|
/**
|
296
|
-
Returns the width offset of the current layout or null if not defined
|
296
|
+
Returns the width offset of the current layout or `null` if not defined
|
297
297
|
*/
|
298
298
|
layoutWidth: function(key, value) {
|
299
299
|
return this._layoutProperty('width', value);
|
@@ -311,8 +311,8 @@ SC.ViewDesigner = SC.Object.extend(
|
|
311
311
|
|
312
312
|
/**
|
313
313
|
Encodes any simple properties that can just be copied from the view onto
|
314
|
-
the coder. This is used by encodeDesignProperties() and
|
315
|
-
encodeLocalizedProperties()
|
314
|
+
the coder. This is used by `encodeDesignProperties()` and
|
315
|
+
`encodeLocalizedProperties()`.
|
316
316
|
*/
|
317
317
|
encodeSimpleProperties: function(props, coder) {
|
318
318
|
var view = this.get('view'), proto = this.get('viewClass').prototype ;
|
@@ -336,7 +336,7 @@ SC.ViewDesigner = SC.Object.extend(
|
|
336
336
|
Array of properties that can be encoded directly. This is an easy way to
|
337
337
|
add support for simple properties that need to be written to the design
|
338
338
|
without added code. These properties will be encoded by
|
339
|
-
encodeDesignProperties()
|
339
|
+
`encodeDesignProperties()`.
|
340
340
|
|
341
341
|
You can add to this array in your subclasses.
|
342
342
|
*/
|
@@ -380,8 +380,8 @@ SC.ViewDesigner = SC.Object.extend(
|
|
380
380
|
|
381
381
|
/**
|
382
382
|
Invoked by a design coder to encode design properties. The default
|
383
|
-
implementation invoked encodeDesignProperties() and
|
384
|
-
encodeChildViewsDesign()
|
383
|
+
implementation invoked `encodeDesignProperties()` and
|
384
|
+
`encodeChildViewsDesign()`. You can override this method with your own
|
385
385
|
additional encoding if you like.
|
386
386
|
*/
|
387
387
|
encodeDesign: function(coder) {
|
@@ -434,7 +434,7 @@ SC.ViewDesigner = SC.Object.extend(
|
|
434
434
|
Array of localized that can be encoded directly. This is an easy way to
|
435
435
|
add support for simple properties that need to be written to the
|
436
436
|
localization without added code. These properties will be encoded by
|
437
|
-
encodeLocalizedProperties()
|
437
|
+
`encodeLocalizedProperties()`.
|
438
438
|
|
439
439
|
You can add to this array in your subclasses.
|
440
440
|
*/
|
@@ -442,8 +442,8 @@ SC.ViewDesigner = SC.Object.extend(
|
|
442
442
|
|
443
443
|
/**
|
444
444
|
Invoked by a localization coder to encode design properties. The default
|
445
|
-
implementation invoked encodeLocalizedProperties() and
|
446
|
-
encodeChildViewsLoc()
|
445
|
+
implementation invoked `encodeLocalizedProperties()` and
|
446
|
+
`encodeChildViewsLoc()`. You can override this method with your own
|
447
447
|
additional encoding if you like.
|
448
448
|
*/
|
449
449
|
encodeLoc: function(coder) {
|
@@ -535,7 +535,7 @@ SC.ViewDesigner = SC.Object.extend(
|
|
535
535
|
},
|
536
536
|
|
537
537
|
/**
|
538
|
-
The unknownProperty handler will pass through to the view by default.
|
538
|
+
The `unknownProperty` handler will pass through to the view by default.
|
539
539
|
This will often provide you the support you need without needing to
|
540
540
|
customize the Designer. Just make sure you don't define a conflicting
|
541
541
|
property name on the designer itself!
|
@@ -638,7 +638,7 @@ SC.ViewDesigner = SC.Object.extend(
|
|
638
638
|
}.property(),
|
639
639
|
|
640
640
|
/**
|
641
|
-
set this property to YES if you want your designer to become Root
|
641
|
+
set this property to `YES` if you want your designer to become Root
|
642
642
|
*/
|
643
643
|
acceptRootDesigner: NO,
|
644
644
|
|
@@ -691,7 +691,7 @@ SC.ViewDesigner = SC.Object.extend(
|
|
691
691
|
HANDLE_MARGIN: 10,
|
692
692
|
|
693
693
|
/**
|
694
|
-
Select on mouseDown
|
694
|
+
Select on `mouseDown`. If `metaKey` or `shiftKey` is pressed, add to
|
695
695
|
selection. Otherwise just save starting info for dragging
|
696
696
|
*/
|
697
697
|
mouseDown: function(evt) {
|
@@ -859,7 +859,7 @@ SC.ViewDesigner = SC.Object.extend(
|
|
859
859
|
},
|
860
860
|
|
861
861
|
/**
|
862
|
-
On mouseUp potentially change selection and cleanup.
|
862
|
+
On `mouseUp` potentially change selection and cleanup.
|
863
863
|
*/
|
864
864
|
mouseUp: function(evt) {
|
865
865
|
if (!this.get('designIsEnabled') || !this.get('parentDesignerIsRoot')) return NO ;
|
@@ -900,7 +900,7 @@ SC.ViewDesigner = SC.Object.extend(
|
|
900
900
|
},
|
901
901
|
|
902
902
|
/**
|
903
|
-
Called by designerController to reposition the view
|
903
|
+
Called by `designerController` to reposition the view
|
904
904
|
*/
|
905
905
|
mouseReposition: function(evt, info) {
|
906
906
|
var layout = SC.copy(this.get('layout'));
|
@@ -1074,7 +1074,7 @@ SC.ViewDesigner = SC.Object.extend(
|
|
1074
1074
|
|
1075
1075
|
/**
|
1076
1076
|
This method is called whenever the drag image is moved. This is
|
1077
|
-
similar to the dragUpdated() method called on drop targets.
|
1077
|
+
similar to the `dragUpdated()` method called on drop targets.
|
1078
1078
|
|
1079
1079
|
@param {SC.Drag} drag The Drag instance managing this drag.
|
1080
1080
|
|