MythTV  master
modulationsetting.h
Go to the documentation of this file.
1 /* -*- Mode: c++ -*-
2  * vim: set expandtab tabstop=4 shiftwidth=4:
3  *
4  * Original Project
5  * MythTV http://www.mythtv.org
6  *
7  * Copyright (c) 2004, 2005 John Pullan <john@pullan.org>
8  * Copyright (c) 2005 - 2007 Daniel Kristjansson
9  *
10  * Description:
11  * Collection of classes to provide channel scanning functionallity
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
26  * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
27  *
28  */
29 
30 #ifndef _MODULATION_SETTING_H_
31 #define _MODULATION_SETTING_H_
32 
33 // Qt headers
34 #include <QCoreApplication>
35 
36 // MythTV headers
37 #include <standardsettings.h>
38 
40 {
41 
42  public:
44  {
45  //: %1 is the modulation (QAM-64, QAM-128. etc...)
46  addSelection(QCoreApplication::translate("(ModulationSettings)",
47  "Terrestrial %1").arg("(8-VSB)"), "vsb8", true);
48  //: %1 is the modulation (QAM-64, QAM-128. etc...)
49  addSelection(QCoreApplication::translate("(ModulationSettings)",
50  "Cable %1").arg("(QAM-256)"), "qam256", false);
51  addSelection(QCoreApplication::translate("(ModulationSettings)",
52  "Cable %1").arg("(QAM-128)"), "qam128", false);
53  addSelection(QCoreApplication::translate("(ModulationSettings)",
54  "Cable %1").arg("(QAM-64)"), "qam64", false);
55 
56  setLabel(QCoreApplication::translate("(ModulationSettings)",
57  "Modulation"));
58 
59  setHelpText(QCoreApplication::translate("(ModulationSettings)",
60  "Modulation, 8-VSB, QAM-256, etc. Most cable systems in the "
61  "United States use QAM-256 or QAM-64, but some mixed systems "
62  "may use 8-VSB for over-the-air channels."));
63  }
64 };
65 
67 {
68  public:
70  {
71  addSelection(QCoreApplication::translate("(Common)",
72  "Auto",
73  "Automatic"),
74  "auto", true);
75  addSelection("QPSK","qpsk");
76  addSelection("QAM-16","qam_16");
77  addSelection("QAM-32","qam_32");
78  addSelection("QAM-64","qam_64");
79  addSelection("QAM-128","qam_128");
80  addSelection("QAM-256","qam_256");
81  };
82 };
83 
85 {
86  public:
88  {
89  setLabel(QCoreApplication::translate("(ModulationSettings)",
90  "Modulation"));
91 
92  setHelpText(QCoreApplication::translate("(ModulationSettings)",
93  "Modulation (Default: Auto)"));
94  };
95 };
96 
98 {
99  public:
101  {
102  setLabel(QCoreApplication::translate("(ModulationSettings)",
103  "Constellation"));
104 
105  setHelpText(QCoreApplication::translate("(ModulationSettings)",
106  "Constellation (Default: Auto)"));
107  };
108 };
109 
111 {
112  public:
114  {
115 
116  addSelection("QPSK", "qpsk", true);
117  addSelection("8PSK", "8psk");
118  addSelection("QAM-16","qam_16");
119  addSelection("16APSK","16apsk");
120  addSelection("32APSK","32apsk");
121 
122  setLabel(QCoreApplication::translate("(ModulationSettings)",
123  "Modulation"));
124 
125  setHelpText(QCoreApplication::translate("(ModulationSettings)",
126  "Modulation, QPSK, 8PSK, QAM-16, 16APSK, 32APSK. Most DVB-S "
127  "transponders use QPSK, while DVB-S2 use 8PSK, 16APSK, or 32APSK. "
128  "QAM-16 is not available for DVB-S2 transports."));
129  }
130 };
131 
132 #endif // _MODULATION_SETTING_H_
void addSelection(const QString &label, QString value=QString(), bool select=false)
virtual void setHelpText(const QString &str)
virtual void setLabel(QString str)