#ifndef _PREDIVE_H
#define _PREDIVE_H

#include <Vk/VkComponent.h>
#include "DmText.h"

#define TIBURON_DIVENUMBER_DM "TIBURON.DIVE_NUMBER"
#define TIBURON_DIVENUMBER_LEN 25

class Predive : public VkComponent
{
  public:
  
  Predive(const char *name, Widget parent);
  ~Predive();
  
  const char *className()
  {
    return "Predive";
  }

  int writeValues();
  
  protected:
  DmStringText *_diveNo;
  DmFlt64Text *_depthOffset;
  DmFlt32Text *_compassOffset;

  void calibrateDepthOffset();
  
  private:
  static void calibrateDepthOffsetCallback(Widget w, XtPointer clientData,
					   XtPointer callData);
  
};


#endif
