next up previous contents
Next: Example Up: dotdot files Previous: What is the Dotfile Generator

How it all works

  To write a module for The Dotfile Generator you have to know just a little bit about the programming language Tcl/Tk. For information regarding Tcl/Tk please refer to John Ousterhout's book, Brent Welch`s book (draft of both books are available on WWW) or generel Tcl/Tk info.

A single module for the Dotfile Generator consists of several configuration pages, each page being implemented as a procedure in Tcl.

The first line in the procedure must be the path (in the menu tree) as a Tcl comment. The path components are separated by slashes e.g.:
# menu1 / menu2 / menuname
If the menu name is omitted, it defaults to the name of the procedure.

The Desc procedure is the one which sets the overall description for the page. This is the description which the user sees when he enters the page.

When the user select generate each page will in turn be generated. What will be generated, depend on what is located in the Save function. Each page generates a header, which will be specified with the ShortDesc function.





Jesper Kjær Pedersen <blackie@imada.ou.dk>
Wed Oct 2 13:29:53 MET DST 1996