vdr  1.7.31
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"));
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 kOk:
42  state = osEnd;
43  break;
44 
45  default:
46  break;
47  }
48  }
49  return state;
50 }
51 
53 {
54  HdffVideoFormat_t videoFormat;
55  videoFormat.AutomaticEnabled = true;
56  videoFormat.AfdEnabled = false;
59  mHdffCmdIf->CmdAvSetVideoFormat(0, &videoFormat);
60 
61  char str[128];
62  sprintf(str, "%s: %s", tr("Video Conversion"), gHdffSetup.GetVideoConversionString());
64  Display();
65 }