summaryrefslogtreecommitdiff
path: root/setup.h
blob: a145fcbfe5e8f195e62e8e0d5aa0fd31b1f90f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/**
 *  GraphTFT plugin for the Video Disk Recorder 
 * 
 *  setup.h - A plugin for the Video Disk Recorder
 *
 *  (c) 2004-2013 Lars Tegeler, Sascha Volkenandt, Jörg Wendel
 *
 * This code is distributed under the terms and conditions of the
 * GNU GENERAL PUBLIC LICENSE. See the file COPYING for details.
 **/

#ifndef __GTFT_SETUP_H
#define __GTFT_SETUP_H

#include "display.h"

//***************************************************************************
// Class Graph TFT Setup 
//***************************************************************************

class cGraphTFTSetup 
{
   public:

      // definitions

      enum Size
      {
         sizePath = 255
      };

      cGraphTFTSetup();
      ~cGraphTFTSetup() {}

      string Theme;           // name of the actual theme
      int HideMainMenu;
      int xBorder;
      int yBorder;
      int xOffset;
      int yOffset;
      int DumpImage;
      int DumpRefresh;
      int Level;
      int LogDevice;
      int Iso2Utf;

      int enableSpectrumAnalyzer;
      int index;
      int JpegQuality;
      int flipOSD;
      int width;
      int height;
      // int redrawEvery;
      string normalMode;
      bool storeNormalMode;
      string originalNormalMode;
      string themesPath;
      string configPath;
      int snapshotWidth;
      int snapshotHeight;
      int snapshotQuality;
      char snapshotPath[sizePath+TB];
      char touchDevice[sizePath+TB];
      cTouchThread::CalibrationSetting touchSettings;

      bool SetupParse(const char* Name, const char* Value);
      void Store(int force = no);
      void setClient(cPlugin* aClient) { plugin = aClient; }

   protected:

      cPlugin* plugin;
};

//***************************************************************************
// Class Menu Setup GraphTFT
//***************************************************************************

class cMenuSetupGraphTFT : public cMenuSetupPage
{
   public:

      cMenuSetupGraphTFT(cGraphTFTDisplay* aDisplay);
      virtual ~cMenuSetupGraphTFT();

      virtual eOSState ProcessKey(eKeys Key);
      void Store();
      void setHelp();

   protected:

      cGraphTFTDisplay* display;

      // data

      char* themeNames[cGraphTFTSetup::sizePath+TB];
};

//***************************************************************************

extern cGraphTFTSetup GraphTFTSetup;

//***************************************************************************
#endif // __GTFT_SETUP_H