rabbit 0.9.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. data/Gemfile +9 -2
  2. data/Rakefile +11 -4
  3. data/TODO +0 -2
  4. data/bin/rabbirack +95 -0
  5. data/bin/rabbit +23 -2
  6. data/bin/rabbiter +9 -0
  7. data/data/locale/en/LC_MESSAGES/rabbit.mo +0 -0
  8. data/data/locale/fr/LC_MESSAGES/rabbit.mo +0 -0
  9. data/data/locale/ja/LC_MESSAGES/rabbit.mo +0 -0
  10. data/doc/_layouts/en.html +1 -1
  11. data/doc/_layouts/ja.html +1 -1
  12. data/doc/_layouts/skeleton.html +1 -1
  13. data/doc/_site/css/rabbit.css +41 -1
  14. data/doc/_site/en/development.html +2 -2
  15. data/doc/_site/en/faq.html +2 -2
  16. data/doc/_site/en/hiki.html +2 -2
  17. data/doc/_site/en/how-to-make/hiki.html +2 -2
  18. data/doc/_site/en/how-to-make/index.html +2 -2
  19. data/doc/_site/en/how-to-make/pdf.html +2 -2
  20. data/doc/_site/en/how-to-make/rd.html +2 -2
  21. data/doc/_site/en/how-to-make/theme.html +2 -2
  22. data/doc/_site/en/index.html +20 -20
  23. data/doc/_site/en/install/homebrew.html +6 -12
  24. data/doc/_site/en/install/index.html +5 -3
  25. data/doc/_site/en/install/macports.html +2 -2
  26. data/doc/_site/en/install/windows.html +2 -2
  27. data/doc/_site/en/news.html +172 -61
  28. data/doc/_site/en/rd.html +2 -2
  29. data/doc/_site/en/sample/hiki/rabbit.html +3 -3
  30. data/doc/_site/en/sample/index.html +2 -2
  31. data/doc/_site/en/sample/rd/rabbit.html +3 -3
  32. data/doc/_site/en/slides.html +2 -2
  33. data/doc/_site/en/usage.html +60 -60
  34. data/doc/_site/en/users.html +2 -2
  35. data/doc/_site/images/screenshots/en/blue-circle.png +0 -0
  36. data/doc/_site/images/screenshots/en/clear-blue-raw.png +0 -0
  37. data/doc/_site/images/screenshots/en/clear-blue.png +0 -0
  38. data/doc/_site/images/screenshots/en/cozmixng-raw.png +0 -0
  39. data/doc/_site/images/screenshots/en/cozmixng.png +0 -0
  40. data/doc/_site/images/screenshots/en/dark-gradation.png +0 -0
  41. data/doc/_site/images/screenshots/en/day-white.png +0 -0
  42. data/doc/_site/images/screenshots/en/debian.png +0 -0
  43. data/doc/_site/images/screenshots/en/green-circle.png +0 -0
  44. data/doc/_site/images/screenshots/en/night-black.png +0 -0
  45. data/doc/_site/images/screenshots/en/rabbit-raw.png +0 -0
  46. data/doc/_site/images/screenshots/en/rabbit.png +0 -0
  47. data/doc/_site/images/screenshots/en/ranguba-raw.png +0 -0
  48. data/doc/_site/images/screenshots/en/ranguba.png +0 -0
  49. data/doc/_site/images/screenshots/en/red-frame.png +0 -0
  50. data/doc/_site/images/screenshots/en/ruby-gnome2.png +0 -0
  51. data/doc/_site/images/screenshots/ja/blue-circle.png +0 -0
  52. data/doc/_site/images/screenshots/ja/clear-blue-raw.png +0 -0
  53. data/doc/_site/images/screenshots/ja/clear-blue.png +0 -0
  54. data/doc/_site/images/screenshots/ja/cozmixng-raw.png +0 -0
  55. data/doc/_site/images/screenshots/ja/cozmixng.png +0 -0
  56. data/doc/_site/images/screenshots/ja/dark-gradation.png +0 -0
  57. data/doc/_site/images/screenshots/ja/day-white.png +0 -0
  58. data/doc/_site/images/screenshots/ja/debian.png +0 -0
  59. data/doc/_site/images/screenshots/ja/green-circle.png +0 -0
  60. data/doc/_site/images/screenshots/ja/night-black.png +0 -0
  61. data/doc/_site/images/screenshots/ja/rabbit-raw.png +0 -0
  62. data/doc/_site/images/screenshots/ja/rabbit.png +0 -0
  63. data/doc/_site/images/screenshots/ja/ranguba-raw.png +0 -0
  64. data/doc/_site/images/screenshots/ja/ranguba.png +0 -0
  65. data/doc/_site/images/screenshots/ja/red-frame.png +0 -0
  66. data/doc/_site/images/screenshots/ja/ruby-gnome2.png +0 -0
  67. data/doc/_site/index.html.en +8 -2
  68. data/doc/_site/index.html.ja +8 -2
  69. data/doc/_site/ja/about.html +2 -2
  70. data/doc/_site/ja/development.html +2 -2
  71. data/doc/_site/ja/faq.html +25 -14
  72. data/doc/_site/ja/hiki.html +2 -2
  73. data/doc/_site/ja/how-to-make/hiki.html +2 -2
  74. data/doc/_site/ja/how-to-make/index.html +2 -2
  75. data/doc/_site/ja/how-to-make/pdf.html +2 -2
  76. data/doc/_site/ja/how-to-make/rd.html +2 -2
  77. data/doc/_site/ja/how-to-make/theme.html +2 -2
  78. data/doc/_site/ja/index.html +2 -2
  79. data/doc/_site/ja/install/homebrew.html +6 -12
  80. data/doc/_site/ja/install/index.html +5 -3
  81. data/doc/_site/ja/install/macports.html +3 -6
  82. data/doc/_site/ja/install/windows.html +2 -2
  83. data/doc/_site/ja/news.html +165 -61
  84. data/doc/_site/ja/rd.html +2 -2
  85. data/doc/_site/ja/sample/hiki/rabbit.html +3 -3
  86. data/doc/_site/ja/sample/index.html +2 -2
  87. data/doc/_site/ja/sample/rd/rabbit.html +3 -3
  88. data/doc/_site/ja/slides.html +2 -2
  89. data/doc/_site/ja/usage.html +60 -69
  90. data/doc/_site/ja/users.html +2 -2
  91. data/doc/css/rabbit.css +41 -1
  92. data/doc/en/index.rd +1 -1
  93. data/doc/en/install/homebrew.rd +2 -11
  94. data/doc/en/install/index.rd +2 -0
  95. data/doc/en/news.rd +117 -3
  96. data/doc/en/sample/hiki/rabbit.hiki +1 -1
  97. data/doc/en/sample/rd/rabbit.rd +1 -1
  98. data/doc/en/usage.rd +12 -17
  99. data/doc/images/screenshots/en/blue-circle.png +0 -0
  100. data/doc/images/screenshots/en/clear-blue-raw.png +0 -0
  101. data/doc/images/screenshots/en/clear-blue.png +0 -0
  102. data/doc/images/screenshots/en/cozmixng-raw.png +0 -0
  103. data/doc/images/screenshots/en/cozmixng.png +0 -0
  104. data/doc/images/screenshots/en/dark-gradation.png +0 -0
  105. data/doc/images/screenshots/en/day-white.png +0 -0
  106. data/doc/images/screenshots/en/debian.png +0 -0
  107. data/doc/images/screenshots/en/green-circle.png +0 -0
  108. data/doc/images/screenshots/en/night-black.png +0 -0
  109. data/doc/images/screenshots/en/rabbit-raw.png +0 -0
  110. data/doc/images/screenshots/en/rabbit.png +0 -0
  111. data/doc/images/screenshots/en/ranguba-raw.png +0 -0
  112. data/doc/images/screenshots/en/ranguba.png +0 -0
  113. data/doc/images/screenshots/en/red-frame.png +0 -0
  114. data/doc/images/screenshots/en/ruby-gnome2.png +0 -0
  115. data/doc/images/screenshots/ja/blue-circle.png +0 -0
  116. data/doc/images/screenshots/ja/clear-blue-raw.png +0 -0
  117. data/doc/images/screenshots/ja/clear-blue.png +0 -0
  118. data/doc/images/screenshots/ja/cozmixng-raw.png +0 -0
  119. data/doc/images/screenshots/ja/cozmixng.png +0 -0
  120. data/doc/images/screenshots/ja/dark-gradation.png +0 -0
  121. data/doc/images/screenshots/ja/day-white.png +0 -0
  122. data/doc/images/screenshots/ja/debian.png +0 -0
  123. data/doc/images/screenshots/ja/green-circle.png +0 -0
  124. data/doc/images/screenshots/ja/night-black.png +0 -0
  125. data/doc/images/screenshots/ja/rabbit-raw.png +0 -0
  126. data/doc/images/screenshots/ja/rabbit.png +0 -0
  127. data/doc/images/screenshots/ja/ranguba-raw.png +0 -0
  128. data/doc/images/screenshots/ja/ranguba.png +0 -0
  129. data/doc/images/screenshots/ja/red-frame.png +0 -0
  130. data/doc/images/screenshots/ja/ruby-gnome2.png +0 -0
  131. data/doc/index.html.en +6 -0
  132. data/doc/index.html.ja +6 -0
  133. data/doc/ja/faq.rd +21 -3
  134. data/doc/ja/install/homebrew.rd +2 -11
  135. data/doc/ja/install/index.rd +2 -0
  136. data/doc/ja/install/macports.rd +1 -6
  137. data/doc/ja/news.rd +109 -3
  138. data/doc/ja/sample/hiki/rabbit.hiki +1 -1
  139. data/doc/ja/sample/rd/rabbit.rd +1 -1
  140. data/doc/ja/usage.rd +11 -29
  141. data/lib/rabbit/canvas.rb +7 -4
  142. data/lib/rabbit/console.rb +1 -1
  143. data/lib/rabbit/div/main-i.erb +1 -1
  144. data/lib/rabbit/div/main.erb +1 -1
  145. data/lib/rabbit/element/base.rb +17 -1
  146. data/lib/rabbit/element/image.rb +1 -0
  147. data/lib/rabbit/element/preformatted.rb +8 -3
  148. data/lib/rabbit/element/syntax-highlighting.rb +15 -0
  149. data/lib/rabbit/element/text-renderer.rb +3 -3
  150. data/lib/rabbit/element/text.rb +0 -12
  151. data/lib/rabbit/element/title-slide.rb +1 -25
  152. data/lib/rabbit/formatter.rb +26 -6
  153. data/lib/rabbit/front.rb +10 -6
  154. data/lib/rabbit/html/template.erb +1 -1
  155. data/lib/rabbit/image.rb +1 -1
  156. data/lib/rabbit/keys.rb +70 -70
  157. data/lib/rabbit/middleware/config.ru +42 -0
  158. data/lib/rabbit/middleware/controller.rb +66 -0
  159. data/lib/rabbit/middleware/public/stylesheets/rabbirack.css +12 -0
  160. data/lib/rabbit/middleware/views/index.haml +13 -0
  161. data/lib/rabbit/middleware/views/layout.haml +8 -0
  162. data/lib/rabbit/parser/ext/aafigure.rb +1 -1
  163. data/lib/rabbit/parser/ext/blockdiag.rb +46 -0
  164. data/lib/rabbit/parser/ext/coderay.rb +66 -0
  165. data/lib/rabbit/parser/ext/emacs.rb +116 -0
  166. data/lib/rabbit/parser/ext/enscript.rb +15 -22
  167. data/lib/rabbit/parser/rd.rb +8 -2
  168. data/lib/rabbit/parser/rd/ext/block-verbatim.rb +53 -16
  169. data/lib/rabbit/parser/wiki.rb +3 -1
  170. data/lib/rabbit/parser/wiki/output.rb +28 -16
  171. data/lib/rabbit/rabbit.rb +7 -1
  172. data/lib/rabbit/renderer/display.rb +14 -2
  173. data/lib/rabbit/renderer/display/clutter-embed.rb +1 -1
  174. data/lib/rabbit/renderer/display/key-handler.rb +12 -12
  175. data/lib/rabbit/soap/base.rb +1 -1
  176. data/lib/rabbit/theme-browser.rb +2 -2
  177. data/lib/rabbit/theme/base/base.rb +7 -0
  178. data/lib/rabbit/theme/default-comment/default-comment.rb +9 -0
  179. data/lib/rabbit/theme/default-comment/property.rb +4 -0
  180. data/lib/rabbit/theme/default-item-mark-setup/default-item-mark-setup.rb +1 -1
  181. data/lib/rabbit/theme/default-slide/default-slide.rb +2 -2
  182. data/lib/rabbit/theme/default-text/default-text.rb +5 -0
  183. data/lib/rabbit/theme/default/default.rb +6 -7
  184. data/lib/rabbit/theme/footer-comment/footer-comment.rb +35 -8
  185. data/lib/rabbit/theme/pdf/pdf.rb +18 -0
  186. data/lib/rabbit/theme/rabbit-powered-by/rabbit-powered-by.rb +1 -1
  187. data/lib/rabbit/theme/syntax-highlighting/property.rb +4 -0
  188. data/lib/rabbit/theme/syntax-highlighting/syntax-highlighting.rb +139 -0
  189. data/lib/rabbit/theme/title-shadow/title-shadow.rb +1 -1
  190. data/lib/rabbit/theme/twitter-comment/twitter-comment.rb +1 -1
  191. data/lib/rabbit/twitter.rb +28 -4
  192. data/lib/rabbit/utils.rb +40 -12
  193. data/po/en/rabbit.po +175 -145
  194. data/po/fr/rabbit.po +180 -149
  195. data/po/ja/rabbit.po +176 -148
  196. data/po/rabbit.pot +175 -145
  197. data/sample/can_rabbit.rd +0 -21
  198. data/sample/rabbit-en.hiki +21 -2
  199. data/sample/rabbit-en.rd +42 -2
  200. data/sample/rabbit-implementation.rd +0 -5
  201. data/sample/rabbit.hiki +19 -16
  202. data/sample/rabbit.rd +42 -11
  203. data/sample/test.hiki +31 -0
  204. data/sample/test.rab +30 -0
  205. metadata +84 -58
  206. data/lib/rabbit/parser/ext/anthy.rb +0 -43
  207. data/lib/rabbit/parser/rd/ext/aafigure.rb +0 -18
  208. data/lib/rabbit/parser/rd/ext/anthy.rb +0 -29
  209. data/lib/rabbit/parser/rd/ext/enscript.rb +0 -24
  210. data/lib/rabbit/parser/rd/ext/tex.rb +0 -24
  211. data/lib/rabbit/source/rwiki.rb +0 -54
  212. data/lib/rabbit/theme/pdf-tortoise-and-hare/pdf-tortoise-and-hare.rb +0 -18
  213. data/lib/rabbit/theme/pdf-tortoise-and-hare/property.rb +0 -3
@@ -24,6 +24,7 @@ module Rabbit
24
24
 
25
25
  def initialize(filename, prop)
26
26
  @filename = filename
27
+ prop = Utils.stringify_hash_key(prop)
27
28
  super(filename, prop)
28
29
  normalized_prop = {}
29
30
  prop.each do |name, value|
@@ -1,10 +1,10 @@
1
- require 'rabbit/element/text-container-element'
1
+ require 'rabbit/element/text-block-element'
2
2
  require 'rabbit/element/block-element'
3
3
 
4
4
  module Rabbit
5
5
  module Element
6
6
  class PreformattedBlock
7
- include TextContainerElement
7
+ include TextBlockElement
8
8
  include BlockHorizontalCentering
9
9
 
10
10
  def text
@@ -16,7 +16,12 @@ module Rabbit
16
16
  end
17
17
 
18
18
  def to_html(generator)
19
- "<pre>#{super}</pre>"
19
+ "<pre#{attributes}>#{super}</pre>"
20
+ end
21
+
22
+ private
23
+ def attributes
24
+ ""
20
25
  end
21
26
  end
22
27
 
@@ -0,0 +1,15 @@
1
+ require 'rabbit/element/preformatted'
2
+
3
+ module Rabbit
4
+ module Element
5
+ class SyntaxHighlightingBlock < PreformattedBlock
6
+ private
7
+ def attributes
8
+ " class=\"syntax-highlighting\""
9
+ end
10
+ end
11
+
12
+ class SyntaxHighlightingText < PreformattedText
13
+ end
14
+ end
15
+ end
@@ -238,15 +238,15 @@ module Rabbit
238
238
  end
239
239
 
240
240
  def draw_layout(canvas, x, y)
241
- shadow_color = self["shadow-color"]
241
+ shadow_color = prop_value("shadow-color")
242
242
  if shadow_color
243
243
  shadow_foreground = Format::Foreground.new(shadow_color)
244
244
  shadow_text = markup(shadow_foreground.format(text))
245
245
  shadow_layout = canvas.make_layout(shadow_text)
246
246
  setup_layout(shadow_layout, @layout.width / Pango::SCALE)
247
247
  line_height = shadow_layout.pixel_size[1] / shadow_layout.line_count
248
- shadow_x = self["shadow-x"] || (line_height * 0.08)
249
- shadow_y = self["shadow-y"] || (line_height * 0.06)
248
+ shadow_x = prop_value("shadow-x") || (line_height * 0.08)
249
+ shadow_y = prop_value("shadow-y") || (line_height * 0.06)
250
250
  canvas.draw_layout(shadow_layout, x + shadow_x, y + shadow_y,
251
251
  shadow_color)
252
252
  end
@@ -16,18 +16,6 @@ module Rabbit
16
16
  include TextBlockElement
17
17
  end
18
18
 
19
- class PreformattedBlock
20
- include TextBlockElement
21
-
22
- def to_html(generator)
23
- "<pre>#{super}</pre>"
24
- end
25
- end
26
-
27
- class PreformattedText
28
- include TextContainerElement
29
- end
30
-
31
19
  class Keyword
32
20
  include TextContainerElement
33
21
  end
@@ -36,9 +36,7 @@ module Rabbit
36
36
  end
37
37
 
38
38
  def allotted_time
39
- time = self["allotted-time"]
40
- time = parse_time(time) if time
41
- time
39
+ self["allotted-time"]
42
40
  end
43
41
 
44
42
  def to_html(generator)
@@ -55,28 +53,6 @@ module Rabbit
55
53
  def normalize_name(name)
56
54
  name.gsub(/_/, "-").strip
57
55
  end
58
-
59
- def parse_time(str)
60
- if /\A\s*\z/m =~ str
61
- nil
62
- else
63
- if /\A\s*(\d*\.?\d*)\s*(h|m|s)?\s*\z/i =~ str
64
- time = $1.to_f
65
- unit = $2
66
- if unit
67
- case unit.downcase
68
- when "m"
69
- time *= 60
70
- when "h"
71
- time *= 3600
72
- end
73
- end
74
- time.to_i
75
- else
76
- nil
77
- end
78
- end
79
- end
80
56
  end
81
57
 
82
58
  class Title
@@ -99,7 +99,7 @@ EOC
99
99
  super(value)
100
100
  end
101
101
  end
102
-
102
+
103
103
  class Foreground
104
104
  def normalize_attribute(name, value)
105
105
  value = Renderer::Color.parse(value).to_gdk_format
@@ -108,17 +108,16 @@ EOC
108
108
  end
109
109
 
110
110
  module ConvenienceTextFormatter
111
-
112
111
  include Formatter
113
112
 
114
113
  def text_formatter?
115
114
  true
116
115
  end
117
-
116
+
118
117
  def html_formatter?
119
118
  true
120
119
  end
121
-
120
+
122
121
  def format(text)
123
122
  tagged_text(text, name, {})
124
123
  end
@@ -132,12 +131,33 @@ EOC
132
131
  module_eval(<<-EOC)
133
132
  class #{to_class_name(name)}
134
133
  include ConvenienceTextFormatter
135
-
134
+
136
135
  def name
137
136
  #{name.dump}
138
137
  end
139
138
  end
140
- EOC
139
+ EOC
140
+ end
141
+
142
+ module ValueContainerFormatter
143
+ include Formatter
144
+
145
+ attr_reader :value
146
+ def initialize(value)
147
+ @value = value
148
+ end
149
+ end
150
+
151
+ %w(shadow-color shadow-x shadow-y).each do |name|
152
+ module_eval(<<-EOC)
153
+ class #{to_class_name(name)}
154
+ include ValueContainerFormatter
155
+
156
+ def name
157
+ #{name.dump}
158
+ end
159
+ end
160
+ EOC
141
161
  end
142
162
  end
143
163
  end
data/lib/rabbit/front.rb CHANGED
@@ -87,7 +87,7 @@ module Rabbit
87
87
  def slide_title
88
88
  @canvas.slide_title
89
89
  end
90
-
90
+
91
91
  def total_slide_number
92
92
  @canvas.slide_size
93
93
  end
@@ -127,9 +127,13 @@ module Rabbit
127
127
  end
128
128
 
129
129
  def append_comment(comment)
130
- @canvas.append_comment(comment)
130
+ GLib::Idle.add do
131
+ @canvas.append_comment(comment)
132
+ false
133
+ end
134
+ true
131
135
  end
132
-
136
+
133
137
  def comments
134
138
  @canvas.comments
135
139
  end
@@ -150,7 +154,7 @@ module Rabbit
150
154
  end
151
155
  end
152
156
  end
153
-
157
+
154
158
  def update_images_if_need
155
159
  mon_synchronize do
156
160
  _check_dirty
@@ -185,7 +189,7 @@ module Rabbit
185
189
  arg_list = []
186
190
  arg_list.concat(Utils.arg_list(@canvas.method(name).arity))
187
191
  arg_str = arg_list.join(", ")
188
-
192
+
189
193
  if (@public_level & level).zero?
190
194
  instance_eval(<<-EOS, __FILE__, __LINE__ + 1)
191
195
  def self.#{name}(#{arg_str})
@@ -219,7 +223,7 @@ module Rabbit
219
223
  end
220
224
  end
221
225
  end
222
-
226
+
223
227
  def clean
224
228
  @off_screen_canvas = nil
225
229
  @dirty = false
@@ -101,7 +101,7 @@ function handle_key(e)
101
101
  <div class="footer">
102
102
  <p>
103
103
  Generated by
104
- <a href="http://www.cozmixng.org/~rwiki/?cmd=view;name=Rabbit">Rabbit</a>
104
+ <a href="http://rabbit-shockers.org/">Rabbit</a>
105
105
  version <%= Rabbit::VERSION %>
106
106
  </p>
107
107
  </div>
data/lib/rabbit/image.rb CHANGED
@@ -24,7 +24,7 @@ module Rabbit
24
24
  raise ImageFileDoesNotExistError.new(filename)
25
25
  end
26
26
  super(*args, &block)
27
- Utils.stringify_hash_key!(props) if props
27
+ props = Utils.stringify_hash_key(props) if props
28
28
  @loader = Base.find_loader(filename).new(filename, props)
29
29
  end
30
30
  end
data/lib/rabbit/keys.rb CHANGED
@@ -5,177 +5,177 @@ module Rabbit
5
5
  module Keys
6
6
 
7
7
  QUIT_KEYS = [
8
- Gdk::Keyval::GDK_Escape,
9
- Gdk::Keyval::GDK_q,
8
+ Gdk::Keyval::GDK_KEY_Escape,
9
+ Gdk::Keyval::GDK_KEY_q,
10
10
  ]
11
11
 
12
12
  MOVE_TO_NEXT_KEYS = [
13
- Gdk::Keyval::GDK_n,
14
- Gdk::Keyval::GDK_f,
15
- Gdk::Keyval::GDK_j,
16
- Gdk::Keyval::GDK_l,
17
- Gdk::Keyval::GDK_Page_Down,
18
- Gdk::Keyval::GDK_Tab,
19
- Gdk::Keyval::GDK_Return,
20
- Gdk::Keyval::GDK_rightarrow,
21
- Gdk::Keyval::GDK_downarrow,
22
- Gdk::Keyval::GDK_space,
23
- Gdk::Keyval::GDK_plus,
24
- Gdk::Keyval::GDK_KP_Add,
25
- Gdk::Keyval::GDK_KP_Page_Down,
26
- Gdk::Keyval::GDK_KP_Enter,
27
- Gdk::Keyval::GDK_KP_Tab,
13
+ Gdk::Keyval::GDK_KEY_n,
14
+ Gdk::Keyval::GDK_KEY_f,
15
+ Gdk::Keyval::GDK_KEY_j,
16
+ Gdk::Keyval::GDK_KEY_l,
17
+ Gdk::Keyval::GDK_KEY_Page_Down,
18
+ Gdk::Keyval::GDK_KEY_Tab,
19
+ Gdk::Keyval::GDK_KEY_Return,
20
+ Gdk::Keyval::GDK_KEY_rightarrow,
21
+ Gdk::Keyval::GDK_KEY_downarrow,
22
+ Gdk::Keyval::GDK_KEY_space,
23
+ Gdk::Keyval::GDK_KEY_plus,
24
+ Gdk::Keyval::GDK_KEY_KP_Add,
25
+ Gdk::Keyval::GDK_KEY_KP_Page_Down,
26
+ Gdk::Keyval::GDK_KEY_KP_Enter,
27
+ Gdk::Keyval::GDK_KEY_KP_Tab,
28
28
  ]
29
29
 
30
30
  MOVE_TO_PREVIOUS_KEYS = [
31
- Gdk::Keyval::GDK_p,
32
- Gdk::Keyval::GDK_b,
33
- Gdk::Keyval::GDK_h,
34
- Gdk::Keyval::GDK_k,
35
- Gdk::Keyval::GDK_Page_Up,
36
- Gdk::Keyval::GDK_leftarrow,
37
- Gdk::Keyval::GDK_uparrow,
38
- Gdk::Keyval::GDK_BackSpace,
39
- Gdk::Keyval::GDK_Delete,
40
- Gdk::Keyval::GDK_minus,
41
- Gdk::Keyval::GDK_KP_Subtract,
42
- Gdk::Keyval::GDK_KP_Page_Up,
43
- Gdk::Keyval::GDK_KP_Delete,
31
+ Gdk::Keyval::GDK_KEY_p,
32
+ Gdk::Keyval::GDK_KEY_b,
33
+ Gdk::Keyval::GDK_KEY_h,
34
+ Gdk::Keyval::GDK_KEY_k,
35
+ Gdk::Keyval::GDK_KEY_Page_Up,
36
+ Gdk::Keyval::GDK_KEY_leftarrow,
37
+ Gdk::Keyval::GDK_KEY_uparrow,
38
+ Gdk::Keyval::GDK_KEY_BackSpace,
39
+ Gdk::Keyval::GDK_KEY_Delete,
40
+ Gdk::Keyval::GDK_KEY_minus,
41
+ Gdk::Keyval::GDK_KEY_KP_Subtract,
42
+ Gdk::Keyval::GDK_KEY_KP_Page_Up,
43
+ Gdk::Keyval::GDK_KEY_KP_Delete,
44
44
  ]
45
45
 
46
46
  MOVE_TO_FIRST_KEYS = [
47
- Gdk::Keyval::GDK_a,
48
- Gdk::Keyval::GDK_Home,
49
- Gdk::Keyval::GDK_KP_Home,
50
- Gdk::Keyval::GDK_less,
47
+ Gdk::Keyval::GDK_KEY_a,
48
+ Gdk::Keyval::GDK_KEY_Home,
49
+ Gdk::Keyval::GDK_KEY_KP_Home,
50
+ Gdk::Keyval::GDK_KEY_less,
51
51
  ]
52
52
 
53
53
  MOVE_TO_LAST_KEYS = [
54
- Gdk::Keyval::GDK_e,
55
- Gdk::Keyval::GDK_End,
56
- Gdk::Keyval::GDK_KP_End,
57
- Gdk::Keyval::GDK_greater,
58
- Gdk::Keyval::GDK_dollar,
54
+ Gdk::Keyval::GDK_KEY_e,
55
+ Gdk::Keyval::GDK_KEY_End,
56
+ Gdk::Keyval::GDK_KEY_KP_End,
57
+ Gdk::Keyval::GDK_KEY_greater,
58
+ Gdk::Keyval::GDK_KEY_dollar,
59
59
  ]
60
60
 
61
61
  TOGGLE_FULLSCREEN_KEYS = [
62
- Gdk::Keyval::GDK_F5,
63
- Gdk::Keyval::GDK_F10,
64
- Gdk::Keyval::GDK_F11,
62
+ Gdk::Keyval::GDK_KEY_F5,
63
+ Gdk::Keyval::GDK_KEY_F10,
64
+ Gdk::Keyval::GDK_KEY_F11,
65
65
  ]
66
66
 
67
67
  RELOAD_THEME_KEYS = [
68
- Gdk::Keyval::GDK_t,
69
- Gdk::Keyval::GDK_r,
68
+ Gdk::Keyval::GDK_KEY_t,
69
+ Gdk::Keyval::GDK_KEY_r,
70
70
  ]
71
71
 
72
72
  SAVE_AS_IMAGE_KEYS = [
73
- Gdk::Keyval::GDK_s,
73
+ Gdk::Keyval::GDK_KEY_s,
74
74
  ]
75
75
 
76
76
  ICONIFY_KEYS = [
77
- Gdk::Keyval::GDK_z,
77
+ Gdk::Keyval::GDK_KEY_z,
78
78
  ]
79
79
 
80
80
  TOGGLE_INDEX_MODE_KEYS = [
81
- Gdk::Keyval::GDK_i,
81
+ Gdk::Keyval::GDK_KEY_i,
82
82
  ]
83
83
 
84
84
  CACHE_ALL_SLIDES_KEYS = [
85
- Gdk::Keyval::GDK_c,
85
+ Gdk::Keyval::GDK_KEY_c,
86
86
  ]
87
87
 
88
88
  SEARCH_SLIDE_FORWARD_KEYS = [
89
- Gdk::Keyval::GDK_slash,
89
+ Gdk::Keyval::GDK_KEY_slash,
90
90
  ]
91
91
 
92
92
  SEARCH_SLIDE_BACKWARD_KEYS = [
93
- Gdk::Keyval::GDK_question,
93
+ Gdk::Keyval::GDK_KEY_question,
94
94
  ]
95
95
 
96
96
  SEARCH_SLIDE_FORWARD_NEXT_KEYS = [
97
- Gdk::Keyval::GDK_n,
97
+ Gdk::Keyval::GDK_KEY_n,
98
98
  ]
99
99
 
100
100
  STOP_SLIDE_SEARCH_KEYS = [
101
- Gdk::Keyval::GDK_Escape,
101
+ Gdk::Keyval::GDK_KEY_Escape,
102
102
  ]
103
103
 
104
104
  module Shift
105
105
  WHITE_OUT_KEYS = [
106
- Gdk::Keyval::GDK_w,
106
+ Gdk::Keyval::GDK_KEY_w,
107
107
  ]
108
108
 
109
109
  BLACK_OUT_KEYS = [
110
- Gdk::Keyval::GDK_b,
110
+ Gdk::Keyval::GDK_KEY_b,
111
111
  ]
112
112
 
113
113
  EXPAND_HOLE_KEYS = [
114
- Gdk::Keyval::GDK_e,
114
+ Gdk::Keyval::GDK_KEY_e,
115
115
  ]
116
116
 
117
117
  NARROW_HOLE_KEYS = [
118
- Gdk::Keyval::GDK_n,
118
+ Gdk::Keyval::GDK_KEY_n,
119
119
  ]
120
120
 
121
121
  TOGGLE_GRAFFITI_MODE_KEYS = [
122
- Gdk::Keyval::GDK_g,
122
+ Gdk::Keyval::GDK_KEY_g,
123
123
  ]
124
124
 
125
125
  SEARCH_SLIDE_BACKWARD_NEXT_KEYS = [
126
- Gdk::Keyval::GDK_n,
126
+ Gdk::Keyval::GDK_KEY_n,
127
127
  ]
128
128
 
129
129
  TOGGLE_INFO_WINDOW_KEYS = [
130
- Gdk::Keyval::GDK_i,
130
+ Gdk::Keyval::GDK_KEY_i,
131
131
  ]
132
132
  end
133
133
 
134
134
  module Control
135
135
  CLEAR_SLIDE_KEYS = [
136
- Gdk::Keyval::GDK_l,
136
+ Gdk::Keyval::GDK_KEY_l,
137
137
  ]
138
138
 
139
139
  PRINT_KEYS = [
140
- Gdk::Keyval::GDK_p,
140
+ Gdk::Keyval::GDK_KEY_p,
141
141
  ]
142
142
 
143
143
  UNDO_GRAFFITI_KEYS = [
144
- Gdk::Keyval::GDK_z,
144
+ Gdk::Keyval::GDK_KEY_z,
145
145
  ]
146
146
 
147
147
  CLEAR_GRAFFITI_KEYS = [
148
- Gdk::Keyval::GDK_l,
148
+ Gdk::Keyval::GDK_KEY_l,
149
149
  ]
150
150
 
151
151
  SEARCH_SLIDE_FORWARD_KEYS = [
152
- Gdk::Keyval::GDK_s,
152
+ Gdk::Keyval::GDK_KEY_s,
153
153
  ]
154
154
 
155
155
  SEARCH_SLIDE_BACKWARD_KEYS = [
156
- Gdk::Keyval::GDK_r,
156
+ Gdk::Keyval::GDK_KEY_r,
157
157
  ]
158
158
 
159
159
  SEARCH_SLIDE_FORWARD_NEXT_KEYS = [
160
- Gdk::Keyval::GDK_s,
160
+ Gdk::Keyval::GDK_KEY_s,
161
161
  ]
162
162
 
163
163
  SEARCH_SLIDE_BACKWARD_NEXT_KEYS = [
164
- Gdk::Keyval::GDK_r,
164
+ Gdk::Keyval::GDK_KEY_r,
165
165
  ]
166
166
 
167
167
  STOP_SLIDE_SEARCH_KEYS = [
168
- Gdk::Keyval::GDK_g,
168
+ Gdk::Keyval::GDK_KEY_g,
169
169
  ]
170
170
  end
171
171
 
172
172
  module Alt
173
173
  RESET_ADJUSTMENT_KEYS = [
174
- Gdk::Keyval::GDK_a,
174
+ Gdk::Keyval::GDK_KEY_a,
175
175
  ]
176
176
 
177
177
  RESET_TIMER_KEYS = [
178
- Gdk::Keyval::GDK_t,
178
+ Gdk::Keyval::GDK_KEY_t,
179
179
  ]
180
180
  end
181
181
  end