window_rails 0.1.5 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. data/CHANGELOG.rdoc +3 -0
  2. data/LICENSE +1 -23
  3. data/README.rdoc +14 -26
  4. data/app/controllers/window_rails_controller.rb +19 -4
  5. data/lib/window_rails.rb +6 -2
  6. data/lib/window_rails/engine.rb +15 -0
  7. data/lib/window_rails/tasks.rb +65 -3
  8. data/lib/window_rails/version.rb +1 -1
  9. data/lib/window_rails/window_rails_generators.rb +225 -98
  10. data/lib/window_rails/window_rails_view.rb +35 -3
  11. data/rails/init.rb +1 -1
  12. metadata +24 -181
  13. data/files/javascripts/debug.js +0 -137
  14. data/files/javascripts/extended_debug.js +0 -113
  15. data/files/javascripts/tooltip.js +0 -241
  16. data/files/javascripts/window.js +0 -1882
  17. data/files/javascripts/window_effects.js +0 -157
  18. data/files/javascripts/window_ext.js +0 -115
  19. data/files/themes/alert.css +0 -119
  20. data/files/themes/alert/bottom.gif +0 -0
  21. data/files/themes/alert/bottom_left.gif +0 -0
  22. data/files/themes/alert/bottom_right.gif +0 -0
  23. data/files/themes/alert/left.gif +0 -0
  24. data/files/themes/alert/overlay.png +0 -0
  25. data/files/themes/alert/progress.gif +0 -0
  26. data/files/themes/alert/right.gif +0 -0
  27. data/files/themes/alert/top.gif +0 -0
  28. data/files/themes/alert/top_left.gif +0 -0
  29. data/files/themes/alert/top_right.gif +0 -0
  30. data/files/themes/alert_lite.css +0 -88
  31. data/files/themes/alphacube.css +0 -150
  32. data/files/themes/alphacube/bottom-left-c.gif +0 -0
  33. data/files/themes/alphacube/bottom-middle.gif +0 -0
  34. data/files/themes/alphacube/bottom-right-c.gif +0 -0
  35. data/files/themes/alphacube/button-close-focus.gif +0 -0
  36. data/files/themes/alphacube/button-max-focus.gif +0 -0
  37. data/files/themes/alphacube/button-min-focus.gif +0 -0
  38. data/files/themes/alphacube/frame-left.gif +0 -0
  39. data/files/themes/alphacube/frame-right.gif +0 -0
  40. data/files/themes/alphacube/left-top.gif +0 -0
  41. data/files/themes/alphacube/right-top.gif +0 -0
  42. data/files/themes/alphacube/top-middle.gif +0 -0
  43. data/files/themes/behavior.htc +0 -51
  44. data/files/themes/darkX.css +0 -121
  45. data/files/themes/darkX/button-close-focused.png +0 -0
  46. data/files/themes/darkX/button-maximize-focused.png +0 -0
  47. data/files/themes/darkX/button-minimize-focused.png +0 -0
  48. data/files/themes/darkX/frame-bottom-left-focused.png +0 -0
  49. data/files/themes/darkX/frame-bottom-mid-focused.png +0 -0
  50. data/files/themes/darkX/frame-bottom-right-focused.png +0 -0
  51. data/files/themes/darkX/frame-left-focused.png +0 -0
  52. data/files/themes/darkX/frame-right-focused.png +0 -0
  53. data/files/themes/darkX/titlebar-left-focused.png +0 -0
  54. data/files/themes/darkX/titlebar-mid-focused.png +0 -0
  55. data/files/themes/darkX/titlebar-right-focused.png +0 -0
  56. data/files/themes/debug.css +0 -25
  57. data/files/themes/default.css +0 -155
  58. data/files/themes/default/bottom_left.gif +0 -0
  59. data/files/themes/default/bottom_mid.gif +0 -0
  60. data/files/themes/default/bottom_right.gif +0 -0
  61. data/files/themes/default/bottom_right_resize.gif +0 -0
  62. data/files/themes/default/center_left.gif +0 -0
  63. data/files/themes/default/center_right.gif +0 -0
  64. data/files/themes/default/clear.gif +0 -0
  65. data/files/themes/default/close.gif +0 -0
  66. data/files/themes/default/inspect.gif +0 -0
  67. data/files/themes/default/maximize.gif +0 -0
  68. data/files/themes/default/minimize.gif +0 -0
  69. data/files/themes/default/overlay.png +0 -0
  70. data/files/themes/default/resize.gif +0 -0
  71. data/files/themes/default/sizer.gif +0 -0
  72. data/files/themes/default/top_left.gif +0 -0
  73. data/files/themes/default/top_mid.gif +0 -0
  74. data/files/themes/default/top_right.gif +0 -0
  75. data/files/themes/iefix/blank.gif +0 -0
  76. data/files/themes/iefix/iepngfix.css +0 -3
  77. data/files/themes/iefix/iepngfix.htc +0 -54
  78. data/files/themes/lighting.css +0 -960
  79. data/files/themes/lighting/background_buttons.gif +0 -0
  80. data/files/themes/lighting/bottom-left-blue.png +0 -0
  81. data/files/themes/lighting/bottom-left-darkblue.png +0 -0
  82. data/files/themes/lighting/bottom-left-green.png +0 -0
  83. data/files/themes/lighting/bottom-left-grey.png +0 -0
  84. data/files/themes/lighting/bottom-middle-blue.png +0 -0
  85. data/files/themes/lighting/bottom-middle-darkblue.png +0 -0
  86. data/files/themes/lighting/bottom-middle-green.png +0 -0
  87. data/files/themes/lighting/bottom-middle-grey.png +0 -0
  88. data/files/themes/lighting/bottom-right-blue.png +0 -0
  89. data/files/themes/lighting/bottom-right-darkblue.png +0 -0
  90. data/files/themes/lighting/bottom-right-green.png +0 -0
  91. data/files/themes/lighting/bottom-right-grey.png +0 -0
  92. data/files/themes/lighting/button-close-blue.png +0 -0
  93. data/files/themes/lighting/button-close-darkblue.png +0 -0
  94. data/files/themes/lighting/button-close-green.png +0 -0
  95. data/files/themes/lighting/button-close-grey.png +0 -0
  96. data/files/themes/lighting/button-maximize-blue.png +0 -0
  97. data/files/themes/lighting/button-maximize-darkblue.png +0 -0
  98. data/files/themes/lighting/button-maximize-green.png +0 -0
  99. data/files/themes/lighting/button-maximize-grey.png +0 -0
  100. data/files/themes/lighting/button-minimize-blue.png +0 -0
  101. data/files/themes/lighting/button-minimize-darkblue.png +0 -0
  102. data/files/themes/lighting/button-minimize-green.png +0 -0
  103. data/files/themes/lighting/button-minimize-grey.png +0 -0
  104. data/files/themes/lighting/left-blue.png +0 -0
  105. data/files/themes/lighting/left-darkblue.png +0 -0
  106. data/files/themes/lighting/left-green.png +0 -0
  107. data/files/themes/lighting/left-grey.png +0 -0
  108. data/files/themes/lighting/pngbehavior.htc +0 -67
  109. data/files/themes/lighting/right-blue.png +0 -0
  110. data/files/themes/lighting/right-darkblue.png +0 -0
  111. data/files/themes/lighting/right-green.png +0 -0
  112. data/files/themes/lighting/right-grey.png +0 -0
  113. data/files/themes/lighting/spinner.gif +0 -0
  114. data/files/themes/lighting/top-left-blue.png +0 -0
  115. data/files/themes/lighting/top-left-darkblue.png +0 -0
  116. data/files/themes/lighting/top-left-green.png +0 -0
  117. data/files/themes/lighting/top-left-grey.png +0 -0
  118. data/files/themes/lighting/top-middle-blue.png +0 -0
  119. data/files/themes/lighting/top-middle-darkblue.png +0 -0
  120. data/files/themes/lighting/top-middle-green.png +0 -0
  121. data/files/themes/lighting/top-middle-grey.png +0 -0
  122. data/files/themes/lighting/top-right-blue.png +0 -0
  123. data/files/themes/lighting/top-right-darkblue.png +0 -0
  124. data/files/themes/lighting/top-right-green.png +0 -0
  125. data/files/themes/lighting/top-right-grey.png +0 -0
  126. data/files/themes/mac_os_x.css +0 -333
  127. data/files/themes/mac_os_x/B.png +0 -0
  128. data/files/themes/mac_os_x/BL.png +0 -0
  129. data/files/themes/mac_os_x/BL_Main.png +0 -0
  130. data/files/themes/mac_os_x/BR.png +0 -0
  131. data/files/themes/mac_os_x/BR_Main.png +0 -0
  132. data/files/themes/mac_os_x/B_Main.png +0 -0
  133. data/files/themes/mac_os_x/L.png +0 -0
  134. data/files/themes/mac_os_x/L_Main.png +0 -0
  135. data/files/themes/mac_os_x/R.png +0 -0
  136. data/files/themes/mac_os_x/R_Main.png +0 -0
  137. data/files/themes/mac_os_x/T.png +0 -0
  138. data/files/themes/mac_os_x/TL.png +0 -0
  139. data/files/themes/mac_os_x/TL_Main.png +0 -0
  140. data/files/themes/mac_os_x/TR.png +0 -0
  141. data/files/themes/mac_os_x/TR_Main.png +0 -0
  142. data/files/themes/mac_os_x/T_Main.png +0 -0
  143. data/files/themes/mac_os_x/close.gif +0 -0
  144. data/files/themes/mac_os_x/maximize.gif +0 -0
  145. data/files/themes/mac_os_x/minimize.gif +0 -0
  146. data/files/themes/mac_os_x_dialog.css +0 -160
  147. data/files/themes/mac_os_x_dialog/B.png +0 -0
  148. data/files/themes/mac_os_x_dialog/BL.png +0 -0
  149. data/files/themes/mac_os_x_dialog/BR.png +0 -0
  150. data/files/themes/mac_os_x_dialog/L.png +0 -0
  151. data/files/themes/mac_os_x_dialog/R.png +0 -0
  152. data/files/themes/mac_os_x_dialog/T.png +0 -0
  153. data/files/themes/mac_os_x_dialog/TL.png +0 -0
  154. data/files/themes/mac_os_x_dialog/TR.png +0 -0
  155. data/files/themes/mac_os_x_dialog/bg.gif +0 -0
  156. data/files/themes/mac_os_x_dialog/close.gif +0 -0
  157. data/files/themes/mac_os_x_dialog/maximize.gif +0 -0
  158. data/files/themes/mac_os_x_dialog/minimize.gif +0 -0
  159. data/files/themes/nuncio.css +0 -164
  160. data/files/themes/nuncio/bottom_left.png +0 -0
  161. data/files/themes/nuncio/bottom_mid.png +0 -0
  162. data/files/themes/nuncio/bottom_right.png +0 -0
  163. data/files/themes/nuncio/center_left.png +0 -0
  164. data/files/themes/nuncio/center_right.png +0 -0
  165. data/files/themes/nuncio/close.png +0 -0
  166. data/files/themes/nuncio/minimize.png +0 -0
  167. data/files/themes/nuncio/overlay.png +0 -0
  168. data/files/themes/nuncio/top_left.png +0 -0
  169. data/files/themes/nuncio/top_mid.png +0 -0
  170. data/files/themes/nuncio/top_right.png +0 -0
  171. data/files/themes/spread.css +0 -108
  172. data/files/themes/spread/bottom-left-c.gif +0 -0
  173. data/files/themes/spread/bottom-middle.gif +0 -0
  174. data/files/themes/spread/bottom-right-c.gif +0 -0
  175. data/files/themes/spread/button-close-focus.gif +0 -0
  176. data/files/themes/spread/button-max-focus.gif +0 -0
  177. data/files/themes/spread/button-min-focus.gif +0 -0
  178. data/files/themes/spread/frame-left.gif +0 -0
  179. data/files/themes/spread/frame-right.gif +0 -0
  180. data/files/themes/spread/left-top.gif +0 -0
  181. data/files/themes/spread/right-top.gif +0 -0
  182. data/files/themes/spread/top-middle.gif +0 -0
  183. data/init.rb +0 -8
  184. data/install.rb +0 -31
  185. data/uninstall.rb +0 -9
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/init.rb DELETED
@@ -1,8 +0,0 @@
1
- require 'window_rails/window_rails_view'
2
- require 'window_rails/window_rails_generators'
3
-
4
- # Load everything into rails
5
- if(defined? Rails)
6
- ActionView::Base.send :include, WindowRailsView
7
- ActionView::Helpers::PrototypeHelper::JavaScriptGenerator::GeneratorMethods.send :include, WindowRailsGenerators
8
- end
data/install.rb DELETED
@@ -1,31 +0,0 @@
1
- require 'window_rails/version'
2
-
3
- def install_javascripts
4
- raise 'Unknown Rails path' unless defined? RAILS_ROOT
5
- FileUtils.cp_r(File.join(File.dirname(__FILE__), 'files', 'javascripts', File::SEPARATOR, '.'), File.join(RAILS_ROOT, 'public', 'javascripts', 'window_rails'))
6
- end
7
-
8
- def install_themes
9
- raise 'Unknown Rails path' unless defined? RAILS_ROOT
10
- FileUtils.cp_r(File.join(File.dirname(__FILE__), 'files', 'themes'), File.join(RAILS_ROOT, 'public'))
11
- end
12
-
13
- def install_version
14
- f = File.open(File.join(RAILS_ROOT, 'public', 'javascripts', 'window_rails', 'version'), 'w')
15
- f.puts WindowRails::VERSION
16
- f.close
17
- end
18
-
19
- def install_all
20
- install_javascripts
21
- install_themes
22
- install_version
23
- end
24
-
25
- ## Place version file and check for it. install if not found.
26
- if(File.exists?(File.join(RAILS_ROOT, 'public', 'javascripts', 'window_rails', 'version')))
27
- check = File.read(File.join(RAILS_ROOT, 'public', 'javascripts', 'window_rails', 'version')).strip
28
- install_all unless check == WindowRails::VERSION
29
- else
30
- install_all
31
- end
data/uninstall.rb DELETED
@@ -1,9 +0,0 @@
1
- require 'fileutils'
2
-
3
- if(defined? RAILS_ROOT)
4
- Dir.new(File.join(File.dirname(__FILE__), 'files', 'javascripts')).each do |name|
5
- next if name[0,1] == '.'
6
- FileUtils.rm_rf(RAILS_ROOT, 'public', 'javascripts', name))
7
- end
8
- FileUtils.rm_rf(RAILS_ROOT, 'public', 'themes'))
9
- end