Index: trunk/doc/user/06_feature/scripting/rosetta/11_hello_menu/index.html =================================================================== --- trunk/doc/user/06_feature/scripting/rosetta/11_hello_menu/index.html (revision 21022) +++ trunk/doc/user/06_feature/scripting/rosetta/11_hello_menu/index.html (revision 21023) @@ -11,6 +11,12 @@ Create a new menu + action hello() that prints "Hello world!" in the message log.

Example implementations

awk + | +lua + | +py + | +tcl

Explanation, step by step

Create a function hello Index: trunk/doc/user/06_feature/scripting/rosetta/12_hello_dad/ex.html =================================================================== --- trunk/doc/user/06_feature/scripting/rosetta/12_hello_dad/ex.html (revision 21022) +++ trunk/doc/user/06_feature/scripting/rosetta/12_hello_dad/ex.html (revision 21023) @@ -9,3 +9,6 @@ see 13_hello_dad.

In the "main" section of the script, register the action using fgw_func_reg(). +

+More details on DAD: +DAD developer's doc Index: trunk/doc/user/06_feature/scripting/rosetta/12_hello_dad/index.html =================================================================== --- trunk/doc/user/06_feature/scripting/rosetta/12_hello_dad/index.html (revision 21022) +++ trunk/doc/user/06_feature/scripting/rosetta/12_hello_dad/index.html (revision 21023) @@ -12,7 +12,13 @@

Example implementations

awk | +lua + | pl + | +py + | +tcl

Explanation, step by step

Create a function hello @@ -20,5 +26,8 @@

When the action is called, build a dad dialog called "heldi", with a single label containing "Hello world!". When the dialog is ran in modal mode, it will be open and block other pcb-rnd windows until the user closes it.

Note: the window title (4th parameter of the 3rd dad() call) is displayed because the root node of the DAD is not a box. For a more complex version, see 13_hello_dad.

In the "main" section of the script, register the action using fgw_func_reg(). +

More details on DAD: +DAD developer's doc + Index: trunk/doc/user/06_feature/scripting/rosetta/13_hello_dad/ex.html =================================================================== --- trunk/doc/user/06_feature/scripting/rosetta/13_hello_dad/ex.html (revision 21022) +++ trunk/doc/user/06_feature/scripting/rosetta/13_hello_dad/ex.html (revision 21023) @@ -10,3 +10,6 @@ Tip #2: boxes can be nested (but each box must have a corresponding "end").

In the "main" section of the script, register the action using fgw_func_reg(). +

+More details on DAD: +DAD developer's doc Index: trunk/doc/user/06_feature/scripting/rosetta/13_hello_dad/index.html =================================================================== --- trunk/doc/user/06_feature/scripting/rosetta/13_hello_dad/index.html (revision 21022) +++ trunk/doc/user/06_feature/scripting/rosetta/13_hello_dad/index.html (revision 21023) @@ -12,7 +12,13 @@

Example implementations

awk | +lua + | pl + | +py + | +tcl

Explanation, step by step

Create a function hello @@ -21,5 +27,8 @@

Tip #1: change "begin_vbox" to "begin_hbox" to get a horizontal layout.

Tip #2: boxes can be nested (but each box must have a corresponding "end").

In the "main" section of the script, register the action using fgw_func_reg(). +

More details on DAD: +DAD developer's doc + Index: trunk/doc/user/06_feature/scripting/rosetta/21_timer/index.html =================================================================== --- trunk/doc/user/06_feature/scripting/rosetta/21_timer/index.html (revision 21022) +++ trunk/doc/user/06_feature/scripting/rosetta/21_timer/index.html (revision 21023) @@ -16,6 +16,8 @@ | pl | +py + | tcl

Explanation, step by step

Create a function Index: trunk/doc/user/06_feature/scripting/rosetta/72_dad_unitconv/ex.html =================================================================== --- trunk/doc/user/06_feature/scripting/rosetta/72_dad_unitconv/ex.html (revision 21022) +++ trunk/doc/user/06_feature/scripting/rosetta/72_dad_unitconv/ex.html (revision 21023) @@ -18,3 +18,6 @@ the unit set to "mm", then sets the value of the first label (res1) to this text with a "mm" suffix appended. This is repeated two more times for two other unit types. +

+More details on DAD: +DAD developer's doc Index: trunk/doc/user/06_feature/scripting/rosetta/72_dad_unitconv/index.html =================================================================== --- trunk/doc/user/06_feature/scripting/rosetta/72_dad_unitconv/index.html (revision 21022) +++ trunk/doc/user/06_feature/scripting/rosetta/72_dad_unitconv/index.html (revision 21023) @@ -31,5 +31,8 @@

Any change on the input will call action "uconv_update", which is also registered by the script. The update code reads the input field with the unit set to "mm", then sets the value of the first label ( res1 ) to this text with a "mm" suffix appended. This is repeated two more times for two other unit types. +

More details on DAD: +DAD developer's doc + Index: trunk/doc/user/06_feature/scripting/rosetta/index.html =================================================================== --- trunk/doc/user/06_feature/scripting/rosetta/index.html (revision 21022) +++ trunk/doc/user/06_feature/scripting/rosetta/index.html (revision 21023) @@ -39,22 +39,22 @@ 11 hello world (menu, log) - awk + awk lua python tcl Create a new menu + action hello() that prints "Hello world!" in the message log. 12 hello world (GUI) - awk perl + awk lua perl python tcl Create a new action hello() that prints "Hello world!" in a modal dialog box using DAD. 13 hello world (GUI, with vbox) - awk perl + awk lua perl python tcl Create a new action hello() that prints "Hello world!" in vertical layout in a dialog box. 21 timers - awk lua perl tcl + awk lua perl python tcl Create timers that are going to call back an action in the background. 72