Skip to content

Commit 8b02994

Browse files
committed
wip
1 parent 14c3b58 commit 8b02994

3 files changed

Lines changed: 53 additions & 28 deletions

File tree

Tutorial-o-Matic/Tutorial-o-Matic.mm

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<font SIZE="16" BOLD="true" ITALIC="true"/>
55
<attribute_layout NAME_WIDTH="111.75 pt" VALUE_WIDTH="165.75 pt"/>
66
<attribute NAME="name" VALUE="tutorialOMatic"/>
7-
<attribute NAME="version" VALUE="v0.0.3"/>
7+
<attribute NAME="version" VALUE="v0.0.4"/>
88
<attribute NAME="author" VALUE="EdoFro"/>
99
<attribute NAME="freeplaneVersionFrom" VALUE="v1.9.9"/>
1010
<attribute NAME="freeplaneVersionTo" VALUE=""/>
11-
<attribute NAME="updateUrl" VALUE="https://github.com/EdoFro/Freeplane_Tutorial_AddOn/releases/latest"/>
11+
<attribute NAME="updateUrl" VALUE="https://github.com/EdoFro/Freeplane_Tutorial_AddOn/raw/main/Tutorial-o-Matic/version.properties"/>
1212
<richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
1313
<html>
1414
<head>
@@ -42,7 +42,8 @@
4242
</li>
4343
</ul>
4444
</body>
45-
</html></richcontent>
45+
</html>
46+
</richcontent>
4647
<hook NAME="MapStyle" background="#f9f9f8">
4748
<properties mapUsesOwnSaveOptions="true" edgeColorConfiguration="#808080ff,#ff0000ff,#0000ffff,#00ff00ff,#ff00ffff,#00ffffff,#7c0000ff,#00007cff,#007c00ff,#7c007cff,#007c7cff,#7c7c00ff" show_icon_for_attributes="true" save_folding="save_folding_if_map_is_changed" associatedTemplateLocation="file:/C:/Users/Edo/Documents/GitHub/Freeplane_My-Menu-Inator/Menu-o-Matic/Menu-o-Matic.mm" fit_to_viewport="false" save_modification_times="false" save_last_visited_node="default" show_note_icons="true"/>
4849

@@ -147,7 +148,8 @@
147148
To translate the description you have to define a translation for the key 'addons.${name}.description'.
148149
</p>
149150
</body>
150-
</html></richcontent>
151+
</html>
152+
</richcontent>
151153
<node TEXT="Tutorial-o-Matic for Freeplane!!&#xa;Tutorial-o-Matic is an AddOn for Freeplane that gives the user the possibility to create his/her own tutorials." ID="ID_1642042079"/>
152154
</node>
153155
<node TEXT="changes" POSITION="left" ID="ID_461119253">
@@ -162,16 +164,20 @@
162164
Change log of this add-on: append one node for each noteworthy version and put the details for each version into a child node.
163165
</p>
164166
</body>
165-
</html></richcontent>
166-
<node TEXT="v0.0.1" ID="ID_1147464075">
167+
</html>
168+
</richcontent>
169+
<node TEXT="v0.0.1" FOLDED="true" ID="ID_1147464075">
167170
<node TEXT="Demo version" ID="ID_1739689712"/>
168171
</node>
169-
<node TEXT="v0.0.2" ID="ID_945484309">
172+
<node TEXT="v0.0.2" FOLDED="true" ID="ID_945484309">
170173
<node TEXT="Bugs corrections:&#xa;- License as plain text&#xa;- Updated version of Demo map" ID="ID_621408353"/>
171174
</node>
172-
<node TEXT="v0.0.3" ID="ID_1106405456">
175+
<node TEXT="v0.0.3" FOLDED="true" ID="ID_1106405456">
173176
<node TEXT="- better scrollspeed&#xa;- message when command no present in Menu for active map&#xa;- added execute_scripts_without_network_restriction: true so web images could be loaded&#xa;- improved showMenu to show actions in extended submenus&#xa;- changed &apos;Close tutorial&apos; to &apos;Stop tutorial&apos;&#xa;- tables have now black borders&#xa;- Codeblocks have special style in EditorPanes&#xa;- links in EditorPanes are now clickeable and open the default web browser&#xa;- added a listener to resize height of content panel when tabpanel width changes&#xa;- added newPage styles and functionality&#xa;- added Table of Contents styles and functionality&#xa;- added Table of Contents button to &apos;next page&apos; panel&#xa;- added GOTO style and its functionality&#xa;- added Action style and its functionality&#xa;- added groovy style and its functionality&#xa;- enables multiple tutorials in one map&#xa;- added &apos;copy&apos; style and its functionality&#xa;- added &apos;select&apos; style and its functionality&#xa;- added &apos;openMap&apos; style and its functionality&#xa;- added &apos;inspect tutorial map&apos; functionality" ID="ID_1550125378"/>
174177
</node>
178+
<node TEXT="v0.0.4" ID="ID_1654795865">
179+
<node TEXT="- corrected link to version.properties" ID="ID_312985717"/>
180+
</node>
175181
</node>
176182
<node TEXT="license" FOLDED="true" POSITION="left" ID="ID_624388795">
177183
<edge COLOR="#00ff00"/>
@@ -191,7 +197,8 @@
191197
The License text has to be entered as a child of the <i>'license'</i>&nbsp;node, either as plain text or as HTML.
192198
</p>
193199
</body>
194-
</html></richcontent>
200+
</html>
201+
</richcontent>
195202
<node TEXT="MIT License&#xa;&#xa;Copyright (c) 2021 Eduardo Frohlich.&#xa;&#xa;Permission is hereby granted, free of charge, to any person obtaining a copy&#xa;of this software and associated documentation files (the &quot;Software&quot;), to deal&#xa;in the Software without restriction, including without limitation the rights&#xa;to use, copy, modify, merge, publish, distribute, sublicense, and/or sell&#xa;copies of the Software, and to permit persons to whom the Software is&#xa;furnished to do so, subject to the following conditions:&#xa;&#xa;The above copyright notice and this permission notice shall be included in all&#xa;copies or substantial portions of the Software.&#xa;&#xa;THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR&#xa;IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,&#xa;FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE&#xa;AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER&#xa;LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,&#xa;OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE&#xa;SOFTWARE." ID="ID_444630498"/>
196203
</node>
197204
<node TEXT="preferences.xml" POSITION="left" ID="ID_1967714695">
@@ -209,7 +216,8 @@
209216
<font color="#000000" face="SansSerif, sans-serif">Every property in the configuration should receive a default value in <i>default.properties</i>&nbsp;node.</font>
210217
</p>
211218
</body>
212-
</html></richcontent>
219+
</html>
220+
</richcontent>
213221
</node>
214222
<node TEXT="default.properties" POSITION="left" ID="ID_1398497950">
215223
<edge COLOR="#00ffff"/>
@@ -231,7 +239,8 @@ For each menu item with an icon add an attribute with the icon key (use develope
231239
</li>
232240
</ul>
233241
</body>
234-
</html></richcontent>
242+
</html>
243+
</richcontent>
235244
</node>
236245
<node TEXT="translations" POSITION="left" ID="ID_546877695">
237246
<edge COLOR="#7c0000"/>
@@ -256,7 +265,8 @@ For each menu item with an icon add an attribute with the icon key (use develope
256265
</li>
257266
</ul>
258267
</body>
259-
</html></richcontent>
268+
</html>
269+
</richcontent>
260270
<node TEXT="en" ID="ID_1998059292">
261271
<attribute_layout NAME_WIDTH="162 pt" VALUE_WIDTH="281.24999 pt"/>
262272
<attribute NAME="addons.${name}" VALUE="Tutorial-o-Matic"/>
@@ -279,7 +289,8 @@ For each menu item with an icon add an attribute with the icon key (use develope
279289
List of files and/or directories to remove on uninstall
280290
</p>
281291
</body>
282-
</html></richcontent>
292+
</html>
293+
</richcontent>
283294
<attribute_layout NAME_WIDTH="42.75 pt" VALUE_WIDTH="295.49999 pt"/>
284295
<attribute NAME="delete" VALUE="${installationbase}/addons/${name}.script.xml"/>
285296
<attribute NAME="delete" VALUE="${installationbase}/addons/${name}/lib/Tutorial-o-Matic.jar"/>
@@ -407,7 +418,8 @@ For each menu item with an icon add an attribute with the icon key (use develope
407418
&nbsp;&nbsp;- In any case set execute_scripts_without_asking to true unless you want to annoy users.
408419
</p>
409420
</body>
410-
</html></richcontent>
421+
</html>
422+
</richcontent>
411423
<node TEXT="openDemoMap.groovy" ID="ID_1629939217">
412424
<attribute_layout NAME_WIDTH="200.24999 pt" VALUE_WIDTH="200.24999 pt"/>
413425
<attribute NAME="menuTitleKey" VALUE="addons.${name}.openDemoMap"/>
@@ -469,7 +481,8 @@ For each menu item with an icon add an attribute with the icon key (use develope
469481
&nbsp;- The files will be processed in the sequence as seen in the map.
470482
</p>
471483
</body>
472-
</html></richcontent>
484+
</html>
485+
</richcontent>
473486
<node TEXT="Tutorial-o-Matic.jar" ID="ID_1864463328"/>
474487
<node TEXT="markedj-1.0.16.jar" ID="ID_1060333872"/>
475488
<node TEXT="jsoup-1.10.2.jar" ID="ID_1151792763"/>
@@ -510,7 +523,8 @@ For each menu item with an icon add an attribute with the icon key (use develope
510523
&nbsp;- The files will be processed in the sequence as seen in the map.
511524
</p>
512525
</body>
513-
</html></richcontent>
526+
</html>
527+
</richcontent>
514528
<node TEXT="doc" ID="ID_281158802"/>
515529
<node TEXT="icons" ID="ID_211861022"/>
516530
<node TEXT="templates" ID="ID_553385296"/>
@@ -547,7 +561,8 @@ For each menu item with an icon add an attribute with the icon key (use develope
547561
Images can be added automatically by releaseAddOn.groovy or must be uploaded into the map via the script <i>Tools-&gt;Scripts-&gt;Insert Binary</i>&nbsp;since they have to be (base64) encoded as simple strings.
548562
</p>
549563
</body>
550-
</html></richcontent>
564+
</html>
565+
</richcontent>
551566
</node>
552567
<node TEXT="shortcuts" POSITION="right" ID="ID_989188638">
553568
<edge COLOR="#ff0000"/>
@@ -579,7 +594,7 @@ For each menu item with an icon add an attribute with the icon key (use develope
579594
<node TEXT="Package add-on for publication" ID="ID_806418866" LINK="menuitem:_addons.devtools.releaseAddOn_on_single_node">
580595
<icon BUILTIN="emoji-1F5DC"/>
581596
</node>
582-
<node TEXT="Tutorial-o-Matic-v0.0.3.addon.mm" ID="ID_1586148750" LINK="file:/C:/Users/Edo/Documents/GitHub/Freeplane_Tutorial_AddOn/Tutorial-o-Matic/Tutorial-o-Matic-v0.0.3.addon.mm"/>
597+
<node TEXT="Tutorial-o-Matic-v0.0.4.addon.mm" ID="ID_819625175" LINK="file:/C:/Users/Edo/Documents/GitHub/Freeplane_Tutorial_AddOn/Tutorial-o-Matic/Tutorial-o-Matic-v0.0.4.addon.mm"/>
583598
<node TEXT="loadAndExecuteTutorial.groovy" ID="ID_1523867671" LINK="menuitem:_ExecuteScriptForSelectionAction"><richcontent CONTENT-TYPE="xml/" TYPE="DETAILS">
584599
<html>
585600
<head>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version=v0.0.3
21
downloadUrl=https://github.com/EdoFro/Freeplane_Tutorial_AddOn/releases/download/v0.0.3demo/Tutorial-o-Matic-v0.0.3.addon.mm
2+
version=v0.0.4
33
freeplaneVersionFrom=v1.9.9

Tutorial-o-Matic/zips/doc/Tutorial-o-Matic/SimpleTutorialSample.mm

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<map version="freeplane 1.9.8">
22
<!--To view this file, download free mind mapping software Freeplane from https://www.freeplane.org -->
33
<node TEXT="Simple Tutorial Sample" LOCALIZED_STYLE_REF="AutomaticLayout.level.root" FOLDED="false" ID="ID_258304564"><hook NAME="MapStyle" background="#c4e1ff">
4-
<properties mapUsesOwnSaveOptions="true" save_last_visited_node="default" save_modification_times="false" show_icon_for_attributes="true" fit_to_viewport="false" show_note_icons="true" edgeColorConfiguration="#808080ff,#ff0000ff,#0000ffff,#00ff00ff,#ff00ffff,#00ffffff,#7c0000ff,#00007cff,#007c00ff,#7c007cff,#007c7cff,#7c7c00ff" save_folding="default"/>
4+
<properties save_modification_times="false" save_last_visited_node="default" mapUsesOwnSaveOptions="true" fit_to_viewport="false" show_icon_for_attributes="true" show_note_icons="true" edgeColorConfiguration="#808080ff,#ff0000ff,#0000ffff,#00ff00ff,#ff00ffff,#00ffffff,#7c0000ff,#00007cff,#007c00ff,#7c007cff,#007c7cff,#7c7c00ff" save_folding="default"/>
55

66
<map_styles>
77
<stylenode LOCALIZED_TEXT="styles.root_node" ID="ID_1611611797" STYLE="oval" UNIFORM_SHAPE="true" VGAP_QUANTITY="24 pt">
@@ -1183,6 +1183,13 @@ This example shows some actions applied without showing any message (muted):
11831183
</body>
11841184
</html></richcontent>
11851185
</node>
1186+
<node TEXT="TOC in Simple Demo" STYLE_REF="markdownNote" ID="ID_937044893" LINK="#ID_374851820"><richcontent TYPE="NOTE" CONTENT-TYPE="plain/">
1187+
<text>You can also jump to another tutorial&apos;s page.
1188+
1189+
1190+
To jump to the **&apos;SimpleDemo&apos;s TOC page&apos;** page click on the button bellow:</text>
1191+
</richcontent>
1192+
</node>
11861193
</node>
11871194
</node>
11881195
<node TEXT="example scripts" FOLDED="true" ID="ID_192065243">
@@ -2170,8 +2177,7 @@ This example shows some actions applied without showing any message (muted):
21702177
muted icon indicates it should execute the command without showing menus or hotkeys
21712178
</p>
21722179
</body>
2173-
</html>
2174-
</richcontent>
2180+
</html></richcontent>
21752181
<node TEXT="Map overview" ID="ID_731370847" LINK="menuitem:_ToggleMapOverviewAction"/>
21762182
</node>
21772183
<node TEXT="inspect" STYLE_REF="ToM_openTutMap" ID="ID_4950536">
@@ -2218,6 +2224,13 @@ This example shows some actions applied without showing any message (muted):
22182224
</body>
22192225
</html></richcontent>
22202226
</node>
2227+
<node TEXT="TOC in Simple Demo" STYLE_REF="markdownNote" ID="ID_1473049471" LINK="#ID_374851820"><richcontent TYPE="NOTE" CONTENT-TYPE="plain/">
2228+
<text>You can also jump to another tutorial&apos;s page.
2229+
2230+
2231+
To jump to the **&apos;SimpleDemo&apos;s TOC page&apos;** page click on the button bellow:</text>
2232+
</richcontent>
2233+
</node>
22212234
</node>
22222235
<node TEXT="inspect" STYLE_REF="ToM_openTutMap" ID="ID_608124255">
22232236
<font NAME="SansSerif"/>
@@ -2284,8 +2297,7 @@ candle indicates that executes only one time (then button gets disabled)
22842297
magnifier icon indicates that the script code must be shown in the tutorial
22852298
</p>
22862299
</body>
2287-
</html>
2288-
</richcontent>
2300+
</html></richcontent>
22892301
<attribute NAME="script1" VALUE="def texto = node.text&#xa;node.text = texto.reverse()"/>
22902302
</node>
22912303
</node>
@@ -2349,8 +2361,7 @@ candle indicates that executes only one time (then button gets disabled)
23492361
magnifier icon indicates that the script code must be shown in the tutorial
23502362
</p>
23512363
</body>
2352-
</html>
2353-
</richcontent>
2364+
</html></richcontent>
23542365
<attribute NAME="script1" VALUE="import groovy.swing.SwingBuilder&#xa;&#xa;import javax.swing.*&#xa;&#xa;&#xa;def swingBuilder = new SwingBuilder()&#xa;def options = [&apos;Kung Fu Panda&apos;, &apos;Madagascar&apos;, &apos;Shrek&apos;, &apos;How to Train Your Dragon&apos;,&apos;The Croods&apos;,&apos;Trolls&apos;,&apos;The Boss Baby&apos;].sort()&#xa;def pane = swingBuilder.optionPane(&#xa; message:&apos;Which Dreamworks movie franchise like you most: &apos;,&#xa; selectionValues:options,&#xa; optionType:JOptionPane.CLOSED_OPTION&#xa; )&#xa;def dialog = pane.createDialog(ui.frame, &apos;Tutorial-o-Matic&apos;)&#xa;dialog.show()&#xa;&#xa;ui.informationMessage(&quot;the selected string was: &apos;${pane.inputValue}&apos;&quot;.toString())"/>
23552366
</node>
23562367
<node TEXT="displaying an optionPane in groovy" ID="ID_142016258"><richcontent CONTENT-TYPE="xml/" TYPE="DETAILS">
@@ -2439,8 +2450,7 @@ candle indicates that executes only one time (then button gets disabled)
24392450
to indicate which are the nodes you want to select just paste clones of them here as childs
24402451
</p>
24412452
</body>
2442-
</html>
2443-
</richcontent>
2453+
</html></richcontent>
24442454
<node ID="ID_1375639542" CONTENT_ID="ID_1713074567"/>
24452455
<node ID="ID_1328739290" CONTENT_ID="ID_414651683"/>
24462456
<node ID="ID_1277707261" CONTENT_ID="ID_1588546276"/>

0 commit comments

Comments
 (0)