vdr  2.0.4
PLUGINS/src/dvbhddevice/menu.c
Go to the documentation of this file.
1 /*
2  * menu.c: The DVB HD Full Featured device main menu
3  *
4  * See the README file for copyright information and how to reach the author.
5  */
6 
7 #include "menu.h"
8 #include "setup.h"
9 
11 : cOsdMenu("dvbhddevice"),
12  mHdffCmdIf(pHdffCmdIf)
13 {
14  mVideoConversionItem = new cOsdItem("", osUnknown, false);
16  SetHelp(tr("Video Conversion"), tr("TV on"), tr("TV off"));
18 }
19 
21 {
22 }
23 
25 {
26  eOSState state = cOsdMenu::ProcessKey(key);
27  if (state == osUnknown)
28  {
29  switch (key)
30  {
31  case kRed:
34  break;
35 
36  case kGreen:
38  state = osEnd;
39  break;
40 
41  case kYellow:
43  state = osEnd;
44  break;
45 
46  case kOk:
47  state = osEnd;
48  break;
49 
50  default:
51  break;
52  }
53  }
54  return state;
55 }
56 
58 {
59  HdffVideoFormat_t videoFormat;
60  videoFormat.AutomaticEnabled = true;
61  videoFormat.AfdEnabled = false;
64  mHdffCmdIf->CmdAvSetVideoFormat(0, &videoFormat);
65 
66  char str[128];
67  sprintf(str, "%s: %s", tr("Video Conversion"), gHdffSetup.GetVideoConversionString());
69  Display();
70 }
71