gfdnavi 1.3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (446) hide show
  1. data/ChangeLog +10949 -0
  2. data/LICENCE.txt +57 -0
  3. data/Makefile +18 -0
  4. data/TODO +132 -0
  5. data/app/controllers/analysis_controller.rb +700 -0
  6. data/app/controllers/application.rb +41 -0
  7. data/app/controllers/draw_method_controller.rb +172 -0
  8. data/app/controllers/explorer_controller.rb +197 -0
  9. data/app/controllers/finder_controller.rb +331 -0
  10. data/app/controllers/function_controller.rb +204 -0
  11. data/app/controllers/group_controller.rb +115 -0
  12. data/app/controllers/keyword_attributes_controller.rb +52 -0
  13. data/app/controllers/knowledge_controller.rb +928 -0
  14. data/app/controllers/nodes_controller.rb +515 -0
  15. data/app/controllers/search_controller.rb +341 -0
  16. data/app/controllers/user_controller.rb +337 -0
  17. data/app/helpers/analysis_helper.rb +2 -0
  18. data/app/helpers/application_helper.rb +105 -0
  19. data/app/helpers/description_helper.rb +2 -0
  20. data/app/helpers/function_helper.rb +2 -0
  21. data/app/helpers/group_helper.rb +2 -0
  22. data/app/helpers/search_helper.rb +3 -0
  23. data/app/helpers/user_helper.rb +2 -0
  24. data/app/helpers/work_flow_helper.rb +92 -0
  25. data/app/models/actual_file.rb +3 -0
  26. data/app/models/analysis.rb +715 -0
  27. data/app/models/analysis_history.rb +42 -0
  28. data/app/models/cross_array.rb +22 -0
  29. data/app/models/cross_result.rb +254 -0
  30. data/app/models/derived_spatial_attribute.rb +3 -0
  31. data/app/models/diagram_cache.rb +16 -0
  32. data/app/models/diagram_cache_datum.rb +4 -0
  33. data/app/models/diagram_cache_session.rb +8 -0
  34. data/app/models/directory.rb +21 -0
  35. data/app/models/draw_method.rb +48 -0
  36. data/app/models/draw_method_attribute.rb +8 -0
  37. data/app/models/draw_parameter.rb +12 -0
  38. data/app/models/explorer_query.rb +354 -0
  39. data/app/models/explorer_result.rb +312 -0
  40. data/app/models/function.rb +75 -0
  41. data/app/models/function_argument.rb +6 -0
  42. data/app/models/function_output.rb +4 -0
  43. data/app/models/group.rb +153 -0
  44. data/app/models/image.rb +20 -0
  45. data/app/models/keyword_attribute.rb +179 -0
  46. data/app/models/knowledge.rb +94 -0
  47. data/app/models/knowledge_backup.rb +32 -0
  48. data/app/models/knowledge_figure.rb +16 -0
  49. data/app/models/knowledge_figure_backup.rb +16 -0
  50. data/app/models/knowledge_parser.rb +392 -0
  51. data/app/models/node.rb +605 -0
  52. data/app/models/node_entity_abstract.rb +112 -0
  53. data/app/models/node_lineage.rb +6 -0
  54. data/app/models/node_relation.rb +4 -0
  55. data/app/models/path_node.rb +60 -0
  56. data/app/models/query.rb +193 -0
  57. data/app/models/query_history.rb +12 -0
  58. data/app/models/results.rb +48 -0
  59. data/app/models/sign_up_user.rb +25 -0
  60. data/app/models/spatial_and_time_attribute.rb +11 -0
  61. data/app/models/user.rb +115 -0
  62. data/app/models/user_mailer.rb +48 -0
  63. data/app/models/value_type.rb +3 -0
  64. data/app/models/variable.rb +70 -0
  65. data/app/models/virtual_node.rb +457 -0
  66. data/app/views/analysis/__help_analysis_tab.en.html +57 -0
  67. data/app/views/analysis/__help_draw_share.en.html +12 -0
  68. data/app/views/analysis/__help_draw_tab.en.html +6 -0
  69. data/app/views/analysis/_analysis_function_settings.rhtml +61 -0
  70. data/app/views/analysis/_analysis_settings.rhtml +28 -0
  71. data/app/views/analysis/_diagram.rhtml +70 -0
  72. data/app/views/analysis/_dimension_option.rhtml +59 -0
  73. data/app/views/analysis/_draw_general_settings.rhtml +217 -0
  74. data/app/views/analysis/_draw_settings.rhtml +73 -0
  75. data/app/views/analysis/_history.rhtml +19 -0
  76. data/app/views/analysis/_popular_diagrams.rhtml +42 -0
  77. data/app/views/analysis/_save_form.rhtml +44 -0
  78. data/app/views/analysis/_variables.rhtml +66 -0
  79. data/app/views/analysis/_variables_order.rhtml +56 -0
  80. data/app/views/analysis/index.rhtml +195 -0
  81. data/app/views/analysis/preview.rhtml +3 -0
  82. data/app/views/analysis/save.rhtml +73 -0
  83. data/app/views/analysis/show_diagram.rhtml +42 -0
  84. data/app/views/cross/_display_map.rhtml +201 -0
  85. data/app/views/cross/_result.rhtml +205 -0
  86. data/app/views/cross/_show_result_tree.rhtml +40 -0
  87. data/app/views/cross/_show_results.rhtml +80 -0
  88. data/app/views/cross/_style.rhtml +21 -0
  89. data/app/views/cross/index.rhtml +271 -0
  90. data/app/views/draw_method/_edit_form.rhtml +110 -0
  91. data/app/views/draw_method/create.rhtml +8 -0
  92. data/app/views/draw_method/details.rhtml +113 -0
  93. data/app/views/draw_method/edit.rhtml +8 -0
  94. data/app/views/draw_method/list.rhtml +80 -0
  95. data/app/views/explorer/_display_map.rhtml +199 -0
  96. data/app/views/explorer/_show_result_tree.rhtml +40 -0
  97. data/app/views/explorer/_show_results.rhtml +101 -0
  98. data/app/views/explorer/_style.rhtml +21 -0
  99. data/app/views/explorer/index.rhtml +214 -0
  100. data/app/views/finder/_children.html.erb +84 -0
  101. data/app/views/finder/_children_details.html.erb +74 -0
  102. data/app/views/finder/_children_details_tr.html.erb +196 -0
  103. data/app/views/finder/create_tree.html.erb +15 -0
  104. data/app/views/finder/flex.html.erb +52 -0
  105. data/app/views/finder/index.html.erb +47 -0
  106. data/app/views/finder/show_details.html.erb +3 -0
  107. data/app/views/finder/show_images.html.erb +3 -0
  108. data/app/views/function/_edit_form.rhtml +106 -0
  109. data/app/views/function/create.rhtml +8 -0
  110. data/app/views/function/details.rhtml +96 -0
  111. data/app/views/function/edit.rhtml +8 -0
  112. data/app/views/function/list.rhtml +80 -0
  113. data/app/views/group/add_member.rhtml +13 -0
  114. data/app/views/group/change_owner.rhtml +15 -0
  115. data/app/views/group/create.rhtml +11 -0
  116. data/app/views/group/delete_member.rhtml +14 -0
  117. data/app/views/group/list.rhtml +63 -0
  118. data/app/views/knowledge/_backup.rhtml +135 -0
  119. data/app/views/knowledge/_category.rhtml +58 -0
  120. data/app/views/knowledge/_category_list.rhtml +34 -0
  121. data/app/views/knowledge/_category_table.rhtml +23 -0
  122. data/app/views/knowledge/_comment.rhtml +64 -0
  123. data/app/views/knowledge/_comment_input_form.rhtml +19 -0
  124. data/app/views/knowledge/_comments.rhtml +84 -0
  125. data/app/views/knowledge/_form.rhtml +139 -0
  126. data/app/views/knowledge/_group_figure_form.rhtml +187 -0
  127. data/app/views/knowledge/_layout_figure.rhtml +61 -0
  128. data/app/views/knowledge/_layout_figures_in_a_row_above_text.rhtml +42 -0
  129. data/app/views/knowledge/_layout_figures_under_text.rhtml +45 -0
  130. data/app/views/knowledge/_layout_one_figure_above_text.rhtml +28 -0
  131. data/app/views/knowledge/_summary.rhtml +21 -0
  132. data/app/views/knowledge/edit.rhtml +37 -0
  133. data/app/views/knowledge/list.rhtml +287 -0
  134. data/app/views/knowledge/new.rhtml +23 -0
  135. data/app/views/knowledge/new_from_analysis.rhtml +21 -0
  136. data/app/views/knowledge/show.rhtml +196 -0
  137. data/app/views/layouts/gfdnavi.rhtml +105 -0
  138. data/app/views/nodes/_ancestors.html.erb +89 -0
  139. data/app/views/nodes/_description_methods_table.html.erb +75 -0
  140. data/app/views/nodes/_mode.html.erb +16 -0
  141. data/app/views/nodes/description.html.erb +181 -0
  142. data/app/views/nodes/description_methods.html.erb +1 -0
  143. data/app/views/nodes/edit.html.erb +73 -0
  144. data/app/views/nodes/index.html.erb +25 -0
  145. data/app/views/nodes/show.html.erb +20 -0
  146. data/app/views/search/_children_details_mapsearch.rhtml +68 -0
  147. data/app/views/search/_children_details_tr.rhtml +205 -0
  148. data/app/views/search/_show_grouplist.rhtml +74 -0
  149. data/app/views/search/_show_results.rhtml +43 -0
  150. data/app/views/search/_show_results_global.rhtml +36 -0
  151. data/app/views/search/_show_results_partial.rhtml +39 -0
  152. data/app/views/search/_show_results_partial_groupbyfile.rhtml +50 -0
  153. data/app/views/search/_show_variablelist.rhtml +28 -0
  154. data/app/views/search/mapsearch.rhtml +176 -0
  155. data/app/views/search/remapsearch.rjs +18 -0
  156. data/app/views/search/show_details.rhtml +3 -0
  157. data/app/views/user/add_user.rhtml +30 -0
  158. data/app/views/user/change_password.rhtml +25 -0
  159. data/app/views/user/edit.html.erb +50 -0
  160. data/app/views/user/index.rhtml +162 -0
  161. data/app/views/user/login.rhtml +41 -0
  162. data/app/views/user/logout.rhtml +4 -0
  163. data/app/views/user/signup.rhtml +36 -0
  164. data/app/views/user/signup_succeeded.rhtml +36 -0
  165. data/app/views/user_mailer/authorization_inform.rhtml +15 -0
  166. data/app/views/user_mailer/signup_accepted.rhtml +12 -0
  167. data/app/views/user_mailer/signup_confirm.rhtml +14 -0
  168. data/app/views/user_mailer/signup_inform.rhtml +13 -0
  169. data/app/views/user_mailer/signup_rejected.rhtml +11 -0
  170. data/app/views/work_flow/_push_wsdls.rhtml +55 -0
  171. data/app/views/work_flow/index.rhtml +46 -0
  172. data/config/database.yml.example +35 -0
  173. data/config/environment.rb +68 -0
  174. data/config/gfdnavi.yml.example +95 -0
  175. data/config/load_config.rb +151 -0
  176. data/config/routes.rb +35 -0
  177. data/consistency_checker.rb +129 -0
  178. data/data/gfdnavi_docs/how_to_draw_multiple_images.knlge +68 -0
  179. data/data/gfdnavi_docs/how_to_knowledge.knlge +138 -0
  180. data/data/gfdnavi_docs/how_to_write_document_about_Gfdnavi.knlge +30 -0
  181. data/data/samples/jmadata.SIGEN +8 -0
  182. data/data/samples/jmadata.yml +6 -0
  183. data/data/samples/jmadata/MSM-P/2006.nc.yml +2 -0
  184. data/data/samples/jmadata/MSM-P/2006.yml +17 -0
  185. data/data/samples/jmadata/MSM-P/2006/0101.nc +0 -0
  186. data/data/samples/jmadata/MSM-P/2006/0101.nc.yml +13 -0
  187. data/data/samples/jmadata/MSM-P/2006/0102.nc +0 -0
  188. data/data/samples/jmadata/MSM-P/2006/0103.nc +0 -0
  189. data/data/samples/jmadata/MSM-P/2006/0104.nc +0 -0
  190. data/data/samples/jmadata/MSM-P/2006/0105.nc +0 -0
  191. data/data/samples/jmadata/MSM-P/2006/010[1-3].nc.yml +2 -0
  192. data/data/samples/jmadata/MSM-P/2006/skip_data.rb +96 -0
  193. data/data/samples/jmadata/MSM-P/2006/skip_data.sh +6 -0
  194. data/data/samples/reanalysis.SIGEN +8 -0
  195. data/data/samples/reanalysis/era40.SIGEN +8 -0
  196. data/data/samples/reanalysis/era40.yml +2 -0
  197. data/data/samples/reanalysis/era40/t.jan.nc +0 -0
  198. data/data/samples/reanalysis/era40/t.jan.nc.yml +1 -0
  199. data/data/samples/reanalysis/ncep.SIGEN +9 -0
  200. data/data/samples/reanalysis/ncep/T.jan.100hPa.png +0 -0
  201. data/data/samples/reanalysis/ncep/T.jan.100hPa.png.yml +43 -0
  202. data/data/samples/reanalysis/ncep/T.jan.nc +0 -0
  203. data/data/samples/reanalysis/ncep/T.jan.zonal_mean.nc +0 -0
  204. data/data/samples/reanalysis/ncep/T.jan.zonal_mean.nc.yml +8 -0
  205. data/data/samples/reanalysis/ncep/T.jan_only_root.nc +0 -0
  206. data/data/samples/reanalysis/ncep/T.jan_only_root.nc.yml +4 -0
  207. data/data/samples/reanalysis/ncep/UV.jan.nc +0 -0
  208. data/data/samples/reanalysis/ncep/UV.jan.nc.yml +10 -0
  209. data/data/samples/reanalysis/ncep/UV.jan.nc.yml.ja +11 -0
  210. data/data/samples/sonde_operational.yml +5 -0
  211. data/data/samples/sonde_operational/std_plev.yml +12 -0
  212. data/data/samples/sonde_operational/std_plev/41256.spl.nc +0 -0
  213. data/data/samples/sonde_operational/std_plev/42410.spl.nc +0 -0
  214. data/data/samples/sonde_operational/std_plev/43333.spl.nc +0 -0
  215. data/data/samples/sonde_operational/std_plev/43346.spl.nc +0 -0
  216. data/data/samples/sonde_operational/std_plev/48698.spl.nc +0 -0
  217. data/data/samples/sonde_operational/std_plev/61641.spl.nc +0 -0
  218. data/data/samples/sonde_operational/std_plev/63741.spl.nc +0 -0
  219. data/data/samples/sonde_operational/std_plev/67083.spl.nc +0 -0
  220. data/data/samples/sonde_operational/std_plev/72261.spl.nc +0 -0
  221. data/data/samples/sonde_operational/std_plev/76805.spl.nc +0 -0
  222. data/data/samples/sonde_operational/std_plev/82193.spl.nc +0 -0
  223. data/data/samples/sonde_operational/std_plev/91165.spl.nc +0 -0
  224. data/data/samples/sonde_operational/std_plev/91610.spl.nc +0 -0
  225. data/data/samples/sonde_operational/std_plev/91948.spl.nc +0 -0
  226. data/data/samples/sonde_operational/std_plev/94294.spl.nc +0 -0
  227. data/db/NetCDFparser.rb +406 -0
  228. data/db/create_derived_spatial_attributes.sql +12 -0
  229. data/db/draw_methods/line.yml +6 -0
  230. data/db/draw_methods/scatter.yml +38 -0
  231. data/db/draw_methods/tone.yml +64 -0
  232. data/db/draw_methods/vector.yml +19 -0
  233. data/db/dump_db.rb +43 -0
  234. data/db/functions/additions.yml +10 -0
  235. data/db/functions/cut.yml +10 -0
  236. data/db/functions/division.yml +10 -0
  237. data/db/functions/mean.yml +28 -0
  238. data/db/functions/multiplication.yml +10 -0
  239. data/db/functions/stddev.yml +28 -0
  240. data/db/functions/subtraction.yml +10 -0
  241. data/db/migrate/001_initial_scheme.rb +289 -0
  242. data/db/migrate/002_add_open_id_authentication_tables.rb +20 -0
  243. data/db/register_directory_tree.rb +760 -0
  244. data/db/restore_db.rb +60 -0
  245. data/gfdnavi-install +828 -0
  246. data/install.rb +828 -0
  247. data/lib/activerecord_gfdnavi.rb +31 -0
  248. data/lib/basic_authorization.rb +50 -0
  249. data/lib/create_activeresources.rb +108 -0
  250. data/lib/execute_analysis.rb +472 -0
  251. data/lib/file_gfdnavi.rb +38 -0
  252. data/lib/gphys_gfdnavi.rb +81 -0
  253. data/lib/localdir.rb +110 -0
  254. data/lib/login_system.rb +110 -0
  255. data/lib/multibytes.rb +20 -0
  256. data/lib/narray_yaml.rb +58 -0
  257. data/lib/no_rdb_base.rb +40 -0
  258. data/lib/opendapdir.rb +171 -0
  259. data/lib/tar.rb +127 -0
  260. data/lib/tasks/clean.rake +65 -0
  261. data/lib/tasks/setup.rake +316 -0
  262. data/lib/tasks/update.rake +62 -0
  263. data/lib/vizshot_gfdnavi.rb +224 -0
  264. data/public/crossdomain.xml +4 -0
  265. data/public/flex/NodeTreeDescriptor.as +55 -0
  266. data/public/flex/TreeNode.as +253 -0
  267. data/public/flex/finder.mxml +304 -0
  268. data/public/flex/finder.swf +0 -0
  269. data/public/flex/gfdnavi.mxml +52 -0
  270. data/public/flex/gfdnavi.swf +0 -0
  271. data/public/images/Help_S-shots/dir_tree_with_add.jpg +0 -0
  272. data/public/images/analyze.gif +0 -0
  273. data/public/images/circle.gif +0 -0
  274. data/public/images/create_from_analysis_button.png +0 -0
  275. data/public/images/delete.png +0 -0
  276. data/public/images/down.png +0 -0
  277. data/public/images/drawbutton.gif +0 -0
  278. data/public/images/gfdnavi_home_logo.png +0 -0
  279. data/public/images/gfdnavi_logo_big.png +0 -0
  280. data/public/images/gfdnavi_logo_med.png +0 -0
  281. data/public/images/gfdnavi_logo_mini.png +0 -0
  282. data/public/images/gfdnavi_logo_nobg_big.png +0 -0
  283. data/public/images/gfdnavi_logo_nobg_med.png +0 -0
  284. data/public/images/gfdnavi_logo_nobg_small.png +0 -0
  285. data/public/images/gfdnavi_logo_small.png +0 -0
  286. data/public/images/gfdnavi_logo_xsmall.png +0 -0
  287. data/public/images/hbar.png +0 -0
  288. data/public/images/helpmark16.png +0 -0
  289. data/public/images/helpmark18.png +0 -0
  290. data/public/images/kikyu_g.gif +0 -0
  291. data/public/images/kikyu_r.gif +0 -0
  292. data/public/images/map_icon_g.gif +0 -0
  293. data/public/images/map_icon_r.gif +0 -0
  294. data/public/images/new_knowledge.png +0 -0
  295. data/public/images/openid.png +0 -0
  296. data/public/images/read_in_the_form.png +0 -0
  297. data/public/images/slider_f.gif +0 -0
  298. data/public/images/slider_f_red.gif +0 -0
  299. data/public/images/star1.gif +0 -0
  300. data/public/images/star2.gif +0 -0
  301. data/public/images/startanim.gif +0 -0
  302. data/public/images/stopanim.gif +0 -0
  303. data/public/images/tree/DL.png +0 -0
  304. data/public/images/tree/anal_viz.png +0 -0
  305. data/public/images/tree/analyze_visualize_checked_items.png +0 -0
  306. data/public/images/tree/binary.png +0 -0
  307. data/public/images/tree/details.png +0 -0
  308. data/public/images/tree/download_checked_items.png +0 -0
  309. data/public/images/tree/folder.png +0 -0
  310. data/public/images/tree/folder_close.gif +0 -0
  311. data/public/images/tree/image2.png +0 -0
  312. data/public/images/tree/knowledge.png +0 -0
  313. data/public/images/tree/knowledges.png +0 -0
  314. data/public/images/tree/last.gif +0 -0
  315. data/public/images/tree/last.png +0 -0
  316. data/public/images/tree/minus.gif +0 -0
  317. data/public/images/tree/minus_simple.gif +0 -0
  318. data/public/images/tree/none.gif +0 -0
  319. data/public/images/tree/none.png +0 -0
  320. data/public/images/tree/plus.gif +0 -0
  321. data/public/images/tree/plus_simple.gif +0 -0
  322. data/public/images/tree/show.png +0 -0
  323. data/public/images/tree/show_checked_items.png +0 -0
  324. data/public/images/tree/t.gif +0 -0
  325. data/public/images/tree/t.png +0 -0
  326. data/public/images/tree/tate.gif +0 -0
  327. data/public/images/tree/tate.png +0 -0
  328. data/public/images/up.png +0 -0
  329. data/public/images/vbar.png +0 -0
  330. data/public/images/white.bmp +0 -0
  331. data/public/images/x.gif +0 -0
  332. data/public/index.html +100 -0
  333. data/public/javascripts/AC_OETags.js +269 -0
  334. data/public/javascripts/analysis.js +751 -0
  335. data/public/javascripts/application.js +29 -0
  336. data/public/javascripts/directory_tree.js +102 -0
  337. data/public/javascripts/draw_method.js +83 -0
  338. data/public/javascripts/excanvas.js +704 -0
  339. data/public/javascripts/function.js +107 -0
  340. data/public/javascripts/gfdnavi.js +175 -0
  341. data/public/javascripts/knowledge.js +384 -0
  342. data/public/javascripts/mapsearch.js +313 -0
  343. data/public/javascripts/progress.js +42 -0
  344. data/public/javascripts/resizable_box.js +164 -0
  345. data/public/javascripts/slider.js +260 -0
  346. data/public/javascripts/tab.js +17 -0
  347. data/public/javascripts/work_flow.js +452 -0
  348. data/public/stylesheets/analysis.css +111 -0
  349. data/public/stylesheets/description.css +71 -0
  350. data/public/stylesheets/gfdnavi.css +141 -0
  351. data/public/stylesheets/knowledge.css +218 -0
  352. data/public/stylesheets/search.css +184 -0
  353. data/public/stylesheets/tree.css +45 -0
  354. data/public/stylesheets/tree_for_ie.css +3 -0
  355. data/public/stylesheets/work_flow.css +78 -0
  356. data/script/cleaner +11 -0
  357. data/script/server_ssl +131 -0
  358. data/test/fixtures/diagram_cache_data.yml +5 -0
  359. data/test/fixtures/diagram_cache_sessions.yml +6 -0
  360. data/test/fixtures/diagram_caches.yml +6 -0
  361. data/test/fixtures/directories.yml +57 -0
  362. data/test/fixtures/draw_parameters.yml +6 -0
  363. data/test/fixtures/function_arguments.yml +15 -0
  364. data/test/fixtures/function_outputs.yml +15 -0
  365. data/test/fixtures/functions.yml +29 -0
  366. data/test/fixtures/group_members.yml +33 -0
  367. data/test/fixtures/groups.yml +25 -0
  368. data/test/fixtures/images.yml +12 -0
  369. data/test/fixtures/keyword_attributes.yml +73 -0
  370. data/test/fixtures/knowledges.yml +10 -0
  371. data/test/fixtures/node_relations.yml +11 -0
  372. data/test/fixtures/nodes.yml +298 -0
  373. data/test/fixtures/sign_up_users.yml +8 -0
  374. data/test/fixtures/spatial_and_time_attributes.yml +29 -0
  375. data/test/fixtures/user_mailer/authorization_inform +11 -0
  376. data/test/fixtures/user_mailer/signup_accepted +10 -0
  377. data/test/fixtures/user_mailer/signup_confirm +17 -0
  378. data/test/fixtures/user_mailer/signup_inform +10 -0
  379. data/test/fixtures/user_mailer/signup_rejected +9 -0
  380. data/test/fixtures/users.yml +31 -0
  381. data/test/fixtures/value_types.yml +10 -0
  382. data/test/fixtures/variables.yml +17 -0
  383. data/test/functional/analysis_controller_test.rb +169 -0
  384. data/test/functional/description_controller_test.rb +18 -0
  385. data/test/functional/function_controller_test.rb +18 -0
  386. data/test/functional/group_controller_test.rb +18 -0
  387. data/test/functional/search_controller_test.rb +83 -0
  388. data/test/functional/user_controller_test.rb +77 -0
  389. data/test/functional/webservice_analysis_api_test.rb +12 -0
  390. data/test/functional/work_flow_controller_test.rb +18 -0
  391. data/test/test_helper.rb +28 -0
  392. data/test/unit/diagram_cache_datum_test.rb +10 -0
  393. data/test/unit/diagram_cache_session_test.rb +10 -0
  394. data/test/unit/diagram_cache_test.rb +10 -0
  395. data/test/unit/directory_test.rb +49 -0
  396. data/test/unit/draw_parameter_test.rb +10 -0
  397. data/test/unit/function_argument_test.rb +10 -0
  398. data/test/unit/function_output_test.rb +10 -0
  399. data/test/unit/function_test.rb +10 -0
  400. data/test/unit/group_test.rb +48 -0
  401. data/test/unit/image_test.rb +13 -0
  402. data/test/unit/keyword_attribute_test.rb +33 -0
  403. data/test/unit/knowledge_test.rb +13 -0
  404. data/test/unit/node_relation_test.rb +20 -0
  405. data/test/unit/node_test.rb +85 -0
  406. data/test/unit/sign_up_user_test.rb +20 -0
  407. data/test/unit/spatial_and_time_attribute_test.rb +29 -0
  408. data/test/unit/user_mailer_test.rb +101 -0
  409. data/test/unit/user_test.rb +134 -0
  410. data/test/unit/value_type_test.rb +10 -0
  411. data/test/unit/variable_test.rb +35 -0
  412. data/vendor/plugins/acts_as_list/README +23 -0
  413. data/vendor/plugins/acts_as_list/init.rb +3 -0
  414. data/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb +256 -0
  415. data/vendor/plugins/acts_as_list/test/list_test.rb +332 -0
  416. data/vendor/plugins/acts_as_tree/README +26 -0
  417. data/vendor/plugins/acts_as_tree/Rakefile +22 -0
  418. data/vendor/plugins/acts_as_tree/init.rb +1 -0
  419. data/vendor/plugins/acts_as_tree/lib/active_record/acts/tree.rb +96 -0
  420. data/vendor/plugins/acts_as_tree/test/abstract_unit.rb +0 -0
  421. data/vendor/plugins/acts_as_tree/test/acts_as_tree_test.rb +219 -0
  422. data/vendor/plugins/acts_as_tree/test/database.yml +0 -0
  423. data/vendor/plugins/acts_as_tree/test/fixtures/mixin.rb +0 -0
  424. data/vendor/plugins/acts_as_tree/test/fixtures/mixins.yml +0 -0
  425. data/vendor/plugins/acts_as_tree/test/schema.rb +0 -0
  426. data/vendor/plugins/will_paginate/CHANGELOG +92 -0
  427. data/vendor/plugins/will_paginate/LICENSE +18 -0
  428. data/vendor/plugins/will_paginate/README.rdoc +131 -0
  429. data/vendor/plugins/will_paginate/Rakefile +62 -0
  430. data/vendor/plugins/will_paginate/examples/apple-circle.gif +0 -0
  431. data/vendor/plugins/will_paginate/examples/index.haml +69 -0
  432. data/vendor/plugins/will_paginate/examples/index.html +92 -0
  433. data/vendor/plugins/will_paginate/examples/pagination.css +90 -0
  434. data/vendor/plugins/will_paginate/examples/pagination.sass +91 -0
  435. data/vendor/plugins/will_paginate/init.rb +1 -0
  436. data/vendor/plugins/will_paginate/lib/will_paginate.rb +86 -0
  437. data/vendor/plugins/will_paginate/lib/will_paginate/array.rb +16 -0
  438. data/vendor/plugins/will_paginate/lib/will_paginate/collection.rb +145 -0
  439. data/vendor/plugins/will_paginate/lib/will_paginate/core_ext.rb +32 -0
  440. data/vendor/plugins/will_paginate/lib/will_paginate/finder.rb +247 -0
  441. data/vendor/plugins/will_paginate/lib/will_paginate/named_scope.rb +132 -0
  442. data/vendor/plugins/will_paginate/lib/will_paginate/named_scope_patch.rb +39 -0
  443. data/vendor/plugins/will_paginate/lib/will_paginate/version.rb +9 -0
  444. data/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb +373 -0
  445. data/vendor/plugins/will_paginate/will_paginate.gemspec +21 -0
  446. metadata +586 -0
@@ -0,0 +1,313 @@
1
+ //<![CDATA[
2
+ startflg=false
3
+
4
+ // have a semi-transparent background color.
5
+ function Rectangle(bounds, opt_weight, opt_color,opt_id) {
6
+ this.bounds_ = bounds;
7
+ this.weight_ = opt_weight || 2;
8
+ this.color_ = opt_color || "#ff2233";
9
+ this.id_ = opt_id || "rectangle";
10
+ }
11
+ Rectangle.prototype = new GOverlay();
12
+
13
+ // Creates the DIV representing this rectangle.
14
+ Rectangle.prototype.initialize = function(map) {
15
+ // Create the DIV representing our rectangle
16
+ var div = document.createElement("div");
17
+ div.id=this.id_;
18
+ div.style.border = this.weight_ + "px solid " + this.color_;
19
+ div.style.position = "absolute";
20
+
21
+ map.getPane(G_MAP_MAP_PANE).appendChild(div);
22
+
23
+ this.map_ = map;
24
+ this.div_ = div;
25
+ }
26
+
27
+ // Remove the main DIV from the map pane
28
+ Rectangle.prototype.remove = function() {
29
+ this.div_.parentNode.removeChild(this.div_);
30
+ }
31
+
32
+ // Copy our data to a new Rectangle
33
+ Rectangle.prototype.copy = function() {
34
+ return new Rectangle(this.bounds_, this.weight_, this.color_,
35
+ this.backgroundColor_, this.opacity_);
36
+ }
37
+
38
+ // Redraw the rectangle based on the current projection and zoom level
39
+ Rectangle.prototype.redraw = function(force) {
40
+ // We only need to redraw if the coordinate system has changed
41
+ if (!force) return;
42
+
43
+ // Calculate the DIV coordinates of two opposite corners of our bounds to
44
+ // get the size and position of our rectangle
45
+ var c1 = this.map_.fromLatLngToDivPixel(this.bounds_.getSouthWest());
46
+ var c2 = this.map_.fromLatLngToDivPixel(this.bounds_.getNorthEast());
47
+
48
+ // Now position our DIV based on the DIV coordinates of our bounds
49
+ this.div_.style.width = Math.abs(c2.x - c1.x) + "px";
50
+ this.div_.style.height = Math.abs(c2.y - c1.y) + "px";
51
+ this.div_.style.left = (Math.min(c2.x, c1.x) - this.weight_) + "px";
52
+ this.div_.style.top = (Math.min(c2.y, c1.y) - this.weight_) + "px";
53
+ }
54
+
55
+ var map;
56
+
57
+ var start_point;
58
+ var end_point;
59
+ var current_point;
60
+ var dateline;
61
+
62
+ function eDrag() {
63
+ GEvent.clearListeners(map,"click");
64
+ map.enableDragging();
65
+ }
66
+
67
+ function dDrag() {
68
+ GEvent.clearListeners(map,"mousemove");
69
+ map.disableDragging();
70
+
71
+ GEvent.addListener(map, "click", function(overlay, point){
72
+ if(!startflg){
73
+ map.clearOverlays();
74
+ start_point=point;
75
+ $("query_spatial_region").checked=true;
76
+ checkSpace();
77
+ $("query_start_lon").value= point.x;
78
+ $("query_start_lat").value= point.y;
79
+ startflg=true;
80
+ }else{
81
+ end_point=point;
82
+ $("query_end_lon").value= point.x;
83
+ $("query_end_lat").value= point.y;
84
+ startflg=false;
85
+ var rectBounds = new GLatLngBounds(start_point,end_point);
86
+ map.addOverlay(new Rectangle(rectBounds));
87
+ }
88
+ });
89
+
90
+ GEvent.addListener(map, "mousemove", function(latlng){
91
+ if(startflg){
92
+ map.clearOverlays();
93
+ var rectBounds = new GLatLngBounds(start_point,latlng);
94
+ map.addOverlay(new Rectangle(rectBounds));
95
+ current_point=latlng;
96
+ }
97
+
98
+ });
99
+
100
+ }
101
+
102
+ function checkSpace() {
103
+ if( $("query_spatial_region").checked ) {
104
+ $("query_start_lon").disabled = false;
105
+ $("query_start_lat").disabled = false;
106
+ $("query_end_lon").disabled = false;
107
+ $("query_end_lat").disabled = false;
108
+ } else {
109
+ $("query_start_lon").disabled = true;
110
+ $("query_start_lat").disabled = true;
111
+ $("query_end_lon").disabled = true;
112
+ $("query_end_lat").disabled = true;
113
+ }
114
+ }
115
+
116
+
117
+ function drawGroup(gid,radius,pos,dia,str,mode){
118
+
119
+ if(mode=="partial"){
120
+ var divpartial = document.createElement("div");
121
+ // divpartial.id="group";
122
+ divpartial.id=gid;
123
+ divpartial.style.position = "absolute";
124
+ divpartial.style.width = dia+"px";
125
+ divpartial.style.height = dia+"px";
126
+ divpartial.style.left=map.fromLatLngToDivPixel(pos).x-dia/2+"px";
127
+ divpartial.style.top=map.fromLatLngToDivPixel(pos).y-dia+"px";
128
+ map.getPane(G_MAP_MAP_PANE).appendChild(divpartial);
129
+ var imgpoints = document.createElement("img");
130
+ imgpoints.src= gfdnaviUrlRoot + "/images/kikyu_g.gif";
131
+
132
+ imgpoints.style.width = dia+"px";
133
+ divpartial.appendChild(imgpoints);
134
+
135
+ var divpartial3 = document.createElement("div");
136
+ // divpartial3.id="group";
137
+ divpartial3.id=gid;
138
+ divpartial3.style.position = "absolute";
139
+ divpartial3.style.width = dia+"px";
140
+ divpartial3.style.height = dia+"px";
141
+ divpartial3.style.left=map.fromLatLngToDivPixel(pos).x-dia/4+"px";
142
+ divpartial3.style.top=map.fromLatLngToDivPixel(pos).y-dia+"px";
143
+ map.getPane(G_MAP_MAP_PANE).appendChild(divpartial3);
144
+ divpartial3.style.color="green";
145
+ divpartial3.style.fontSize=17;
146
+ divpartial3.style.fontWeight="bold";
147
+ var txtpoints = document.createTextNode(str);
148
+
149
+ var lnk = document.createElement("a");
150
+ lnk.href="#";
151
+ lnk.onclick=function(){zoomGroup(pos,radius);};
152
+ lnk.appendChild(txtpoints);
153
+ divpartial3.appendChild(lnk);
154
+
155
+ }else{
156
+ var divpoints = document.createElement("div");
157
+ divpoints.id=gid;
158
+ divpoints.style.position = "absolute";
159
+ divpoints.style.width = dia+"px";
160
+ divpoints.style.height = dia+"px";
161
+ divpoints.style.left=map.fromLatLngToDivPixel(pos).x-dia/2+"px";
162
+ divpoints.style.top=map.fromLatLngToDivPixel(pos).y-dia+"px";
163
+ map.getPane(G_MAP_MAP_PANE).appendChild(divpoints);
164
+ var imgpoints = document.createElement("img");
165
+ imgpoints.src = gfdnaviUrlRoot + "/images/kikyu_r.gif";
166
+
167
+ imgpoints.style.width = dia+"px";
168
+ divpoints.appendChild(imgpoints);
169
+
170
+ var divpoints3 = document.createElement("div");
171
+ divpoints3.id=gid;
172
+ divpoints3.style.position = "absolute";
173
+ divpoints3.style.width = dia+"px";
174
+ divpoints3.style.height = dia+"px";
175
+ divpoints3.style.left=map.fromLatLngToDivPixel(pos).x-dia/4+"px";
176
+ divpoints3.style.top=map.fromLatLngToDivPixel(pos).y-dia+"px";
177
+ map.getPane(G_MAP_MAP_PANE).appendChild(divpoints3);
178
+ divpoints3.style.color="blue";
179
+ divpoints3.style.fontSize=17;
180
+ divpoints3.style.fontWeight="bold";
181
+ var txtpoints = document.createTextNode(str);
182
+ var lnk = document.createElement("a");
183
+ lnk.href="#";
184
+ lnk.onclick=function(){zoomGroup(pos,radius);};
185
+ lnk.appendChild(txtpoints);
186
+ divpoints3.appendChild(lnk);
187
+
188
+ }
189
+ eDrag();
190
+ }
191
+
192
+ function zoomGroup_pos(posx,posy,radius){
193
+ var pos=new GLatLng(posx,posy);
194
+ zoomGroup(pos,radius);
195
+ }
196
+
197
+ function execute(){
198
+ new Ajax.Request(gfdnaviUrlRoot + "/search/remapsearch",
199
+ {method:"get",
200
+ parameters:Form.serialize("mapsearch")
201
+ });
202
+ }
203
+
204
+ function zoomGroup(pos,radius){
205
+ var objbnds=new GLatLngBounds(new GLatLng(pos.lat()-radius,pos.lng()-radius),new GLatLng(pos.lat()+radius,pos.lng()+radius));
206
+ var oldzm = map.getZoom();
207
+ var zm = map.getBoundsZoomLevel(objbnds);
208
+ if(zm==0){zm=oldzm+1;}
209
+ map.setCenter(pos,zm);
210
+ var cObj = map.getCenter();
211
+ document.mapsearch.query_center_x.value=cObj.x;
212
+ document.mapsearch.query_center_y.value=cObj.y;
213
+ // document.mapsearch.query_zoomlevel.value=17-zm;
214
+ document.mapsearch.query_zoomlevel.value=zm;
215
+ document.mapsearch.query_span.value=map.getBounds().toSpan().lat();
216
+ document.mapsearch.query_window_start_lat.value=map.getBounds().getSouthWest().lat();
217
+ document.mapsearch.query_window_start_lon.value=map.getBounds().getSouthWest().lng();
218
+ document.mapsearch.query_window_end_lat.value=map.getBounds().getNorthEast().lat();
219
+ document.mapsearch.query_window_end_lon.value=map.getBounds().getNorthEast().lng();
220
+ execute();
221
+ }
222
+
223
+ function focusGroup_pos(posx,posy,gid){
224
+ var pos=new GLatLng(posx,posy);
225
+ focusGroup(pos,gid);
226
+ }
227
+
228
+ function focusGroup(pos,gid){
229
+ //map.setCenter(pos);
230
+ map.openInfoWindow(pos,document.createTextNode("Here!"))
231
+ }
232
+
233
+ function NarrowDownByTime(){
234
+ var i;
235
+ var j;
236
+ var start ="2004:12:02:10:10";
237
+ var end ="2005:06:23:12:10";
238
+ document.mapsearch.query_time_region.checked=true;
239
+ var children = $("query_starttime").childNodes;
240
+ for(i=0; i<children.length; i++)
241
+ if( children[i].tagName == "SELECT" )
242
+ children[i].disabled = false;
243
+ children = $("query_endtime").childNodes;
244
+ for(i=0; i<children.length; i++)
245
+ if( children[i].tagName == "SELECT" )
246
+ children[i].disabled = false;
247
+
248
+ xx = start.match(/\d+/g);
249
+ for(j=0;j<xx.length;j++){
250
+ var eno=j+1;
251
+ select = document.getElementsByName("query[starttime("+eno+"i)]")[0];
252
+ for(i=0;i<select.length;i++){
253
+ if(select.options[i].text==xx[j]){
254
+ select.selectedIndex=i;
255
+ }
256
+ }
257
+ }
258
+
259
+ xx = end.match(/\d+/g);
260
+ var i;
261
+ var j;
262
+ for(j=0;j<xx.length;j++){
263
+ var eno=j+1;
264
+ select = document.getElementsByName("query[endtime("+eno+"i)]")[0];
265
+ for(i=0;i<select.length;i++){
266
+ if(select.options[i].text==xx[j]){
267
+ select.selectedIndex=i;
268
+ }
269
+ }
270
+ }
271
+ document.mapsearch.query_window_start_lat.value=map.getBounds().getSouthWest().lat();
272
+ document.mapsearch.query_window_start_lon.value=map.getBounds().getSouthWest().lng();
273
+ document.mapsearch.query_window_end_lat.value=map.getBounds().getNorthEast().lat();
274
+ document.mapsearch.query_window_end_lon.value=map.getBounds().getNorthEast().lng();
275
+ }
276
+
277
+ function Zoom(){
278
+ GEvent.addListener(map, "zoom", function(oldZoomLevel, newZoomLevel){
279
+ var cObj = map.getCenter();
280
+ document.mapsearch.query_center_x.value=cObj.x;
281
+ document.mapsearch.query_center_y.value=cObj.y;
282
+ document.mapsearch.query_zoomlevel.value=17-newZoomLevel;
283
+ document.mapsearch.query_window_start_lat.value=map.getBounds().getSouthWest().lat();
284
+ document.mapsearch.query_window_start_lon.value=map.getBounds().getSouthWest().lng();
285
+ document.mapsearch.query_window_end_lat.value=map.getBounds().getNorthEast().lat();
286
+ document.mapsearch.query_window_end_lon.value=map.getBounds().getNorthEast().lng();
287
+ });
288
+ }
289
+
290
+ function checkTime() {
291
+ var children;
292
+ var i;
293
+ if( $("query_time_region").checked ) {
294
+ children = $("query_starttime").childNodes;
295
+ for(i=0; i<children.length; i++)
296
+ if( children[i].tagName == "SELECT" )
297
+ children[i].disabled = false;
298
+ children = $("query_endtime").childNodes;
299
+ for(i=0; i<children.length; i++)
300
+ if( children[i].tagName == "SELECT" )
301
+ children[i].disabled = false;
302
+ } else {
303
+ children = $("query_starttime").childNodes;
304
+ for(i=0; i<children.length; i++)
305
+ if( children[i].tagName == "SELECT" )
306
+ children[i].disabled = true;
307
+ children = $("query_endtime").childNodes;
308
+ for(i=0; i<children.length; i++)
309
+ if( children[i].tagName == "SELECT" )
310
+ children[i].disabled = true;
311
+ }
312
+ }
313
+ //]]>
@@ -0,0 +1,42 @@
1
+ var progressText;
2
+
3
+ var ProgressText = Class.create();
4
+ ProgressText.prototype = {
5
+ initialize: function() {
6
+ this.text = 'Now Loading';
7
+ this.interval = 250;
8
+ this.countMax = 5;
9
+ },
10
+
11
+ start: function(element) {
12
+ this.stop();
13
+ document.body.style.cursor = 'wait';
14
+ if ( element ) {
15
+ this.element = element;
16
+ this.count = 0;
17
+ this.changeText();
18
+ this.intervalId = setInterval(this.changeText.bind(this), this.interval);
19
+ }
20
+ },
21
+
22
+ stop: function() {
23
+ document.body.style.cursor = 'auto';
24
+ if ( this.intervalId ) {
25
+ clearInterval(this.intervalId);
26
+ this.intervalId = null;
27
+ this.element.innerHTML = '';
28
+ }
29
+ },
30
+
31
+ changeText: function() {
32
+ var bufferArray = [this.text];
33
+ for (i = 0; i < this.count; i++) {
34
+ bufferArray.push(' .');
35
+ }
36
+ this.element.innerHTML = bufferArray.join('');
37
+ this.count++;
38
+ if (this.count > this.countMax) {
39
+ this.count = 0;
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,164 @@
1
+ var HBar = Class.create();
2
+ Object.extend(HBar.prototype, Draggable.prototype);
3
+ Object.extend(HBar.prototype, {
4
+ initDrag: function(event) {
5
+ this.lastPointerX = Event.pointerX(event);
6
+ Draggable.prototype.initDrag.apply(this, arguments);
7
+ var box = this.boxObj.box;
8
+ var parent = box.parentNode;
9
+ var min_width = this.boxObj.min_width;
10
+ this.left_bound = Position.cumulativeOffset(box)[0] + min_width;
11
+ this.right_bound = Position.cumulativeOffset(parent)[0] + Element.getDimensions(parent).width - min_width - this.div_width;
12
+ },
13
+ updateDrag: function(event, pointer) {
14
+ var offset = this.offset[0];
15
+ var pos = pointer[0] - offset;
16
+ if (pos < this.left_bound) pos = this.left_bound;
17
+ if (pos > this.right_bound) pos = this.right_bound;
18
+ pointer[0] = pos + offset;
19
+ var dist = pointer[0] - this.lastPointerX;
20
+ this.lastPointerX = pointer[0];
21
+ var boxObj = this.boxObj;
22
+ boxObj.setWidth( boxObj.box_width + dist, true );
23
+ Draggable.prototype.updateDrag.apply(this, arguments);
24
+ },
25
+ endDrag: function(event) {
26
+ Draggable.prototype.endDrag.apply(this, arguments);
27
+ var boxObj = this.boxObj;
28
+ setCookie(boxObj.box.id+"Width", boxObj.box_width);
29
+ }
30
+ })
31
+
32
+ var VBar = Class.create();
33
+ Object.extend(VBar.prototype, Draggable.prototype);
34
+ Object.extend(VBar.prototype, {
35
+ initDrag: function(event) {
36
+ this.lastPointerY = Event.pointerY(event);
37
+ Draggable.prototype.initDrag.apply(this, arguments);
38
+ var box = this.boxObj.box;
39
+ var parent = box.parentNode;
40
+ var min_height = this.boxObj.min_height
41
+ this.top_bound = Position.cumulativeOffset(box)[1] + min_height;
42
+ var parent_height = parent.style.height;
43
+ if ( parent_height )
44
+ this.bottom_bound = Position.cumulativeOffset(parent)[1] + parent_height - min_height - this.div_height;
45
+ },
46
+ updateDrag: function(event, pointer) {
47
+ var offset = this.offset[1];
48
+ var pos = pointer[1] - offset;
49
+ if (pos < this.top_bound) pos = this.top_bound;
50
+ if (this.bottom_bound && pos > this.bottom_bound) pos = this.bottom_bound;
51
+ pointer[1] = pos + offset;
52
+ var dist = pointer[1] - this.lastPointerY;
53
+ this.lastPointerY = pointer[1];
54
+ var boxObj = this.boxObj;
55
+ boxObj.setHeight( boxObj.box_height + dist, true );
56
+ Draggable.prototype.updateDrag.apply(this, arguments);
57
+ },
58
+ endDrag: function(event) {
59
+ Draggable.prototype.endDrag.apply(this, arguments);
60
+ var boxObj = this.boxObj;
61
+ setCookie(boxObj.box.id+"Height", boxObj.box_height);
62
+ }
63
+ })
64
+
65
+
66
+
67
+ var ResizableBox = Class.create();
68
+ ResizableBox.prototype = {
69
+ initialize: function(box, box_width, box_height, hbarFlag, vbarFlag, others) {
70
+ var w = parseInt(getCookie(box.id+"Width"));
71
+ if ( w ) box_width = w;
72
+ var h = parseInt(getCookie(box.id+"Height"));
73
+ if ( h ) box_height = h;
74
+ if ( box_width ) box.style.width = box_width + 'px';
75
+ if ( box_height ) box.style.height = box_height + 'px';
76
+ var dim = Element.getDimensions(box);
77
+ box_width = dim.width;
78
+ box_height = dim.height;
79
+
80
+ var parent = box.parentNode;
81
+
82
+ if ( hbarFlag ) {
83
+ new Insertion.After(box, '<div class="hbar" style="float:left"></div>');
84
+ var cn = $A(parent.childNodes);
85
+ for ( var i=0; i<cn.length; i++) {
86
+ if ( cn[i] == box ) {
87
+ var hbar_div = cn[i+1];
88
+ break;
89
+ }
90
+ }
91
+ hbar_div.style.height = box_height - 2 + 'px';
92
+ var hbar = new HBar(hbar_div, {constraint: 'horizontal',
93
+ starteffect: null,
94
+ endeffect: null})
95
+ hbar.boxObj = this;
96
+ this.hbar = hbar;
97
+ this.hbar_div = hbar_div;
98
+ if ( others )
99
+ others.each(function(value,index){
100
+ value.style.width = box_width + 'px';
101
+ });
102
+ hbar.div_width = Element.getDimensions(hbar_div).width;
103
+ }
104
+
105
+ if ( vbarFlag ) {
106
+ new Insertion.After(box, '<div class="vbar"></div>');
107
+ var cn = $A(parent.childNodes);
108
+ for ( var i=0; i<cn.length; i++) {
109
+ if ( cn[i] == box ) {
110
+ var vbar_div = cn[i+1];
111
+ break;
112
+ }
113
+ }
114
+ vbar_div.style.width = box_width - 2 + 'px';
115
+ this.vbar_offset = -2;
116
+ vbar_div.style.top = this.vbar_offset + 'px';
117
+ var vbar = new VBar(vbar_div, {constraint: 'vertical',
118
+ starteffect: null,
119
+ endeffect: null})
120
+ vbar.boxObj = this;
121
+ this.vbar = vbar;
122
+ this.vbar_div = vbar_div;
123
+ if ( others )
124
+ others.each(function(value,index){
125
+ value.style.height = box_height - 2 + 'px';
126
+ });
127
+ vbar.div_height = Element.getDimensions(vbar_div).height;
128
+ }
129
+
130
+ this.box = box;
131
+ this.box_width = box_width;
132
+ this.box_height = box_height;
133
+ this.others = others;
134
+ this.min_width = 10;
135
+ this.min_height = 30;
136
+ },
137
+ setWidth: function(width, flag) {
138
+ if ( !flag ) {
139
+ var min_width = this.min_width;
140
+ if ( this.hbar ) min_width = min_width + this.hbar.div_width;
141
+ if ( width < min_width ) width = min_width;
142
+ }
143
+ this.box.style.width = width + 'px';
144
+ if ( this.others )
145
+ this.others.each(function(value,index){
146
+ value.style.width = width + 'px';
147
+ });
148
+ this.box_width = width;
149
+ },
150
+ setHeight: function(height, flag) {
151
+ if ( !flag ) {
152
+ var min_height = this.min_height;
153
+ // if ( this.vbar ) min_height = min_height + this.vbar.div_height;
154
+ if ( height < min_height ) height = min_height;
155
+ }
156
+ this.box.style.height = height + 'px';
157
+ if ( this.others )
158
+ this.others.each(function(value,index){
159
+ value.style.height = height + 'px';
160
+ });
161
+ this.box_height = height;
162
+ }
163
+ }
164
+