Skip to content

Commit c514f3d

Browse files
committed
added createNewTutorialMindMap
1 parent eb230a3 commit c514f3d

5 files changed

Lines changed: 33 additions & 4 deletions

File tree

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

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@
251251
<node TEXT="Tab name can be set for each tutorial individually" ID="ID_1916947069"/>
252252
<node TEXT="List of Tutorials in Map can be shown in its own Tab. Its text can be set as a root node attribute." ID="ID_1159122569"/>
253253
<node TEXT="Added command: &quot;Show tutorials from active map&quot;" ID="ID_624798635"/>
254+
<node TEXT="Added command: &quot;Create new tutorial mind map&quot;" ID="ID_977756201"/>
255+
<node TEXT=" addGroovyPane method updated" ID="ID_1786257563"/>
254256
</node>
255257
</node>
256258
<node TEXT="license" FOLDED="true" POSITION="left" ID="ID_624388795"><richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
@@ -435,8 +437,9 @@ For each menu item with an icon add an attribute with the icon key (use develope
435437
</body>
436438
</html>
437439
</richcontent>
438-
<node TEXT="en" ID="ID_867038336">
440+
<node TEXT="en" ID="ID_1734971964">
439441
<attribute_layout NAME_WIDTH="209.99999 pt" VALUE_WIDTH="269.24999 pt"/>
442+
<attribute NAME="addons.${name}.createNewTutorialMindMap" VALUE="Create new tutorial mind map"/>
440443
<attribute NAME="addons.${name}.ActionInstruction1" VALUE="&lt;html&gt;In submenu &lt;b&gt;{0}&lt;/b&gt; &lt;br&gt;click on &lt;b&gt;{1}&lt;/b&gt;&lt;/html&gt;"/>
441444
<attribute NAME="addons.${name}" VALUE="Tutorial-o-Matic"/>
442445
<attribute NAME="addons.${name}.ActionInstruction2" VALUE="&lt;html&gt;You can also use de keyboard shortcut &lt;b&gt;{0}&lt;/b&gt; for this command&lt;/html&gt;"/>
@@ -446,8 +449,9 @@ For each menu item with an icon add an attribute with the icon key (use develope
446449
<attribute NAME="addons.${name}.ToMDemo" VALUE="Tutorial-o-Matic Demo"/>
447450
<attribute NAME="addons.${name}.executeTutorial" VALUE="execute Demo tutorial"/>
448451
</node>
449-
<node TEXT="es" ID="ID_673322434">
452+
<node TEXT="es" ID="ID_732687859">
450453
<attribute_layout NAME_WIDTH="209.99999 pt" VALUE_WIDTH="233.24999 pt"/>
454+
<attribute NAME="addons.${name}.createNewTutorialMindMap" VALUE="Crear nuevo mapa para tutoriales"/>
451455
<attribute NAME="addons.${name}.ActionInstruction1" VALUE="&lt;html&gt;En submenu &lt;b&gt;{0}&lt;/b&gt; &lt;br&gt;has click en &lt;b&gt;{1}&lt;/b&gt;&lt;/html&gt;"/>
452456
<attribute NAME="addons.${name}" VALUE="Tutorial-o-Matic"/>
453457
<attribute NAME="addons.${name}.ActionInstruction2" VALUE="&lt;html&gt;Puedes usar también el atajo &lt;b&gt;{0}&lt;/b&gt; para este comando&lt;/html&gt;"/>
@@ -485,6 +489,7 @@ For each menu item with an icon add an attribute with the icon key (use develope
485489
<attribute NAME="delete" VALUE="${installationbase}/templates/Tutorial-o-Matic/tutorial_styles_template.mm"/>
486490
<attribute NAME="delete" VALUE="${installationbase}/addons/${name}/scripts/getMenuCommand.groovy"/>
487491
<attribute NAME="delete" VALUE="${installationbase}/addons/${name}/scripts/showTutorialsFromActiveMap.groovy"/>
492+
<attribute NAME="delete" VALUE="${installationbase}/addons/${name}/scripts/createNewTutorialMindMap.groovy"/>
488493
</node>
489494
<node TEXT="scripts" POSITION="right" ID="ID_1037882722"><richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
490495
<html>
@@ -651,6 +656,18 @@ For each menu item with an icon add an attribute with the icon key (use develope
651656
<attribute NAME="execute_scripts_without_exec_restriction" VALUE="false"/>
652657
<attribute NAME="execute_scripts_without_network_restriction" VALUE="true"/>
653658
</node>
659+
<node TEXT="createNewTutorialMindMap.groovy" ID="ID_1471194194">
660+
<attribute_layout NAME_WIDTH="209.24999 pt" VALUE_WIDTH="201.74999 pt"/>
661+
<attribute NAME="menuTitleKey" VALUE="addons.${name}.createNewTutorialMindMap"/>
662+
<attribute NAME="menuLocation" VALUE="${addonsMenu}/addons.${name}"/>
663+
<attribute NAME="executionMode" VALUE="on_single_node"/>
664+
<attribute NAME="keyboardShortcut" VALUE=""/>
665+
<attribute NAME="execute_scripts_without_asking" VALUE="true"/>
666+
<attribute NAME="execute_scripts_without_file_restriction" VALUE="true"/>
667+
<attribute NAME="execute_scripts_without_write_restriction" VALUE="false"/>
668+
<attribute NAME="execute_scripts_without_exec_restriction" VALUE="false"/>
669+
<attribute NAME="execute_scripts_without_network_restriction" VALUE="false"/>
670+
</node>
654671
</node>
655672
<node TEXT="lib" POSITION="right" ID="ID_1814812956"><richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
656673
<html>

Tutorial-o-Matic/history.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Tab name can be set for each tutorial individually
99
* List of Tutorials in Map can be shown in its own Tab. Its text can be set as a root node attribute.
1010
* Added command: "Show tutorials from active map"
11+
* Added command: "Create new tutorial mind map"
12+
* addGroovyPane method updated
1113

1214
## v0.0.5
1315

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
def cP = new ConfigProperties()
2+
3+
def sep = File.separator
4+
def path = cP.freeplaneUserDirectory + sep + 'templates,Tutorial-o-Matic,tutorial_styles_template.mm'.split(',').join(sep)
5+
6+
def templateFile = new File(path)
7+
8+
def newTutorialMindMap = c.mapLoader(templateFile).unsetMapLocation().withView().getMindMap()

Tutorial-o-Matic/translations/en.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#Thu Mar 10 12:35:30 CLST 2022
1+
#Fri Mar 11 20:49:48 CLST 2022
2+
addons.${name}.createNewTutorialMindMap=Create new tutorial mind map
23
addons.${name}.ActionInstruction1=<html>In submenu <b>{0}</b> <br>click on <b>{1}</b></html>
34
addons.${name}=Tutorial-o-Matic
45
addons.${name}.ActionInstruction2=<html>You can also use de keyboard shortcut <b>{0}</b> for this command</html>

Tutorial-o-Matic/translations/es.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#Thu Mar 10 12:35:30 CLST 2022
1+
#Fri Mar 11 20:49:48 CLST 2022
2+
addons.${name}.createNewTutorialMindMap=Crear nuevo mapa para tutoriales
23
addons.${name}.ActionInstruction1=<html>En submenu <b>{0}</b> <br>has click en <b>{1}</b></html>
34
addons.${name}=Tutorial-o-Matic
45
addons.${name}.ActionInstruction2=<html>Puedes usar también el atajo <b>{0}</b> para este comando</html>

0 commit comments

Comments
 (0)