#include <stdio.h>
#include <stdlib.h>
#include <Xm/Label.h>
#include <Xm/Form.h>
#include <Xm/RowColumn.h>
#include <Xm/ScrollBar.h>
#include <Xm/PushB.h>
#include <Vk/VkApp.h>
#include <Vk/VkSimpleWindow.h>
#include <Vk/VkOptionMenu.h>
#include "TiburonApp.h"
#include "CommRelays.h"

#define dprintf if (debug) fprintf

class TestWindow: public VkSimpleWindow 
{
  public:

  TestWindow ( const char *name );
  
  ~TestWindow ();
  
  virtual const char* className()
  {
    return "TestWindow";
  }

};


TestWindow::~TestWindow ()
{
  // Empty
}


TestWindow::TestWindow(const char *name) :
  VkSimpleWindow(name)
{

  CommRelays *commRelays = 
    new CommRelays("rovTelemRelays", mainWindowWidget(), 
		   "TIBURON.TELEMETRY.ROV.");
  
  commRelays->show();
  addView(commRelays->baseWidget());
}



void main ( int argc, char **argv )
{
  TiburonApp *app = new TiburonApp("RelayTest", &argc, argv);
	  
  TestWindow *window = new TestWindow("RelayTest");
	  
  window->show();
	  
  app->startTelemetryHandlers();
  
  app->run();
	  
}






