From 7ac3316667bdcf093ff1bf76a58c1a281fb4050e Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Fri, 1 Jul 2011 15:10:07 +0200 Subject: [PATCH] Revert "Merge remote-tracking branch 'origin/master'" This reverts commit c706b9d8b3b295c91d8fb1d6b8b289ce9f37c4e7, reversing changes made to 30fc64e4fbb5383905b4ade47e893121d5611cda. --- assets/images/arrow_B_down.gif | Bin 0 -> 51 bytes assets/images/arrow_B_left.gif | Bin 0 -> 50 bytes assets/images/arrow_B_right.gif | Bin 0 -> 51 bytes assets/images/arrow_B_up.gif | Bin 0 -> 49 bytes assets/images/arrow_D_down.gif | Bin 0 -> 51 bytes assets/images/arrow_D_left.gif | Bin 0 -> 53 bytes assets/images/arrow_D_right.gif | Bin 0 -> 53 bytes assets/images/arrow_D_up.gif | Bin 0 -> 52 bytes assets/images/button_hover.png | Bin 0 -> 937 bytes assets/images/button_inactive.png | Bin 0 -> 937 bytes assets/images/button_normal.png | Bin 0 -> 937 bytes assets/images/close.gif | Bin 69 -> 0 bytes assets/images/delete.gif | Bin 67 -> 0 bytes assets/images/disk.gif | Bin 64 -> 0 bytes assets/images/disks.gif | Bin 67 -> 0 bytes assets/images/icon_info_red.gif | Bin 67 -> 0 bytes assets/images/remove.gif | Bin 54 -> 0 bytes assets/javascripts/cordinc_tooltip.js | 159 ------- assets/javascripts/reporting.js | 432 ++++++++++++++--- assets/javascripts/reporting/controls.js | 171 ------- assets/javascripts/reporting/filters.js | 444 ------------------ assets/javascripts/reporting/group_bys.js | 174 ------- assets/javascripts/reporting/progressbar.js | 49 -- .../reporting/prototype_progress_bar.js | 110 ----- assets/javascripts/reporting/restore_query.js | 104 ---- .../javascripts/select_list_move_optgroup.js | 151 ++++++ assets/stylesheets/help.css | 56 --- assets/stylesheets/reporting.css | 416 ++++++---------- config/locales/de.yml | 15 - config/locales/en.yml | 15 - init.rb | 7 +- lib/report.rb | 48 +- lib/report/chainable.rb | 42 +- lib/report/controller.rb | 334 ------------- lib/report/filter/base.rb | 77 +-- lib/report/filter/multi_choice.rb | 11 - lib/report/group_by/base.rb | 10 +- lib/report/operator.rb | 36 +- lib/report/query_utils.rb | 69 +-- lib/report/result.rb | 29 +- lib/report/sql_statement.rb | 41 +- lib/report/table.rb | 4 +- lib/widget.rb | 59 --- lib/widget/base.rb | 126 ----- lib/widget/controls.rb | 7 - lib/widget/controls/apply.rb | 9 - lib/widget/controls/clear.rb | 9 - lib/widget/controls/delete.rb | 24 - lib/widget/controls/query_name.rb | 32 -- lib/widget/controls/save.rb | 10 - lib/widget/controls/save_as.rb | 51 -- lib/widget/filters.rb | 79 ---- lib/widget/filters/base.rb | 14 - lib/widget/filters/date.rb | 26 - lib/widget/filters/label.rb | 14 - lib/widget/filters/multi_choice.rb | 38 -- lib/widget/filters/multi_values.rb | 60 --- lib/widget/filters/operators.rb | 27 -- lib/widget/filters/remove_button.rb | 11 - lib/widget/filters/text_box.rb | 13 - lib/widget/group_bys.rb | 65 --- lib/widget/help.rb | 57 --- lib/widget/settings.rb | 48 -- lib/widget/settings/fieldset.rb | 24 - lib/widget/table.rb | 107 ----- lib/widget/table/progressbar.rb | 23 - lib/widget/table/report_table.rb | 170 ------- 67 files changed, 715 insertions(+), 3392 deletions(-) create mode 100755 assets/images/arrow_B_down.gif create mode 100755 assets/images/arrow_B_left.gif create mode 100755 assets/images/arrow_B_right.gif create mode 100755 assets/images/arrow_B_up.gif create mode 100755 assets/images/arrow_D_down.gif create mode 100755 assets/images/arrow_D_left.gif create mode 100755 assets/images/arrow_D_right.gif create mode 100755 assets/images/arrow_D_up.gif create mode 100644 assets/images/button_hover.png create mode 100644 assets/images/button_inactive.png create mode 100644 assets/images/button_normal.png delete mode 100755 assets/images/close.gif delete mode 100644 assets/images/delete.gif delete mode 100644 assets/images/disk.gif delete mode 100644 assets/images/disks.gif delete mode 100644 assets/images/icon_info_red.gif delete mode 100644 assets/images/remove.gif delete mode 100644 assets/javascripts/cordinc_tooltip.js delete mode 100644 assets/javascripts/reporting/controls.js delete mode 100644 assets/javascripts/reporting/filters.js delete mode 100644 assets/javascripts/reporting/group_bys.js delete mode 100644 assets/javascripts/reporting/progressbar.js delete mode 100644 assets/javascripts/reporting/prototype_progress_bar.js delete mode 100644 assets/javascripts/reporting/restore_query.js create mode 100644 assets/javascripts/select_list_move_optgroup.js delete mode 100644 assets/stylesheets/help.css delete mode 100644 lib/report/controller.rb delete mode 100644 lib/report/filter/multi_choice.rb delete mode 100644 lib/widget.rb delete mode 100644 lib/widget/base.rb delete mode 100644 lib/widget/controls.rb delete mode 100644 lib/widget/controls/apply.rb delete mode 100644 lib/widget/controls/clear.rb delete mode 100644 lib/widget/controls/delete.rb delete mode 100644 lib/widget/controls/query_name.rb delete mode 100644 lib/widget/controls/save.rb delete mode 100644 lib/widget/controls/save_as.rb delete mode 100644 lib/widget/filters.rb delete mode 100644 lib/widget/filters/base.rb delete mode 100644 lib/widget/filters/date.rb delete mode 100644 lib/widget/filters/label.rb delete mode 100644 lib/widget/filters/multi_choice.rb delete mode 100644 lib/widget/filters/multi_values.rb delete mode 100644 lib/widget/filters/operators.rb delete mode 100644 lib/widget/filters/remove_button.rb delete mode 100644 lib/widget/filters/text_box.rb delete mode 100644 lib/widget/group_bys.rb delete mode 100644 lib/widget/help.rb delete mode 100644 lib/widget/settings.rb delete mode 100644 lib/widget/settings/fieldset.rb delete mode 100644 lib/widget/table.rb delete mode 100644 lib/widget/table/progressbar.rb delete mode 100644 lib/widget/table/report_table.rb diff --git a/assets/images/arrow_B_down.gif b/assets/images/arrow_B_down.gif new file mode 100755 index 0000000000000000000000000000000000000000..09c124bf3764d73c9c50ba8515e59089215869c0 GIT binary patch literal 51 zcmZ?wbhEHbWM^PyXkcWR$-wac|9{1wEQ|~cj0`#qKmd|qVB&JATd*T{XF$b51_o;Y DFw6`T literal 0 HcmV?d00001 diff --git a/assets/images/arrow_B_left.gif b/assets/images/arrow_B_left.gif new file mode 100755 index 0000000000000000000000000000000000000000..acfa6a93814eb8a77fc05eb8b91c6c9f9c9d8963 GIT binary patch literal 50 zcmZ?wbhEHbWMyDyXkcWR$-wac|9{1wEQ|~cj0`#qKmd|qVB+jyoZguAFN%eg!5RP` CBMRC8 literal 0 HcmV?d00001 diff --git a/assets/images/arrow_B_right.gif b/assets/images/arrow_B_right.gif new file mode 100755 index 0000000000000000000000000000000000000000..6312e7bfd574d6d779a926434e060b460d6c647a GIT binary patch literal 51 zcmZ?wbhEHbWMyDyXkcWR$-wac|9{1wEQ|~cj0`#qKmd|qVB%tFN?bYpwm{251_o;Y DEA0!S literal 0 HcmV?d00001 diff --git a/assets/images/arrow_B_up.gif b/assets/images/arrow_B_up.gif new file mode 100755 index 0000000000000000000000000000000000000000..f56e47dac718e660045df9fb303e62290ce0f9c3 GIT binary patch literal 49 zcmZ?wbhEHbWM^PyXkcWR$-wac|9{1wEQ|~cj0`#qKmd|qVB+XW8U}fi7AzZCsS=07?>FXd_r7-ivR!rpO%&eWQ>B*5EyA8aA=>Y3DD0hB|(0{ zz>L7)ptbS~kgxCQ;uunK>&-PsK?Vkn!v=XjzW4MMu57Zgp1rFqNWugPzIc~B_MZ>T YN;gcz-){X{y8sk?p00i_>zopr0J9A`Jpcdz literal 0 HcmV?d00001 diff --git a/assets/images/button_inactive.png b/assets/images/button_inactive.png new file mode 100644 index 0000000000000000000000000000000000000000..a79ea024576ef45f829a413032c595a436565bc9 GIT binary patch literal 937 zcmeAS@N?(olHy`uVBq!ia0vp^TYy-QgBeIVA1aFlQj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS=07?>FXd_r7-ivR!rfA;KIAY&AahQLS*fjQ6i76ARsQWE4B z49o}&4q7X}0Qvf!E{-7;x87WH6l7rFIBbyj<9knE;mRf(>)E@?f+S3!;EQ+3WB>WU ZtaQUf{O#7SwF^MO=jrO_vd$@?2>|>fJU9RV literal 0 HcmV?d00001 diff --git a/assets/images/button_normal.png b/assets/images/button_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..203fba337461af8a28b3cd98ac494a403d9da83d GIT binary patch literal 937 zcmeAS@N?(olHy`uVBq!ia0vp^TYy-QgBeIVA1aFlQj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS=07?>FXd_r7-ivR!rKWo-3AY&AahQLS*fq=;lAwWN~lmz(& z12Y1HgVxF~K)$}Gi(^Q|tvA;k1sNDP4jbhC_}=f4lW-?E+BndAj;?p?*7EDRu^10p~&3`{aT{VPwuwQ8LRB&b}*GlEu}jan$tw I6cGk%03qlRd;kCd diff --git a/assets/images/disks.gif b/assets/images/disks.gif deleted file mode 100644 index df582582cbdc6e0c5e0163bdf0a0fa2f0b1c4d11..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 67 zcmZ?wbhEHb diff --git a/assets/javascripts/cordinc_tooltip.js b/assets/javascripts/cordinc_tooltip.js deleted file mode 100644 index c4c2ee260c..0000000000 --- a/assets/javascripts/cordinc_tooltip.js +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright (c) 2009 Charles Cordingley (www.cordinc.com) - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/* - * cordinc_tooltip.js, v1.0.2 - 27 August 2008 - * For help see www.cordinc.com/projects/tooltips.html - */ -var Tooltip = Class.create({ - initialize: function(target, tooltip) { - var options = Object.extend({ - start_effect: function(element) {}, - end_effect: function(element) {}, - zindex: 1000, - offset: {x:0, y:0}, - hook: {target:'topRight', tip:'bottomLeft'}, - trigger: false, - DOM_location: false, - className: false, - delay: {} - }, arguments[2] || {}); - this.target = $(target); - this.show_at = (options.show_at_id !== undefined) ? $(options.show_at_id) : undefined - this.tooltip = $(tooltip); - this.options = options; - this.event_target = this.options.trigger?$(this.options.trigger):this.target; - - if (this.options.className) { - this.tooltip.addClassName(this.options.className); - } - this.tooltip.hide(); - this.display=false; - - this.mouse_over = this.displayTooltip.bindAsEventListener(this); - this.mouse_out = this.removeTooltip.bindAsEventListener(this); - this.event_target.observe("mouseover", this.mouse_over); - this.event_target.observe("mouseout", this.mouse_out); - }, - - displayTooltip: function(event){ - event.stop(); - - if (this.display) {return;} - if (this.options.delay.start) { - var self = this; - this.timer_id = setTimeout(function(){self.timer_id = false; self.showTooltip(event);}, this.options.delay.start*1000); - } else { - this.showTooltip(event); - } - }, - - showTooltip: function(event) { - var show_at = (this.show_at !== undefined) ? this.show_at : this.target - this.display=true; - position = this.positionTooltip(event); - - this.clone = this.tooltip.cloneNode(true); - parentId = this.options.DOM_location?$(this.options.DOM_location.parentId):show_at.parentNode; - successorId = this.options.DOM_location?$(this.options.DOM_location.successorId):show_at; - parentId.insertBefore(this.clone, successorId); - - this.clone.setStyle({ - position: 'absolute', - top: position.top + "px", - left: position.left + "px", - display: "inline", - zIndex:this.options.zindex, - /* fix for ur dashboard */ - visibility: 'visible', - width: "400px" - }); - - if (this.options.start_effect) { - this.options.start_effect(this.clone); - } - }, - - positionTooltip: function(event) { - target_position = this.target.cumulativeOffset(); - - tooltip_dimensions = this.tooltip.getDimensions(); - target_dimensions = this.target.getDimensions(); - - this.positionModify(target_position, target_dimensions, this.options.hook.target, 1); - this.positionModify(target_position, tooltip_dimensions, this.options.hook.tip, -1); - - target_position.top += this.options.offset.y; - target_position.left += this.options.offset.x; - - return target_position; - }, - - positionModify: function(position, box, corner, neg) { - if (corner == 'topRight') { - position.left += box.width*neg; - } else if (corner == 'topLeft') { - } else if (corner == 'bottomLeft') { - position.top += box.height*neg; - } else if (corner == 'bottomRight') { - position.top += box.height*neg; - position.left += box.width*neg; - } else if (corner == 'topMid') { - position.left += (box.width/2)*neg; - } else if (corner == 'leftMid') { - position.top += (box.height/2)*neg; - } else if (corner == 'bottomMid') { - position.top += box.height*neg; - position.left += (box.width/2)*neg; - } else if (corner == 'rightMid') { - position.top += (box.height/2)*neg; - position.left += box.width*neg; - } - }, - - removeTooltip: function(event) { - if (this.timer_id) { - clearTimeout(this.timer_id); - this.timer_id = false; - return; - } - - if (this.options.end_effect) { - this.options.end_effect(this.clone); - } - - if (this.options.delay.end) { - var self = this; - setTimeout(function(){self.clearTooltip();}, this.options.delay.end*1000); - } else { - this.clearTooltip(); - } - }, - - clearTooltip: function() { - if (this.clone !== undefined && this.clone !== null) { - this.clone.remove(); - this.clone = null; - this.display=false; - } - }, - - destroy: function() { - this.event_target.stopObserving("mouseover", this.mouse_over); - this.event_target.stopObserving("mouseout", this.mouse_out); - this.clearTooltip(); - } -}) \ No newline at end of file diff --git a/assets/javascripts/reporting.js b/assets/javascripts/reporting.js index bb801a37d8..96f93d424a 100644 --- a/assets/javascripts/reporting.js +++ b/assets/javascripts/reporting.js @@ -1,67 +1,373 @@ -/*jslint white: false, nomen: true, devel: true, on: true, debug: false, evil: true, onevar: false, browser: true, white: false, indent: 2 */ -/*global window, $, $$, Reporting */ - -window.Reporting = { - source: ($$("head")[0].select("script[src*='reporting.js']")[0].src), - - require: function (libraryName) { - var jsName = Reporting.source.replace("reporting.js", "reporting/" + libraryName + ".js"); - try { - // inserting via DOM fails in Safari 2.0, so brute force approach - document.write('