rabbit 2.1.6 → 2.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/locale/ja/LC_MESSAGES/rabbit.mo +0 -0
- data/doc/_config.yml +2 -2
- data/doc/_layouts/en.html +1 -1
- data/doc/_layouts/ja.html +1 -1
- data/doc/_layouts/skeleton.html +22 -17
- data/doc/css/rabbit.css +62 -4
- data/doc/en/development.rd +2 -2
- data/doc/en/news.rd +65 -2
- data/doc/index.html.en +15 -15
- data/doc/index.html.ja +20 -20
- data/doc/ja/development.rd +2 -2
- data/doc/ja/index.rd +4 -4
- data/doc/ja/news.rd +61 -2
- data/lib/rabbit/command/rabbit.rb +7 -62
- data/lib/rabbit/cursor-manager.rb +29 -22
- data/lib/rabbit/element/index-slide.rb +1 -1
- data/lib/rabbit/error.rb +224 -0
- data/lib/rabbit/frame.rb +6 -10
- data/lib/rabbit/graffiti/config-dialog.rb +4 -4
- data/lib/rabbit/gtk.rb +173 -3
- data/lib/rabbit/image/pdf.rb +1 -3
- data/lib/rabbit/image/svg.rb +1 -3
- data/lib/rabbit/info-window.rb +37 -30
- data/lib/rabbit/keys.rb +70 -70
- data/lib/rabbit/logger/gui.rb +3 -10
- data/lib/rabbit/menu.rb +22 -8
- data/lib/rabbit/parser.rb +4 -2
- data/lib/rabbit/parser/base.rb +0 -6
- data/lib/rabbit/parser/image.rb +4 -0
- data/lib/rabbit/parser/markdown.rb +33 -7
- data/lib/rabbit/parser/markdown/converter.rb +15 -4
- data/lib/rabbit/parser/pdf.rb +4 -0
- data/lib/rabbit/parser/rd.rb +4 -0
- data/lib/rabbit/parser/rd/ext/block-verbatim.rb +47 -34
- data/lib/rabbit/parser/wiki.rb +4 -0
- data/lib/rabbit/parser/wiki/output.rb +42 -15
- data/lib/rabbit/progress.rb +1 -1
- data/lib/rabbit/rabbit.rb +8 -225
- data/lib/rabbit/renderer/base.rb +1 -1
- data/lib/rabbit/renderer/display/base.rb +10 -3
- data/lib/rabbit/renderer/display/button-handler.rb +3 -3
- data/lib/rabbit/renderer/display/clutter-embed.rb +9 -9
- data/lib/rabbit/renderer/display/drawing-area-base.rb +19 -24
- data/lib/rabbit/renderer/display/drawing-area-primitive.rb +22 -13
- data/lib/rabbit/renderer/display/drawing-area-view-only.rb +1 -1
- data/lib/rabbit/renderer/display/drawing-area.rb +1 -1
- data/lib/rabbit/renderer/display/gesture.rb +1 -1
- data/lib/rabbit/renderer/display/key-handler.rb +19 -19
- data/lib/rabbit/renderer/display/magnifier.rb +1 -1
- data/lib/rabbit/renderer/display/mask.rb +16 -21
- data/lib/rabbit/renderer/display/search.rb +1 -1
- data/lib/rabbit/renderer/display/spotlight.rb +1 -1
- data/lib/rabbit/renderer/engine.rb +1 -18
- data/lib/rabbit/renderer/engine/cairo.rb +0 -6
- data/lib/rabbit/renderer/pixmap.rb +1 -25
- data/lib/rabbit/renderer/pixmap/cairo.rb +1 -9
- data/lib/rabbit/renderer/print/cairo.rb +1 -10
- data/lib/rabbit/search-window.rb +2 -2
- data/lib/rabbit/source-generator/markdown.rb +1 -1
- data/lib/rabbit/stock.rb +3 -3
- data/lib/rabbit/task/slide.rb +1 -1
- data/lib/rabbit/theme/applier.rb +1 -1
- data/lib/rabbit/theme/clear-blue/clear-blue.rb +0 -8
- data/lib/rabbit/theme/image-slide-number/image-slide-number.rb +7 -5
- data/lib/rabbit/theme/image-timer/image-timer.rb +4 -1
- data/lib/rabbit/utils.rb +20 -3
- data/lib/rabbit/version.rb +1 -1
- data/lib/rabbit/video-window.rb +3 -3
- data/po/en/rabbit.edit.po +187 -199
- data/po/en/rabbit.po +58 -67
- data/po/fr/rabbit.edit.po +187 -199
- data/po/fr/rabbit.po +58 -67
- data/po/ja/rabbit.edit.po +204 -205
- data/po/ja/rabbit.po +64 -73
- data/rabbit.gemspec +2 -0
- data/sample/rabbit-en.md +2 -2
- data/sample/rabbit.md +2 -2
- data/test/image/test-dia.rb +2 -2
- data/test/image/test-eps.rb +2 -2
- data/test/parser/test-markdown.rb +71 -25
- data/test/parser/test-wiki.rb +73 -0
- data/test/rabbit-test-utils.rb +3 -7
- data/test/rabbit-test-utils/fixture.rb +24 -0
- data/test/rabbit-test-utils/parser.rb +48 -0
- data/test/source-generator/test-markdown.rb +1 -1
- metadata +37 -7
- data/README +0 -1
- data/doc/images/jp.png +0 -0
- data/doc/images/us.png +0 -0
- data/lib/rabbit/renderer/engine/gdk.rb +0 -230
- data/lib/rabbit/renderer/pixmap/gdk.rb +0 -29
data/lib/rabbit/frame.rb
CHANGED
@@ -117,8 +117,8 @@ module Rabbit
|
|
117
117
|
|
118
118
|
private
|
119
119
|
def init_window(width, height, window_type=nil)
|
120
|
-
window_type ||=
|
121
|
-
@window = Gtk::
|
120
|
+
window_type ||= :toplevel
|
121
|
+
@window = Gtk::ApplicationWindow.new(::Rabbit.application)
|
122
122
|
@window.set_default_size(width, height)
|
123
123
|
@window.parse_geometry(@geometry) if @geometry
|
124
124
|
@window.set_app_paintable(true)
|
@@ -167,18 +167,14 @@ module Rabbit
|
|
167
167
|
def set_window_signal_destroy
|
168
168
|
@window.signal_connect("destroy") do
|
169
169
|
@canvas.detach
|
170
|
-
if main_window? and Gtk.main_level > 0
|
171
|
-
Gtk.main_quit
|
172
|
-
end
|
173
170
|
end
|
174
171
|
end
|
175
172
|
|
176
173
|
def setup_dnd
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
Gdk::DragContext::ACTION_COPY)
|
174
|
+
@window.drag_dest_set(:all,
|
175
|
+
[["text/uri-list", 0, 0],
|
176
|
+
["_NETSCAPE_URL", 0, 0]],
|
177
|
+
:copy)
|
182
178
|
@window.signal_connect("drag-data-received") do |*args|
|
183
179
|
widget, context, x, y, selection_data, info, time = args
|
184
180
|
uri = selection_data.data.chomp
|
@@ -48,11 +48,11 @@ module Rabbit
|
|
48
48
|
@callback.call(nil, spin.value)
|
49
49
|
end
|
50
50
|
label = Gtk::Label.new(_("Line width:"))
|
51
|
-
hbox = Gtk::
|
52
|
-
hbox.pack_end(spin, false, false, 5)
|
53
|
-
hbox.pack_end(label, false, false, 5)
|
51
|
+
hbox = Gtk::Box.new(:horizontal)
|
52
|
+
hbox.pack_end(spin, :expand => false, :fill => false, :padding => 5)
|
53
|
+
hbox.pack_end(label, :expand => false, :fill => false, :padding => 5)
|
54
54
|
hbox.show_all
|
55
|
-
@dialog.vbox.pack_end(hbox, false, false, 5)
|
55
|
+
@dialog.vbox.pack_end(hbox, :expand => false, :fill => false, :padding => 5)
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
data/lib/rabbit/gtk.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2014 Kouhei Sutou <kou@cozmixng.org>
|
1
|
+
# Copyright (C) 2014-2015 Kouhei Sutou <kou@cozmixng.org>
|
2
2
|
#
|
3
3
|
# This program is free software; you can redistribute it and/or modify
|
4
4
|
# it under the terms of the GNU General Public License as published by
|
@@ -14,12 +14,182 @@
|
|
14
14
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
15
15
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
16
16
|
|
17
|
-
|
18
|
-
|
17
|
+
require "English"
|
18
|
+
|
19
|
+
if ENV["RABBIT_GTK_VERSION"] == "3"
|
20
|
+
require "gtk3"
|
21
|
+
Gtk.init if Gtk.respond_to?(:init)
|
22
|
+
else
|
23
|
+
require "cairo"
|
24
|
+
require "gio2"
|
25
|
+
require "gtk2"
|
26
|
+
end
|
27
|
+
|
28
|
+
module Cairo
|
29
|
+
class Region
|
30
|
+
unless public_method_defined?(:each_rectangle)
|
31
|
+
def each_rectangle
|
32
|
+
num_rectangles.times do |i|
|
33
|
+
yield(self[i])
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
19
39
|
|
20
40
|
module Gdk
|
21
41
|
class Event
|
22
42
|
STOP = true unless const_defined?(:STOP)
|
23
43
|
PROPAGATE = false unless const_defined?(:PROPAGATE)
|
24
44
|
end
|
45
|
+
|
46
|
+
class Window
|
47
|
+
unless method_defined?(:width)
|
48
|
+
def width
|
49
|
+
size[0]
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
unless method_defined?(:height)
|
54
|
+
def height
|
55
|
+
size[1]
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
unless const_defined?(:EventType)
|
61
|
+
EventType = Event::Type
|
62
|
+
end
|
63
|
+
|
64
|
+
unless const_defined?(:ModifierType)
|
65
|
+
ModifierType = Window::ModifierType
|
66
|
+
end
|
67
|
+
|
68
|
+
unless const_defined?(:EventMask)
|
69
|
+
EventMask = Event::Mask
|
70
|
+
end
|
71
|
+
|
72
|
+
module Keyval
|
73
|
+
constants.each do |name|
|
74
|
+
if /\AGDK_KEY_/ =~ name.to_s
|
75
|
+
const_set("KEY_#{$POSTMATCH}", const_get(name))
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
class Screen
|
81
|
+
unless method_defined?(:get_monitor_geometry)
|
82
|
+
alias_method :get_monitor_geometry, :monitor_geometry
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
module Gtk
|
88
|
+
unless const_defined?(:Actionable)
|
89
|
+
class Action
|
90
|
+
alias_method :initialize_raw, :initialize
|
91
|
+
def initialize(name, options={})
|
92
|
+
initialize_raw(name,
|
93
|
+
options[:label],
|
94
|
+
options[:tooltip],
|
95
|
+
options[:stock_id])
|
96
|
+
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
unless const_defined?(:Application)
|
102
|
+
class Application < Gio::Application
|
103
|
+
def initialize(id, flags)
|
104
|
+
super
|
105
|
+
signal_connect_after("activate") do
|
106
|
+
Gtk.main if ApplicationWindow.n_instances > 0
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
unless const_defined?(:ApplicationWindow)
|
113
|
+
class ApplicationWindow
|
114
|
+
@@n_instances = 0
|
115
|
+
|
116
|
+
class << self
|
117
|
+
def new(application)
|
118
|
+
window = Window.new
|
119
|
+
@@n_instances += 1
|
120
|
+
window.signal_connect("destroy") do
|
121
|
+
@@n_instances -= 1
|
122
|
+
Gtk.main_quit if @@n_instances.zero?
|
123
|
+
end
|
124
|
+
window
|
125
|
+
end
|
126
|
+
|
127
|
+
def n_instances
|
128
|
+
@@n_instances
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
class Widget
|
135
|
+
unless public_method_defined?(:drag_dest_set)
|
136
|
+
def drag_dest_set(flags, targets, actions)
|
137
|
+
Gtk::Drag.dest_set(self, flags, targets, actions)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
unless public_method_defined?(:shape_combine_region)
|
142
|
+
def shape_combine_region(cairo_region)
|
143
|
+
gdk_region = cairo_region_to_gdk_region(cairo_region)
|
144
|
+
window.shape_combine_region(gdk_region, 0, 0)
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
private
|
149
|
+
def cairo_region_to_gdk_region(cairo_region)
|
150
|
+
return nil if cairo_region.nil?
|
151
|
+
|
152
|
+
gdk_region = Gdk::Region.new
|
153
|
+
cairo_region.each_rectangle do |rectangle|
|
154
|
+
gdk_region.union(Gdk::Rectangle.new(*rectangle))
|
155
|
+
end
|
156
|
+
gdk_region
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
if Box.gtype.abstract?
|
161
|
+
class HBox
|
162
|
+
class << self
|
163
|
+
alias_method :new_raw, :new
|
164
|
+
def new(*arguments)
|
165
|
+
new_raw(*arguments)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
class VBox
|
171
|
+
class << self
|
172
|
+
alias_method :new_raw, :new
|
173
|
+
def new(*arguments)
|
174
|
+
new_raw(*arguments)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
class Box
|
180
|
+
class << self
|
181
|
+
def new(type)
|
182
|
+
case type
|
183
|
+
when :horizontal
|
184
|
+
HBox.new
|
185
|
+
when :vertical
|
186
|
+
VBox.new
|
187
|
+
else
|
188
|
+
raise ArgumentError,
|
189
|
+
"Box type must be :horizontal or :vertical: #{type.inspect}"
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
25
195
|
end
|
data/lib/rabbit/image/pdf.rb
CHANGED
data/lib/rabbit/image/svg.rb
CHANGED
data/lib/rabbit/info-window.rb
CHANGED
@@ -112,11 +112,11 @@ module Rabbit
|
|
112
112
|
init_menu
|
113
113
|
attach_key(@window)
|
114
114
|
attach_menu(@window)
|
115
|
-
event_mask = Gdk::
|
116
|
-
event_mask |= Gdk::
|
117
|
-
event_mask |= Gdk::
|
118
|
-
event_mask |= Gdk::
|
119
|
-
event_mask |= Gdk::
|
115
|
+
event_mask = Gdk::EventMask::BUTTON_PRESS_MASK
|
116
|
+
event_mask |= Gdk::EventMask::BUTTON_RELEASE_MASK
|
117
|
+
event_mask |= Gdk::EventMask::BUTTON1_MOTION_MASK
|
118
|
+
event_mask |= Gdk::EventMask::BUTTON2_MOTION_MASK
|
119
|
+
event_mask |= Gdk::EventMask::BUTTON3_MOTION_MASK
|
120
120
|
@window.add_events(event_mask)
|
121
121
|
set_button_event(@window)
|
122
122
|
set_scroll_event(@window)
|
@@ -125,26 +125,26 @@ module Rabbit
|
|
125
125
|
|
126
126
|
def init_widgets(width, height)
|
127
127
|
init_timer_label(width * (1.0 / 3.0), height * (1.0 / 3.0))
|
128
|
-
@outer_box = Gtk::
|
128
|
+
@outer_box = Gtk::Box.new(:vertical)
|
129
129
|
|
130
|
-
current_box = Gtk::
|
130
|
+
current_box = Gtk::Box.new(:horizontal)
|
131
131
|
@current_canvas.attach_to(nil, @window, current_box) do |container, widget|
|
132
132
|
widget.set_size_request(width * (2.0 / 3.0), height * (2.0 / 3.0))
|
133
|
-
container.pack_start(widget, true, false)
|
133
|
+
container.pack_start(widget, :expand => true, :fill => false)
|
134
134
|
end
|
135
|
-
@outer_box.pack_start(current_box, true, false)
|
135
|
+
@outer_box.pack_start(current_box, :expand => true, :fill => false)
|
136
136
|
|
137
|
-
bottom_box = Gtk::
|
137
|
+
bottom_box = Gtk::Box.new(:horizontal)
|
138
138
|
@previous_canvas.attach_to(nil, @window, bottom_box) do |container, widget|
|
139
139
|
widget.set_size_request(width * (1.0 / 3.0), height * (1.0 / 3.0))
|
140
|
-
container.pack_start(widget, false, false)
|
140
|
+
container.pack_start(widget, :expand => false, :fill => false)
|
141
141
|
end
|
142
|
-
bottom_box.pack_start(@timer_label, true, false)
|
142
|
+
bottom_box.pack_start(@timer_label, :expand => true, :fill => false)
|
143
143
|
@next_canvas.attach_to(nil, @window, bottom_box) do |container, widget|
|
144
144
|
widget.set_size_request(width * (1.0 / 3.0), height * (1.0 / 3.0))
|
145
|
-
container.pack_end(widget, false, false)
|
145
|
+
container.pack_end(widget, :expand => false, :fill => false)
|
146
146
|
end
|
147
|
-
@outer_box.pack_end(bottom_box, false, false)
|
147
|
+
@outer_box.pack_end(bottom_box, :expand => false, :fill => false)
|
148
148
|
|
149
149
|
@outer_box.show
|
150
150
|
end
|
@@ -152,33 +152,33 @@ module Rabbit
|
|
152
152
|
def init_widgets_on_note_mode(width, height)
|
153
153
|
init_timer_label(width * (1.0 / 5.0), height * (2.0 / 5.0))
|
154
154
|
init_note_area
|
155
|
-
@outer_box = Gtk::
|
155
|
+
@outer_box = Gtk::Box.new(:vertical)
|
156
156
|
|
157
|
-
current_box = Gtk::
|
158
|
-
current_box.pack_start(@timer_label, false, false)
|
157
|
+
current_box = Gtk::Box.new(:horizontal)
|
158
|
+
current_box.pack_start(@timer_label, :expand => false, :fill => false)
|
159
159
|
@previous_canvas.attach_to(nil, @window, current_box) do |container, widget|
|
160
160
|
widget.set_size_request(width * (1.0 / 5.0), height * (2.0 / 5.0))
|
161
|
-
container.pack_start(widget, true, true, 10)
|
161
|
+
container.pack_start(widget, :expand => true, :fill => true, :padding => 10)
|
162
162
|
end
|
163
163
|
@current_canvas.attach_to(nil, @window, current_box) do |container, widget|
|
164
164
|
widget.set_size_request(width * (2.0 / 5.0), height * (2.0 / 5.0))
|
165
|
-
container.pack_start(widget, true, true)
|
165
|
+
container.pack_start(widget, :expand => true, :fill => true)
|
166
166
|
end
|
167
167
|
@next_canvas.attach_to(nil, @window, current_box) do |container, widget|
|
168
168
|
widget.set_size_request(width * (1.0 / 5.0), height * (2.0 / 5.0))
|
169
|
-
container.pack_end(widget, true, true, 10)
|
169
|
+
container.pack_end(widget, :expand => true, :fill => true, :padding => 10)
|
170
170
|
end
|
171
|
-
@outer_box.pack_start(current_box, false, false)
|
171
|
+
@outer_box.pack_start(current_box, :expand => false, :fill => false)
|
172
172
|
|
173
|
-
bottom_box = Gtk::
|
174
|
-
bottom_box.pack_start(@note_area, true, true, 20)
|
175
|
-
@outer_box.pack_start(bottom_box, true, true, 20)
|
173
|
+
bottom_box = Gtk::Box.new(:horizontal)
|
174
|
+
bottom_box.pack_start(@note_area, :expand => true, :fill => true, :padding => 20)
|
175
|
+
@outer_box.pack_start(bottom_box, :expand => true, :fill => true, :padding => 20)
|
176
176
|
|
177
177
|
@outer_box.show
|
178
178
|
end
|
179
179
|
|
180
180
|
def init_canvas_widgets
|
181
|
-
@canvas_widgets = Gtk::
|
181
|
+
@canvas_widgets = Gtk::Box.new(:horizontal)
|
182
182
|
@current_canvas.attach_to(nil, @window, @canvas_widgets)
|
183
183
|
@next_canvas.attach_to(nil, @window, @canvas_widgets)
|
184
184
|
end
|
@@ -191,9 +191,17 @@ module Rabbit
|
|
191
191
|
|
192
192
|
def init_note_area
|
193
193
|
@note_area = Gtk::DrawingArea.new
|
194
|
-
@note_area.
|
195
|
-
|
196
|
-
|
194
|
+
if @note_area.class.signals.include?("expose-event")
|
195
|
+
@note_area.signal_connect("expose-event") do |area, event|
|
196
|
+
context = area.window.create_cairo_context
|
197
|
+
draw_text_as_large_as_possible(area, context, note_text)
|
198
|
+
Gdk::Event::PROPAGATE
|
199
|
+
end
|
200
|
+
else
|
201
|
+
@note_area.signal_connect("draw") do |area, context|
|
202
|
+
draw_text_as_large_as_possible(area, context, note_text)
|
203
|
+
Gdk::Event::PROPAGATE
|
204
|
+
end
|
197
205
|
end
|
198
206
|
end
|
199
207
|
|
@@ -209,12 +217,11 @@ module Rabbit
|
|
209
217
|
note.gsub(/\\n/, "\n")
|
210
218
|
end
|
211
219
|
|
212
|
-
def draw_text_as_large_as_possible(area, markupped_text)
|
220
|
+
def draw_text_as_large_as_possible(area, context, markupped_text)
|
213
221
|
return if markupped_text.nil?
|
214
222
|
|
215
223
|
area_width, area_height = area.window.size
|
216
224
|
|
217
|
-
context = area.window.create_cairo_context
|
218
225
|
layout = context.create_pango_layout
|
219
226
|
layout.context.resolution = @canvas.font_resolution
|
220
227
|
attributes, text = Pango.parse_markup(markupped_text)
|
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::KEY_Escape,
|
9
|
+
Gdk::Keyval::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::KEY_n,
|
14
|
+
Gdk::Keyval::KEY_f,
|
15
|
+
Gdk::Keyval::KEY_j,
|
16
|
+
Gdk::Keyval::KEY_l,
|
17
|
+
Gdk::Keyval::KEY_Page_Down,
|
18
|
+
Gdk::Keyval::KEY_Tab,
|
19
|
+
Gdk::Keyval::KEY_Return,
|
20
|
+
Gdk::Keyval::KEY_rightarrow,
|
21
|
+
Gdk::Keyval::KEY_downarrow,
|
22
|
+
Gdk::Keyval::KEY_space,
|
23
|
+
Gdk::Keyval::KEY_plus,
|
24
|
+
Gdk::Keyval::KEY_KP_Add,
|
25
|
+
Gdk::Keyval::KEY_KP_Page_Down,
|
26
|
+
Gdk::Keyval::KEY_KP_Enter,
|
27
|
+
Gdk::Keyval::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::KEY_p,
|
32
|
+
Gdk::Keyval::KEY_b,
|
33
|
+
Gdk::Keyval::KEY_h,
|
34
|
+
Gdk::Keyval::KEY_k,
|
35
|
+
Gdk::Keyval::KEY_Page_Up,
|
36
|
+
Gdk::Keyval::KEY_leftarrow,
|
37
|
+
Gdk::Keyval::KEY_uparrow,
|
38
|
+
Gdk::Keyval::KEY_BackSpace,
|
39
|
+
Gdk::Keyval::KEY_Delete,
|
40
|
+
Gdk::Keyval::KEY_minus,
|
41
|
+
Gdk::Keyval::KEY_KP_Subtract,
|
42
|
+
Gdk::Keyval::KEY_KP_Page_Up,
|
43
|
+
Gdk::Keyval::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::KEY_a,
|
48
|
+
Gdk::Keyval::KEY_Home,
|
49
|
+
Gdk::Keyval::KEY_KP_Home,
|
50
|
+
Gdk::Keyval::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::KEY_e,
|
55
|
+
Gdk::Keyval::KEY_End,
|
56
|
+
Gdk::Keyval::KEY_KP_End,
|
57
|
+
Gdk::Keyval::KEY_greater,
|
58
|
+
Gdk::Keyval::KEY_dollar,
|
59
59
|
]
|
60
60
|
|
61
61
|
TOGGLE_FULLSCREEN_KEYS = [
|
62
|
-
Gdk::Keyval::
|
63
|
-
Gdk::Keyval::
|
64
|
-
Gdk::Keyval::
|
62
|
+
Gdk::Keyval::KEY_F5,
|
63
|
+
Gdk::Keyval::KEY_F10,
|
64
|
+
Gdk::Keyval::KEY_F11,
|
65
65
|
]
|
66
66
|
|
67
67
|
RELOAD_THEME_KEYS = [
|
68
|
-
Gdk::Keyval::
|
69
|
-
Gdk::Keyval::
|
68
|
+
Gdk::Keyval::KEY_t,
|
69
|
+
Gdk::Keyval::KEY_r,
|
70
70
|
]
|
71
71
|
|
72
72
|
SAVE_AS_IMAGE_KEYS = [
|
73
|
-
Gdk::Keyval::
|
73
|
+
Gdk::Keyval::KEY_s,
|
74
74
|
]
|
75
75
|
|
76
76
|
ICONIFY_KEYS = [
|
77
|
-
Gdk::Keyval::
|
77
|
+
Gdk::Keyval::KEY_z,
|
78
78
|
]
|
79
79
|
|
80
80
|
TOGGLE_INDEX_MODE_KEYS = [
|
81
|
-
Gdk::Keyval::
|
81
|
+
Gdk::Keyval::KEY_i,
|
82
82
|
]
|
83
83
|
|
84
84
|
CACHE_ALL_SLIDES_KEYS = [
|
85
|
-
Gdk::Keyval::
|
85
|
+
Gdk::Keyval::KEY_c,
|
86
86
|
]
|
87
87
|
|
88
88
|
SEARCH_SLIDE_FORWARD_KEYS = [
|
89
|
-
Gdk::Keyval::
|
89
|
+
Gdk::Keyval::KEY_slash,
|
90
90
|
]
|
91
91
|
|
92
92
|
SEARCH_SLIDE_BACKWARD_KEYS = [
|
93
|
-
Gdk::Keyval::
|
93
|
+
Gdk::Keyval::KEY_question,
|
94
94
|
]
|
95
95
|
|
96
96
|
SEARCH_SLIDE_FORWARD_NEXT_KEYS = [
|
97
|
-
Gdk::Keyval::
|
97
|
+
Gdk::Keyval::KEY_n,
|
98
98
|
]
|
99
99
|
|
100
100
|
STOP_SLIDE_SEARCH_KEYS = [
|
101
|
-
Gdk::Keyval::
|
101
|
+
Gdk::Keyval::KEY_Escape,
|
102
102
|
]
|
103
103
|
|
104
104
|
module Shift
|
105
105
|
WHITE_OUT_KEYS = [
|
106
|
-
Gdk::Keyval::
|
106
|
+
Gdk::Keyval::KEY_w,
|
107
107
|
]
|
108
108
|
|
109
109
|
BLACK_OUT_KEYS = [
|
110
|
-
Gdk::Keyval::
|
110
|
+
Gdk::Keyval::KEY_b,
|
111
111
|
]
|
112
112
|
|
113
113
|
EXPAND_HOLE_KEYS = [
|
114
|
-
Gdk::Keyval::
|
114
|
+
Gdk::Keyval::KEY_e,
|
115
115
|
]
|
116
116
|
|
117
117
|
NARROW_HOLE_KEYS = [
|
118
|
-
Gdk::Keyval::
|
118
|
+
Gdk::Keyval::KEY_n,
|
119
119
|
]
|
120
120
|
|
121
121
|
TOGGLE_GRAFFITI_MODE_KEYS = [
|
122
|
-
Gdk::Keyval::
|
122
|
+
Gdk::Keyval::KEY_g,
|
123
123
|
]
|
124
124
|
|
125
125
|
SEARCH_SLIDE_BACKWARD_NEXT_KEYS = [
|
126
|
-
Gdk::Keyval::
|
126
|
+
Gdk::Keyval::KEY_n,
|
127
127
|
]
|
128
128
|
|
129
129
|
TOGGLE_INFO_WINDOW_KEYS = [
|
130
|
-
Gdk::Keyval::
|
130
|
+
Gdk::Keyval::KEY_i,
|
131
131
|
]
|
132
132
|
end
|
133
133
|
|
134
134
|
module Control
|
135
135
|
CLEAR_SLIDE_KEYS = [
|
136
|
-
Gdk::Keyval::
|
136
|
+
Gdk::Keyval::KEY_l,
|
137
137
|
]
|
138
138
|
|
139
139
|
PRINT_KEYS = [
|
140
|
-
Gdk::Keyval::
|
140
|
+
Gdk::Keyval::KEY_p,
|
141
141
|
]
|
142
142
|
|
143
143
|
UNDO_GRAFFITI_KEYS = [
|
144
|
-
Gdk::Keyval::
|
144
|
+
Gdk::Keyval::KEY_z,
|
145
145
|
]
|
146
146
|
|
147
147
|
CLEAR_GRAFFITI_KEYS = [
|
148
|
-
Gdk::Keyval::
|
148
|
+
Gdk::Keyval::KEY_l,
|
149
149
|
]
|
150
150
|
|
151
151
|
SEARCH_SLIDE_FORWARD_KEYS = [
|
152
|
-
Gdk::Keyval::
|
152
|
+
Gdk::Keyval::KEY_s,
|
153
153
|
]
|
154
154
|
|
155
155
|
SEARCH_SLIDE_BACKWARD_KEYS = [
|
156
|
-
Gdk::Keyval::
|
156
|
+
Gdk::Keyval::KEY_r,
|
157
157
|
]
|
158
158
|
|
159
159
|
SEARCH_SLIDE_FORWARD_NEXT_KEYS = [
|
160
|
-
Gdk::Keyval::
|
160
|
+
Gdk::Keyval::KEY_s,
|
161
161
|
]
|
162
162
|
|
163
163
|
SEARCH_SLIDE_BACKWARD_NEXT_KEYS = [
|
164
|
-
Gdk::Keyval::
|
164
|
+
Gdk::Keyval::KEY_r,
|
165
165
|
]
|
166
166
|
|
167
167
|
STOP_SLIDE_SEARCH_KEYS = [
|
168
|
-
Gdk::Keyval::
|
168
|
+
Gdk::Keyval::KEY_g,
|
169
169
|
]
|
170
170
|
end
|
171
171
|
|
172
172
|
module Alt
|
173
173
|
RESET_ADJUSTMENT_KEYS = [
|
174
|
-
Gdk::Keyval::
|
174
|
+
Gdk::Keyval::KEY_a,
|
175
175
|
]
|
176
176
|
|
177
177
|
RESET_TIMER_KEYS = [
|
178
|
-
Gdk::Keyval::
|
178
|
+
Gdk::Keyval::KEY_t,
|
179
179
|
]
|
180
180
|
end
|
181
181
|
end
|