/************************************************************************/
/* Copyright 1998 MBARI							*/
/************************************************************************/
#ifndef _CLOCK_H
#define _CLOCK_H

#include <Vk/VkComponent.h>
#include "DynamicLabel.h"

#define TimeFormatSize 100

/*
CLASS 
Clock

DESCRIPTION
Digital clock display

AUTHOR
Tom O'Reilly
*/
class Clock : public VkComponent
{
  public:

  Clock(const char *name, Widget parent);
  ~Clock();

  virtual const char *className()
  {
    return "Clock";
  }
  
  void update();
  
  protected:
  char *_timeFormat;
  DynamicLabel *_face;
  XtIntervalId _timer;

  void startTimer();
  
  private:
  static void timerCallback(XtPointer clientData, XtIntervalId *id);
  static XtResource _resources[];
};



#endif
