/************************************************************************/
/* Copyright 1998 MBARI							*/
/************************************************************************/
#ifndef _FLASHINGALARMTEXT_H
#define _FLASHINGALARMTEXT_H

#include "AlarmText.h"

/*
CLASS 
FlashingAlarmText

DESCRIPTION
AlarmText that flashes when alarm is active

AUTHOR
Tom O'Reilly
*/
class FlashingAlarmText : public AlarmText
{
  public:
  FlashingAlarmText(const char *name, Widget parent, Alarm *alarm,
		    char *format = "%s");
  
  ~FlashingAlarmText();
  
  const char *className()
  {
    return "FlashingAlarmText";
  }

  virtual void updateGui(DM_Item handle = 0);
  

  protected:

  shine();
  flash();

  XtIntervalId _flashTimer;
  int _flashPeriod;
  int _phase;

  private:
  
  static void timerCallback(XtPointer clientData, XtIntervalId *id);
};

#endif
