/* ===========================================================================

  UTILS.H    Global variables and functions for IRIS X interface.

=============================================================================*/
#ifndef UTILS_H
#define UTILS_H

#ifdef UTILS_ALLOCATE
#define EXTERN
#else
#define EXTERN extern
#endif

/* Used in pushbuttons to select correct utility
*/ 
#define  UTIL_TRIGGER                     1
#define  UTIL_TRIGGER_DEMO                2
#define  UTIL_ZATUO                       3
#define  UTIL_ZATUO_DEMO                  4
#define  UTIL_AGCAL                       5
#define  UTIL_ZCAL                        6
#define  UTIL_STCWAVE                     7
#define  UTIL_GAINCAL                     8
#define  UTIL_GAINCAL_DEMO                9
#define  UTIL_BITECONFIG                  10
#define  UTIL_SIGNAL_PROCESSOR            11
#define  UTIL_RADAR_CONTROL_PROCESSOR     12
#define  UTIL_RADAR_CONTROL_PROCESSOR_SIM 13
#define  UTIL_SETUP                       14
#define  UTIL_ASCOPE                      15
#define  UTIL_ASCOPE_DEMO                 16
#define  UTIL_ANTENNA                     17
#define  UTIL_BITEX                       18
#define  UTIL_IRIS                        19
#define  UTIL_RADAR_CONTROL_PROCESSOR_SIM_PAUSE  50


/* prototypes */
class Utils
{
   private:
      UINT2 lDspIsRVP7;
      void  XsSetPixmap(UINT4 pixmap_type_a, UINT4 pixmap_sens_type_a,
                        Widget wgt_a, char* sfnam_a);
   public:
      void  setupUtilsByRVPType(UINT2 ldsp_is_rvp7_or_greater_a);
      void  initValues(void);
      void forkUtility(UINT4 util_type_a, char *sdisplay_a);
};
EXTERN Utils utils;



#undef EXTERN
#endif

