annotate data/plugin/action/SVG-editor.py @ 389:764834d3a461

initial version of svg-edit Revision r448 and action SVG-editor
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 23 Aug 2009 00:56:18 +0200
parents
children 6747c16172a2
rev   line source
389
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
1 # -*- coding: iso-8859-1 -*-
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
2 """
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
3 MoinMoin - mathtran
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
4
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
5 This macro is used to call the mathtran parser,
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
6 it is just a thin wrapper around it.
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
7
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
8 @copyright: 2008-2009 by MoinMoin:ReimarBauer
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
9 @license: GNU GPL, see COPYING for details.
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
10 """
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
11 def execute(pagename, request):
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
12 url = request.getQualifiedURL()
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
13 htdocs = "%s%s" % (request.cfg.url_prefix_static, '/svg-edit/editor')
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
14
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
15 meta = """
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
16 <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
17 <link rel="icon" type="image/png" href="images/logo.png">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
18 <link rel="stylesheet" href="%(htdocs)s/jgraduate/css/jPicker-1.0.9.css" type="text/css"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
19 <link rel="stylesheet" href="%(htdocs)s/jgraduate/css/jGraduate-0.2.0.css" type="text/css"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
20 <link rel="stylesheet" href="%(htdocs)s/svg-editor.css" type="text/css"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
21 <link rel="stylesheet" href="%(htdocs)s/spinbtn/JQuerySpinBtn.css" type="text/css"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
22 <script type="text/javascript" src="%(htdocs)s/jquery.js"></script>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
23 <!--script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script-->
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
24 <script type="text/javascript" src="%(htdocs)s/js-hotkeys/jquery.hotkeys.min.js"></script>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
25 <!--script type="text/javascript" src="%(htdocs)s/js-hotkeys/jquery.hotkeys-0.7.9.js"></script-->
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
26 <script type="text/javascript" src="%(htdocs)s/jgraduate/jpicker-1.0.9.min.js"></script>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
27 <script type="text/javascript" src="%(htdocs)s/jgraduate/jquery.jgraduate.js"></script>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
28 <script type="text/javascript" src="%(htdocs)s/spinbtn/JQuerySpinBtn.js"></script>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
29 <!--script type="text/javascript" src="%(htdocs)s/spinbtn/JQuerySpinBtn.min.js"></script-->
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
30 <!--script type="text/javascript" src="%(htdocs)s/jgraduate/jquery.jgraduate.min.js"></script-->
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
31 <script type="text/javascript" src="%(htdocs)s/svgcanvas.js"></script>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
32 <!--script type="text/javascript" src="%(htdocs)s/svgcanvas.min.js"></script-->
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
33 <script type="text/javascript" src="%(htdocs)s/svg-editor.js"></script>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
34 <!--script type="text/javascript" src="%(htdocs)s/svg-editor.min.js"></script-->
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
35 """ % {"htdocs": htdocs}
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
36
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
37 html = """
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
38 <div id="svg_editor">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
39
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
40 <div id="workarea">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
41 <style id="styleoverrides" type="text/css"></style>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
42 <div id="svgcanvas"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
43 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
44
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
45 <div id="logo">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
46 <a href="http://svg-edit.googlecode.com/" target="_blank" title="SVG-edit Home Page">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
47 <img src="%(htdocs)s/images/logo.png" width="32" height="32"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
48 </a>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
49 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
50
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
51 <div id="tools_top" class="tools_panel">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
52 <!-- File-like buttons: New, Save, Source -->
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
53 <div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
54 <img class="tool_sep" src="%(htdocs)s/images/sep.png" alt="|"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
55 <img class="tool_button" id="tool_clear" src="%(htdocs)s/images/clear.png" title="New Image [N]" alt="Clear" />
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
56 <img class="tool_button" id="tool_save" src="%(htdocs)s/images/save.png" title="Save Image [S]" alt="Save"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
57 <img class="tool_button" id="tool_source" src="%(htdocs)s/images/source.png" title="Edit Source [U]" alt="Source"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
58 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
59
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
60 <!-- History buttons -->
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
61 <div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
62 <img class="tool_sep" src="%(htdocs)s/images/sep.png" alt="|"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
63 <img class="tool_button tool_button_disabled" id="tool_undo" src="%(htdocs)s/images/undo.png" title="Undo [Z]" alt="Undo" />
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
64 <img class="tool_button tool_button_disabled" id="tool_redo" src="%(htdocs)s/images/redo.png" title="Redo [Y]" alt="Redo"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
65 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
66
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
67 <!-- Buttons when something a single element is selected -->
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
68 <div id="selected_panel">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
69 <img class="tool_sep" src="%(htdocs)s/images/sep.png" alt="|"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
70 <img class="tool_button" id="tool_clone" src="%(htdocs)s/images/copy.png" title="Clone Element [C]" alt="Copy"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
71 <img class="tool_button" id="tool_delete" src="%(htdocs)s/images/delete.png" title="Delete Element [Delete/Backspace]" alt="Delete"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
72 <img class="tool_button" id="tool_move_top" src="%(htdocs)s/images/move_top.png" title="Move to Top [Shift+Up]" alt="Top"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
73 <img class="tool_button" id="tool_move_bottom" src="%(htdocs)s/images/move_bottom.png" title="Move to Bottom [Shift+Down]" alt="Bottom"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
74 <select id="group_opacity" class="selected_tool" title="Change selected item opacity">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
75 <option selected="selected" value="1">100 %%</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
76 <option value="0.9">90 %%</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
77 <option value="0.8">80 %%</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
78 <option value="0.7">70 %%</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
79 <option value="0.6">60 %%</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
80 <option value="0.5">50 %%</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
81 <option value="0.4">40 %%</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
82 <option value="0.3">30 %%</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
83 <option value="0.2">20 %%</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
84 <option value="0.1">10 %%</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
85 </select>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
86 <span class="selected_tool">angle:</span>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
87 <input id="angle" class="selected_tool" title="Change rotation angle" alt="Rotation Angle" size="2" value="0" type="text"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
88 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
89
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
90 <!-- Buttons when something a single element is selected -->
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
91 <div id="multiselected_panel">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
92 <img class="tool_sep" src="%(htdocs)s/images/sep.png" alt="|"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
93 <img class="tool_button" id="tool_clone_multi" src="%(htdocs)s/images/copy.png" title="Clone Elements [C]" alt="Clone"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
94 <img class="tool_button" id="tool_delete_multi" src="%(htdocs)s/images/delete.png" title="Delete Selected Elements [Delete/Backspace]" alt="Delete"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
95 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
96
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
97 <div id="rect_panel">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
98 <img class="tool_sep" src="%(htdocs)s/images/sep.png" alt="|"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
99 <label class="rect_tool">x:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
100 <input id="rect_x" class="rect_tool attr_changer" title="Change rectangle X coordinate" alt="x" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
101 <label class="rect_tool">y:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
102 <input id="rect_y" class="rect_tool attr_changer" title="Change rectangle Y coordinate" alt="y" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
103 <label class="rect_tool">width:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
104 <input id="rect_w" class="rect_tool attr_changer" title="Change rectangle width" alt="width" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
105 <label class="rect_tool">height:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
106 <input id="rect_h" class="rect_tool attr_changer" title="Change rectangle height" alt="height" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
107 <label class="rect_tool">Corner Radius:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
108 <input id="rect_radius" size="3" value="0" class="rect_tool" type="text" title="Change Rectangle Corner Radius" alt="Corner Radius"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
109 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
110
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
111 <div id="circle_panel">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
112 <img class="tool_sep" src="%(htdocs)s/images/sep.png" alt="|"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
113 <label class="circle_tool">cx:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
114 <input id="circle_cx" class="circle_tool attr_changer" title="Change circle's cx coordinate" alt="cx" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
115 <label class="circle_tool">cy:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
116 <input id="circle_cy" class="circle_tool attr_changer" title="Change circle's cy coordinate" alt="cy" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
117 <label class="circle_tool">r:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
118 <input id="circle_r" class="circle_tool attr_changer" title="Change circle's radius" alt="r" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
119 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
120
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
121 <div id="ellipse_panel">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
122 <img class="tool_sep" src="%(htdocs)s/images/sep.png" alt="|"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
123 <label class="ellipse_tool">cx:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
124 <input id="ellipse_cx" class="ellipse_tool attr_changer" title="Change ellipse's cx coordinate" alt="cx" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
125 <label class="ellipse_tool">cy:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
126 <input id="ellipse_cy" class="ellipse_tool attr_changer" title="Change ellipse's cy coordinate" alt="cy" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
127 <label class="ellipse_tool">rx:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
128 <input id="ellipse_rx" class="ellipse_tool attr_changer" title="Change ellipse's x radius" alt="rx" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
129 <label class="ellipse_tool">ry:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
130 <input id="ellipse_ry" class="ellipse_tool attr_changer" title="Change ellipse's y radius" alt="ry" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
131 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
132
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
133 <div id="line_panel">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
134 <img class="tool_sep" src="%(htdocs)s/images/sep.png" alt="|"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
135 <label class="line_tool">x1:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
136 <input id="line_x1" class="line_tool attr_changer" title="Change line's starting x coordinate" alt="x1" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
137 <label class="line_tool">y1:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
138 <input id="line_y1" class="line_tool attr_changer" title="Change line's starting y coordinate" alt="y1" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
139 <label class="line_tool">x2:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
140 <input id="line_x2" class="line_tool attr_changer" title="Change line's ending x coordinate" alt="x2" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
141 <label class="line_tool">y2:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
142 <input id="line_y2" class="line_tool attr_changer" title="Change line's ending y coordinate" alt="x1" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
143 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
144
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
145 <div id="text_panel">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
146 <img class="tool_sep" src="%(htdocs)s/images/sep.png" alt="|"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
147 <label class="text_tool">x:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
148 <input id="text_x" class="text_tool attr_changer" title="Change text X coordinate" alt="x" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
149 <label class="text_tool">y:</label>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
150 <input id="text_y" class="text_tool attr_changer" title="Change text Y coordinate" alt="y" size="3"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
151 <img class="tool_button" id="tool_bold" src="%(htdocs)s/images/bold.png" title="Bold Text [B]" alt="Bold"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
152 <img class="tool_button" id="tool_italic" src="%(htdocs)s/images/italic.png" title="Italic Text [I]" alt="Italic"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
153 <select id="font_family" class="text_tool" title="Change Font Family">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
154 <option selected="selected" value="serif">serif</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
155 <option value="sans-serif">sans-serif</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
156 <option value="cursive">cursive</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
157 <option value="fantasy">fantasy</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
158 <option value="monospace">monospace</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
159 </select>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
160 <select id="font_size" class="text_tool" title="Change Font Size">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
161 <option value="6pt">6pt</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
162 <option value="8pt">8pt</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
163 <option value="10pt">10pt</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
164 <option selected="selected" value="12pt">12pt</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
165 <option value="14pt">14pt</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
166 <option value="16pt">16pt</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
167 <option value="20pt">20pt</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
168 <option value="24pt">24pt</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
169 <option value="32pt">32pt</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
170 <option value="48pt">48pt</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
171 <option value="64pt">64pt</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
172 <option value="72pt">72pt</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
173 <option value="80pt">80pt</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
174 <option value="96pt">96pt</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
175 <option value="120pt">120pt</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
176 </select>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
177 <input id="text" class="text_tool" type="text" title="Change text contents" size="35"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
178 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
179 </div> <!-- tools_top -->
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
180
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
181 <div id="tools_left" class="tools_panel">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
182 <img class="tool_button_current" id="tool_select" src="%(htdocs)s/images/select.png" title="Select Tool [1]" alt="Select"/><br/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
183 <img class="tool_button" id="tool_path" src="%(htdocs)s/images/path.png" title="Pencil Tool [2]" alt="Pencil"/><br/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
184 <img class="tool_button" id="tool_line" src="%(htdocs)s/images/line.png" title="Line Tool [3]" alt="Line"/><br/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
185 <img class="tool_button" id="tools_rect_show" src="%(htdocs)s/images/square.png" title="Square/Rect Tool [4/Shift+4]" alt="Square"/><br/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
186 <img class="tool_button" id="tools_ellipse_show" src="%(htdocs)s/images/circle.png" title="Ellipse/Circle Tool [5/Shift+5]" alt="Circle"/><br/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
187 <img class="tool_button" id="tool_text" src="%(htdocs)s/images/text.png" title="Text Tool [6]" alt="Text"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
188 <img class="tool_button" id="tool_poly" src="%(htdocs)s/images/polygon.png" title="Poly Tool [7]" alt="Poly"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
189 </div> <!-- tools_left -->
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
190
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
191 <div id="tools_bottom" class="tools_panel">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
192
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
193 <div id="tools_bottom_1">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
194 <select id="resolution">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
195 <option selected="selected">640x480</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
196 <option>800x600</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
197 <option>1024x768</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
198 <option>1280x960</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
199 <option>1600x1200</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
200 </select>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
201 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
202
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
203 <div id="tools_bottom_2">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
204 <table>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
205 <tr>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
206 <td>fill:</td>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
207 <td><div id="fill_color" class="color_block" title="Change fill color"></div></td>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
208 <td><div id="fill_opacity">100 %%</div></td>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
209 </tr><tr>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
210 <td>stroke:</td>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
211 <td><div id="stroke_color" class="color_block" title="Change stroke color"></div></td>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
212 <td><div id="stroke_opacity">100 %%</div></td>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
213 <td>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
214 <input id="stroke_width" title="Change stroke width" alt="Stroke Width" size="2" value="5" type="text"/>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
215 </td>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
216 <td>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
217 <select id="stroke_style" title="Change stroke dash style">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
218 <option selected="selected" value="none">---</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
219 <option value="2,2">...</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
220 <option value="5,5">- -</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
221 <option value="5,2,2,2">- .</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
222 <option value="5,2,2,2,2,2">- ..</option>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
223 </select>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
224 </td>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
225 </tr>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
226 </table>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
227 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
228
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
229 <div id="tools_bottom_3">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
230 <div id="palette_holder"><div id="palette" title="Click to change fill color, shift-click to change stroke color"></div></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
231 <div id="copyright">Powered by <a href="http://svg-edit.googlecode.com/" target="_blank">SVG-edit v2.3-preAlpha</a></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
232 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
233 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
234
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
235 <!-- hidden divs -->
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
236 <div id="color_picker"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
237
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
238 <div id="tools_rect" class="tools_flyout">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
239 <div id="tool_square" class="tool_flyout_button" title="Square"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
240 <div id="tool_rect" class="tool_flyout_button" title="Rectangle"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
241 <div id="tool_fhrect" class="tool_flyout_button" title="Free-Hand Rectangle"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
242 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
243
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
244 <div id="tools_ellipse" class="tools_flyout">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
245 <div id="tool_circle" class="tool_flyout_button" title="Circle"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
246 <div id="tool_ellipse" class="tool_flyout_button" title="Ellipse"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
247 <div id="tool_fhellipse" class="tool_flyout_button" title="Free-Hand Ellipse"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
248 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
249
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
250 <div id="tools_stacking" class="tools_flyout_v">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
251 <div id="tool_stacktop" class="tool_flyout_button" title="Move to Top [Shift+Up]"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
252 <div id="tool_stackbottom" class="tool_flyout_button" title="Move to Bottom [Shift+Down]"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
253 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
254
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
255 <div id="tools_align" class="tools_flyout_v">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
256 <div id="tool_aligntop" class="tool_flyout_button" title="Align to Top"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
257 <div id="tool_alignbottom" class="tool_flyout_button" title="Align to Bottom"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
258 <div id="tool_alignmiddle" class="tool_flyout_button" title="Align to Middle"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
259 <div id="tool_alignleft" class="tool_flyout_button" title="Align to Left"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
260 <div id="tool_alignright" class="tool_flyout_button" title="Align to Right"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
261 <div id="tool_aligncenter" class="tool_flyout_button" title="Align to Center"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
262 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
263
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
264 </div> <!-- svg_editor -->
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
265
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
266 <div id="svg_source_editor">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
267 <div id="svg_source_overlay"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
268 <div id="svg_source_container">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
269 <div id="tool_source_back" class="toolbar_button"></div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
270 <form>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
271 <textarea id="svg_source_textarea"></textarea>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
272 </form>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
273 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
274 </div>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
275
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
276 <script type="text/javascript">
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
277 $(document).ready(svg_edit_setup);
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
278 </script>
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
279
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
280 """ % {"htdocs": htdocs}
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
281
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
282 title = "SVG Editor"
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
283 request.theme.send_title(title, page=request.page, pagename=pagename)
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
284 request.write(request.formatter.startContent("content"))
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
285 request.write(request.formatter.rawHTML(meta))
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
286
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
287 request.write(request.formatter.rawHTML(html))
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
288 request.write(request.formatter.endContent())
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
289 request.theme.send_footer(pagename)
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
290 request.theme.send_closing_html()
764834d3a461 initial version of svg-edit Revision r448 and action SVG-editor
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
291 return None,None