/************************************************************************/
/* Copyright 1998 MBARI							*/
/************************************************************************/
#ifndef _XPANTILTBUTTON_H
#define _XPANTILTBUTTON_H

#include <Vk/VkComponent.h>
#include "IviewDeviceGrabber.h"


/*
CLASS 
PanTiltButton

DESCRIPTION
GUI to grab IviewDevice, and display use-status of that device

AUTHOR
Tom O'Reilly
*/
class PanTiltButton : public IviewDeviceGrabber, public VkComponent
{
  public:
  
  PanTiltButton(const char *name, Widget parent, 
		IviewDevice device,
		IviewControl *control,
		IviewMonitor *monitor);

  ~PanTiltButton();
  
  const char *className()
  {
    return "PanTiltButton";
  }
  
  Widget button()
  {
    return _button;
  }
  
  protected:

  Widget _button;

  Pixel _unusedBackground, _unusedForeground;
  Pixel _usedBackground, _usedForeground;
  Pixel _externUsedBackground, _externUsedForeground;  

  virtual int displayIviewDeviceState(State state);
};



#endif
