jiji 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +58 -0
- data/README +1 -0
- data/base/agents/moving_average_agent.rb +78 -0
- data/base/shared_lib/moving_average.rb +35 -0
- data/base/shared_lib/system/cross.rb +76 -0
- data/base/shared_lib/system/position_manager.rb +160 -0
- data/base/shared_lib/system/signal.rb +347 -0
- data/bin/jiji +5 -0
- data/html/css/calendar.css +432 -0
- data/html/css/datatable.css +299 -0
- data/html/css/default.css +627 -0
- data/html/css/dialog.css +77 -0
- data/html/css/treeview.css +205 -0
- data/html/img/auto_trade_off.gif +0 -0
- data/html/img/auto_trade_on.gif +0 -0
- data/html/img/back_bottom.gif +0 -0
- data/html/img/back_middle.gif +0 -0
- data/html/img/back_top.gif +0 -0
- data/html/img/bin_closed.png +0 -0
- data/html/img/bin_empty.png +0 -0
- data/html/img/bt-create-title-1.gif +0 -0
- data/html/img/bt-create-title-2.gif +0 -0
- data/html/img/bt-create-title-3.gif +0 -0
- data/html/img/button_add.gif +0 -0
- data/html/img/button_add_gray.gif +0 -0
- data/html/img/button_add_over.gif +0 -0
- data/html/img/button_add_small.gif +0 -0
- data/html/img/button_add_small_gray.gif +0 -0
- data/html/img/button_add_small_over.gif +0 -0
- data/html/img/button_apply.gif +0 -0
- data/html/img/button_apply_gray.gif +0 -0
- data/html/img/button_apply_over.gif +0 -0
- data/html/img/button_calendar.gif +0 -0
- data/html/img/button_calendar_over.gif +0 -0
- data/html/img/button_cancel.gif +0 -0
- data/html/img/button_cancel.jpg +0 -0
- data/html/img/button_cancel_gray.gif +0 -0
- data/html/img/button_cancel_over.gif +0 -0
- data/html/img/button_cancel_over.jpg +0 -0
- data/html/img/button_close.gif +0 -0
- data/html/img/button_close_gray.gif +0 -0
- data/html/img/button_close_over.gif +0 -0
- data/html/img/button_mkcol.gif +0 -0
- data/html/img/button_mkcol_gray.gif +0 -0
- data/html/img/button_mkcol_over.gif +0 -0
- data/html/img/button_no.gif +0 -0
- data/html/img/button_no_gray.gif +0 -0
- data/html/img/button_no_over.gif +0 -0
- data/html/img/button_ok.gif +0 -0
- data/html/img/button_ok_gray.gif +0 -0
- data/html/img/button_ok_over.gif +0 -0
- data/html/img/button_remove.gif +0 -0
- data/html/img/button_remove_gray.gif +0 -0
- data/html/img/button_remove_over.gif +0 -0
- data/html/img/button_remove_small.gif +0 -0
- data/html/img/button_remove_small_gray.gif +0 -0
- data/html/img/button_remove_small_over.gif +0 -0
- data/html/img/button_rename.gif +0 -0
- data/html/img/button_rename_gray.gif +0 -0
- data/html/img/button_rename_over.gif +0 -0
- data/html/img/button_save.gif +0 -0
- data/html/img/button_save_gray.gif +0 -0
- data/html/img/button_save_over.gif +0 -0
- data/html/img/button_start.gif +0 -0
- data/html/img/button_start_over.gif +0 -0
- data/html/img/button_update.gif +0 -0
- data/html/img/button_update_gray.gif +0 -0
- data/html/img/button_update_over.gif +0 -0
- data/html/img/button_update_s.gif +0 -0
- data/html/img/button_update_s_gray.gif +0 -0
- data/html/img/button_update_s_over.gif +0 -0
- data/html/img/button_yes.gif +0 -0
- data/html/img/button_yes_gray.gif +0 -0
- data/html/img/button_yes_over.gif +0 -0
- data/html/img/circle.gif +0 -0
- data/html/img/control_play.png +0 -0
- data/html/img/control_play_blue.png +0 -0
- data/html/img/delta.gif +0 -0
- data/html/img/dialog_info.jpg +0 -0
- data/html/img/dialog_input.jpg +0 -0
- data/html/img/dialog_warn.jpg +0 -0
- data/html/img/dt-arrow-dn.png +0 -0
- data/html/img/dt-arrow-up.png +0 -0
- data/html/img/folder.png +0 -0
- data/html/img/folder_brick.png +0 -0
- data/html/img/folder_user.png +0 -0
- data/html/img/foot.jpg +0 -0
- data/html/img/goto.gif +0 -0
- data/html/img/goto_o.gif +0 -0
- data/html/img/h3_bt-create_0.gif +0 -0
- data/html/img/h3_bt-create_1.gif +0 -0
- data/html/img/h3_bt-create_2.gif +0 -0
- data/html/img/h3_result_0.gif +0 -0
- data/html/img/h3_result_1.gif +0 -0
- data/html/img/h3_result_2.gif +0 -0
- data/html/img/h3_result_3.gif +0 -0
- data/html/img/h3_result_4.gif +0 -0
- data/html/img/h3_result_5.gif +0 -0
- data/html/img/h3_result_6.gif +0 -0
- data/html/img/h3_rt-setting_0.gif +0 -0
- data/html/img/h3_rt-setting_1.gif +0 -0
- data/html/img/head.jpg +0 -0
- data/html/img/line-numbers.png +0 -0
- data/html/img/line_white.gif +0 -0
- data/html/img/loading.gif +0 -0
- data/html/img/page_white_ruby.png +0 -0
- data/html/img/panel_100_bottom.gif +0 -0
- data/html/img/panel_100_middle.gif +0 -0
- data/html/img/panel_100_top.gif +0 -0
- data/html/img/panel_140_650_b.gif +0 -0
- data/html/img/panel_140_650_m.gif +0 -0
- data/html/img/panel_140_650_t.gif +0 -0
- data/html/img/panel_140_660_b.gif +0 -0
- data/html/img/panel_140_660_m.gif +0 -0
- data/html/img/panel_140_660_t.gif +0 -0
- data/html/img/panel_140_b.gif +0 -0
- data/html/img/panel_140_m.gif +0 -0
- data/html/img/panel_140_t.gif +0 -0
- data/html/img/panel_260_b.gif +0 -0
- data/html/img/panel_260_m.gif +0 -0
- data/html/img/panel_260_t.gif +0 -0
- data/html/img/panel_300_b.gif +0 -0
- data/html/img/panel_300_m.gif +0 -0
- data/html/img/panel_300_t.gif +0 -0
- data/html/img/panel_320_b.gif +0 -0
- data/html/img/panel_320_m.gif +0 -0
- data/html/img/panel_320_t.gif +0 -0
- data/html/img/panel_360_b.gif +0 -0
- data/html/img/panel_360_m.gif +0 -0
- data/html/img/panel_360_t.gif +0 -0
- data/html/img/panel_380_b.gif +0 -0
- data/html/img/panel_380_m.gif +0 -0
- data/html/img/panel_380_t.gif +0 -0
- data/html/img/panel_500_b.gif +0 -0
- data/html/img/panel_500_m.gif +0 -0
- data/html/img/panel_500_t.gif +0 -0
- data/html/img/panel_620_b.gif +0 -0
- data/html/img/panel_620_m.gif +0 -0
- data/html/img/panel_620_t.gif +0 -0
- data/html/img/panel_780_b.gif +0 -0
- data/html/img/panel_780_m.gif +0 -0
- data/html/img/panel_780_t.gif +0 -0
- data/html/img/problem.gif +0 -0
- data/html/img/progressbar.gif +0 -0
- data/html/img/result-title-1-1.gif +0 -0
- data/html/img/result-title-1-2.gif +0 -0
- data/html/img/result-title-2-1.gif +0 -0
- data/html/img/result-title-2-2.gif +0 -0
- data/html/img/result-title-3-1.gif +0 -0
- data/html/img/result-title-4-1.gif +0 -0
- data/html/img/rt-setting-title-1.gif +0 -0
- data/html/img/rt-setting-title-2.gif +0 -0
- data/html/img/s.gif +0 -0
- data/html/img/scroll.gif +0 -0
- data/html/img/separator.gif +0 -0
- data/html/img/sidebar_agent.png +0 -0
- data/html/img/sidebar_agent_edit.png +0 -0
- data/html/img/sidebar_agent_edit_agent.png +0 -0
- data/html/img/sidebar_agent_edit_agent_over.png +0 -0
- data/html/img/sidebar_agent_edit_agent_s.png +0 -0
- data/html/img/sidebar_agent_edit_over.png +0 -0
- data/html/img/sidebar_agent_edit_s.png +0 -0
- data/html/img/sidebar_agent_edit_shared_lib.png +0 -0
- data/html/img/sidebar_agent_edit_shared_lib_over.png +0 -0
- data/html/img/sidebar_agent_edit_shared_lib_s.png +0 -0
- data/html/img/sidebar_back.gif +0 -0
- data/html/img/sidebar_bt.png +0 -0
- data/html/img/sidebar_bt_create.png +0 -0
- data/html/img/sidebar_bt_create_over.png +0 -0
- data/html/img/sidebar_bt_create_s.png +0 -0
- data/html/img/sidebar_bt_result.png +0 -0
- data/html/img/sidebar_bt_result_over.png +0 -0
- data/html/img/sidebar_bt_result_s.png +0 -0
- data/html/img/sidebar_result_rmt.png +0 -0
- data/html/img/sidebar_result_rmt_over.png +0 -0
- data/html/img/sidebar_result_rmt_s.png +0 -0
- data/html/img/sidebar_rt.png +0 -0
- data/html/img/sidebar_rt_setting.png +0 -0
- data/html/img/sidebar_rt_setting_over.png +0 -0
- data/html/img/sidebar_rt_setting_s.png +0 -0
- data/html/img/sprite.png +0 -0
- data/html/img/submenu_agents.png +0 -0
- data/html/img/submenu_agents_over.png +0 -0
- data/html/img/submenu_agents_s.png +0 -0
- data/html/img/submenu_graph.png +0 -0
- data/html/img/submenu_graph_over.png +0 -0
- data/html/img/submenu_graph_s.png +0 -0
- data/html/img/submenu_info.png +0 -0
- data/html/img/submenu_info_over.png +0 -0
- data/html/img/submenu_info_s.png +0 -0
- data/html/img/submenu_log.png +0 -0
- data/html/img/submenu_log_over.png +0 -0
- data/html/img/submenu_log_s.png +0 -0
- data/html/img/submenu_operation.png +0 -0
- data/html/img/submenu_operation_over.png +0 -0
- data/html/img/submenu_operation_s.png +0 -0
- data/html/img/submenu_trade.png +0 -0
- data/html/img/submenu_trade_over.png +0 -0
- data/html/img/submenu_trade_s.png +0 -0
- data/html/img/td_over.gif +0 -0
- data/html/img/td_over_d.gif +0 -0
- data/html/img/td_selected.gif +0 -0
- data/html/img/thead.gif +0 -0
- data/html/img/transparent.gif +0 -0
- data/html/img/yui/treeview-sprite.gif +0 -0
- data/html/index.html +492 -0
- data/html/js/agent-editor/agent-editor-page.js +324 -0
- data/html/js/agent-editor/agent-editor.js +363 -0
- data/html/js/agent-editor/agent-list-tree.js +251 -0
- data/html/js/agent-selector.js +666 -0
- data/html/js/app.js +198 -0
- data/html/js/bt-create-page.js +205 -0
- data/html/js/container-min.js +1 -0
- data/html/js/container-utils.js +78 -0
- data/html/js/container.js +944 -0
- data/html/js/dialog.js +279 -0
- data/html/js/edit_area/autocompletion.js +491 -0
- data/html/js/edit_area/edit_area.css +546 -0
- data/html/js/edit_area/edit_area.js +539 -0
- data/html/js/edit_area/edit_area_compressor.php +408 -0
- data/html/js/edit_area/edit_area_full.gz +0 -0
- data/html/js/edit_area/edit_area_full.js +38 -0
- data/html/js/edit_area/edit_area_full_with_plugins.gz +0 -0
- data/html/js/edit_area/edit_area_full_with_plugins.js +39 -0
- data/html/js/edit_area/edit_area_functions.js +1205 -0
- data/html/js/edit_area/edit_area_loader.js +1082 -0
- data/html/js/edit_area/elements_functions.js +334 -0
- data/html/js/edit_area/highlight.js +391 -0
- data/html/js/edit_area/images/autocompletion.gif +0 -0
- data/html/js/edit_area/images/close.gif +0 -0
- data/html/js/edit_area/images/fullscreen.gif +0 -0
- data/html/js/edit_area/images/go_to_line.gif +0 -0
- data/html/js/edit_area/images/goto.png +0 -0
- data/html/js/edit_area/images/help.gif +0 -0
- data/html/js/edit_area/images/help.png +0 -0
- data/html/js/edit_area/images/highlight.gif +0 -0
- data/html/js/edit_area/images/load.gif +0 -0
- data/html/js/edit_area/images/move.gif +0 -0
- data/html/js/edit_area/images/newdocument.gif +0 -0
- data/html/js/edit_area/images/opacity.png +0 -0
- data/html/js/edit_area/images/processing.gif +0 -0
- data/html/js/edit_area/images/redo.gif +0 -0
- data/html/js/edit_area/images/redo.png +0 -0
- data/html/js/edit_area/images/reset_highlight.gif +0 -0
- data/html/js/edit_area/images/save.gif +0 -0
- data/html/js/edit_area/images/save.png +0 -0
- data/html/js/edit_area/images/search.gif +0 -0
- data/html/js/edit_area/images/search.png +0 -0
- data/html/js/edit_area/images/smooth_selection.gif +0 -0
- data/html/js/edit_area/images/spacer.gif +0 -0
- data/html/js/edit_area/images/statusbar_resize.gif +0 -0
- data/html/js/edit_area/images/undo.gif +0 -0
- data/html/js/edit_area/images/undo.png +0 -0
- data/html/js/edit_area/images/word_wrap.gif +0 -0
- data/html/js/edit_area/keyboard.js +145 -0
- data/html/js/edit_area/langs/bg.js +73 -0
- data/html/js/edit_area/langs/cs.js +67 -0
- data/html/js/edit_area/langs/de.js +67 -0
- data/html/js/edit_area/langs/dk.js +67 -0
- data/html/js/edit_area/langs/en.js +67 -0
- data/html/js/edit_area/langs/eo.js +67 -0
- data/html/js/edit_area/langs/es.js +64 -0
- data/html/js/edit_area/langs/fi.js +67 -0
- data/html/js/edit_area/langs/fr.js +67 -0
- data/html/js/edit_area/langs/hr.js +67 -0
- data/html/js/edit_area/langs/it.js +67 -0
- data/html/js/edit_area/langs/ja.js +67 -0
- data/html/js/edit_area/langs/mk.js +67 -0
- data/html/js/edit_area/langs/nl.js +67 -0
- data/html/js/edit_area/langs/pl.js +67 -0
- data/html/js/edit_area/langs/pt.js +67 -0
- data/html/js/edit_area/langs/ru.js +67 -0
- data/html/js/edit_area/langs/sk.js +67 -0
- data/html/js/edit_area/langs/zh.js +67 -0
- data/html/js/edit_area/license_apache.txt +7 -0
- data/html/js/edit_area/license_bsd.txt +10 -0
- data/html/js/edit_area/license_lgpl.txt +458 -0
- data/html/js/edit_area/manage_area.js +623 -0
- data/html/js/edit_area/plugins/charmap/charmap.js +90 -0
- data/html/js/edit_area/plugins/charmap/css/charmap.css +64 -0
- data/html/js/edit_area/plugins/charmap/images/charmap.gif +0 -0
- data/html/js/edit_area/plugins/charmap/jscripts/map.js +373 -0
- data/html/js/edit_area/plugins/charmap/langs/bg.js +12 -0
- data/html/js/edit_area/plugins/charmap/langs/cs.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/de.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/dk.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/en.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/eo.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/es.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/fr.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/hr.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/it.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/ja.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/mk.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/nl.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/pl.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/pt.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/ru.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/sk.js +6 -0
- data/html/js/edit_area/plugins/charmap/langs/zh.js +6 -0
- data/html/js/edit_area/plugins/charmap/popup.html +24 -0
- data/html/js/edit_area/plugins/test/css/test.css +3 -0
- data/html/js/edit_area/plugins/test/images/Thumbs.db +0 -0
- data/html/js/edit_area/plugins/test/images/test.gif +0 -0
- data/html/js/edit_area/plugins/test/langs/bg.js +10 -0
- data/html/js/edit_area/plugins/test/langs/cs.js +4 -0
- data/html/js/edit_area/plugins/test/langs/de.js +4 -0
- data/html/js/edit_area/plugins/test/langs/dk.js +4 -0
- data/html/js/edit_area/plugins/test/langs/en.js +4 -0
- data/html/js/edit_area/plugins/test/langs/eo.js +4 -0
- data/html/js/edit_area/plugins/test/langs/es.js +4 -0
- data/html/js/edit_area/plugins/test/langs/fr.js +4 -0
- data/html/js/edit_area/plugins/test/langs/hr.js +4 -0
- data/html/js/edit_area/plugins/test/langs/it.js +4 -0
- data/html/js/edit_area/plugins/test/langs/ja.js +4 -0
- data/html/js/edit_area/plugins/test/langs/mk.js +4 -0
- data/html/js/edit_area/plugins/test/langs/nl.js +4 -0
- data/html/js/edit_area/plugins/test/langs/pl.js +4 -0
- data/html/js/edit_area/plugins/test/langs/pt.js +4 -0
- data/html/js/edit_area/plugins/test/langs/ru.js +4 -0
- data/html/js/edit_area/plugins/test/langs/sk.js +4 -0
- data/html/js/edit_area/plugins/test/langs/zh.js +4 -0
- data/html/js/edit_area/plugins/test/test.js +110 -0
- data/html/js/edit_area/plugins/test/test2.js +1 -0
- data/html/js/edit_area/reg_syntax/basic.js +69 -0
- data/html/js/edit_area/reg_syntax/brainfuck.js +44 -0
- data/html/js/edit_area/reg_syntax/c.js +62 -0
- data/html/js/edit_area/reg_syntax/coldfusion.js +119 -0
- data/html/js/edit_area/reg_syntax/cpp.js +65 -0
- data/html/js/edit_area/reg_syntax/css.js +84 -0
- data/html/js/edit_area/reg_syntax/html.js +50 -0
- data/html/js/edit_area/reg_syntax/java.js +56 -0
- data/html/js/edit_area/reg_syntax/js.js +93 -0
- data/html/js/edit_area/reg_syntax/pas.js +82 -0
- data/html/js/edit_area/reg_syntax/perl.js +88 -0
- data/html/js/edit_area/reg_syntax/php.js +156 -0
- data/html/js/edit_area/reg_syntax/python.js +144 -0
- data/html/js/edit_area/reg_syntax/robotstxt.js +24 -0
- data/html/js/edit_area/reg_syntax/ruby.js +67 -0
- data/html/js/edit_area/reg_syntax/sql.js +55 -0
- data/html/js/edit_area/reg_syntax/tsql.js +87 -0
- data/html/js/edit_area/reg_syntax/vb.js +52 -0
- data/html/js/edit_area/reg_syntax/xml.js +56 -0
- data/html/js/edit_area/reg_syntax.js +166 -0
- data/html/js/edit_area/regexp.js +139 -0
- data/html/js/edit_area/resize_area.js +78 -0
- data/html/js/edit_area/search_replace.js +174 -0
- data/html/js/edit_area/template.html +101 -0
- data/html/js/json-broker-client.js +67 -0
- data/html/js/page-manager.js +93 -0
- data/html/js/prototype.js +4184 -0
- data/html/js/result-page.js +775 -0
- data/html/js/rt-setting-page.js +152 -0
- data/html/js/sidebar.js +263 -0
- data/html/js/templates.js +386 -0
- data/html/js/utils.js +890 -0
- data/html/js/uuid.js +103 -0
- data/html/js/yui/treeview.js +3671 -0
- data/html/swf/chart.swf +0 -0
- data/html/test/agent_editor_spec.js +815 -0
- data/html/test/index.html +40 -0
- data/html/test/jsspec/JSSpec.css +224 -0
- data/html/test/jsspec/JSSpec.js +1549 -0
- data/html/test/jsspec/diff_match_patch.js +1 -0
- data/html/test/utils_spec.js +111 -0
- data/lib/jiji/agent/agent.rb +149 -0
- data/lib/jiji/agent/agent_manager.rb +138 -0
- data/lib/jiji/agent/agent_registry.rb +165 -0
- data/lib/jiji/agent/permitter.rb +128 -0
- data/lib/jiji/agent/util.rb +16 -0
- data/lib/jiji/collector.rb +226 -0
- data/lib/jiji/command.rb +204 -0
- data/lib/jiji/configuration.rb +86 -0
- data/lib/jiji/dao/file_system_dao.rb +158 -0
- data/lib/jiji/dao/rate_dao.rb +149 -0
- data/lib/jiji/dao/timed_data_dao.rb +336 -0
- data/lib/jiji/dao/trade_result_dao.rb +128 -0
- data/lib/jiji/error.rb +49 -0
- data/lib/jiji/migration/migrator.rb +50 -0
- data/lib/jiji/migration/migrator1_0_3.rb +26 -0
- data/lib/jiji/migration/migrator1_1_0.rb +46 -0
- data/lib/jiji/migration/migrator1_2_0.rb +67 -0
- data/lib/jiji/models.rb +223 -0
- data/lib/jiji/observer.rb +105 -0
- data/lib/jiji/operator.rb +396 -0
- data/lib/jiji/output.rb +221 -0
- data/lib/jiji/output_manager.rb +84 -0
- data/lib/jiji/plugin/embedded/click_securities_demo_plugin.rb +141 -0
- data/lib/jiji/plugin/embedded/single_click_client.rb +116 -0
- data/lib/jiji/plugin/plugin_loader.rb +53 -0
- data/lib/jiji/plugin/securities_plugin.rb +134 -0
- data/lib/jiji/process.rb +234 -0
- data/lib/jiji/process_manager.rb +290 -0
- data/lib/jiji/registry.rb +349 -0
- data/lib/jiji/server.rb +127 -0
- data/lib/jiji/service/agent_service.rb +230 -0
- data/lib/jiji/service/hello_service.rb +10 -0
- data/lib/jiji/service/output_service.rb +82 -0
- data/lib/jiji/service/process_service.rb +76 -0
- data/lib/jiji/service/rate_service.rb +38 -0
- data/lib/jiji/service/system_service.rb +14 -0
- data/lib/jiji/service/trade_result_service.rb +31 -0
- data/lib/jiji/util/backtester.rb +116 -0
- data/lib/jiji/util/block_to_session.rb +70 -0
- data/lib/jiji/util/cache.rb +79 -0
- data/lib/jiji/util/csv_append_support.rb +15 -0
- data/lib/jiji/util/file_lock.rb +86 -0
- data/lib/jiji/util/fix_yaml_bug.rb +11 -0
- data/lib/jiji/util/include_proxy.rb +17 -0
- data/lib/jiji/util/iterator.rb +70 -0
- data/lib/jiji/util/json_broker.rb +55 -0
- data/lib/jiji/util/json_rpc_requestor.rb +30 -0
- data/lib/jiji/util/rate_data_importer.rb +219 -0
- data/lib/jiji/util/synchronize_interceptor.rb +41 -0
- data/lib/jiji/util/thread_use_generator.rb +52 -0
- data/lib/jiji/util/util.rb +112 -0
- data/lib/jiji_plugin.rb +6 -0
- data/swf/build.xml +23 -0
- data/swf/chart/FxChart-config.xml +9 -0
- data/swf/chart/FxChart.mxml +17 -0
- data/swf/chart/fx/chart/Chart.as +173 -0
- data/swf/chart/fx/chart/ctrl/AutoUpdate.as +96 -0
- data/swf/chart/fx/chart/ctrl/Controller.as +270 -0
- data/swf/chart/fx/chart/ctrl/Event.as +75 -0
- data/swf/chart/fx/chart/model/Model.as +228 -0
- data/swf/chart/fx/chart/model/TimedData.as +40 -0
- data/swf/chart/fx/chart/ui/AbstractChartUI.as +59 -0
- data/swf/chart/fx/chart/ui/AbstractDrawChartUI.as +63 -0
- data/swf/chart/fx/chart/ui/Constants.as +233 -0
- data/swf/chart/fx/chart/ui/InformationWindow.as +228 -0
- data/swf/chart/fx/chart/ui/LayerManager.as +95 -0
- data/swf/chart/fx/chart/ui/Loading.as +32 -0
- data/swf/chart/fx/chart/ui/Pointer.as +61 -0
- data/swf/chart/fx/chart/ui/RangeInfoWindow.as +84 -0
- data/swf/chart/fx/chart/ui/RenderingContext.as +54 -0
- data/swf/chart/fx/chart/ui/ScaleSelector.as +84 -0
- data/swf/chart/fx/chart/ui/Scroll.as +241 -0
- data/swf/chart/fx/chart/ui/ScrollBar.as +378 -0
- data/swf/chart/fx/chart/ui/Stage.as +97 -0
- data/swf/chart/fx/chart/ui/TradeDetailWindow.as +147 -0
- data/swf/chart/fx/chart/ui/TradeResult.as +330 -0
- data/swf/chart/fx/chart/ui/Window.as +96 -0
- data/swf/chart/fx/chart/ui/candle/Axis.as +112 -0
- data/swf/chart/fx/chart/ui/candle/Candle.as +79 -0
- data/swf/chart/fx/chart/ui/candle/CandleChart.as +81 -0
- data/swf/chart/fx/chart/ui/graph/Graph.as +200 -0
- data/swf/chart/fx/chart/ui/graph/GraphManager.as +192 -0
- data/swf/chart/fx/chart/ui/resource/buy.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/cursor_hand.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/diff_label.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/down.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/down_buy.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/down_buy_1.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/down_buy_2.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/down_buy_3.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/down_sell.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/down_sell_1.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/down_sell_2.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/down_sell_3.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/draw_buy.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/draw_sell.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/end_label.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/fixed.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/loading.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/max_label.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/min_label.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_bar.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_bar_a.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_bar_handle.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_bar_handle_a.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_bar_handle_o.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_bar_left.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_bar_left_a.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_bar_left_o.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_bar_o.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_bar_right.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_bar_right_a.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_bar_right_o.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_handle.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_info_handle.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_left_button.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_left_button_d.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_left_button_down.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_left_button_g.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_left_button_o.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_left_button_up.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_outer.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_outer_left.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_outer_right.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_right_button.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_right_button_d.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_right_button_down.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_right_button_g.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_right_button_o.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_right_button_up.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_slider_left.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/scroll_slider_right.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/sell.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/start_label.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/stripe.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/stripe_b.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/stripe_r.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/unfixed.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/up.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/up_buy.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/up_buy_1.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/up_buy_2.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/up_buy_3.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/up_sell.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/up_sell_1.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/up_sell_2.gif +0 -0
- data/swf/chart/fx/chart/ui/resource/up_sell_3.gif +0 -0
- data/swf/chart/fx/net/StubFactory.as +113 -0
- data/swf/chart/fx/util/ListenerSupport.as +55 -0
- data/swf/chart/fx/util/PositionManager.as +95 -0
- data/swf/chart/fx/util/ScaleFormatter.as +156 -0
- data/swf/chart/fx/util/Util.as +61 -0
- data/swf/chart/log.as +40 -0
- data/swf/lib/corelib.swc +0 -0
- data/test/BackCollectorTest/basic/2008-08-04/AUDJPY.csv +5 -0
- data/test/BackCollectorTest/basic/2008-08-04/USDJPY.csv +5 -0
- data/test/BackCollectorTest/basic/2008-08-04/ZARJPY.csv +5 -0
- data/test/BackCollectorTest/basic/2008-08-05/AUDJPY.csv +5 -0
- data/test/BackCollectorTest/basic/2008-08-05/USDJPY.csv +5 -0
- data/test/BackCollectorTest/basic/2008-08-05/ZARJPY.csv +5 -0
- data/test/BackCollectorTest/basic/2008-08-06/AUDJPY.csv +5 -0
- data/test/BackCollectorTest/basic/2008-08-06/USDJPY.csv +5 -0
- data/test/BackCollectorTest/basic/2008-08-06/ZARJPY.csv +5 -0
- data/test/BackCollectorTest/basic/2008-08-07/AUDJPY.csv +5 -0
- data/test/BackCollectorTest/basic/2008-08-07/USDJPY.csv +5 -0
- data/test/BackCollectorTest/basic/2008-08-07/ZARJPY.csv +5 -0
- data/test/BackCollectorTest/basic/AUDJPY/raw/2008-08-04.csv +5 -0
- data/test/BackCollectorTest/basic/AUDJPY/raw/2008-08-05.csv +5 -0
- data/test/BackCollectorTest/basic/AUDJPY/raw/2008-08-06.csv +5 -0
- data/test/BackCollectorTest/basic/AUDJPY/raw/2008-08-07.csv +5 -0
- data/test/BackCollectorTest/basic/USDJPY/raw/2008-08-04.csv +5 -0
- data/test/BackCollectorTest/basic/USDJPY/raw/2008-08-05.csv +5 -0
- data/test/BackCollectorTest/basic/USDJPY/raw/2008-08-06.csv +5 -0
- data/test/BackCollectorTest/basic/USDJPY/raw/2008-08-07.csv +5 -0
- data/test/BackCollectorTest/basic/ZARJPY/raw/2008-08-04.csv +5 -0
- data/test/BackCollectorTest/basic/ZARJPY/raw/2008-08-05.csv +5 -0
- data/test/BackCollectorTest/basic/ZARJPY/raw/2008-08-06.csv +5 -0
- data/test/BackCollectorTest/basic/ZARJPY/raw/2008-08-07.csv +5 -0
- data/test/BackCollectorTest/lack/2008-08-04/AUDJPY.csv +5 -0
- data/test/BackCollectorTest/lack/2008-08-04/USDJPY.csv +5 -0
- data/test/BackCollectorTest/lack/2008-08-04/ZARJPY.csv +5 -0
- data/test/BackCollectorTest/lack/2008-08-06/AUDJPY.csv +5 -0
- data/test/BackCollectorTest/lack/2008-08-06/USDJPY.csv +5 -0
- data/test/BackCollectorTest/lack/2008-08-06/ZARJPY.csv +5 -0
- data/test/BackCollectorTest/lack/2008-08-07/AUDJPY.csv +5 -0
- data/test/BackCollectorTest/lack/2008-08-07/USDJPY.csv +5 -0
- data/test/BackCollectorTest/lack/2008-08-07/ZARJPY.csv +5 -0
- data/test/BackCollectorTest/lack/AUDJPY/raw/2008-08-04.csv +5 -0
- data/test/BackCollectorTest/lack/AUDJPY/raw/2008-08-06.csv +5 -0
- data/test/BackCollectorTest/lack/AUDJPY/raw/2008-08-07.csv +5 -0
- data/test/BackCollectorTest/lack/USDJPY/raw/2008-08-04.csv +5 -0
- data/test/BackCollectorTest/lack/USDJPY/raw/2008-08-06.csv +5 -0
- data/test/BackCollectorTest/lack/USDJPY/raw/2008-08-07.csv +5 -0
- data/test/BackCollectorTest/lack/ZARJPY/raw/2008-08-04.csv +5 -0
- data/test/BackCollectorTest/lack/ZARJPY/raw/2008-08-06.csv +5 -0
- data/test/BackCollectorTest/lack/ZARJPY/raw/2008-08-07.csv +5 -0
- data/test/OutputregistryTest/conf/configuration.yaml +3 -0
- data/test/ProcessManagerTest/agents/moving_average.rb +95 -0
- data/test/ProcessManagerTest/conf/configuration.yaml +6 -0
- data/test/ProcessManagerTest/rate_datas/EURJPY/raw/2008-08-21.csv +5853 -0
- data/test/ProcessManagerTest/rate_datas/EURJPY/raw/2008-08-22.csv +5821 -0
- data/test/ProcessManagerTest/rate_datas/EURJPY/raw/2008-08-23.csv +5921 -0
- data/test/ProcessManagerTest/rate_datas/EURJPY/raw/2008-08-24.csv +5956 -0
- data/test/ProcessManagerTest/rate_datas/EURJPY/raw/2008-08-25.csv +5796 -0
- data/test/ProcessManagerTest/rate_datas/USDJPY/raw/2008-08-21.csv +5853 -0
- data/test/ProcessManagerTest/rate_datas/USDJPY/raw/2008-08-22.csv +5821 -0
- data/test/ProcessManagerTest/rate_datas/USDJPY/raw/2008-08-23.csv +5921 -0
- data/test/ProcessManagerTest/rate_datas/USDJPY/raw/2008-08-24.csv +5956 -0
- data/test/ProcessManagerTest/rate_datas/USDJPY/raw/2008-08-25.csv +5796 -0
- data/test/ProcessTest/agents/foo.rb +10 -0
- data/test/ProcessTest/conf/configuration.yaml +3 -0
- data/test/agent/agent_tests.rb +10 -0
- data/test/agent/test_AgentManager.rb +321 -0
- data/test/agent/test_AgentRegistry.rb +662 -0
- data/test/agent/test_PeriodicallyAgent.rb +180 -0
- data/test/agent/test_Permitter.rb +217 -0
- data/test/all_tests.rb +24 -0
- data/test/dao/dao_tests.rb +9 -0
- data/test/dao/test_FileSystemDao.rb +431 -0
- data/test/dao/test_RateDao.rb +695 -0
- data/test/dao/test_TradeResultDao.rb +487 -0
- data/test/jiji_plugin.rb +7 -0
- data/test/migration/migration_tests.rb +10 -0
- data/test/migration/migrator1_0_3test_data/rmt/out/M2NlOTA2ODEtZDdlNi00NWU1LWIwNDQtMjBmODY2ZGNkNzBj/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
- data/test/migration/migrator1_0_3test_data/rmt/out/NjM5YWFhZmQtNDFjNy00NjUxLWIwYmItNTc3ZjAyZTg5ODA5/56e75YuV5bmz5Z2H57ea/meta.yaml +12 -0
- data/test/migration/migrator1_0_3test_data/rmt/out/NjM5YWFhZmQtNDFjNy00NjUxLWIwYmItNTc3ZjAyZTg5ODA5/56e75Yuasdwqdd/meta.yaml +12 -0
- data/test/migration/migrator1_1_0test_data/configuration.yaml +11 -0
- data/test/migration/migrator1_2_0test_data/basic/out/M2NlOTA2ODEtZDdlNi00NWU1LWIwNDQtMjBmODY2ZGNkNzBj/56e75YuV5bmz5Z2H57ea/1d/2009-04.csv +8 -0
- data/test/migration/migrator1_2_0test_data/basic/out/M2NlOTA2ODEtZDdlNi00NWU1LWIwNDQtMjBmODY2ZGNkNzBj/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
- data/test/migration/migrator1_2_0test_data/basic/out/MDVhYzcxMjYtMGFlMS00Mzk0LWEyNmUtYjVjZjgwNDA0ZmE2/56e75YuV5bmz5Z2H57ea/1d/2009-07.csv +1 -0
- data/test/migration/migrator1_2_0test_data/basic/out/MDVhYzcxMjYtMGFlMS00Mzk0LWEyNmUtYjVjZjgwNDA0ZmE2/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
- data/test/migration/migrator1_2_0test_data/basic/out/MzA1YTk0NDgtNzhjNi00NDk3LTk2NTktYzE1ZjBhNzdiYjNj/56e75YuV5bmz5Z2H57ea/1d/2009-07.csv +1 -0
- data/test/migration/migrator1_2_0test_data/basic/out/MzA1YTk0NDgtNzhjNi00NDk3LTk2NTktYzE1ZjBhNzdiYjNj/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
- data/test/migration/migrator1_2_0test_data/basic/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/1d/2009-04.csv +10 -0
- data/test/migration/migrator1_2_0test_data/basic/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/1d/2009-05.csv +20 -0
- data/test/migration/migrator1_2_0test_data/basic/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/1d/2009-06.csv +20 -0
- data/test/migration/migrator1_2_0test_data/basic/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/1d/2009-07.csv +18 -0
- data/test/migration/migrator1_2_0test_data/basic/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/meta.yaml +9 -0
- data/test/migration/migrator1_2_0test_data/basic/props.yaml +85 -0
- data/test/migration/migrator1_2_0test_data/illegal_props/out/M2NlOTA2ODEtZDdlNi00NWU1LWIwNDQtMjBmODY2ZGNkNzBj/56e75YuV5bmz5Z2H57ea/1d/2009-04.csv +8 -0
- data/test/migration/migrator1_2_0test_data/illegal_props/out/M2NlOTA2ODEtZDdlNi00NWU1LWIwNDQtMjBmODY2ZGNkNzBj/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
- data/test/migration/migrator1_2_0test_data/illegal_props/out/MDVhYzcxMjYtMGFlMS00Mzk0LWEyNmUtYjVjZjgwNDA0ZmE2/56e75YuV5bmz5Z2H57ea/1d/2009-07.csv +1 -0
- data/test/migration/migrator1_2_0test_data/illegal_props/out/MDVhYzcxMjYtMGFlMS00Mzk0LWEyNmUtYjVjZjgwNDA0ZmE2/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
- data/test/migration/migrator1_2_0test_data/illegal_props/out/MzA1YTk0NDgtNzhjNi00NDk3LTk2NTktYzE1ZjBhNzdiYjNj/56e75YuV5bmz5Z2H57ea/1d/2009-07.csv +1 -0
- data/test/migration/migrator1_2_0test_data/illegal_props/out/MzA1YTk0NDgtNzhjNi00NDk3LTk2NTktYzE1ZjBhNzdiYjNj/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
- data/test/migration/migrator1_2_0test_data/illegal_props/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/1d/2009-04.csv +10 -0
- data/test/migration/migrator1_2_0test_data/illegal_props/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/1d/2009-05.csv +20 -0
- data/test/migration/migrator1_2_0test_data/illegal_props/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/1d/2009-06.csv +20 -0
- data/test/migration/migrator1_2_0test_data/illegal_props/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/1d/2009-07.csv +18 -0
- data/test/migration/migrator1_2_0test_data/illegal_props/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/meta.yaml +9 -0
- data/test/migration/migrator1_2_0test_data/illegal_props/props.yaml +1 -0
- data/test/migration/migrator1_2_0test_data/no_outs/props.yaml +85 -0
- data/test/migration/migrator1_2_0test_data/no_props/out/M2NlOTA2ODEtZDdlNi00NWU1LWIwNDQtMjBmODY2ZGNkNzBj/56e75YuV5bmz5Z2H57ea/1d/2009-04.csv +8 -0
- data/test/migration/migrator1_2_0test_data/no_props/out/M2NlOTA2ODEtZDdlNi00NWU1LWIwNDQtMjBmODY2ZGNkNzBj/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
- data/test/migration/migrator1_2_0test_data/no_props/out/MDVhYzcxMjYtMGFlMS00Mzk0LWEyNmUtYjVjZjgwNDA0ZmE2/56e75YuV5bmz5Z2H57ea/1d/2009-07.csv +1 -0
- data/test/migration/migrator1_2_0test_data/no_props/out/MDVhYzcxMjYtMGFlMS00Mzk0LWEyNmUtYjVjZjgwNDA0ZmE2/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
- data/test/migration/migrator1_2_0test_data/no_props/out/MzA1YTk0NDgtNzhjNi00NDk3LTk2NTktYzE1ZjBhNzdiYjNj/56e75YuV5bmz5Z2H57ea/1d/2009-07.csv +1 -0
- data/test/migration/migrator1_2_0test_data/no_props/out/MzA1YTk0NDgtNzhjNi00NDk3LTk2NTktYzE1ZjBhNzdiYjNj/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
- data/test/migration/migrator1_2_0test_data/no_props/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/1d/2009-04.csv +10 -0
- data/test/migration/migrator1_2_0test_data/no_props/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/1d/2009-05.csv +20 -0
- data/test/migration/migrator1_2_0test_data/no_props/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/1d/2009-06.csv +20 -0
- data/test/migration/migrator1_2_0test_data/no_props/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/1d/2009-07.csv +18 -0
- data/test/migration/migrator1_2_0test_data/no_props/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/meta.yaml +9 -0
- data/test/migration/test_Migrator.rb +117 -0
- data/test/migration/test_Migrator1_0_3.rb +118 -0
- data/test/migration/test_Migrator1_1_0.rb +56 -0
- data/test/migration/test_Migrator1_2_0.rb +94 -0
- data/test/plugin/embedded/test_SingleClickClient.rb +144 -0
- data/test/plugin/error_test/jiji_plugin.rb +2 -0
- data/test/plugin/plugin_tests.rb +8 -0
- data/test/plugin/test/foo_plugin.rb +1 -0
- data/test/plugin/test/jiji_plugin.rb +2 -0
- data/test/plugin/test_Loader.rb +33 -0
- data/test/plugin/test_gem/a/jiji_plugin_test_gem_a-1.0.0.gem +0 -0
- data/test/plugin/test_gem/a/jiji_plugin_test_gem_a.gemspec +10 -0
- data/test/plugin/test_gem/a/lib/jiji_plugin.rb +2 -0
- data/test/plugin/test_gem/a/lib/jiji_plugin_test.rb +6 -0
- data/test/plugin/test_gem/b/jiji_plugin_test_gem_b-1.0.0.gem +0 -0
- data/test/plugin/test_gem/b/jiji_plugin_test_gem_b.gemspec +9 -0
- data/test/plugin/test_gem/b/lib/jiji_plugin.rb +2 -0
- data/test/service/all_service_tests.rb +10 -0
- data/test/service/test_AgentService.rb +185 -0
- data/test/service/test_OutputService.rb +33 -0
- data/test/service/test_RateService.rb +56 -0
- data/test/shared/rate.csv +144 -0
- data/test/shared/shared_tests.rb +9 -0
- data/test/shared/test_Cross.rb +144 -0
- data/test/shared/test_PositionManager.rb +285 -0
- data/test/shared/test_Signal.rb +65 -0
- data/test/test_BackTestCollector.rb +273 -0
- data/test/test_Collector.rb +230 -0
- data/test/test_Configuration.rb +61 -0
- data/test/test_Configuration_a.yaml +6 -0
- data/test/test_Operator.rb +501 -0
- data/test/test_Output.rb +175 -0
- data/test/test_OutputManager.rb +162 -0
- data/test/test_Output_registry.rb +42 -0
- data/test/test_Process.rb +557 -0
- data/test/test_ProcessManager.rb +723 -0
- data/test/test_utils.rb +112 -0
- data/test/util/test_BlockToSession.rb +121 -0
- data/test/util/test_CSV.rb +84 -0
- data/test/util/test_SynchronizeInterceptor.rb +76 -0
- data/test/util/util_tests.rb +9 -0
- metadata +941 -0
@@ -0,0 +1,391 @@
|
|
1
|
+
// change_to: "on" or "off"
|
2
|
+
EditArea.prototype.change_highlight= function(change_to){
|
3
|
+
if(this.settings["syntax"].length==0 && change_to==false){
|
4
|
+
this.switchClassSticky(_$("highlight"), 'editAreaButtonDisabled', true);
|
5
|
+
this.switchClassSticky(_$("reset_highlight"), 'editAreaButtonDisabled', true);
|
6
|
+
return false;
|
7
|
+
}
|
8
|
+
|
9
|
+
if(this.do_highlight==change_to)
|
10
|
+
return false;
|
11
|
+
|
12
|
+
|
13
|
+
this.getIESelection();
|
14
|
+
var pos_start= this.textarea.selectionStart;
|
15
|
+
var pos_end= this.textarea.selectionEnd;
|
16
|
+
|
17
|
+
if(this.do_highlight===true || change_to==false)
|
18
|
+
this.disable_highlight();
|
19
|
+
else
|
20
|
+
this.enable_highlight();
|
21
|
+
this.textarea.focus();
|
22
|
+
this.textarea.selectionStart = pos_start;
|
23
|
+
this.textarea.selectionEnd = pos_end;
|
24
|
+
this.setIESelection();
|
25
|
+
|
26
|
+
};
|
27
|
+
|
28
|
+
EditArea.prototype.disable_highlight= function(displayOnly){
|
29
|
+
var t= this, a=t.textarea, new_Obj, old_class, new_class;
|
30
|
+
|
31
|
+
t.selection_field.innerHTML="";
|
32
|
+
t.selection_field_text.innerHTML="";
|
33
|
+
t.content_highlight.style.visibility="hidden";
|
34
|
+
// replacing the node is far more faster than deleting it's content in firefox
|
35
|
+
new_Obj= t.content_highlight.cloneNode(false);
|
36
|
+
new_Obj.innerHTML= "";
|
37
|
+
t.content_highlight.parentNode.insertBefore(new_Obj, t.content_highlight);
|
38
|
+
t.content_highlight.parentNode.removeChild(t.content_highlight);
|
39
|
+
t.content_highlight= new_Obj;
|
40
|
+
old_class= parent.getAttribute( a,"class" );
|
41
|
+
if(old_class){
|
42
|
+
new_class= old_class.replace( "hidden","" );
|
43
|
+
parent.setAttribute( a, "class", new_class );
|
44
|
+
}
|
45
|
+
|
46
|
+
a.style.backgroundColor="transparent"; // needed in order to see the bracket finders
|
47
|
+
|
48
|
+
//var icon= document.getElementById("highlight");
|
49
|
+
//setAttribute(icon, "class", getAttribute(icon, "class").replace(/ selected/g, "") );
|
50
|
+
//t.restoreClass(icon);
|
51
|
+
//t.switchClass(icon,'editAreaButtonNormal');
|
52
|
+
t.switchClassSticky(_$("highlight"), 'editAreaButtonNormal', true);
|
53
|
+
t.switchClassSticky(_$("reset_highlight"), 'editAreaButtonDisabled', true);
|
54
|
+
|
55
|
+
t.do_highlight=false;
|
56
|
+
|
57
|
+
t.switchClassSticky(_$("change_smooth_selection"), 'editAreaButtonSelected', true);
|
58
|
+
if(typeof(t.smooth_selection_before_highlight)!="undefined" && t.smooth_selection_before_highlight===false){
|
59
|
+
t.change_smooth_selection_mode(false);
|
60
|
+
}
|
61
|
+
|
62
|
+
// this.textarea.style.backgroundColor="#FFFFFF";
|
63
|
+
};
|
64
|
+
|
65
|
+
EditArea.prototype.enable_highlight= function(){
|
66
|
+
var t=this, a=t.textarea, new_class;
|
67
|
+
t.show_waiting_screen();
|
68
|
+
|
69
|
+
t.content_highlight.style.visibility="visible";
|
70
|
+
new_class =parent.getAttribute(a,"class")+" hidden";
|
71
|
+
parent.setAttribute( a, "class", new_class );
|
72
|
+
|
73
|
+
// IE can't manage mouse click outside text range without this
|
74
|
+
if( t.isIE )
|
75
|
+
a.style.backgroundColor="#FFFFFF";
|
76
|
+
|
77
|
+
t.switchClassSticky(_$("highlight"), 'editAreaButtonSelected', false);
|
78
|
+
t.switchClassSticky(_$("reset_highlight"), 'editAreaButtonNormal', false);
|
79
|
+
|
80
|
+
t.smooth_selection_before_highlight=t.smooth_selection;
|
81
|
+
if(!t.smooth_selection)
|
82
|
+
t.change_smooth_selection_mode(true);
|
83
|
+
t.switchClassSticky(_$("change_smooth_selection"), 'editAreaButtonDisabled', true);
|
84
|
+
|
85
|
+
|
86
|
+
t.do_highlight=true;
|
87
|
+
t.resync_highlight();
|
88
|
+
|
89
|
+
t.hide_waiting_screen();
|
90
|
+
};
|
91
|
+
|
92
|
+
/**
|
93
|
+
* Ask to update highlighted text
|
94
|
+
* @param Array infos - Array of datas returned by EditArea.get_selection_infos()
|
95
|
+
*/
|
96
|
+
EditArea.prototype.maj_highlight= function(infos){
|
97
|
+
// for speed mesure
|
98
|
+
var debug_opti="",tps_start= new Date().getTime(), tps_middle_opti=new Date().getTime();
|
99
|
+
var t=this, hightlighted_text, updated_highlight;
|
100
|
+
var textToHighlight=infos["full_text"], doSyntaxOpti = false, doHtmlOpti = false, stay_begin="", stay_end="", trace_new , trace_last;
|
101
|
+
|
102
|
+
if(t.last_text_to_highlight==infos["full_text"] && t.resync_highlight!==true)
|
103
|
+
return;
|
104
|
+
|
105
|
+
// OPTIMISATION: will search to update only changed lines
|
106
|
+
if(t.reload_highlight===true){
|
107
|
+
t.reload_highlight=false;
|
108
|
+
}else if(textToHighlight.length==0){
|
109
|
+
textToHighlight="\n ";
|
110
|
+
}else{
|
111
|
+
// get text change datas
|
112
|
+
changes = t.checkTextEvolution(t.last_text_to_highlight,textToHighlight);
|
113
|
+
|
114
|
+
// check if it can only reparse the changed text
|
115
|
+
trace_new = t.get_syntax_trace(changes.newTextLine).replace(/\r/g, '');
|
116
|
+
trace_last = t.get_syntax_trace(changes.lastTextLine).replace(/\r/g, '');
|
117
|
+
doSyntaxOpti = ( trace_new == trace_last );
|
118
|
+
|
119
|
+
// check if the difference comes only from a new line created
|
120
|
+
// => we have to remember that the editor can automaticaly add tabulation or space after the new line)
|
121
|
+
if( !doSyntaxOpti && trace_new == "\n"+trace_last && /^[ \t\s]*\n[ \t\s]*$/.test( changes.newText.replace(/\r/g, '') ) && changes.lastText =="" )
|
122
|
+
{
|
123
|
+
doSyntaxOpti = true;
|
124
|
+
}
|
125
|
+
|
126
|
+
// we do the syntax optimisation
|
127
|
+
if( doSyntaxOpti ){
|
128
|
+
|
129
|
+
tps_middle_opti=new Date().getTime();
|
130
|
+
|
131
|
+
stay_begin= t.last_hightlighted_text.split("\n").slice(0, changes.lineStart).join("\n");
|
132
|
+
if(changes.lineStart>0)
|
133
|
+
stay_begin+= "\n";
|
134
|
+
stay_end= t.last_hightlighted_text.split("\n").slice(changes.lineLastEnd+1).join("\n");
|
135
|
+
if(stay_end.length>0)
|
136
|
+
stay_end= "\n"+stay_end;
|
137
|
+
|
138
|
+
// Final check to see that we're not in the middle of span tags
|
139
|
+
if( stay_begin.split('<span').length != stay_begin.split('</span').length
|
140
|
+
|| stay_end.split('<span').length != stay_end.split('</span').length )
|
141
|
+
{
|
142
|
+
doSyntaxOpti = false;
|
143
|
+
stay_end = '';
|
144
|
+
stay_begin = '';
|
145
|
+
}
|
146
|
+
else
|
147
|
+
{
|
148
|
+
if(stay_begin.length==0 && changes.posLastEnd==-1)
|
149
|
+
changes.newTextLine+="\n";
|
150
|
+
textToHighlight=changes.newTextLine;
|
151
|
+
}
|
152
|
+
}
|
153
|
+
if(t.settings["debug"]){
|
154
|
+
var ch =changes;
|
155
|
+
debug_opti= ( doSyntaxOpti?"Optimisation": "No optimisation" )
|
156
|
+
+" start: "+ch.posStart +"("+ch.lineStart+")"
|
157
|
+
+" end_new: "+ ch.posNewEnd+"("+ch.lineNewEnd+")"
|
158
|
+
+" end_last: "+ ch.posLastEnd+"("+ch.lineLastEnd+")"
|
159
|
+
+"\nchanged_text: "+ch.newText+" => trace: "+trace_new
|
160
|
+
+"\nchanged_last_text: "+ch.lastText+" => trace: "+trace_last
|
161
|
+
//debug_opti+= "\nchanged: "+ infos["full_text"].substring(ch.posStart, ch.posNewEnd);
|
162
|
+
+ "\nchanged_line: "+ch.newTextLine
|
163
|
+
+ "\nlast_changed_line: "+ch.lastTextLine
|
164
|
+
+"\nstay_begin: "+ stay_begin.slice(-100)
|
165
|
+
+"\nstay_end: "+ stay_end.substr( 0, 100 );
|
166
|
+
//debug_opti="start: "+stay_begin_len+ "("+nb_line_start_unchanged+") end: "+ (stay_end_len)+ "("+(splited.length-nb_line_end_unchanged)+") ";
|
167
|
+
//debug_opti+="changed: "+ textToHighlight.substring(stay_begin_len, textToHighlight.length-stay_end_len)+" \n";
|
168
|
+
|
169
|
+
//debug_opti+="changed: "+ stay_begin.substr(stay_begin.length-200)+ "----------"+ textToHighlight+"------------------"+ stay_end.substr(0,200) +"\n";
|
170
|
+
+"\n";
|
171
|
+
}
|
172
|
+
|
173
|
+
|
174
|
+
// END OPTIMISATION
|
175
|
+
}
|
176
|
+
|
177
|
+
tps_end_opti = new Date().getTime();
|
178
|
+
|
179
|
+
// apply highlight
|
180
|
+
updated_highlight = t.colorize_text(textToHighlight);
|
181
|
+
tpsAfterReg = new Date().getTime();
|
182
|
+
|
183
|
+
/***
|
184
|
+
* see if we can optimize for updating only the required part of the HTML code
|
185
|
+
*
|
186
|
+
* The goal here will be to find the text node concerned by the modification and to update it
|
187
|
+
*/
|
188
|
+
//-------------------------------------------
|
189
|
+
//
|
190
|
+
if( doSyntaxOpti )
|
191
|
+
{
|
192
|
+
try
|
193
|
+
{
|
194
|
+
var replacedBloc, i, nbStart = '', nbEnd = '', newHtml, lengthOld, lengthNew;
|
195
|
+
replacedBloc = t.last_hightlighted_text.substring( stay_begin.length, t.last_hightlighted_text.length - stay_end.length );
|
196
|
+
|
197
|
+
lengthOld = replacedBloc.length;
|
198
|
+
lengthNew = updated_highlight.length;
|
199
|
+
|
200
|
+
// find the identical caracters at the beginning
|
201
|
+
for( i=0; i < lengthOld && i < lengthNew && replacedBloc.charAt(i) == updated_highlight.charAt(i) ; i++ )
|
202
|
+
{
|
203
|
+
}
|
204
|
+
nbStart = i;
|
205
|
+
// find the identical caracters at the end
|
206
|
+
for( i=0; i + nbStart < lengthOld && i + nbStart < lengthNew && replacedBloc.charAt(lengthOld-i-1) == updated_highlight.charAt(lengthNew-i-1) ; i++ )
|
207
|
+
{
|
208
|
+
}
|
209
|
+
nbEnd = i;
|
210
|
+
|
211
|
+
// get the changes
|
212
|
+
lastHtml = replacedBloc.substring( nbStart, lengthOld - nbEnd );
|
213
|
+
newHtml = updated_highlight.substring( nbStart, lengthNew - nbEnd );
|
214
|
+
|
215
|
+
|
216
|
+
// We can do the optimisation only if we havn't touch to span elements
|
217
|
+
if( newHtml.indexOf('<span') == -1 && newHtml.indexOf('</span') == -1
|
218
|
+
&& lastHtml.indexOf('<span') == -1 && lastHtml.indexOf('</span') == -1 )
|
219
|
+
{
|
220
|
+
var beginStr, nbOpendedSpan, nbClosedSpan, nbUnchangedChars, span, textNode;
|
221
|
+
doHtmlOpti = true;
|
222
|
+
beginStr = t.last_hightlighted_text.substr( 0, stay_begin.length + nbStart );
|
223
|
+
|
224
|
+
nbOpendedSpan = beginStr.split('<span').length - 1;
|
225
|
+
nbClosedSpan = beginStr.split('</span').length - 1;
|
226
|
+
// retrieve the previously opened span (Add 1 for the first level span?)
|
227
|
+
span = t.content_highlight.getElementsByTagName('span')[ nbOpendedSpan ];
|
228
|
+
|
229
|
+
//--------[
|
230
|
+
// get the textNode to update
|
231
|
+
|
232
|
+
// if we're inside a span, we'll take the one that is opened (can be a parent of the current span)
|
233
|
+
parentSpan = span;
|
234
|
+
maxStartOffset = maxEndOffset = 0;
|
235
|
+
|
236
|
+
// it will be in the child of the root node
|
237
|
+
if( nbOpendedSpan == nbClosedSpan )
|
238
|
+
{
|
239
|
+
while( parentSpan.parentNode != t.content_highlight && parentSpan.parentNode.tagName != 'PRE' )
|
240
|
+
{
|
241
|
+
parentSpan = parentSpan.parentNode;
|
242
|
+
}
|
243
|
+
}
|
244
|
+
// get the last opened span
|
245
|
+
else
|
246
|
+
{
|
247
|
+
maxStartOffset = maxEndOffset = beginStr.length + 1;
|
248
|
+
// move to parent node for each closed span found after the lastest open span
|
249
|
+
nbClosed = beginStr.substr( Math.max( 0, beginStr.lastIndexOf( '<span', maxStartOffset - 1 ) ) ).split('</span').length - 1;
|
250
|
+
while( nbClosed > 0 )
|
251
|
+
{
|
252
|
+
nbClosed--;
|
253
|
+
parentSpan = parentSpan.parentNode;
|
254
|
+
}
|
255
|
+
|
256
|
+
// find the position of the last opended tag
|
257
|
+
while( parentSpan.parentNode != t.content_highlight && parentSpan.parentNode.tagName != 'PRE' && ( tmpMaxStartOffset = Math.max( 0, beginStr.lastIndexOf( '<span', maxStartOffset - 1 ) ) ) < ( tmpMaxEndOffset = Math.max( 0, beginStr.lastIndexOf( '</span', maxEndOffset - 1 ) ) ) )
|
258
|
+
{
|
259
|
+
maxStartOffset = tmpMaxStartOffset;
|
260
|
+
maxEndOffset = tmpMaxEndOffset;
|
261
|
+
}
|
262
|
+
}
|
263
|
+
// Note: maxEndOffset is no more used but maxStartOffset will be used
|
264
|
+
|
265
|
+
if( parentSpan.parentNode == t.content_highlight || parentSpan.parentNode.tagName == 'PRE' )
|
266
|
+
{
|
267
|
+
maxStartOffset = Math.max( 0, beginStr.indexOf( '<span' ) );
|
268
|
+
}
|
269
|
+
|
270
|
+
// find the matching text node (this will be one that will be at the end of the beginStr
|
271
|
+
if( maxStartOffset == beginStr.length )
|
272
|
+
{
|
273
|
+
nbSubSpanBefore = 0;
|
274
|
+
}
|
275
|
+
else
|
276
|
+
{
|
277
|
+
lastEndPos = Math.max( 0, beginStr.lastIndexOf( '>', maxStartOffset ) );
|
278
|
+
|
279
|
+
// count the number of sub spans
|
280
|
+
nbSubSpanBefore = beginStr.substr( lastEndPos ).split('<span').length-1;
|
281
|
+
}
|
282
|
+
|
283
|
+
// there is no sub-span before
|
284
|
+
if( nbSubSpanBefore == 0 )
|
285
|
+
{
|
286
|
+
textNode = parentSpan.firstChild;
|
287
|
+
}
|
288
|
+
// we need to find where is the text node modified
|
289
|
+
else
|
290
|
+
{
|
291
|
+
// take the last direct child (no sub-child)
|
292
|
+
lastSubSpan = parentSpan.getElementsByTagName('span')[ nbSubSpanBefore - 1 ];
|
293
|
+
while( lastSubSpan.parentNode != parentSpan )
|
294
|
+
{
|
295
|
+
lastSubSpan = lastSubSpan.parentNode;
|
296
|
+
}
|
297
|
+
|
298
|
+
// associate to next text node following the last sub span
|
299
|
+
if( lastSubSpan.nextSibling == null || lastSubSpan.nextSibling.nodeType != 3 )
|
300
|
+
{
|
301
|
+
textNode = document.createTextNode('');
|
302
|
+
lastSubSpan.parentNode.insertBefore( textNode, lastSubSpan.nextSibling );
|
303
|
+
}
|
304
|
+
else
|
305
|
+
{
|
306
|
+
textNode = lastSubSpan.nextSibling;
|
307
|
+
}
|
308
|
+
}
|
309
|
+
//--------]
|
310
|
+
|
311
|
+
|
312
|
+
//--------[
|
313
|
+
// update the textNode content
|
314
|
+
|
315
|
+
// number of caracters after the last opened of closed span
|
316
|
+
nbUnchangedChars = beginStr.length - Math.max( 0, beginStr.lastIndexOf( '>' ) + 1 );
|
317
|
+
|
318
|
+
// console.log( span, textNode, nbOpendedSpan,nbClosedSpan, span.nextSibling, textNode.length, nbUnchangedChars, lastHtml, lastHtml.length, newHtml, newHtml.length );
|
319
|
+
// alert( textNode.parentNode.className +'-'+ textNode.parentNode.tagName+"\n"+ textNode.data +"\n"+ nbUnchangedChars +"\n"+ lastHtml.length +"\n"+ newHtml +"\n"+ newHtml.length );
|
320
|
+
|
321
|
+
// IE only manage \r for cariage return in textNode and not \n or \r\n
|
322
|
+
if( t.isIE )
|
323
|
+
{
|
324
|
+
nbUnchangedChars -= ( beginStr.substr( beginStr.length - nbUnchangedChars ).split("\n").length - 1 );
|
325
|
+
//alert( textNode.data.replace(/\r/g, '_r').replace(/\n/g, '_n'));
|
326
|
+
textNode.replaceData( nbUnchangedChars, lastHtml.replace(/\n/g, '').length, newHtml.replace(/\n/g, '') );
|
327
|
+
}
|
328
|
+
else
|
329
|
+
{
|
330
|
+
textNode.replaceData( nbUnchangedChars, lastHtml.length, newHtml );
|
331
|
+
}
|
332
|
+
//--------]
|
333
|
+
}
|
334
|
+
}
|
335
|
+
// an exception shouldn't occured but if replaceData failed at least it won't break everything
|
336
|
+
catch( e )
|
337
|
+
{
|
338
|
+
// throw e;
|
339
|
+
// console.log( e );
|
340
|
+
doHtmlOpti = false;
|
341
|
+
}
|
342
|
+
|
343
|
+
}
|
344
|
+
/*** END HTML update's optimisation ***/
|
345
|
+
// end test
|
346
|
+
|
347
|
+
// console.log( (TPS6-TPS5), (TPS5-TPS4), (TPS4-TPS3), (TPS3-TPS2), (TPS2-TPS1), _CPT );
|
348
|
+
// get the new highlight content
|
349
|
+
tpsAfterOpti2 = new Date().getTime();
|
350
|
+
hightlighted_text = stay_begin + updated_highlight + stay_end;
|
351
|
+
if( !doHtmlOpti )
|
352
|
+
{
|
353
|
+
// update the content of the highlight div by first updating a clone node (as there is no display in the same time for t node it's quite faster (5*))
|
354
|
+
var new_Obj= t.content_highlight.cloneNode(false);
|
355
|
+
if( ( t.isIE && t.isIE < 8 ) || ( t.isOpera && t.isOpera < 9.6 ) )
|
356
|
+
new_Obj.innerHTML= "<pre><span class='"+ t.settings["syntax"] +"'>" + hightlighted_text + "</span></pre>";
|
357
|
+
else
|
358
|
+
new_Obj.innerHTML= "<span class='"+ t.settings["syntax"] +"'>"+ hightlighted_text +"</span>";
|
359
|
+
|
360
|
+
t.content_highlight.parentNode.replaceChild(new_Obj, t.content_highlight);
|
361
|
+
|
362
|
+
t.content_highlight= new_Obj;
|
363
|
+
}
|
364
|
+
|
365
|
+
t.last_text_to_highlight= infos["full_text"];
|
366
|
+
t.last_hightlighted_text= hightlighted_text;
|
367
|
+
|
368
|
+
tps3=new Date().getTime();
|
369
|
+
|
370
|
+
if(t.settings["debug"]){
|
371
|
+
//lineNumber=tab_text.length;
|
372
|
+
//t.debug.value+=" \nNB char: "+_$("src").value.length+" Nb line: "+ lineNumber;
|
373
|
+
|
374
|
+
t.debug.value= "Tps optimisation "+(tps_end_opti-tps_start)
|
375
|
+
+" | tps reg exp: "+ (tpsAfterReg-tps_end_opti)
|
376
|
+
+" | tps opti HTML : "+ (tpsAfterOpti2-tpsAfterReg) + ' '+ ( doHtmlOpti ? 'yes' : 'no' )
|
377
|
+
+" | tps update highlight content: "+ (tps3-tpsAfterOpti2)
|
378
|
+
+" | tpsTotal: "+ (tps3-tps_start)
|
379
|
+
+ "("+tps3+")\n"+ debug_opti;
|
380
|
+
// t.debug.value+= "highlight\n"+hightlighted_text;*/
|
381
|
+
}
|
382
|
+
|
383
|
+
};
|
384
|
+
|
385
|
+
EditArea.prototype.resync_highlight= function(reload_now){
|
386
|
+
this.reload_highlight=true;
|
387
|
+
this.last_text_to_highlight="";
|
388
|
+
this.focus();
|
389
|
+
if(reload_now)
|
390
|
+
this.check_line_selection(false);
|
391
|
+
};
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,145 @@
|
|
1
|
+
var EA_keys = {8:"Retour arriere",9:"Tabulation",12:"Milieu (pave numerique)",13:"Entrer",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"Verr Maj",27:"Esc",32:"Space",33:"Page up",34:"Page down",35:"End",36:"Begin",37:"Left",38:"Up",39:"Right",40:"Down",44:"Impr ecran",45:"Inser",46:"Suppr",91:"Menu Demarrer Windows / touche pomme Mac",92:"Menu Demarrer Windows",93:"Menu contextuel Windows",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Verr Num",145:"Arret defil"};
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
function keyDown(e){
|
6
|
+
if(!e){ // if IE
|
7
|
+
e=event;
|
8
|
+
}
|
9
|
+
|
10
|
+
// send the event to the plugins
|
11
|
+
for(var i in editArea.plugins){
|
12
|
+
if(typeof(editArea.plugins[i].onkeydown)=="function"){
|
13
|
+
if(editArea.plugins[i].onkeydown(e)===false){ // stop propaging
|
14
|
+
if(editArea.isIE)
|
15
|
+
e.keyCode=0;
|
16
|
+
return false;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
var target_id=(e.target || e.srcElement).id;
|
22
|
+
var use=false;
|
23
|
+
if (EA_keys[e.keyCode])
|
24
|
+
letter=EA_keys[e.keyCode];
|
25
|
+
else
|
26
|
+
letter=String.fromCharCode(e.keyCode);
|
27
|
+
|
28
|
+
var low_letter= letter.toLowerCase();
|
29
|
+
|
30
|
+
if(letter=="Page up" && !editArea.isOpera){
|
31
|
+
editArea.execCommand("scroll_page", {"dir": "up", "shift": ShiftPressed(e)});
|
32
|
+
use=true;
|
33
|
+
}else if(letter=="Page down" && !editArea.isOpera){
|
34
|
+
editArea.execCommand("scroll_page", {"dir": "down", "shift": ShiftPressed(e)});
|
35
|
+
use=true;
|
36
|
+
}else if(editArea.is_editable==false){
|
37
|
+
// do nothing but also do nothing else (allow to navigate with page up and page down)
|
38
|
+
return true;
|
39
|
+
}else if(letter=="Tabulation" && target_id=="textarea" && !CtrlPressed(e) && !AltPressed(e)){
|
40
|
+
if(ShiftPressed(e))
|
41
|
+
editArea.execCommand("invert_tab_selection");
|
42
|
+
else
|
43
|
+
editArea.execCommand("tab_selection");
|
44
|
+
|
45
|
+
use=true;
|
46
|
+
if(editArea.isOpera || (editArea.isFirefox && editArea.isMac) ) // opera && firefox mac can't cancel tabulation events...
|
47
|
+
setTimeout("editArea.execCommand('focus');", 1);
|
48
|
+
}else if(letter=="Entrer" && target_id=="textarea"){
|
49
|
+
if(editArea.press_enter())
|
50
|
+
use=true;
|
51
|
+
}else if(letter=="Entrer" && target_id=="area_search"){
|
52
|
+
editArea.execCommand("area_search");
|
53
|
+
use=true;
|
54
|
+
}else if(letter=="Esc"){
|
55
|
+
editArea.execCommand("close_all_inline_popup", e);
|
56
|
+
use=true;
|
57
|
+
}else if(CtrlPressed(e) && !AltPressed(e) && !ShiftPressed(e)){
|
58
|
+
switch(low_letter){
|
59
|
+
case "f":
|
60
|
+
editArea.execCommand("area_search");
|
61
|
+
use=true;
|
62
|
+
break;
|
63
|
+
case "r":
|
64
|
+
editArea.execCommand("area_replace");
|
65
|
+
use=true;
|
66
|
+
break;
|
67
|
+
case "q":
|
68
|
+
editArea.execCommand("close_all_inline_popup", e);
|
69
|
+
use=true;
|
70
|
+
break;
|
71
|
+
case "h":
|
72
|
+
editArea.execCommand("change_highlight");
|
73
|
+
use=true;
|
74
|
+
break;
|
75
|
+
case "g":
|
76
|
+
setTimeout("editArea.execCommand('go_to_line');", 5); // the prompt stop the return false otherwise
|
77
|
+
use=true;
|
78
|
+
break;
|
79
|
+
case "e":
|
80
|
+
editArea.execCommand("show_help");
|
81
|
+
use=true;
|
82
|
+
break;
|
83
|
+
case "z":
|
84
|
+
use=true;
|
85
|
+
editArea.execCommand("undo");
|
86
|
+
break;
|
87
|
+
case "y":
|
88
|
+
use=true;
|
89
|
+
editArea.execCommand("redo");
|
90
|
+
break;
|
91
|
+
default:
|
92
|
+
break;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
// check to disable the redo possibility if the textarea content change
|
97
|
+
if(editArea.next.length > 0){
|
98
|
+
setTimeout("editArea.check_redo();", 10);
|
99
|
+
}
|
100
|
+
|
101
|
+
setTimeout("editArea.check_file_changes();", 10);
|
102
|
+
|
103
|
+
|
104
|
+
if(use){
|
105
|
+
// in case of a control that sould'nt be used by IE but that is used => THROW a javascript error that will stop key action
|
106
|
+
if(editArea.isIE)
|
107
|
+
e.keyCode=0;
|
108
|
+
return false;
|
109
|
+
}
|
110
|
+
//alert("Test: "+ letter + " ("+e.keyCode+") ALT: "+ AltPressed(e) + " CTRL "+ CtrlPressed(e) + " SHIFT "+ ShiftPressed(e));
|
111
|
+
|
112
|
+
return true;
|
113
|
+
|
114
|
+
};
|
115
|
+
|
116
|
+
|
117
|
+
// return true if Alt key is pressed
|
118
|
+
function AltPressed(e) {
|
119
|
+
if (window.event) {
|
120
|
+
return (window.event.altKey);
|
121
|
+
} else {
|
122
|
+
if(e.modifiers)
|
123
|
+
return (e.altKey || (e.modifiers % 2));
|
124
|
+
else
|
125
|
+
return e.altKey;
|
126
|
+
}
|
127
|
+
};
|
128
|
+
|
129
|
+
// return true if Ctrl key is pressed
|
130
|
+
function CtrlPressed(e) {
|
131
|
+
if (window.event) {
|
132
|
+
return (window.event.ctrlKey);
|
133
|
+
} else {
|
134
|
+
return (e.ctrlKey || (e.modifiers==2) || (e.modifiers==3) || (e.modifiers>5));
|
135
|
+
}
|
136
|
+
};
|
137
|
+
|
138
|
+
// return true if Shift key is pressed
|
139
|
+
function ShiftPressed(e) {
|
140
|
+
if (window.event) {
|
141
|
+
return (window.event.shiftKey);
|
142
|
+
} else {
|
143
|
+
return (e.shiftKey || (e.modifiers>3));
|
144
|
+
}
|
145
|
+
};
|
@@ -0,0 +1,73 @@
|
|
1
|
+
/*
|
2
|
+
* Bulgarian translation
|
3
|
+
* Author: Valentin Hristov
|
4
|
+
* Company: SOFTKIT Bulgarian
|
5
|
+
* Site: http://www.softkit-bg.com
|
6
|
+
*/
|
7
|
+
editAreaLoader.lang["bg"]={
|
8
|
+
new_document: "нов документ",
|
9
|
+
search_button: "търсене и замяна",
|
10
|
+
search_command: "търси следващия / отвори прозорец с търсачка",
|
11
|
+
search: "търсене",
|
12
|
+
replace: "замяна",
|
13
|
+
replace_command: "замяна / отвори прозорец с търсачка",
|
14
|
+
find_next: "намери следващия",
|
15
|
+
replace_all: "замени всички",
|
16
|
+
reg_exp: "реголярни изрази",
|
17
|
+
match_case: "чуствителен към регистъра",
|
18
|
+
not_found: "няма резултат.",
|
19
|
+
occurrence_replaced: "замяната е осъществена.",
|
20
|
+
search_field_empty: "Полето за търсене е празно",
|
21
|
+
restart_search_at_begin: "До края на документа. Почни с началото.",
|
22
|
+
move_popup: "премести прозореца с търсачката",
|
23
|
+
font_size: "--Размер на шрифта--",
|
24
|
+
go_to_line: "премени към реда",
|
25
|
+
go_to_line_prompt: "премени към номера на реда:",
|
26
|
+
undo: "отмени",
|
27
|
+
redo: "върни",
|
28
|
+
change_smooth_selection: "включи/изключи някой от функциите за преглед (по красиво, но повече натоварва)",
|
29
|
+
highlight: "превключване на оцветяване на синтаксиса включена/изключена",
|
30
|
+
reset_highlight: "въстанови оцветяване на синтаксиса (ако не е синхронизиран с текста)",
|
31
|
+
word_wrap: "режим на пренасяне на дълги редове",
|
32
|
+
help: "за програмата",
|
33
|
+
save: "съхрани",
|
34
|
+
load: "зареди",
|
35
|
+
line_abbr: "Стр",
|
36
|
+
char_abbr: "Стлб",
|
37
|
+
position: "Позиция",
|
38
|
+
total: "Всичко",
|
39
|
+
close_popup: "затвори прозореца",
|
40
|
+
shortcuts: "Бързи клавиши",
|
41
|
+
add_tab: "добави табулация в текста",
|
42
|
+
remove_tab: "премахни табулацията в текста",
|
43
|
+
about_notice: "Внимание: използвайте функцията оцветяване на синтаксиса само за малки текстове",
|
44
|
+
toggle: "Превключи редактор",
|
45
|
+
accesskey: "Бърз клавиш",
|
46
|
+
tab: "Tab",
|
47
|
+
shift: "Shift",
|
48
|
+
ctrl: "Ctrl",
|
49
|
+
esc: "Esc",
|
50
|
+
processing: "Зареждане...",
|
51
|
+
fullscreen: "на цял екран",
|
52
|
+
syntax_selection: "--Синтаксис--",
|
53
|
+
syntax_css: "CSS",
|
54
|
+
syntax_html: "HTML",
|
55
|
+
syntax_js: "Javascript",
|
56
|
+
syntax_php: "PHP",
|
57
|
+
syntax_python: "Python",
|
58
|
+
syntax_vb: "Visual Basic",
|
59
|
+
syntax_xml: "XML",
|
60
|
+
syntax_c: "C",
|
61
|
+
syntax_cpp: "C++",
|
62
|
+
syntax_basic: "Basic",
|
63
|
+
syntax_pas: "Pascal",
|
64
|
+
syntax_brainfuck: "Brainfuck",
|
65
|
+
syntax_sql: "SQL",
|
66
|
+
syntax_ruby: "Ruby",
|
67
|
+
syntax_robotstxt: "Robots txt",
|
68
|
+
syntax_tsql: "T-SQL",
|
69
|
+
syntax_perl: "Perl",
|
70
|
+
syntax_coldfusion: "Coldfusion",
|
71
|
+
syntax_java: "Java",
|
72
|
+
close_tab: "Затвори файла"
|
73
|
+
};
|