00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #include "frequencytablesetting.h"
00031
00032
00033 #include "mythcorecontext.h"
00034 #include "mythlocale.h"
00035
00036 ScanFrequencyTable::ScanFrequencyTable() : ComboBoxSetting(this)
00037 {
00038 addSelection(QObject::tr("Broadcast"), "us", true);
00039 addSelection(QObject::tr("Cable") + " " +
00040 QObject::tr("High"), "uscablehigh", false);
00041 addSelection(QObject::tr("Cable HRC") + " " +
00042 QObject::tr("High"), "ushrchigh", false);
00043 addSelection(QObject::tr("Cable IRC") + " " +
00044 QObject::tr("High"), "usirchigh", false);
00045 addSelection(QObject::tr("Cable"), "uscable", false);
00046 addSelection(QObject::tr("Cable HRC"), "ushrc", false);
00047 addSelection(QObject::tr("Cable IRC"), "usirc", false);
00048
00049 setLabel(QObject::tr("Frequency Table"));
00050 setHelpText(QObject::tr("Frequency table to use.") + " " +
00051 QObject::tr(
00052 "The option of scanning only \"High\" "
00053 "frequency channels is useful because most "
00054 "digital channels are on the higher frequencies."));
00055 }
00056
00057 ScanCountry::ScanCountry() : ComboBoxSetting(this)
00058 {
00059 QString country = "au";
00060 country = gCoreContext->GetLocale()->GetCountryCode().toLower();
00061
00062 setLabel(QObject::tr("Country"));
00063 addSelection(QObject::tr("Australia"), "au", country == "au");
00064 addSelection(QObject::tr("Chile"), "cl", country == "cl");
00065 addSelection(QObject::tr("Czech Republic"), "cz", country == "cz");
00066 addSelection(QObject::tr("Denmark"), "dk", country == "dk");
00067 addSelection(QObject::tr("Finland"), "fi", country == "fi");
00068 addSelection(QObject::tr("France"), "fr", country == "fr");
00069 addSelection(QObject::tr("Germany"), "de", country == "de");
00070 addSelection(QObject::tr("Greece"), "gr", country == "gr");
00071 addSelection(QObject::tr("Italy"), "it", country == "it");
00072 addSelection(QObject::tr("New Zealand"), "nz", country == "nz");
00073 addSelection(QObject::tr("Spain"), "es", country == "es");
00074 addSelection(QObject::tr("Sweden"), "se", country == "se");
00075 addSelection(QObject::tr("United Kingdom"), "gb", country == "gb");
00076 }
00077
00078
00079 ScanNetwork::ScanNetwork() : ComboBoxSetting(this)
00080 {
00081 QString country = "de";
00082 country = gCoreContext->GetLocale()->GetCountryCode().toLower();
00083
00084 setLabel(QObject::tr("Country"));
00085 addSelection(QObject::tr("Germany"), "de", country == "de");
00086 addSelection(QObject::tr("United Kingdom"), "gb", country == "gb");
00087 }
00088