CiTR Repository

Reusable ovw selection dialog implementation


 
Object_Id               : 243
Title                   : Reusable ovw selection dialog implementation
Node_Type               : Production
Format                  : File Directory or Folder
Address                 :  file:/projects/necatm/380/src/pnni
Keywords                : OVw   
                          OpenView   
                          Motif
Abstract                : This mail reports a reusable OpenView Windows selection dialog implementation.
                          
                          Selection in ovw depends on the Selection List, which can be accessed
                          but not altered by an application. The application must take the list 
                          as it finds it. The code described is an example of such an interaction 
                          and can be substantially reused for any type of selection.
                          
                          The files involved are in ${PROJECT}/src/pnni/. They are as follows:
                          The selection dialog itself:
                              route/select/select.[hc] 
                          The X dialog box:
                              xdialog/xdialog.[hc]
                          X initialization, and message boxes:
                              x/x.[hc]
                          OVw initialization and map state checking:
                              ov/ov-attach.[hc]
                          OV return value checking utilities:
                              ov/ov-utils.[hc]
                          Execution tracing:
                              util/tracing.[hc]
                              (${PROJECT}/man/man1/tracing.1)
                          Standardized memory allocation:
                              util/myalloc.[hc]
                          
                          select.c needs to be tailored for the number and type of items being
                          selected. It could also be altered to remove dependence on my utilities.
                          The following is a guide to tailoring:
                          
                          In initSelect & selectEndsCb:
                              set the callback action(s) to application defined menu item(s) to
                              initiate the dialog.
                          In selectDialogCb:
                              set the number of items and the function called once the list is valid.
                          In checkSelectList:
                              check the list for validity.
                          
                          Various message strings and message processing functions would also need 
                          to be adapted.
                              
                          cheers
                          Pushkar
                          
Date_Entry_Created      : 20/11/97
Entry_Created_By        : pkp
Date_Entry_Last_Modified: 
Entry_Last_Modified_By  : 
Asset_Qualification     : useful / does the job
Other_Opinions          : 
Contact_Person          :  mailto:pkp
IP_or_Copyright_Owner   : CiTR/NEC
Support_re_Ownership    : 
Date_Item_Created       : 14/10/1997
Usage_Conditions        : 
Support_re_Usage_Condns : 
Authors_and_Contributors: 
Projects_Used_In        : NC380.6
Obtained_From           : 
Derived_From            : 
Related_Items           : 
Code_Type               : library
Programming_Language    : C
Portations              : SunOS
Source_Location         : 
Binaries_Location       : 
Issues_Bug_etc_List_Locn: 
Additional_Info         :