lib/rabbit/front.rb in rabbit-2.2.1 vs lib/rabbit/front.rb in rabbit-3.0.0
- old
+ new
@@ -1,5 +1,21 @@
+# Copyright (C) 2005-2019 Kouhei Sutou <kou@cozmixng.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
require "monitor"
require "rabbit/rabbit"
require "rabbit/utils"
@@ -27,14 +43,19 @@
move_to_previous_if_can move_to_previous_slide_if_can
move_to_if_can).each do |name|
AVAILABLE_INTERFACES << [name, PublicLevel::MOVE, false]
end
- %w(width height paper_width paper_height).each do |name|
+ %w(width height base_width base_height paper_width paper_height).each do |name|
AVAILABLE_INTERFACES << [name, PublicLevel::READ_SIZE, false]
end
- %w(width= height= paper_width= paper_height=).each do |name|
+ # Deprecated. Use #base_width= and #base_height= instead.
+ %w(width= height=).each do |name|
+ AVAILABLE_INTERFACES << [name, PublicLevel::CHANGE_SIZE, true]
+ end
+
+ %w(base_width= base_height= paper_width= paper_height=).each do |name|
AVAILABLE_INTERFACES << [name, PublicLevel::CHANGE_SIZE, true]
end
%w(source).each do |name|
AVAILABLE_INTERFACES << [name, PublicLevel::READ_SOURCE, false]