#ifndef _VALVEFUNCTIONS_H
#define _VALVEFUNCTIONS_H

#include <Vk/VkOptionMenu.h>
#include "DmGuiObject.h"
#include "ValveSelector.h"
#include "GeoDm.h"

/*
CLASS 
ValveFunctions

DESCRIPTION
Manages ValveSelector; includes "enable" button if specified

AUTHOR
Tom O'Reilly
*/
class ValveFunctions : public DmGuiObject
{
  public:

  ///////////////////////////////////////////////////////////////////////
  // Create with specified number of consecutive valves
  ValveFunctions(const char *name, Widget parent, 
		 int nValves,
		 int firstValveNo,
		 const char *dmPrefix,
		 Boolean hasEnable);

  ~ValveFunctions();
  
  virtual const char *className()
  {
    return "ValveFunctions";
  }
  
  virtual void updateGui(DM_Item handle = NULL);

  ValveSelector *valves;

  int nValves() {
    return _nValves;
  }

 protected:

  int _nValves;

};

#endif


