/* **********************************************************************
 * *                                                                    *
 * * NST Header File                                                    *
 * *                                                                    *
 * **********************************************************************
 * File: iris/xuif/nst.h
 *
 *                        COPYRIGHT (c) 2005  BY
 *          SIGMET INCORPORATED, WESTFORD MASSACHUSETTS, U.S.A.
 * 
 * THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND  COPIED
 * ONLY  IN  ACCORDANCE WITH  THE  TERMS  OF  SUCH  LICENSE  AND WITH THE
 * INCLUSION OF THE ABOVE COPYRIGHT NOTICE.  THIS SOFTWARE  OR  ANY OTHER
 * COPIES  THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY
 * OTHER PERSON.  NO TITLE TO AND OWNERSHIP OF  THE  SOFTWARE  IS  HEREBY
 * TRANSFERED.
 */
#ifndef NST_H
#define NST_H

#ifdef NST_ALLOCATE
#define EXTERN
#else
#define EXTERN extern
#endif

struct nst_table
{
   struct serv_product_header_summary table[MAX_SITES];
};

/*-----------------------------------------------------------------------------
Variables
*/
/*The default width and height are set after first XtManagedChild call*/
EXTERN Dimension inst_defl_width_c;   
EXTERN Dimension inst_defl_height_c;

/* The position of the current highlighted item */
EXTERN SINT2        nst_cur_tbl_len_c;

/* The position of the current highlighted item */
EXTERN SINT4 nst_item_pos;


/*-----------------------------------------------------------------------------
Widgets & Callbacks 
*/

EXTERN Widget nst_mainbar;
EXTERN Widget nst_cmdsbtn, nst_cmdspdw;
void nst_maincmds_cbf( Widget wgt, int idx_a, XmPushButtonCallbackStruct* cbd );

EXTERN Widget nst_filebtn, nst_filepdw;
void nst_file_cbf( Widget wgt, int idx_a, XmPushButtonCallbackStruct* cbd );

EXTERN Widget nst_printpdw;

void   nst_update_rqst( void );

/* List */

EXTERN Widget nst_legendlab;
EXTERN Widget nst_recordlst;

void nst_recordlst_cbf( Widget wgt,char* tag,XmListCallbackStruct* cbd );
void nst_update(const struct nst_table *pnst_a, UINT4 ilen_a);

#undef EXTERN
#endif
