/**
 *  TouchTFT plugin for the Video Disk Recorder 
 * 
 *  setup.h - A plugin for the Video Disk Recorder
 *
 *  (c) 2004 Lars Tegeler, Sascha Volkenandt  
 *
 * This code is distributed under the terms and conditions of the
 * GNU GENERAL PUBLIC LICENSE. See the file COPYING for details.
 *
 * $Id: setup.h,v 1.4 2004/05/26 11:34:33 tegeler Exp $
 *
 **/

#ifndef __GTFT_SETUP_H
#define __GTFT_SETUP_H

#if APIVERSNUM < 10507
#include "i18n.h"
#endif
#include "service.h"

#include <vdr/menuitems.h>

#define MAXTHEME 10
#define MAX_CHAR 1024

class cTouchTFTSetup 
{
 public:
  const char * PluginConfPath;
  char * TouchDevice;
  int xmin;
  int xmax;
  int ymin;
  int ymax;
  int realx;
  int realy;
  int entprell_ms;
  int Level;
  int Logger;
  cTouchTFTSetup(void);
  ~cTouchTFTSetup(){};
  bool SetupParse(const char *Name, const char *Value);
  cGraphTftService::GraphTftCalibration _gtft;
};

class cMenuSetupTouchTFT : public cMenuSetupPage 
{
 private:
  cTouchTFTSetup *_data;
  
 public:
  cMenuSetupTouchTFT();
  
  virtual void Store(void);
  
  virtual eOSState ProcessKey(eKeys Key);
};

extern cTouchTFTSetup TouchTFTSetup;

#endif // __GTFT_SETUP_H
