rabbit 0.9.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +9 -2
- data/Rakefile +11 -4
- data/TODO +0 -2
- data/bin/rabbirack +95 -0
- data/bin/rabbit +23 -2
- data/bin/rabbiter +9 -0
- data/data/locale/en/LC_MESSAGES/rabbit.mo +0 -0
- data/data/locale/fr/LC_MESSAGES/rabbit.mo +0 -0
- data/data/locale/ja/LC_MESSAGES/rabbit.mo +0 -0
- data/doc/_layouts/en.html +1 -1
- data/doc/_layouts/ja.html +1 -1
- data/doc/_layouts/skeleton.html +1 -1
- data/doc/_site/css/rabbit.css +41 -1
- data/doc/_site/en/development.html +2 -2
- data/doc/_site/en/faq.html +2 -2
- data/doc/_site/en/hiki.html +2 -2
- data/doc/_site/en/how-to-make/hiki.html +2 -2
- data/doc/_site/en/how-to-make/index.html +2 -2
- data/doc/_site/en/how-to-make/pdf.html +2 -2
- data/doc/_site/en/how-to-make/rd.html +2 -2
- data/doc/_site/en/how-to-make/theme.html +2 -2
- data/doc/_site/en/index.html +20 -20
- data/doc/_site/en/install/homebrew.html +6 -12
- data/doc/_site/en/install/index.html +5 -3
- data/doc/_site/en/install/macports.html +2 -2
- data/doc/_site/en/install/windows.html +2 -2
- data/doc/_site/en/news.html +172 -61
- data/doc/_site/en/rd.html +2 -2
- data/doc/_site/en/sample/hiki/rabbit.html +3 -3
- data/doc/_site/en/sample/index.html +2 -2
- data/doc/_site/en/sample/rd/rabbit.html +3 -3
- data/doc/_site/en/slides.html +2 -2
- data/doc/_site/en/usage.html +60 -60
- data/doc/_site/en/users.html +2 -2
- data/doc/_site/images/screenshots/en/blue-circle.png +0 -0
- data/doc/_site/images/screenshots/en/clear-blue-raw.png +0 -0
- data/doc/_site/images/screenshots/en/clear-blue.png +0 -0
- data/doc/_site/images/screenshots/en/cozmixng-raw.png +0 -0
- data/doc/_site/images/screenshots/en/cozmixng.png +0 -0
- data/doc/_site/images/screenshots/en/dark-gradation.png +0 -0
- data/doc/_site/images/screenshots/en/day-white.png +0 -0
- data/doc/_site/images/screenshots/en/debian.png +0 -0
- data/doc/_site/images/screenshots/en/green-circle.png +0 -0
- data/doc/_site/images/screenshots/en/night-black.png +0 -0
- data/doc/_site/images/screenshots/en/rabbit-raw.png +0 -0
- data/doc/_site/images/screenshots/en/rabbit.png +0 -0
- data/doc/_site/images/screenshots/en/ranguba-raw.png +0 -0
- data/doc/_site/images/screenshots/en/ranguba.png +0 -0
- data/doc/_site/images/screenshots/en/red-frame.png +0 -0
- data/doc/_site/images/screenshots/en/ruby-gnome2.png +0 -0
- data/doc/_site/images/screenshots/ja/blue-circle.png +0 -0
- data/doc/_site/images/screenshots/ja/clear-blue-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/clear-blue.png +0 -0
- data/doc/_site/images/screenshots/ja/cozmixng-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/cozmixng.png +0 -0
- data/doc/_site/images/screenshots/ja/dark-gradation.png +0 -0
- data/doc/_site/images/screenshots/ja/day-white.png +0 -0
- data/doc/_site/images/screenshots/ja/debian.png +0 -0
- data/doc/_site/images/screenshots/ja/green-circle.png +0 -0
- data/doc/_site/images/screenshots/ja/night-black.png +0 -0
- data/doc/_site/images/screenshots/ja/rabbit-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/rabbit.png +0 -0
- data/doc/_site/images/screenshots/ja/ranguba-raw.png +0 -0
- data/doc/_site/images/screenshots/ja/ranguba.png +0 -0
- data/doc/_site/images/screenshots/ja/red-frame.png +0 -0
- data/doc/_site/images/screenshots/ja/ruby-gnome2.png +0 -0
- data/doc/_site/index.html.en +8 -2
- data/doc/_site/index.html.ja +8 -2
- data/doc/_site/ja/about.html +2 -2
- data/doc/_site/ja/development.html +2 -2
- data/doc/_site/ja/faq.html +25 -14
- data/doc/_site/ja/hiki.html +2 -2
- data/doc/_site/ja/how-to-make/hiki.html +2 -2
- data/doc/_site/ja/how-to-make/index.html +2 -2
- data/doc/_site/ja/how-to-make/pdf.html +2 -2
- data/doc/_site/ja/how-to-make/rd.html +2 -2
- data/doc/_site/ja/how-to-make/theme.html +2 -2
- data/doc/_site/ja/index.html +2 -2
- data/doc/_site/ja/install/homebrew.html +6 -12
- data/doc/_site/ja/install/index.html +5 -3
- data/doc/_site/ja/install/macports.html +3 -6
- data/doc/_site/ja/install/windows.html +2 -2
- data/doc/_site/ja/news.html +165 -61
- data/doc/_site/ja/rd.html +2 -2
- data/doc/_site/ja/sample/hiki/rabbit.html +3 -3
- data/doc/_site/ja/sample/index.html +2 -2
- data/doc/_site/ja/sample/rd/rabbit.html +3 -3
- data/doc/_site/ja/slides.html +2 -2
- data/doc/_site/ja/usage.html +60 -69
- data/doc/_site/ja/users.html +2 -2
- data/doc/css/rabbit.css +41 -1
- data/doc/en/index.rd +1 -1
- data/doc/en/install/homebrew.rd +2 -11
- data/doc/en/install/index.rd +2 -0
- data/doc/en/news.rd +117 -3
- data/doc/en/sample/hiki/rabbit.hiki +1 -1
- data/doc/en/sample/rd/rabbit.rd +1 -1
- data/doc/en/usage.rd +12 -17
- data/doc/images/screenshots/en/blue-circle.png +0 -0
- data/doc/images/screenshots/en/clear-blue-raw.png +0 -0
- data/doc/images/screenshots/en/clear-blue.png +0 -0
- data/doc/images/screenshots/en/cozmixng-raw.png +0 -0
- data/doc/images/screenshots/en/cozmixng.png +0 -0
- data/doc/images/screenshots/en/dark-gradation.png +0 -0
- data/doc/images/screenshots/en/day-white.png +0 -0
- data/doc/images/screenshots/en/debian.png +0 -0
- data/doc/images/screenshots/en/green-circle.png +0 -0
- data/doc/images/screenshots/en/night-black.png +0 -0
- data/doc/images/screenshots/en/rabbit-raw.png +0 -0
- data/doc/images/screenshots/en/rabbit.png +0 -0
- data/doc/images/screenshots/en/ranguba-raw.png +0 -0
- data/doc/images/screenshots/en/ranguba.png +0 -0
- data/doc/images/screenshots/en/red-frame.png +0 -0
- data/doc/images/screenshots/en/ruby-gnome2.png +0 -0
- data/doc/images/screenshots/ja/blue-circle.png +0 -0
- data/doc/images/screenshots/ja/clear-blue-raw.png +0 -0
- data/doc/images/screenshots/ja/clear-blue.png +0 -0
- data/doc/images/screenshots/ja/cozmixng-raw.png +0 -0
- data/doc/images/screenshots/ja/cozmixng.png +0 -0
- data/doc/images/screenshots/ja/dark-gradation.png +0 -0
- data/doc/images/screenshots/ja/day-white.png +0 -0
- data/doc/images/screenshots/ja/debian.png +0 -0
- data/doc/images/screenshots/ja/green-circle.png +0 -0
- data/doc/images/screenshots/ja/night-black.png +0 -0
- data/doc/images/screenshots/ja/rabbit-raw.png +0 -0
- data/doc/images/screenshots/ja/rabbit.png +0 -0
- data/doc/images/screenshots/ja/ranguba-raw.png +0 -0
- data/doc/images/screenshots/ja/ranguba.png +0 -0
- data/doc/images/screenshots/ja/red-frame.png +0 -0
- data/doc/images/screenshots/ja/ruby-gnome2.png +0 -0
- data/doc/index.html.en +6 -0
- data/doc/index.html.ja +6 -0
- data/doc/ja/faq.rd +21 -3
- data/doc/ja/install/homebrew.rd +2 -11
- data/doc/ja/install/index.rd +2 -0
- data/doc/ja/install/macports.rd +1 -6
- data/doc/ja/news.rd +109 -3
- data/doc/ja/sample/hiki/rabbit.hiki +1 -1
- data/doc/ja/sample/rd/rabbit.rd +1 -1
- data/doc/ja/usage.rd +11 -29
- data/lib/rabbit/canvas.rb +7 -4
- data/lib/rabbit/console.rb +1 -1
- data/lib/rabbit/div/main-i.erb +1 -1
- data/lib/rabbit/div/main.erb +1 -1
- data/lib/rabbit/element/base.rb +17 -1
- data/lib/rabbit/element/image.rb +1 -0
- data/lib/rabbit/element/preformatted.rb +8 -3
- data/lib/rabbit/element/syntax-highlighting.rb +15 -0
- data/lib/rabbit/element/text-renderer.rb +3 -3
- data/lib/rabbit/element/text.rb +0 -12
- data/lib/rabbit/element/title-slide.rb +1 -25
- data/lib/rabbit/formatter.rb +26 -6
- data/lib/rabbit/front.rb +10 -6
- data/lib/rabbit/html/template.erb +1 -1
- data/lib/rabbit/image.rb +1 -1
- data/lib/rabbit/keys.rb +70 -70
- data/lib/rabbit/middleware/config.ru +42 -0
- data/lib/rabbit/middleware/controller.rb +66 -0
- data/lib/rabbit/middleware/public/stylesheets/rabbirack.css +12 -0
- data/lib/rabbit/middleware/views/index.haml +13 -0
- data/lib/rabbit/middleware/views/layout.haml +8 -0
- data/lib/rabbit/parser/ext/aafigure.rb +1 -1
- data/lib/rabbit/parser/ext/blockdiag.rb +46 -0
- data/lib/rabbit/parser/ext/coderay.rb +66 -0
- data/lib/rabbit/parser/ext/emacs.rb +116 -0
- data/lib/rabbit/parser/ext/enscript.rb +15 -22
- data/lib/rabbit/parser/rd.rb +8 -2
- data/lib/rabbit/parser/rd/ext/block-verbatim.rb +53 -16
- data/lib/rabbit/parser/wiki.rb +3 -1
- data/lib/rabbit/parser/wiki/output.rb +28 -16
- data/lib/rabbit/rabbit.rb +7 -1
- data/lib/rabbit/renderer/display.rb +14 -2
- data/lib/rabbit/renderer/display/clutter-embed.rb +1 -1
- data/lib/rabbit/renderer/display/key-handler.rb +12 -12
- data/lib/rabbit/soap/base.rb +1 -1
- data/lib/rabbit/theme-browser.rb +2 -2
- data/lib/rabbit/theme/base/base.rb +7 -0
- data/lib/rabbit/theme/default-comment/default-comment.rb +9 -0
- data/lib/rabbit/theme/default-comment/property.rb +4 -0
- data/lib/rabbit/theme/default-item-mark-setup/default-item-mark-setup.rb +1 -1
- data/lib/rabbit/theme/default-slide/default-slide.rb +2 -2
- data/lib/rabbit/theme/default-text/default-text.rb +5 -0
- data/lib/rabbit/theme/default/default.rb +6 -7
- data/lib/rabbit/theme/footer-comment/footer-comment.rb +35 -8
- data/lib/rabbit/theme/pdf/pdf.rb +18 -0
- data/lib/rabbit/theme/rabbit-powered-by/rabbit-powered-by.rb +1 -1
- data/lib/rabbit/theme/syntax-highlighting/property.rb +4 -0
- data/lib/rabbit/theme/syntax-highlighting/syntax-highlighting.rb +139 -0
- data/lib/rabbit/theme/title-shadow/title-shadow.rb +1 -1
- data/lib/rabbit/theme/twitter-comment/twitter-comment.rb +1 -1
- data/lib/rabbit/twitter.rb +28 -4
- data/lib/rabbit/utils.rb +40 -12
- data/po/en/rabbit.po +175 -145
- data/po/fr/rabbit.po +180 -149
- data/po/ja/rabbit.po +176 -148
- data/po/rabbit.pot +175 -145
- data/sample/can_rabbit.rd +0 -21
- data/sample/rabbit-en.hiki +21 -2
- data/sample/rabbit-en.rd +42 -2
- data/sample/rabbit-implementation.rd +0 -5
- data/sample/rabbit.hiki +19 -16
- data/sample/rabbit.rd +42 -11
- data/sample/test.hiki +31 -0
- data/sample/test.rab +30 -0
- metadata +84 -58
- data/lib/rabbit/parser/ext/anthy.rb +0 -43
- data/lib/rabbit/parser/rd/ext/aafigure.rb +0 -18
- data/lib/rabbit/parser/rd/ext/anthy.rb +0 -29
- data/lib/rabbit/parser/rd/ext/enscript.rb +0 -24
- data/lib/rabbit/parser/rd/ext/tex.rb +0 -24
- data/lib/rabbit/source/rwiki.rb +0 -54
- data/lib/rabbit/theme/pdf-tortoise-and-hare/pdf-tortoise-and-hare.rb +0 -18
- data/lib/rabbit/theme/pdf-tortoise-and-hare/property.rb +0 -3
data/lib/rabbit/element/image.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
require 'rabbit/element/text-
|
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
|
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 =
|
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 =
|
249
|
-
shadow_y =
|
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
|
data/lib/rabbit/element/text.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/rabbit/formatter.rb
CHANGED
@@ -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
|
-
|
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://
|
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
|
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::
|
9
|
-
Gdk::Keyval::
|
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::
|
14
|
-
Gdk::Keyval::
|
15
|
-
Gdk::Keyval::
|
16
|
-
Gdk::Keyval::
|
17
|
-
Gdk::Keyval::
|
18
|
-
Gdk::Keyval::
|
19
|
-
Gdk::Keyval::
|
20
|
-
Gdk::Keyval::
|
21
|
-
Gdk::Keyval::
|
22
|
-
Gdk::Keyval::
|
23
|
-
Gdk::Keyval::
|
24
|
-
Gdk::Keyval::
|
25
|
-
Gdk::Keyval::
|
26
|
-
Gdk::Keyval::
|
27
|
-
Gdk::Keyval::
|
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::
|
32
|
-
Gdk::Keyval::
|
33
|
-
Gdk::Keyval::
|
34
|
-
Gdk::Keyval::
|
35
|
-
Gdk::Keyval::
|
36
|
-
Gdk::Keyval::
|
37
|
-
Gdk::Keyval::
|
38
|
-
Gdk::Keyval::
|
39
|
-
Gdk::Keyval::
|
40
|
-
Gdk::Keyval::
|
41
|
-
Gdk::Keyval::
|
42
|
-
Gdk::Keyval::
|
43
|
-
Gdk::Keyval::
|
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::
|
48
|
-
Gdk::Keyval::
|
49
|
-
Gdk::Keyval::
|
50
|
-
Gdk::Keyval::
|
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::
|
55
|
-
Gdk::Keyval::
|
56
|
-
Gdk::Keyval::
|
57
|
-
Gdk::Keyval::
|
58
|
-
Gdk::Keyval::
|
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::
|
63
|
-
Gdk::Keyval::
|
64
|
-
Gdk::Keyval::
|
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::
|
69
|
-
Gdk::Keyval::
|
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::
|
73
|
+
Gdk::Keyval::GDK_KEY_s,
|
74
74
|
]
|
75
75
|
|
76
76
|
ICONIFY_KEYS = [
|
77
|
-
Gdk::Keyval::
|
77
|
+
Gdk::Keyval::GDK_KEY_z,
|
78
78
|
]
|
79
79
|
|
80
80
|
TOGGLE_INDEX_MODE_KEYS = [
|
81
|
-
Gdk::Keyval::
|
81
|
+
Gdk::Keyval::GDK_KEY_i,
|
82
82
|
]
|
83
83
|
|
84
84
|
CACHE_ALL_SLIDES_KEYS = [
|
85
|
-
Gdk::Keyval::
|
85
|
+
Gdk::Keyval::GDK_KEY_c,
|
86
86
|
]
|
87
87
|
|
88
88
|
SEARCH_SLIDE_FORWARD_KEYS = [
|
89
|
-
Gdk::Keyval::
|
89
|
+
Gdk::Keyval::GDK_KEY_slash,
|
90
90
|
]
|
91
91
|
|
92
92
|
SEARCH_SLIDE_BACKWARD_KEYS = [
|
93
|
-
Gdk::Keyval::
|
93
|
+
Gdk::Keyval::GDK_KEY_question,
|
94
94
|
]
|
95
95
|
|
96
96
|
SEARCH_SLIDE_FORWARD_NEXT_KEYS = [
|
97
|
-
Gdk::Keyval::
|
97
|
+
Gdk::Keyval::GDK_KEY_n,
|
98
98
|
]
|
99
99
|
|
100
100
|
STOP_SLIDE_SEARCH_KEYS = [
|
101
|
-
Gdk::Keyval::
|
101
|
+
Gdk::Keyval::GDK_KEY_Escape,
|
102
102
|
]
|
103
103
|
|
104
104
|
module Shift
|
105
105
|
WHITE_OUT_KEYS = [
|
106
|
-
Gdk::Keyval::
|
106
|
+
Gdk::Keyval::GDK_KEY_w,
|
107
107
|
]
|
108
108
|
|
109
109
|
BLACK_OUT_KEYS = [
|
110
|
-
Gdk::Keyval::
|
110
|
+
Gdk::Keyval::GDK_KEY_b,
|
111
111
|
]
|
112
112
|
|
113
113
|
EXPAND_HOLE_KEYS = [
|
114
|
-
Gdk::Keyval::
|
114
|
+
Gdk::Keyval::GDK_KEY_e,
|
115
115
|
]
|
116
116
|
|
117
117
|
NARROW_HOLE_KEYS = [
|
118
|
-
Gdk::Keyval::
|
118
|
+
Gdk::Keyval::GDK_KEY_n,
|
119
119
|
]
|
120
120
|
|
121
121
|
TOGGLE_GRAFFITI_MODE_KEYS = [
|
122
|
-
Gdk::Keyval::
|
122
|
+
Gdk::Keyval::GDK_KEY_g,
|
123
123
|
]
|
124
124
|
|
125
125
|
SEARCH_SLIDE_BACKWARD_NEXT_KEYS = [
|
126
|
-
Gdk::Keyval::
|
126
|
+
Gdk::Keyval::GDK_KEY_n,
|
127
127
|
]
|
128
128
|
|
129
129
|
TOGGLE_INFO_WINDOW_KEYS = [
|
130
|
-
Gdk::Keyval::
|
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::
|
136
|
+
Gdk::Keyval::GDK_KEY_l,
|
137
137
|
]
|
138
138
|
|
139
139
|
PRINT_KEYS = [
|
140
|
-
Gdk::Keyval::
|
140
|
+
Gdk::Keyval::GDK_KEY_p,
|
141
141
|
]
|
142
142
|
|
143
143
|
UNDO_GRAFFITI_KEYS = [
|
144
|
-
Gdk::Keyval::
|
144
|
+
Gdk::Keyval::GDK_KEY_z,
|
145
145
|
]
|
146
146
|
|
147
147
|
CLEAR_GRAFFITI_KEYS = [
|
148
|
-
Gdk::Keyval::
|
148
|
+
Gdk::Keyval::GDK_KEY_l,
|
149
149
|
]
|
150
150
|
|
151
151
|
SEARCH_SLIDE_FORWARD_KEYS = [
|
152
|
-
Gdk::Keyval::
|
152
|
+
Gdk::Keyval::GDK_KEY_s,
|
153
153
|
]
|
154
154
|
|
155
155
|
SEARCH_SLIDE_BACKWARD_KEYS = [
|
156
|
-
Gdk::Keyval::
|
156
|
+
Gdk::Keyval::GDK_KEY_r,
|
157
157
|
]
|
158
158
|
|
159
159
|
SEARCH_SLIDE_FORWARD_NEXT_KEYS = [
|
160
|
-
Gdk::Keyval::
|
160
|
+
Gdk::Keyval::GDK_KEY_s,
|
161
161
|
]
|
162
162
|
|
163
163
|
SEARCH_SLIDE_BACKWARD_NEXT_KEYS = [
|
164
|
-
Gdk::Keyval::
|
164
|
+
Gdk::Keyval::GDK_KEY_r,
|
165
165
|
]
|
166
166
|
|
167
167
|
STOP_SLIDE_SEARCH_KEYS = [
|
168
|
-
Gdk::Keyval::
|
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::
|
174
|
+
Gdk::Keyval::GDK_KEY_a,
|
175
175
|
]
|
176
176
|
|
177
177
|
RESET_TIMER_KEYS = [
|
178
|
-
Gdk::Keyval::
|
178
|
+
Gdk::Keyval::GDK_KEY_t,
|
179
179
|
]
|
180
180
|
end
|
181
181
|
end
|