/* **********************************************************************
 * *                                                                    *
 * *     Common variables and functions for TS Switch                   *
 * *                                                                    *
 * **********************************************************************
 * File: ts/switch/tsswitch.h
 *
 *                     COPYRIGHT (c) 2001, 2003  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 TSSWITCH_H
#define TSSWITCH_H

#ifdef TSSWITCH_ALLOCATE
#define EXTERN
#else
#define EXTERN extern
#endif

/*****************************************
** Global Legacy Variables 
** Set these variables in tsswitch.C
****************************************/
EXTERN Widget       UxTopLevel;
EXTERN Display      *UxDisplay;
EXTERN int          UxScreen;
EXTERN XtAppContext UxAppContext;

/****************************************
** Globlal User Created Variables
** Set these variables in tsswitch.C
****************************************/
EXTERN Display      *applDisplay;
EXTERN int          applScreen;
EXTERN XtAppContext appContext;

/****************************************
** Global UIL Created Functions 
******************************************/
Widget CreatetsswitchMainWinWgt(Widget parent);
Widget CreatetsswitchSimDiagWgt(Widget parent);

/****************************************
** Global USER Created Classes 
******************************************/
class TsswitchMainWin
{
  private :
  public :
    void  init(void);
    void  setDebugMode(UINT2 ldebug_a);
    UINT2 tsAttach(void);
    void  tsRelease(void);
};
EXTERN TsswitchMainWin tsswitchMainWin;


#undef EXTERN
#endif
