Index: doc/user/06_feature/scripting/rosetta/10_hello/index.html =================================================================== --- doc/user/06_feature/scripting/rosetta/10_hello/index.html (revision 30694) +++ doc/user/06_feature/scripting/rosetta/10_hello/index.html (revision 30695) @@ -6,10 +6,10 @@ -<-- back to the index of Rosetta examples -

hello world (text, log)

+ <-- back to the index of Rosetta examples +

hello world (text, log)

Create a new action hello() that prints "Hello world!" in the message log. -

Example implementations

+
Example implementations
awk | bas @@ -35,7 +35,7 @@ stt | tcl -

Explanation, step by step

+
Explanation, step by step
Create a function hello that will be registered as an action. The name of the action and the function is always the same. Action names shall be lowercase. Index: doc/user/06_feature/scripting/rosetta/11_hello_menu/index.html =================================================================== --- doc/user/06_feature/scripting/rosetta/11_hello_menu/index.html (revision 30694) +++ doc/user/06_feature/scripting/rosetta/11_hello_menu/index.html (revision 30695) @@ -6,10 +6,10 @@ -<-- back to the index of Rosetta examples -

hello world (menu, log)

+ <-- back to the index of Rosetta examples +

hello world (menu, log)

Create a new menu + action hello() that prints "Hello world!" in the message log. -

Example implementations

+
Example implementations
awk | bas @@ -23,7 +23,7 @@ py | tcl -

Explanation, step by step

+
Explanation, step by step
Create a function hello that will be registered as an action. The name of the action and the function is always the same. Action names shall be lowercase. Index: doc/user/06_feature/scripting/rosetta/12_hello_dad/index.html =================================================================== --- doc/user/06_feature/scripting/rosetta/12_hello_dad/index.html (revision 30694) +++ doc/user/06_feature/scripting/rosetta/12_hello_dad/index.html (revision 30695) @@ -6,10 +6,10 @@ -<-- back to the index of Rosetta examples -

hello world (GUI)

+ <-- back to the index of Rosetta examples +

hello world (GUI)

Create a new action hello() that prints "Hello world!" in a modal dialog box using DAD. -

Example implementations

+
Example implementations
awk | bas @@ -25,7 +25,7 @@ py | tcl -

Explanation, step by step

+
Explanation, step by step
Create a function hello that will be registered as an action. Index: doc/user/06_feature/scripting/rosetta/13_hello_dad/index.html =================================================================== --- doc/user/06_feature/scripting/rosetta/13_hello_dad/index.html (revision 30694) +++ doc/user/06_feature/scripting/rosetta/13_hello_dad/index.html (revision 30695) @@ -6,10 +6,10 @@ -<-- back to the index of Rosetta examples -

hello world (GUI, with vbox)

+ <-- back to the index of Rosetta examples +

hello world (GUI, with vbox)

Create a new action hello() that prints "Hello world!" in vertical layout in a dialog box. -

Example implementations

+
Example implementations
awk | bas @@ -25,7 +25,7 @@ py | tcl -

Explanation, step by step

+
Explanation, step by step
Create a function hello that will be registered as an action. Index: doc/user/06_feature/scripting/rosetta/21_timer/index.html =================================================================== --- doc/user/06_feature/scripting/rosetta/21_timer/index.html (revision 30694) +++ doc/user/06_feature/scripting/rosetta/21_timer/index.html (revision 30695) @@ -6,10 +6,10 @@ -<-- back to the index of Rosetta examples -

timers

+ <-- back to the index of Rosetta examples +

timers

Create timers that are going to call back an action in the background. -

Example implementations

+
Example implementations
awk | bas @@ -25,7 +25,7 @@ py | tcl -

Explanation, step by step

+
Explanation, step by step
Create a function timer_cb that will be registered as an action. This is what the timer will execute. It only prints its arguments in the message log so it is easy to trace how it is called. Index: doc/user/06_feature/scripting/rosetta/72_dad_unitconv/index.html =================================================================== --- doc/user/06_feature/scripting/rosetta/72_dad_unitconv/index.html (revision 30694) +++ doc/user/06_feature/scripting/rosetta/72_dad_unitconv/index.html (revision 30695) @@ -6,10 +6,10 @@ -<-- back to the index of Rosetta examples -

unit converter (GUI, interactive)

+ <-- back to the index of Rosetta examples +

unit converter (GUI, interactive)

Interactive unit converter in a dialog, created via dad(). -

Example implementations

+
Example implementations
awk | fawk @@ -17,7 +17,7 @@ lua | tcl -

Explanation, step by step

+
Explanation, step by step
Create a function uconv that will be registered as an action. Index: doc/user/06_feature/scripting/rosetta/81_persistency/index.html =================================================================== --- doc/user/06_feature/scripting/rosetta/81_persistency/index.html (revision 30694) +++ doc/user/06_feature/scripting/rosetta/81_persistency/index.html (revision 30695) @@ -6,14 +6,14 @@ -<-- back to the index of Rosetta examples -

script state persistency (load/unload/reload)

+ <-- back to the index of Rosetta examples +

script state persistency (load/unload/reload)

Counts how many times the script was loaded, in a persistent on-disk counter. -

Example implementations

+
Example implementations
awk | lua -

Explanation, step by step

+
Explanation, step by step
Create a function preunload that will be registered as an action. This function will be called automatically right before the script is unloaded. The return value of this function, automatically converted to string, will be saved on disk (by pcb-rnd). Index: doc/user/06_feature/scripting/util/rosetta_genpages.sh =================================================================== --- doc/user/06_feature/scripting/util/rosetta_genpages.sh (revision 30694) +++ doc/user/06_feature/scripting/util/rosetta_genpages.sh (revision 30695) @@ -37,11 +37,11 @@ print "" print "" print "" - print "<-- back to the index of Rosetta examples" - print "

" name "

" + print " <-- back to the index of Rosetta examples" + print "

" name "

" print desc - print "

Example implementations

" + print "
Example implementations
" v = split(scripts, S, "[\r\n]+") for(n = 1; n <= v; n++) { lang=S[n] @@ -51,7 +51,7 @@ print "" lang "" } - print "

Explanation, step by step

" + print "
Explanation, step by step
" } /^/ { gsub("", "", $0)