CS476/576

Assignment #3

Due Midnight, Tuesday   Oct 23, 2001


Write an Motif  program with the following descriptions:

NAME

mbuttons - A motif-based buttons program
SYNOPSIS
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.
  1. ls, w, du & calc:  display the output inside an xterm.
  2. date & pwd: display the output into a motif popup window.
  3. clear: clears the window where the mbuttons started.
  4. csh: creates an xterm with csh running inside.
  5. 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:
  1. Cancel: To make the window immediately disappear.
  2. Fix      : To make the window stay until the user choose to cancel it.
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
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
 
 
 
 

 

Back to Assignments Page
Back to CS476/576 Home Page