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[
9 stevan.little@iinteractive.com
10 http://www.iinteractive.com/moose
11 http://search.cpan.org/~stevan/
90 has my_attr => (is => 'rw');
103 my $o = My::Class->new(
115 package My::App::Conversions;
118 sub decimal_to_percentage { ... }
119 sub percentage_to_decimal { ... }
124 package My::App::WithDBICSchema;
129 isa => 'DBIx::Class::Schema',
132 My::App::DB->connect(...)
139 package My::App::Iterator::Abstract;
149 package My::App::Report::Base;
152 requires 'calculate';
173 with 'MooseX::Getopt';
175 has 'foo' => (is => 'rw', isa => 'Int');
180 My::App->new_with_options->run
182 stevan>./my_app.pl --foo 10
186 MooseX::AttributeHelpers
209 <deck flex="1" id="deck">
212 onmousemove="Presentation.onMouseMoveOnCanvas(event);">
213 <toolbox id="canvasToolbar">
215 <toolbarbutton oncommand="Presentation.home()" label="|<<"
217 <toolbarbutton oncommand="Presentation.back()" label="<"
219 <toolbarbutton oncommand="Presentation.forward()" label=">"
220 observes="canForward"/>
221 <toolbarbutton oncommand="Presentation.end()" label=">>|"
222 observes="canForward"/>
224 <hbox align="center">
225 <textbox id="current_page" size="4"
226 oninput="if (this.value) Presentation.showPage(parseInt(this.value)-1);"/>
227 <description value="/"/>
228 <description id="max_page"/>
233 <scrollbar id="scroller"
234 align="center" orient="horizontal"
235 oncommand="Presentation.showPage(parseInt(event.target.getAttribute('curpos')));"
236 onclick="Presentation.showPage(parseInt(event.target.getAttribute('curpos')));"
237 onmousedown="Presentation.onScrollerDragStart();"
238 onmousemove="Presentation.onScrollerDragMove();"
239 onmouseup="Presentation.onScrollerDragDrop();"/>
245 <toolbarbutton id="toggleEva" label="Eva"
248 oncommand="Presentation.toggleEvaMode();"/>
250 <toolbarbutton label="Edit"
251 oncommand="Presentation.toggleEditMode();"/>
252 <toolbarbutton oncommand="Presentation.reload();" label="Reload"/>
255 <vbox flex="1" id="canvas"
256 onclick="Presentation.onPresentationClick(event);">
268 <vbox flex="1" id="edit">
271 <toolbarbutton label="New Page"
272 oncommand="Presentation.addPage()"/>
275 <toolbarbutton label="View"
276 oncommand="Presentation.toggleEditMode();"/>
277 <toolbarbutton oncommand="Presentation.reload();" label="Reload"/>
280 <textbox id="textField" flex="1" multiline="true"
281 oninput="Presentation.onEdit()"/>
282 <hbox collapsed="true">
283 <iframe id="dataLoader" onload="if (window.Presentation) Presentation.onDataLoad();"/>
291 <broadcaster id="canBack"/>
292 <broadcaster id="canForward"/>
296 <command id="cmd_forward"
297 oncommand="if (Presentation.isPresentationMode) Presentation.forward();"/>
298 <command id="cmd_back"
299 oncommand="if (Presentation.isPresentationMode) Presentation.back();"/>
300 <command id="cmd_home"
301 oncommand="if (Presentation.isPresentationMode) Presentation.home();"/>
302 <command id="cmd_end"
303 oncommand="if (Presentation.isPresentationMode) Presentation.end();"/>
306 <key keycode="VK_ENTER" command="cmd_forward"/>
307 <key keycode="VK_RETURN" command="cmd_forward"/>
308 <key keycode="VK_PAGE_DOWN" command="cmd_forward"/>
309 <key keycode="VK_RIGHT" command="cmd_forward"/>
310 <key keycode="VK_DOWN" command="cmd_forward"/>
311 <!-- key keycode="VK_BACK_SPACE" command="cmd_back"/-->
312 <key keycode="VK_PAGE_UP" command="cmd_back"/>
313 <!-- <key keycode="VK_BACK_UP" command="cmd_back"/>-->
314 <!-- <key keycode="VK_BACK_LEFT" command="cmd_back"/>-->
315 <key keycode="VK_HOME" command="cmd_home"/>
316 <key keycode="VK_END" command="cmd_end"/>
317 <key key="n" modifiers="accel" oncommand="Presentation.addPage();"/>
318 <key key="r" modifiers="accel" oncommand="window.location.reload();"/>
319 <key key="e" modifiers="accel" oncommand="Presentation.toggleEditMode();"/>
320 <key key="a" modifiers="accel" oncommand="Presentation.toggleEvaMode();"/>
324 <script src="takahashi.js" type="application/x-javascript" />
326 <!-- ***** BEGIN LICENSE BLOCK *****
329 - The contents of this file are subject to the Mozilla Public License Version
330 - 1.1 (the "License"); you may not use this file except in compliance with
331 - the License. You may obtain a copy of the License at
332 - http://www.mozilla.org/MPL/
334 - Software distributed under the License is distributed on an "AS IS" basis,
335 - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
336 - for the specific language governing rights and limitations under the
339 - The Original Code is the Takahashi-Method-based Presentation Tool in XUL.
341 - The Initial Developer of the Original Code is SHIMODA Hiroshi.
342 - Portions created by the Initial Developer are Copyright (C) 2005
343 - the Initial Developer. All Rights Reserved.
345 - Contributor(s): SHIMODA Hiroshi <piro@p.club.ne.jp>
347 - ***** END LICENSE BLOCK ***** -->