1 <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="chrome://global/skin/" type="text/css"?><?xml-stylesheet href="takahashi.css" type="text/css"?><page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" id="presentation" xmlns:html="http:/www.w3.org/1999/xhtml" orient="vertical" onkeypress="Presentation.onKeyPress(event);">
2 <html:textarea id="builtinCode" style="visibility: collapse"><![CDATA[
37 "Keep It Simple Stupid"
80 blessed-Hash blessed-Array
81 Inside-Out blessed-Scalar
83 blessed-Regexp Closures
84 Tied-Objects AUTOLOAD ...
88 Class::Accessor Class::MakeMethods base.pm Spiffy
89 Class::HPLOO Class::Base Object::Tiny Object::Lexical
90 EO Class::Accessor::Fast Class::Closure Class::Meta
91 Class::Simple Class::Gomor Rose::Object Class::Builder
92 Class::InsideOut Object::LocalVars Oak::Object OOP
93 Object::InsideOut Class::Dot Class::NamedParms Myco
94 Class::Structured Class::Classless parent.pm Eobj
95 Class::Prototyped Class::Init Class::Maker Class::Object
96 Fukurama::Class Class::Declare Class::Std Object::Declare
97 Class::Struct Class::AutoClass Class::Root Badger Oryx
98 Object::Prototype Basset Object::Accessor Class::Lego
99 Class::Container Tangram OO::Closures Class::Trait MOP
100 Object::MultiType SLOOPS Class::TOM Class::PObject
132 Moose means less code
133 (less code == less buggs)
135 Moose means less tests
148 <deck flex="1" id="deck">
151 onmousemove="Presentation.onMouseMoveOnCanvas(event);">
152 <toolbox id="canvasToolbar">
154 <toolbarbutton oncommand="Presentation.home()" label="|<<"
156 <toolbarbutton oncommand="Presentation.back()" label="<"
158 <toolbarbutton oncommand="Presentation.forward()" label=">"
159 observes="canForward"/>
160 <toolbarbutton oncommand="Presentation.end()" label=">>|"
161 observes="canForward"/>
163 <hbox align="center">
164 <textbox id="current_page" size="4"
165 oninput="if (this.value) Presentation.showPage(parseInt(this.value)-1);"/>
166 <description value="/"/>
167 <description id="max_page"/>
172 <scrollbar id="scroller"
173 align="center" orient="horizontal"
174 oncommand="Presentation.showPage(parseInt(event.target.getAttribute('curpos')));"
175 onclick="Presentation.showPage(parseInt(event.target.getAttribute('curpos')));"
176 onmousedown="Presentation.onScrollerDragStart();"
177 onmousemove="Presentation.onScrollerDragMove();"
178 onmouseup="Presentation.onScrollerDragDrop();"/>
184 <toolbarbutton id="toggleEva" label="Eva"
187 oncommand="Presentation.toggleEvaMode();"/>
189 <toolbarbutton label="Edit"
190 oncommand="Presentation.toggleEditMode();"/>
191 <toolbarbutton oncommand="Presentation.reload();" label="Reload"/>
194 <vbox flex="1" id="canvas"
195 onclick="Presentation.onPresentationClick(event);">
207 <vbox flex="1" id="edit">
210 <toolbarbutton label="New Page"
211 oncommand="Presentation.addPage()"/>
214 <toolbarbutton label="View"
215 oncommand="Presentation.toggleEditMode();"/>
216 <toolbarbutton oncommand="Presentation.reload();" label="Reload"/>
219 <textbox id="textField" flex="1" multiline="true"
220 oninput="Presentation.onEdit()"/>
221 <hbox collapsed="true">
222 <iframe id="dataLoader" onload="if (window.Presentation) Presentation.onDataLoad();"/>
230 <broadcaster id="canBack"/>
231 <broadcaster id="canForward"/>
235 <command id="cmd_forward"
236 oncommand="if (Presentation.isPresentationMode) Presentation.forward();"/>
237 <command id="cmd_back"
238 oncommand="if (Presentation.isPresentationMode) Presentation.back();"/>
239 <command id="cmd_home"
240 oncommand="if (Presentation.isPresentationMode) Presentation.home();"/>
241 <command id="cmd_end"
242 oncommand="if (Presentation.isPresentationMode) Presentation.end();"/>
245 <key keycode="VK_ENTER" command="cmd_forward"/>
246 <key keycode="VK_RETURN" command="cmd_forward"/>
247 <key keycode="VK_PAGE_DOWN" command="cmd_forward"/>
248 <key keycode="VK_RIGHT" command="cmd_forward"/>
249 <key keycode="VK_DOWN" command="cmd_forward"/>
250 <!-- key keycode="VK_BACK_SPACE" command="cmd_back"/-->
251 <key keycode="VK_PAGE_UP" command="cmd_back"/>
252 <!-- <key keycode="VK_BACK_UP" command="cmd_back"/>-->
253 <!-- <key keycode="VK_BACK_LEFT" command="cmd_back"/>-->
254 <key keycode="VK_HOME" command="cmd_home"/>
255 <key keycode="VK_END" command="cmd_end"/>
256 <key key="n" modifiers="accel" oncommand="Presentation.addPage();"/>
257 <key key="r" modifiers="accel" oncommand="window.location.reload();"/>
258 <key key="e" modifiers="accel" oncommand="Presentation.toggleEditMode();"/>
259 <key key="a" modifiers="accel" oncommand="Presentation.toggleEvaMode();"/>
263 <script src="takahashi.js" type="application/x-javascript" />
265 <!-- ***** BEGIN LICENSE BLOCK *****
268 - The contents of this file are subject to the Mozilla Public License Version
269 - 1.1 (the "License"); you may not use this file except in compliance with
270 - the License. You may obtain a copy of the License at
271 - http://www.mozilla.org/MPL/
273 - Software distributed under the License is distributed on an "AS IS" basis,
274 - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
275 - for the specific language governing rights and limitations under the
278 - The Original Code is the Takahashi-Method-based Presentation Tool in XUL.
280 - The Initial Developer of the Original Code is SHIMODA Hiroshi.
281 - Portions created by the Initial Developer are Copyright (C) 2005
282 - the Initial Developer. All Rights Reserved.
284 - Contributor(s): SHIMODA Hiroshi <piro@p.club.ne.jp>
286 - ***** END LICENSE BLOCK ***** -->