Write an Motif program with the following descriptions:CS476/576
Assignment #3
Due Midnight, Tuesday Oct 23, 2001
NAME
mbuttons - A motif-based buttons programSYNOPSIS
mbuttons [TimeOut]DESCRIPTION
The program display the following motif interface with nine buttons:
The functions of these buttons are the same as those in the xbuttons2
example of the Xlib with the following additional features.
- ls, w, du & calc: display the output inside an xterm.
- date & pwd: display the output into a motif popup window.
- clear: clears the window where the mbuttons started.
- csh: creates an xterm with csh running inside.
- quit: display a motif popup window to confirm or cancel.
The windows associated with ls, w, du, calc, date & pwd will
disappear after TimeOut seconds. The default value for TimeOut is
10 seconds. However, the user will have two options for each window:Each of the buttons ls, w, du, calc, date & pwd will become insensitive as long as the associated window is still active and it become sensitive again
- Cancel: To make the window immediately disappear.
- Fix : To make the window stay until the user choose to cancel it.
as soon as the associated window disappear.The csh button is always sensitive and thus we may create any number
of simultaneously active csh windows. Note that the clear window is also
always sensitive to perform the clearing action any number of times.As long as the Quit dialogue is displayed, the user will not be able to interact with any button in the mbuttons interface.
If the user selects the OK button of the Quit dialogue, ALL windows
created by the mbuttons program should disappear.To get a feeling and gain more details about the specification
of this program, execute my own solution under:
/home/cs476/public_html/fall01/assignments/a3/wahab/mbuttons