#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 "ErsGui.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)
{

  ErsGui *ersGui = 
    new ErsGui("ersGui", mainWindowWidget(), 500);
  
  ersGui->show();
  addView(ersGui->baseWidget());
}



void main ( int argc, char **argv )
{
  TiburonApp *app = new TiburonApp("ErsTest", &argc, argv);
	  
  TestWindow *window = new TestWindow("ErsTest");
	  
  window->show();
	  
  app->startTelemetryHandlers();
  
  app->run();
	  
}






