vendor/assets/javascripts/rails_qx.js in rails_qx-0.0.4 vs vendor/assets/javascripts/rails_qx.js in rails_qx-0.0.5

- old
+ new

@@ -16657,11 +16657,11 @@ /* Generated by Opal 0.8.1 */ Opal.modules["core/qx_wrap"] = function(Opal) { Opal.dynamic_require_severity = "ignore"; var self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice, $klass = Opal.klass; - Opal.add_stubs(['$require', '$include', '$attr_accessor', '$lib_io_server', '$instance', '$Native', '$ui_style_stylesheet', '$core_object', '$data_array', '$data_controller_list', '$to_n', '$lib_data_list_model', '$lib_ui_grid_grid', '$ui_basic_atom', '$ui_basic_image', '$ui_basic_label', '$ui_container_composite', '$ui_container_stack', '$ui_core_widget', '$ui_embed_html', '$ui_form_button', '$ui_form_form', '$ui_form_list', '$ui_form_list_item', '$ui_form_renderer_double', '$ui_form_renderer_single', '$ui_form_renderer_single_placeholder', '$ui_form_text_area', '$ui_form_text_field', '$ui_layout_basic', '$ui_layout_canvas', '$ui_layout_hbox', '$ui_layout_vbox', '$ui_menu_button', '$ui_menu_menu', '$ui_menubar_button', '$ui_menubar_menubar', '$ui_splitpane_pane', '$ui_tabview_page', '$ui_tabview_tab_button', '$ui_tabview_tab_view', '$ui_tree_file', '$ui_tree_folder', '$ui_tree_virtual_tree', '$ui_window_window']); + Opal.add_stubs(['$require', '$include', '$attr_accessor', '$lib_io_server', '$instance', '$Native', '$ui_style_stylesheet', '$core_object', '$data_array', '$data_controller_list', '$to_n', '$lib_data_list_model', '$lib_ui_grid_grid', '$ui_basic_atom', '$ui_basic_image', '$ui_basic_label', '$ui_container_composite', '$ui_container_scroll', '$ui_container_stack', '$ui_core_widget', '$ui_embed_html', '$ui_form_button', '$ui_form_form', '$ui_form_list', '$ui_form_list_item', '$ui_form_renderer_double', '$ui_form_renderer_single', '$ui_form_renderer_single_placeholder', '$ui_form_text_area', '$ui_form_text_field', '$ui_layout_basic', '$ui_layout_canvas', '$ui_layout_hbox', '$ui_layout_vbox', '$ui_menu_button', '$ui_menu_menu', '$ui_menubar_button', '$ui_menubar_menubar', '$ui_splitpane_pane', '$ui_tabview_page', '$ui_tabview_tab_button', '$ui_tabview_tab_view', '$ui_tree_file', '$ui_tree_folder', '$ui_tree_virtual_tree', '$ui_window_window']); self.$require("native"); self.$require("singleton"); self.$require("core/util"); return (function($base, $super) { function $QxWrap(){}; @@ -16691,10 +16691,12 @@ self.$attr_accessor("ui_basic_label"); self.$attr_accessor("ui_container_composite"); + self.$attr_accessor("ui_container_scroll"); + self.$attr_accessor("ui_container_stack"); self.$attr_accessor("ui_core_widget"); self.$attr_accessor("ui_embed_html"); @@ -16850,10 +16852,17 @@ ui_container_composite = self.$instance().$ui_container_composite(); return self.$Native(new ui_container_composite()); }); + Opal.defs(self, '$new_ui_container_scroll', function() { + var self = this, ui_container_scroll = nil; + + ui_container_scroll = self.$instance().$ui_container_scroll(); + return self.$Native(new ui_container_scroll()); + }); + Opal.defs(self, '$new_ui_container_stack', function() { var self = this, ui_container_stack = nil; ui_container_stack = self.$instance().$ui_container_stack(); return self.$Native(new ui_container_stack()); @@ -17059,10 +17068,11 @@ self.lib_ui_grid_grid = self.$Native(qx_lib.ui.grid.Grid); self.ui_basic_atom = self.$Native(qx.ui.basic.Atom); self.ui_basic_image = self.$Native(qx.ui.basic.Image); self.ui_basic_label = self.$Native(qx.ui.basic.Label); self.ui_container_composite = self.$Native(qx.ui.container.Composite); + self.ui_container_scroll = self.$Native(qx.ui.container.Scroll); self.ui_container_stack = self.$Native(qx.ui.container.Stack); self.ui_core_widget = self.$Native(qx.ui.core.Widget); self.ui_embed_html = self.$Native(qx.ui.embed.Html); self.ui_form_button = self.$Native(qx.ui.form.Button); self.ui_form_form = self.$Native(qx.ui.form.Form); @@ -19927,10 +19937,38 @@ return $scope.get('NAV_PANEL_WIDTH'); }, nil) && 'initial_width'; })(self, $scope.get('Container')); }; /* Generated by Opal 0.8.1 */ +Opal.modules["qx/ui/scroll"] = function(Opal) { + Opal.dynamic_require_severity = "ignore"; + var self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice, $klass = Opal.klass; + + Opal.add_stubs(['$require', '$new_ui_container_scroll']); + self.$require("core/qx_wrap"); + self.$require("qx/ui/component"); + return (function($base, $super) { + function $Scroll(){}; + var self = $Scroll = $klass($base, $super, 'Scroll', $Scroll); + + var def = self.$$proto, $scope = self.$$scope, TMP_1; + + def.$initialize = TMP_1 = function(aComponent) { + var self = this, $iter = TMP_1.$$p, $yield = $iter || nil; + + TMP_1.$$p = null; + return Opal.find_super_dispatcher(self, 'initialize', TMP_1, null).apply(self, []); + }; + + return (def.$initial_widget = function() { + var self = this; + + return $scope.get('QxWrap').$new_ui_container_scroll(); + }, nil) && 'initial_widget'; + })(self, $scope.get('Component')); +}; +/* Generated by Opal 0.8.1 */ Opal.modules["qx/ui/stack_container"] = function(Opal) { Opal.dynamic_require_severity = "ignore"; var self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice, $klass = Opal.klass, $hash2 = Opal.hash2; Opal.add_stubs(['$require', '$attr_reader', '$[]=', '$content_map', '$to_sym', '$add', '$new_ui_container_stack', '$[]', '$nil?', '$setSelection', '$as_qx']); @@ -32689,13 +32727,13 @@ Opal.modules["views/workspace"] = function(Opal) { Opal.dynamic_require_severity = "ignore"; function $rb_plus(lhs, rhs) { return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs + rhs : lhs['$+'](rhs); } - var self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice, $klass = Opal.klass; + var self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice, $klass = Opal.klass, $range = Opal.range, $hash2 = Opal.hash2; - Opal.add_stubs(['$require', '$include', '$%', '$new']); + Opal.add_stubs(['$require', '$include', '$each', '$new', '$add', '$widget', '$setScrollBar']); self.$require("core/styles"); self.$require("qx/ui/container"); self.$require("views/windows/message_window"); self.$require("singleton"); return (function($base, $super) { @@ -32705,15 +32743,21 @@ var def = self.$$proto, $scope = self.$$scope; self.$include($scope.get('Singleton')); def.$add_items = function() { - var self = this, msg = nil, wrap = nil; + var $a, $b, TMP_1, self = this, text = nil, html = nil, scroll = nil, win = nil; - msg = "<h3>Placeholder</h3>"; - msg = $rb_plus(msg, "<p>This application is only used to generate the rails_qx JavaScript assets</p>"); - wrap = "<div style=\"text-align:center\">%s</div>"['$%'](msg); - return $scope.get('MessageWindow').$new(wrap); + text = ""; + ($a = ($b = ($range(1, 100, false))).$each, $a.$$p = (TMP_1 = function(i){var self = TMP_1.$$s || this; +if (i == null) i = nil; + return text = $rb_plus(text, "<p>Number " + (i) + "</p>")}, TMP_1.$$s = self, TMP_1), $a).call($b); + html = $scope.get('Html').$new(text); + scroll = $scope.get('Scroll').$new(html); + scroll.$widget().$add(html.$widget()); + scroll.$widget().$setScrollBar("visible", "visible"); + win = $scope.get('Window').$new(); + return win.$add(scroll, $hash2(["flex"], {"flex": 1})); }; return (def.$initial_background_color = function() { var self = this;