Next Previous Contents

2. The eval and dialog nodes

The goal of the TLMP frameworks is to reduce your work. You work may be presented like this:

2.1 The eval function

This is generally a small function. It receives an object GURUPATH_STATUS and fill the following field:

If this eval function is the last node of a row, you can use the "setterminal" function. This function expects two string arguments:

You must also use the settitle function to set the title of this node dialog. The settitle is used in the eval function because the title is collected to enhance the map presentation and build the node dialog. The settitle function expect a single string.

2.2 The dialog function

This function describes the dialog to present. It receives a DIALOG object called dia, so the dialog may contains any fields type found in a normal Linuxconf dialog.

Unlike a normal linuxconf dialog, this one expects a DIALOG::newline between fields as needed.

In the dialog function, you have access to few function controlling the presentation:

2.3 The dobutton function

This one is seldom used. If you need an extra button for a dialog (a probe button to configure a hardware component for example).

The dobutton function is passing the id (int id) you passed using the setbutinfo() function.

Next Previous Contents