#ifndef _LAPBOXGUIAPP_H
#define _LAPBOXGUIAPP_H
static char LapBoxGuiApp_h_id[] = "$Header: /u/oreilly/rov/lapBoxGui/RCS/LapBoxGuiApp.h,v 1.1 1997/03/20 12:27:56 oreilly Exp $";

/*
$Log: LapBoxGuiApp.h,v $
Revision 1.1  1997/03/20 12:27:56  oreilly
Initial revision

*/

#include <Vk/VkApp.h>
#include "DmGuiApp.h"

#define rovEnvVar "TMACS_DIR"

class LapBoxGuiApp: public DmGuiApp
{
  public:

  LapBoxGuiApp(
	       char *appClassName,
	       int *argc,
	       char **argv,
	       XrmOptionDescRec *optionList = NULL,
	       int sizeOfOptionList = 0
	       );

  ~LapBoxGuiApp();

  virtual const char *className()
  {
    return "LapBoxGuiApp";
  }
  
  void okColors(Pixel *foreground, Pixel *background)
  {
    *foreground = _okForeground;
    *background = _okBackground;
  }
    
  void faultColors(Pixel *foreground, Pixel *background)
  {
    *foreground = _faultForeground;
    *background = _faultBackground;
  }
  
  void powerOnColors(Pixel *foreground, Pixel *background)
  {
    *foreground = _onForeground;
    *background = _onBackground;
  }

  void powerOffColors(Pixel *foreground, Pixel *background)
  {
    *foreground = _offForeground;
    *background = _offBackground;
  }
  
  
  protected:

  static XtResource _resources[];

  // General "ok" and "fault" colors
  Pixel _okForeground, _okBackground;
  Pixel _faultForeground, _faultBackground;

  // Power-on and Power-off colors
  Pixel _onForeground, _onBackground;
  Pixel _offForeground, _offBackground;
  
};




#endif
