#include <Xm/RowColumn.h>
#include <Xm/Form.h>
#include <Xm/Label.h>
#include <Xm/ToggleB.h>
#include <Xm/Frame.h>
#include <Xm/ScrollBar.h>
#include <Xm/PushB.h>
#include <Xm/ArrowB.h>
#include <Vk/VkInfoDialog.h>
#include <Vk/VkErrorDialog.h>
#include "SonyHDTVSetup.h"
#include "camera.h"
#include "DmErrno.h"

#define dprintf if (debug) fprintf


SonyHDTVSetup::SonyHDTVSetup(const char *name, Widget parent, 
				   const char *dmPrefix)
  : DmGuiObject(name, parent)
{
  _baseWidget = XtVaCreateWidget(name, xmRowColumnWidgetClass, parent, 
				 NULL);
  installDestroyHandler();

  updateGui();
}


SonyHDTVSetup::~SonyHDTVSetup()
{
}


void SonyHDTVSetup::updateGui(DM_Item handle)
{
  Boolean debug = False;
  
  dprintf(stderr, "SonyHDTVSetup::updateGui()\n");
}



Widget SonyHDTVDialog::createDialog(Widget parent)
{
  Widget base = VkGenericDialog::createDialog(parent);

  _setup = new SonyHDTVSetup("mainCameraSetup", base, _dmPrefix);
  _setup->show();
  
  _showOK = False;
  _showApply = False;
  _showCancel = True;
  
  return base;
}


void SonyHDTVDialog::update()
{
  _setup->updateGui();
}

