XA Online Documentation, Inside XA "xsplit.c"

xsplit.c

Source file xsplit.c

xsplit.c defines the graphical user interface for the xsplit application. The procedures which split up an RHF table file into various atom data files can be found in the file split.c.

Comments

The following procedures are straight-forward and not explained in further detail:

void OKButtonCB(Widget w, int client_data, XmAnyCallbackStruct *call_data)

This procedure is called if the OK button in the xsplit window is pressed, i.e. the RHF table file extraction has to be started.

First, OKButtonCB checks whether the RHF table file exists. Then the entry of the Destination directory text input field is examined. If the last character of the directory name is not equal to a "/" then a "/" is appended. Afterwards the mouse pointer is changed to a wristwatch, which is telling the user to wait till the process is finished. The RHF table file is split up into atom data files by calling split_rhf_file. If this is successful then both text input fields are erased and a message window pops up which tells the user that xsplit is finished.

void main(int argc, char *argv[])

The main procedure defines and places the widgets of the xsplit window. It also sets the callback functions to the CB functions mentioned above.


[return to home page][return to Inside XA]
Reinhard Schaffner, © 1995-05-30