11 #include <QApplication>
18 #include <QFontDatabase>
26 #include "libmythbase/mythconfig.h"
64 gc->setLabel(PlaybackSettings::tr(
"Audio read ahead (ms)"));
68 gc->setHelpText(PlaybackSettings::tr(
69 "Increase this value if audio cuts out frequently. This is more "
70 "likely to occur when adjusting audio sync to a negative value. "
71 "If using high negative audio sync values you may need to set a large "
72 "value here. Default is 100."));
79 gc->setLabel(PlaybackSettings::tr(
"Primary colourspace conversion"));
83 gc->setHelpText(PlaybackSettings::tr(
84 "Converting between different primary colourspaces incurs a small "
85 "performance penalty but in some situations the difference in output is "
86 "negligible. The default ('Auto') behaviour is to only enforce "
87 "this conversion when there is a significant difference between source "
88 "colourspace primaries and the display."));
95 gc->setLabel(PlaybackSettings::tr(
"Enable Chroma Upsampling Filter when deinterlacing"));
96 gc->setHelpText(PlaybackSettings::tr(
97 "The 'Chroma upsampling error' affects the quality of interlaced material "
98 "for the most common, standard video formats and results in jagged/indistinct "
99 "edges to brightly coloured areas of video. This filter attempts to fix "
100 "the problem in the OpenGL shaders. It adds a small amount of overhead to "
101 "video rendering but may not be suitable in all cases. Enabled by default."));
111 ge->setLabel(MainGeneralSettings::tr(
"Decoder Device for VAAPI hardware decoding"));
115 QString
help = MainGeneralSettings::tr(
116 "Use this if your system does not detect the VAAPI device. "
117 "Example: '/dev/dri/renderD128'.");
119 ge->setHelpText(
help);
126 LOG(VB_GENERAL, LOG_INFO, QString(
"New VAAPI device (%1) - resetting profiles").arg(device));
138 gc->setLabel(PlaybackSettings::tr(
"Use FFmpeg's original MPEG-TS demuxer"));
142 gc->setHelpText(PlaybackSettings::tr(
"Experimental: Enable this setting to "
143 "use FFmpeg's native demuxer. "
144 "Try this when encountering playback issues."));
152 gc->setLabel(PlaybackSettings::tr(
"Default group filter to apply"));
155 gc->addSelection(PlaybackSettings::tr(
"All Programs"), QString(
"All Programs"));
156 gc->addSelection(QCoreApplication::translate(
"(Common)",
"Default"),
160 query.
prepare(
"SELECT DISTINCT recgroup from recorded;");
166 if (query.
value(0).toString() !=
"Default")
168 QString recgroup = query.
value(0).toString();
169 gc->addSelection(recgroup, recgroup);
174 query.
prepare(
"SELECT DISTINCT category from recorded;");
180 QString key = query.
value(0).toString();
181 gc->addSelection(key, key);
185 gc->setHelpText(PlaybackSettings::tr(
"Default group filter to apply on the "
186 "View Recordings screen."));
194 gc->setLabel(PlaybackSettings::tr(
"Always prompt for initial group "
199 gc->setHelpText(PlaybackSettings::tr(
"If enabled, always prompt the user "
200 "for the initial filter to apply "
201 "when entering the Watch Recordings "
210 gc->setLabel(PlaybackSettings::tr(
"Save current group filter when "
215 gc->setHelpText(PlaybackSettings::tr(
"If enabled, remember the last "
216 "selected filter instead of "
217 "displaying the default filter "
218 "whenever you enter the playback "
227 gc->setLabel(PlaybackSettings::tr(
"Change Recording Group using the arrow "
232 gc->setHelpText(PlaybackSettings::tr(
"If enabled, change recording group "
233 "directly using the arrow keys "
234 "instead of having to use < and >. "
235 "Requires theme support for this "
245 gc->setLabel(PlaybackSettings::tr(
"Start in group list"));
249 gc->setHelpText(PlaybackSettings::tr(
"If enabled, the focus will start on "
250 "the group list, otherwise the focus "
251 "will default to the recordings."));
259 gc->setLabel(PlaybackSettings::tr(
"Smart fast forwarding"));
263 gc->setHelpText(PlaybackSettings::tr(
"If enabled, then immediately after "
264 "rewinding, only skip forward the "
265 "same amount as skipping backwards."));
273 bc->setLabel(GeneralSettings::tr(
"Commercial detection method"));
275 bc->setHelpText(GeneralSettings::tr(
"This determines the method used by "
276 "MythTV to detect when commercials "
291 gc->setLabel(GeneralSettings::tr(
"Enable experimental speedup of "
292 "commercial detection"));
296 gc->setHelpText(GeneralSettings::tr(
"If enabled, experimental commercial "
297 "detection speedups will be enabled."));
305 gc->setLabel(PlaybackSettings::tr(
"Automatically skip commercials"));
307 gc->addSelection(QCoreApplication::translate(
"(Common)",
"Off"),
"0");
308 gc->addSelection(PlaybackSettings::tr(
"Notify, but do not skip",
309 "Skip commercials"),
"2");
310 gc->addSelection(PlaybackSettings::tr(
"Automatically Skip",
311 "Skip commercials"),
"1");
313 gc->setHelpText(PlaybackSettings::tr(
"Automatically skip commercial breaks "
314 "that have been flagged during "
315 "automatic commercial detection "
316 "or by the mythcommflag program, or "
317 "just notify that a commercial has "
326 gs->setLabel(GeneralSettings::tr(
"Deferral days for auto transcode jobs"));
328 gs->setHelpText(GeneralSettings::tr(
"If non-zero, automatic transcode jobs "
329 "will be scheduled to run this many "
330 "days after a recording completes "
331 "instead of immediately afterwards."));
342 bc->setLabel(GeneralSettings::tr(
"Strict commercial detection"));
346 bc->setHelpText(GeneralSettings::tr(
"Enable stricter commercial detection "
347 "code. Disable if some commercials are "
348 "not being detected."));
356 gs->setLabel(PlaybackSettings::tr(
"Commercial skip automatic rewind amount "
359 gs->setHelpText(PlaybackSettings::tr(
"MythTV will automatically rewind "
360 "this many seconds after performing a "
361 "commercial skip."));
372 gs->setLabel(PlaybackSettings::tr(
"Commercial skip notify amount (secs)"));
374 gs->setHelpText(PlaybackSettings::tr(
"MythTV will act like a commercial "
375 "begins this many seconds early. This "
376 "can be useful when commercial "
377 "notification is used in place of "
378 "automatic skipping."));
389 bs->setLabel(PlaybackSettings::tr(
"Maximum commercial skip (secs)"));
391 bs->setHelpText(PlaybackSettings::tr(
"MythTV will discourage long manual "
392 "commercial skips. Skips which are "
393 "longer than this will require the "
394 "user to hit the SKIP key twice. "
395 "Automatic commercial skipping is "
396 "not affected by this limit."));
407 bs->setLabel(PlaybackSettings::tr(
"Merge short commercial breaks (secs)"));
409 bs->setHelpText(PlaybackSettings::tr(
"Treat consecutive commercial breaks "
410 "shorter than this as one break when "
411 "skipping forward. Useful if you have "
412 "to skip a few times during breaks. "
413 "Applies to automatic skipping as "
414 "well. Set to 0 to disable."));
425 bs->setLabel(GeneralSettings::tr(
"Extra disk space (GB)"));
427 bs->setHelpText(GeneralSettings::tr(
"Extra disk space (in gigabytes) "
428 "beyond what MythTV requires that "
429 "you want to keep free on the "
430 "recording file systems."));
442 cb->
setLabel(DeletedExpireOptions::tr(
"Auto-Expire instead of delete recording"));
446 cb->
setHelpText(DeletedExpireOptions::tr(
"If enabled, move deleted recordings to the "
447 "'Deleted' recgroup and turn on autoexpire "
448 "instead of deleting immediately."));
457 bs->setLabel(GeneralSettings::tr(
"Time to retain deleted recordings "
460 bs->setHelpText(GeneralSettings::tr(
"Determines the maximum number of days "
461 "before undeleting a recording will "
462 "become impossible. A value of zero "
463 "means the recording will be "
464 "permanently deleted between 5 and 20 "
465 "minutes later. A value of minus one "
466 "means recordings will be retained "
467 "until space is required. A recording "
468 "will always be removed before this "
469 "time if the space is needed for a new "
477 class DeletedExpireOptions :
public TriggeredConfigurationGroup
480 DeletedExpireOptions() :
483 setLabel(
"DeletedExpireOptions");
484 Setting* enabled = AutoExpireInsteadOfDelete();
488 HorizontalConfigurationGroup* settings =
489 new HorizontalConfigurationGroup(
false);
491 addTarget(
"1", settings);
494 addTarget(
"0",
new HorizontalConfigurationGroup(
true));
503 bc->setLabel(GeneralSettings::tr(
"Auto-Expire method"));
505 bc->addSelection(GeneralSettings::tr(
"Oldest show first"),
"1");
506 bc->addSelection(GeneralSettings::tr(
"Lowest priority first"),
"2");
507 bc->addSelection(GeneralSettings::tr(
"Weighted time/priority combination"),
510 bc->setHelpText(GeneralSettings::tr(
"Method used to determine which "
511 "recorded shows to delete first. "
512 "Live TV recordings will always "
513 "expire before normal recordings."));
523 bc->setLabel(GeneralSettings::tr(
"Watched before unwatched"));
527 bc->setHelpText(GeneralSettings::tr(
"If enabled, programs that have been "
528 "marked as watched will be expired "
529 "before programs that have not "
538 bs->setLabel(GeneralSettings::tr(
"Priority weight"));
540 bs->setHelpText(GeneralSettings::tr(
"The number of days bonus a program "
541 "gets for each priority point. This "
542 "is only used when the Weighted "
543 "time/priority Auto-Expire method "
554 bs->setLabel(GeneralSettings::tr(
"Live TV max age (days)"));
556 bs->setHelpText(GeneralSettings::tr(
"Auto-Expire will force expiration of "
557 "Live TV recordings when they are this "
558 "many days old. Live TV recordings may "
559 "also be expired early if necessary to "
560 "free up disk space."));
572 bs->
setLabel(
"New recording free disk space threshold "
574 bs->
setHelpText(
"MythTV will stop scheduling new recordings on "
575 "a backend when its free disk space (in megabytes) falls "
576 "below this value.");
586 bc->setLabel(GeneralSettings::tr(
"Re-record watched"));
590 bc->setHelpText(GeneralSettings::tr(
"If enabled, programs that have been "
591 "marked as watched and are "
592 "Auto-Expired will be re-recorded if "
593 "they are shown again."));
601 bs->
setLabel(GeneralSettings::tr(
"Time to record before start of show "
604 bs->
setHelpText(GeneralSettings::tr(
"This global setting allows the "
605 "recorder to start before the "
606 "scheduled start time. It does not "
607 "affect the scheduler. It is ignored "
608 "when two shows have been scheduled "
609 "without enough time in between."));
619 bs->
setLabel(GeneralSettings::tr(
"Time to record past end of show (secs)"));
623 bs->
setHelpText(GeneralSettings::tr(
"This global setting allows the "
624 "recorder to record beyond the "
625 "scheduled end time. It does not "
626 "affect the scheduler. It is ignored "
627 "when two shows have been scheduled "
628 "without enough time in between."));
636 bs->
setLabel(GeneralSettings::tr(
"Maximum Start Gap (secs)"));
640 bs->
setHelpText(GeneralSettings::tr(
"If more than this number of seconds "
641 "is missing at the start of a recording "
642 "that will be regarded as a gap for "
643 "assessing recording quality. The recording "
644 "may be marked as damaged."));
652 bs->
setLabel(GeneralSettings::tr(
"Maximum End Gap (secs)"));
656 bs->
setHelpText(GeneralSettings::tr(
"If more than this number of seconds "
657 "is missing at the end of a recording "
658 "that will be regarded as a gap for "
659 "assessing recording quality. The recording "
660 "may be marked as damaged."));
668 bs->
setLabel(GeneralSettings::tr(
"Minimum Recording Quality (percent)"));
672 bs->
setHelpText(GeneralSettings::tr(
"If recording quality is below this value the "
673 "recording is marked as damaged."));
681 gc->setLabel(GeneralSettings::tr(
"Category of shows to be extended"));
683 gc->setHelpText(GeneralSettings::tr(
"For a special category (e.g. "
684 "\"Sports event\"), request that "
685 "shows be autoextended. Only works "
686 "if a show's category can be "
691 query.
prepare(
"SELECT DISTINCT category FROM program GROUP BY category;");
693 gc->addSelection(
"",
"");
698 QString key = query.
value(0).toString();
699 if (!key.trimmed().isEmpty())
700 gc->addSelection(key, key);
711 bs->
setLabel(GeneralSettings::tr(
"Record past end of show (mins)"));
715 bs->
setHelpText(GeneralSettings::tr(
"For the specified category, an "
716 "attempt will be made to extend "
717 "the recording by the specified "
718 "number of minutes. It is ignored "
719 "when two shows have been scheduled "
720 "without enough time in-between."));
728 vcg->setLabel(GeneralSettings::tr(
"Category record over-time"));
738 m_item(_item), m_parentConfig(parent), m_index(idx)
756 const QString rangeHelp(tr(
" Valid formats for the setting are "
757 "[nnnn - nnnn], [> nnnn], [>= nnnn], [< nnnn], "
758 "[<= nnnn]. Also [nnnn] for an exact match. "
759 "You can also use more than 1 expression with & between."));
760 const QString rangeHelpDec(tr(
"Numbers can have up to 3 decimal places."));
763 "to videos with a selected width range. ") + rangeHelp);
766 "to videos with a selected height range. ") + rangeHelp);
777 "to a video format or formats. You can also type in a format "
778 "or several formats separated by space. "
779 "To find the format for a video use ffprobe and look at the "
780 "word after \"Video:\". Also you can get a complete list "
781 "of available formats with ffmpeg -codecs."));
784 "to a range of frame rates. ") + rangeHelp +
" "+rangeHelpDec);
791 for (
const auto & scaler : scalers)
794 QString shaderdesc =
"\t" + tr(
"Prefer OpenGL deinterlacers");
795 QString driverdesc =
"\t" + tr(
"Prefer driver deinterlacers");
796 QString shaderhelp = tr(
"If possible, use GLSL shaders for deinterlacing in "
797 "preference to software deinterlacers. Note: Even if "
798 "disabled, shaders may be used if deinterlacing is "
799 "enabled but software deinterlacers are unavailable.");
800 QString driverhelp = tr(
"If possible, use hardware drivers (e.g. VDPAU, VAAPI) "
801 "for deinterlacing in preference to software and OpenGL "
802 "deinterlacers. Note: Even if disabled, driver deinterlacers "
803 "may be used if deinterlacing is enabled but other "
804 "deinterlacers are unavailable.");
818 tr(
"Set the quality for single rate deinterlacing. Use 'None' to disable. "
819 "Higher quality deinterlacers require more system processing and resources. "
820 "Software deinterlacers are used by default unless OpenGL or driver preferences "
823 tr(
"Set the quality for double rate deinterlacing - which is only used "
824 "if the display can support the required frame rate. Use 'None' to "
825 "disable double rate deinterlacing."));
833 for (
const auto & option : qAsConst(
options))
840 tr(
"Maximum number of CPU cores used for video decoding and filtering.") +
842 tr(
" Multithreaded decoding disabled-only one CPU "
843 "will be used, please recompile with "
844 "--enable-ffmpeg-pthreads to enable.")));
847 tr(
"When unchecked the deblocking loopfilter will be disabled. ") +
"\n" +
848 tr(
"Disabling will significantly reduce the load on the CPU for software decoding of "
849 "H.264 and HEVC material but may significantly reduce video quality."));
852 "The default scaler provides good quality in the majority of situations. "
853 "Higher quality scalers may offer some benefit when scaling very low "
854 "resolution material but may not be as fast."));
899 QString height_value;
903 for (
uint i = 0; i < 2; ++i)
905 QString pcmp =
m_item.
Get(QString(
"pref_cmp%1").arg(i));
908 QStringList clist = pcmp.split(
" ");
910 if (clist.size() < 3)
912 if (!width_value.isEmpty())
914 width_value.append(
"&");
915 height_value.append(
"&");
917 width_value.append(clist[0]+clist[1]);
918 height_value.append(clist[0]+clist[2]);
924 if (!width_value.isEmpty())
925 width_value.append(
"&");
926 width_value.append(
tmp);
931 if (!height_value.isEmpty())
932 height_value.append(
"&");
933 height_value.append(
tmp);
939 if (codecs.isEmpty())
951 if (upscale.isEmpty())
958 QStringList::const_iterator itr = decr.cbegin();
959 QStringList::const_iterator itn = decn.cbegin();
962 for (; (itr != decr.cend()) && (itn != decn.cend()); ++itr, ++itn)
965 found |= (*itr == pdecoder);
967 if (!found && !pdecoder.isEmpty())
971 if (!pmax_cpus.isEmpty())
977 if (!prenderer.isEmpty())
1011 ShowOkPopup(tr(
"Invalid width specification(%1), discarded").arg(val));
1025 ShowOkPopup(tr(
"Invalid height specification(%1), discarded").arg(val));
1039 ShowOkPopup(tr(
"Invalid frame rate specification(%1), discarded").arg(val));
1051 for (
const auto & rend : qAsConst(renderers))
1052 prenderer = (rend == vrenderer) ? vrenderer : prenderer;
1053 if (prenderer.isEmpty())
1057 for (
const auto & rend : qAsConst(renderers))
1059 if ((!rend.contains(
"null")))
1061 rend, (rend == prenderer));
1102 bool enabled =
true;
1133 QString quality = Deint->
getValue();
1135 values.append(quality);
1145 return values.join(
":");
1150 QStringList actions;
1155 if (std::any_of(actions.cbegin(), actions.cend(),
1156 [](
const QString &
action) { return action ==
"DELETE"; } ))
1167 QString message = tr(
"Remove this profile item?");
1171 if (confirmDelete->Create())
1178 delete confirmDelete;
1199 m_profileName(
std::move(profilename))
1210 QStringList restrict;
1212 if (!width.isEmpty())
1213 restrict << tr(
"Width",
"video formats") +
" " + width;
1215 if (!height.isEmpty())
1216 restrict << tr(
"Height",
"video formats") +
" " + height;
1218 if (!codecsval.isEmpty())
1219 restrict << tr(
"Formats",
"video formats") +
" " + codecsval.toUpper();
1221 if (!framerateval.isEmpty())
1222 restrict << tr(
"framerate") +
" " + framerateval;
1225 if (!restrict.isEmpty())
1226 str += restrict.join(
" ") +
" -> ";
1228 str +=
" " + tr(
"&",
"and") +
' ';
1245 for (
size_t i = 0; i <
m_items.size(); ++i)
1254 m_items[i].Set(
"pref_priority", QString::number(i + 1));
1278 LOG(VB_GENERAL, LOG_ERR,
1279 "PlaybackProfileConfig::Save() -- failed to delete items");
1286 LOG(VB_GENERAL, LOG_ERR,
1287 "PlaybackProfileConfig::Save() -- failed to save items");
1336 QString pri_i = QString::number(
m_items[indexA].GetPriority());
1337 QString pri_j = QString::number(
m_items[indexB].GetPriority());
1343 m_items[indexA].Set(
"pref_priority", pri_i);
1344 m_items[indexB].Set(
"pref_priority", pri_j);
1352 grouptrigger->setLabel(
1353 QCoreApplication::translate(
"PlaybackProfileConfigs",
1354 "Current Video Playback Profile"));
1361 if (!profiles.contains(
profile))
1363 profile = (profiles.contains(
"Normal")) ?
"Normal" : profiles[0];
1367 for (
const auto & prof : qAsConst(profiles))
1370 grouptrigger->addTargetedChild(prof,
1374 return grouptrigger;
1379 QString msg = tr(
"Enter Playback Profile Name");
1386 if (settingdialog->Create())
1393 delete settingdialog;
1401 if (not_ok_list.contains(name) || name.isEmpty())
1403 QString msg = (name.isEmpty()) ?
1404 tr(
"Sorry, playback group\nname cannot be blank.") :
1405 tr(
"Sorry, playback group name\n"
1406 "'%1' is already being used.").arg(name);
1422 std::array<QString,4> str
1424 PlaybackSettings::tr(
"Sort all sub-titles/multi-titles Ascending"),
1425 PlaybackSettings::tr(
"Sort all sub-titles/multi-titles Descending"),
1426 PlaybackSettings::tr(
"Sort sub-titles Descending, multi-titles "
1428 PlaybackSettings::tr(
"Sort sub-titles Ascending, multi-titles Descending"),
1431 QString
help = PlaybackSettings::tr(
"Selects how to sort show episodes. "
1432 "Sub-titles refers to the episodes "
1433 "listed under a specific show title. "
1434 "Multi-title refers to sections (e.g. "
1435 "\"All Programs\") which list multiple "
1436 "titles. Sections in parentheses are "
1441 gc->setLabel(PlaybackSettings::tr(
"Episode sort orderings"));
1443 for (
size_t i = 0; i < str.size(); ++i)
1444 gc->addSelection(str[i], QString::number(i));
1447 gc->setHelpText(
help);
1456 gc->setLabel(PlaybackSettings::tr(
"Sort episodes"));
1458 gc->addSelection(PlaybackSettings::tr(
"Record date"),
"Date");
1459 gc->addSelection(PlaybackSettings::tr(
"Season/Episode"),
"Season");
1460 gc->addSelection(PlaybackSettings::tr(
"Original air date"),
"OrigAirDate");
1461 gc->addSelection(PlaybackSettings::tr(
"Program ID"),
"Id");
1463 gc->setHelpText(PlaybackSettings::tr(
"Selects how to sort a show's "
1473 gs->setLabel(PlaybackSettings::tr(
"Fast forward/rewind reposition amount"));
1477 gs->setHelpText(PlaybackSettings::tr(
"When exiting sticky keys fast "
1478 "forward/rewind mode, reposition "
1479 "this many 1/100th seconds before "
1480 "resuming normal playback. This "
1481 "compensates for the reaction time "
1482 "between seeing where to resume "
1483 "playback and actually exiting "
1492 gc->setLabel(PlaybackSettings::tr(
"Reverse direction in fast "
1497 gc->setHelpText(PlaybackSettings::tr(
"If enabled, pressing the sticky "
1498 "rewind key in fast forward mode "
1499 "switches to rewind mode, and "
1500 "vice versa. If disabled, it will "
1501 "decrease the current speed or "
1502 "switch to play mode if the speed "
1503 "can't be decreased further."));
1521 paint->setLabel(AppearanceSettings::tr(
"Paint engine"));
1522 for (
const auto & option :
options)
1523 paint->addSelection(option, option, option == pref);
1525 paint->setHelpText(AppearanceSettings::tr(
"This selects what MythTV uses to draw. "));
1533 gc->setLabel(AppearanceSettings::tr(
"Menu theme"));
1537 QList<ThemeInfo>::iterator it;
1538 for( it = themelist.begin(); it != themelist.end(); ++it )
1540 gc->addSelection((*it).GetName(), (*it).GetDirectoryName(),
1541 (*it).GetDirectoryName() ==
"defaultmenu");
1551 QString fmt = beVBI.toLower().left(4);
1552 int sel = (fmt ==
"pal ") ? 1 : ((fmt ==
"ntsc") ? 2 : 0);
1556 gc->
setLabel(OSDSettings::tr(
"Decode VBI format"));
1560 gc->
addSelection(OSDSettings::tr(
"PAL teletext"),
"pal_txt",
1562 gc->
addSelection(OSDSettings::tr(
"NTSC closed caption"),
"ntsc_cc",
1566 OSDSettings::tr(
"If enabled, this overrides the mythtv-setup setting "
1567 "used during recording when decoding captions."));
1575 static const QRegularExpression crlf {
"[\r\n]" };
1576 static const QRegularExpression suffix {
"(//.*)" };
1580 gc->
setLabel(OSDSettings::tr(
"Subtitle Codec"));
1584 QScopedPointer<MythSystem>
1588 QString
results = cmd->GetStandardOutputStream()->readAll();
1589 #if QT_VERSION < QT_VERSION_CHECK(5,14,0)
1590 QStringList list =
results.toLower().split(crlf, QString::SkipEmptyParts);
1592 QStringList list =
results.toLower().split(crlf, Qt::SkipEmptyParts);
1594 list.replaceInStrings(suffix,
"");
1597 for (
const auto & codec : qAsConst(list))
1599 QString val = QString(codec);
1610 gc->
setLabel(GeneralSettings::tr(
"Channel ordering"));
1612 gc->
addSelection(GeneralSettings::tr(
"channel number"),
"channum");
1613 gc->
addSelection(GeneralSettings::tr(
"callsign"),
"callsign");
1622 gs->setLabel(PlaybackSettings::tr(
"Vertical scaling"));
1626 gs->setHelpText(PlaybackSettings::tr(
"Adjust this if the image does not "
1627 "fill your screen vertically. Range "
1636 gs->setLabel(PlaybackSettings::tr(
"Horizontal scaling"));
1640 gs->setHelpText(PlaybackSettings::tr(
"Adjust this if the image does not "
1641 "fill your screen horizontally. Range "
1650 gs->setLabel(PlaybackSettings::tr(
"Scan displacement (X)"));
1654 gs->setHelpText(PlaybackSettings::tr(
"Adjust this to move the image "
1664 gs->setLabel(PlaybackSettings::tr(
"Scan displacement (Y)"));
1668 gs->setHelpText(PlaybackSettings::tr(
"Adjust this to move the image "
1678 gc->
setLabel(OSDSettings::tr(
"Always display closed captioning or "
1683 gc->
setHelpText(OSDSettings::tr(
"If enabled, captions will be displayed "
1684 "when playing back recordings or watching "
1685 "Live TV. Closed Captioning can be turned "
1686 "on or off by pressing \"T\" during"
1695 gc->
setLabel(OSDSettings::tr(
"Enable interactive TV"));
1699 gc->
setHelpText(OSDSettings::tr(
"If enabled, interactive TV applications "
1700 "(MHEG) will be activated. This is used "
1701 "for teletext and logos for radio and "
1702 "channels that are currently off-air."));
1709 gc->
setLabel(OSDSettings::tr(
"Enable network access for interactive TV"));
1711 gc->
setHelpText(OSDSettings::tr(
"If enabled, interactive TV applications "
1712 "(MHEG) will be able to access interactive "
1713 "content over the Internet. This is used "
1714 "for BBC iPlayer."));
1721 combo->setLabel(OSDSettings::tr(
"Visualiser for audio only playback"));
1722 combo->setHelpText(OSDSettings::tr(
"Select a visualisation to use when there "
1723 "is no video. Defaults to none."));
1724 combo->addSelection(
"None",
"");
1726 for (
const auto & visual : qAsConst(visuals))
1727 combo->addSelection(visual, visual);
1735 gc->
setLabel(OSDSettings::tr(
"Always use browse mode in Live TV"));
1739 gc->
setHelpText(OSDSettings::tr(
"If enabled, browse mode will "
1740 "automatically be activated whenever "
1741 "you use channel up/down while watching "
1750 gc->
setLabel(OSDSettings::tr(
"Browse all channels"));
1754 gc->
setHelpText(OSDSettings::tr(
"If enabled, browse mode will show "
1755 "channels on all available recording "
1756 "devices, instead of showing channels "
1757 "on just the current recorder."));
1765 gc->
setLabel(PlaybackSettings::tr(
"Playback from start of program"));
1769 gc->
setHelpText(PlaybackSettings::tr(
"If enabled and no bookmark is set, "
1770 "playback starts at the program "
1771 "scheduled start time rather than "
1772 "the beginning of the recording. "
1773 "Useful for automatically skipping "
1774 "'start early' parts of a recording."));
1782 gc->
setLabel(PlaybackSettings::tr(
"Action on playback exit"));
1784 gc->
addSelection(PlaybackSettings::tr(
"Just exit"),
"0");
1785 gc->
addSelection(PlaybackSettings::tr(
"Clear last played position and exit"),
"16");
1786 gc->
addSelection(PlaybackSettings::tr(
"Always prompt (excluding Live TV)"),
1788 gc->
addSelection(PlaybackSettings::tr(
"Always prompt (including Live TV)"),
1790 gc->
addSelection(PlaybackSettings::tr(
"Prompt for Live TV only"),
"8");
1792 gc->
setHelpText(PlaybackSettings::tr(
"If set to prompt, a menu will be "
1793 "displayed when you exit playback "
1794 "mode. The options available will "
1795 "allow you delete the recording, "
1796 "continue watching, or exit."));
1804 gc->
setLabel(PlaybackSettings::tr(
"Prompt at end of recording"));
1808 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, a menu will be displayed "
1809 "allowing you to delete the recording "
1810 "when it has finished playing."));
1818 gc->
setLabel(PlaybackSettings::tr(
"Enable Music Choice"));
1822 gc->
setHelpText(PlaybackSettings::tr(
"Enable this to improve playing of Music Choice channels "
1823 "or recordings from those channels. "
1824 "These are audio channels with slide show "
1825 "from some cable providers. "
1826 "In unusual situations this could cause lip sync problems "
1827 "watching normal videos or TV shows."));
1835 gc->
setLabel(PlaybackSettings::tr(
"Jump to program OSD"));
1839 gc->
setHelpText(PlaybackSettings::tr(
"Set the choice between viewing the "
1840 "current recording group in the OSD, "
1841 "or showing the 'Watch Recording' "
1842 "screen when 'Jump to Program' is "
1843 "activated. If enabled, the "
1844 "recordings are shown in the OSD"));
1852 gc->
setLabel(PlaybackSettings::tr(
"Continue playback when embedded"));
1856 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, TV playback continues "
1857 "when the TV window is embedded in "
1858 "the upcoming program list or "
1859 "recorded list. The default is to "
1860 "pause the recorded show when "
1869 gc->
setLabel(PlaybackSettings::tr(
"Automatically mark a recording as "
1874 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, when you exit near the "
1875 "end of a recording it will be marked "
1876 "as watched. The automatic detection "
1877 "is not foolproof, so do not enable "
1878 "this setting if you don't want an "
1879 "unwatched recording marked as "
1888 gs->setLabel(PlaybackSettings::tr(
"Live TV idle timeout (mins)"));
1892 gs->setHelpText(PlaybackSettings::tr(
"Exit Live TV automatically if left "
1893 "idle for the specified number of "
1894 "minutes. 0 disables the timeout."));
1935 gc->
setLabel(MainGeneralSettings::tr(
"Use line edit virtual keyboards"));
1939 gc->
setHelpText(MainGeneralSettings::tr(
"If enabled, you can use a virtual "
1940 "keyboard in MythTV's line edit "
1941 "boxes. To use, hit SELECT (Enter "
1942 "or Space) while a line edit is in "
1951 gs->setLabel(MainGeneralSettings::tr(
"Idle time before entering standby "
1956 gs->setHelpText(MainGeneralSettings::tr(
"Number of minutes to wait when "
1957 "the frontend is idle before "
1958 "entering standby mode. Standby "
1959 "mode allows the backend to power "
1960 "down if configured to do so. Any "
1961 "remote or mouse input will cause "
1962 "the countdown to start again "
1963 "and/or exit idle mode. Video "
1964 "playback suspends the countdown. "
1965 "A value of zero prevents the "
1966 "frontend automatically entering "
1974 checkbox->setValue(
true);
1975 checkbox->setLabel(MainGeneralSettings::tr(
"Confirm before suspending/shutting down"));
1976 checkbox->setHelpText(MainGeneralSettings::tr(
1977 "If enabled (the default) then the user will always be asked to confirm before the system "
1978 "is shutdown, suspended or rebooted."));
1986 gc->
setLabel(MainGeneralSettings::tr(
"Customize exit menu options"));
1988 gc->
addSelection(MainGeneralSettings::tr(
"Default"),
"0");
1989 gc->
addSelection(MainGeneralSettings::tr(
"Show quit"),
"1");
1990 gc->
addSelection(MainGeneralSettings::tr(
"Show quit and suspend"),
"9");
1991 gc->
addSelection(MainGeneralSettings::tr(
"Show quit and shutdown"),
"2");
1992 gc->
addSelection(MainGeneralSettings::tr(
"Show quit, reboot and shutdown"),
"3");
1993 gc->
addSelection(MainGeneralSettings::tr(
"Show quit, reboot, shutdown and suspend"),
"10");
1994 gc->
addSelection(MainGeneralSettings::tr(
"Show shutdown"),
"4");
1995 gc->
addSelection(MainGeneralSettings::tr(
"Show reboot"),
"5");
1996 gc->
addSelection(MainGeneralSettings::tr(
"Show reboot and shutdown"),
"6");
1997 gc->
addSelection(MainGeneralSettings::tr(
"Show standby"),
"7");
1998 gc->
addSelection(MainGeneralSettings::tr(
"Show suspend"),
"8");
2000 QString helptext = MainGeneralSettings::tr(
"By default, only remote frontends are shown "
2001 "the shutdown option on the exit menu. Here "
2002 "you can force specific shutdown, reboot and suspend "
2003 "options to be displayed.");
2007 if (!supported.isEmpty())
2009 helptext.prepend(MainGeneralSettings::tr(
2010 "This system supports '%1' without additional setup. ")
2011 .arg(supported.join(
", ")));
2015 helptext.append(MainGeneralSettings::tr(
2016 " This system appears to have no power options available. Try "
2017 "setting the Halt/Reboot/Suspend commands below."));
2025 #ifndef Q_OS_ANDROID
2029 ge->setLabel(MainGeneralSettings::tr(
"Reboot command"));
2031 QString
help = MainGeneralSettings::tr(
2032 "Optional. Script to run if you select the reboot option from the "
2033 "exit menu, if the option is displayed. You must configure an "
2034 "exit key to display the exit menu.");
2037 help.append(MainGeneralSettings::tr(
2038 " Note: This system appears to support reboot without using this setting."));
2040 ge->setHelpText(
help);
2047 suspend->setLabel(MainGeneralSettings::tr(
"Suspend command"));
2048 suspend->setValue(
"");
2049 QString
help = MainGeneralSettings::tr(
2050 "Optional: Script to run if you select the suspend option from the "
2051 "exit menu, if the option is displayed.");
2055 help.append(MainGeneralSettings::tr(
2056 " Note: This system appears to support suspend without using this setting."));
2058 suspend->setHelpText(
help);
2065 ge->setLabel(MainGeneralSettings::tr(
"Halt command"));
2067 QString
help = MainGeneralSettings::tr(
"Optional. Script to run if you "
2068 "select the shutdown option from "
2069 "the exit menu, if the option is "
2070 "displayed. You must configure an "
2071 "exit key to display the exit "
2075 help.append(MainGeneralSettings::tr(
2076 " Note: This system appears to support shutdown without using this setting."));
2079 ge->setHelpText(
help);
2088 ge->setLabel(MainGeneralSettings::tr(
"LIRC daemon socket"));
2091 QString lirc_socket =
"/dev/lircd";
2093 if (!QFile::exists(lirc_socket))
2094 lirc_socket =
"/var/run/lirc/lircd";
2096 ge->setValue(lirc_socket);
2098 QString
help = MainGeneralSettings::tr(
"UNIX socket or IP address[:port] "
2099 "to connect in order to communicate "
2100 "with the LIRC Daemon.");
2101 ge->setHelpText(
help);
2110 ge->setLabel(MainGeneralSettings::tr(
"Screen shot path"));
2112 ge->setValue(
"/tmp/");
2114 ge->setHelpText(MainGeneralSettings::tr(
"Path to screenshot storage "
2115 "location. Should be writable "
2116 "by the frontend"));
2125 ge->setLabel(MainGeneralSettings::tr(
"Setup PIN code"));
2127 ge->setHelpText(MainGeneralSettings::tr(
"This PIN is used to control "
2128 "access to the setup menus. "
2129 "If you want to use this feature, "
2130 "then setting the value to all "
2131 "numbers will make your life much "
2132 "easier. Set it to blank to "
2133 "disable. If enabled, you will not "
2134 "be able to return to this screen "
2135 "and reset the Setup PIN without "
2136 "first entering the current PIN."));
2143 gc->
setLabel(AppearanceSettings::tr(
"Display on screen"));
2145 gc->
setHelpText(AppearanceSettings::tr(
"Run on the specified screen or "
2146 "spanning all screens."));
2155 gc->
setLabel(AppearanceSettings::tr(
"Screen aspect ratio"));
2156 gc->
addSelection(AppearanceSettings::tr(
"Auto (Assume square pixels)"),
"-1.0");
2157 gc->
addSelection(AppearanceSettings::tr(
"Auto (Detect from display)"),
"0.0");
2166 gc->
addSelection(AppearanceSettings::tr(
"16:18 (16:9 Above and below)"),
"0.8888");
2167 gc->
addSelection(AppearanceSettings::tr(
"32:10 (16:10 Side by side)"),
"3.2");
2168 gc->
addSelection(AppearanceSettings::tr(
"16:20 (16:10 Above and below)"),
"0.8");
2170 "This setting applies to video playback only, not to the GUI. "
2171 "Most modern displays have square pixels and the aspect ratio of the screen can be "
2172 "computed from the resolution (default). "
2173 "The aspect ratio can also be automatically detected from the connected display "
2174 "- though this may be slightly less accurate. If automatic detection fails, the correct "
2175 "aspect ratio can be specified here. Note: Some values (e.g 32:10) are "
2176 "primarily intended for multiscreen setups."));
2184 gc->
setLabel(PlaybackSettings::tr(
"Letterboxing color"));
2189 gc->
setHelpText(PlaybackSettings::tr(
"By default MythTV uses black "
2190 "letterboxing to match broadcaster "
2191 "letterboxing, but those with plasma "
2192 "screens may prefer gray to minimize "
2201 cb->
setLabel(
"Discard 3D stereoscopic fields");
2203 "If 'Side by Side' or 'Top and Bottom' 3D material is detected, "
2204 "enabling this setting will discard one field (enabled by default)."));
2212 gc->
setLabel(PlaybackSettings::tr(
"Video aspect override"));
2217 gc->
setHelpText(PlaybackSettings::tr(
"When enabled, these will override "
2218 "the aspect ratio specified by any "
2219 "broadcaster for all video streams."));
2227 gc->
setLabel(PlaybackSettings::tr(
"Zoom"));
2236 gc->
setHelpText(PlaybackSettings::tr(
"When enabled, these will apply a "
2237 "predefined zoom to all video "
2238 "playback in MythTV."));
2248 gs->setLabel(AppearanceSettings::tr(
"GUI width (pixels)"));
2252 gs->setHelpText(AppearanceSettings::tr(
"The width of the GUI. Do not make "
2253 "the GUI wider than your actual "
2254 "screen resolution. Set to 0 to "
2255 "automatically scale to "
2264 gs->setLabel(AppearanceSettings::tr(
"GUI height (pixels)"));
2268 gs->setHelpText(AppearanceSettings::tr(
"The height of the GUI. Do not make "
2269 "the GUI taller than your actual "
2270 "screen resolution. Set to 0 to "
2271 "automatically scale to "
2280 gs->setLabel(AppearanceSettings::tr(
"GUI X offset"));
2284 gs->setHelpText(AppearanceSettings::tr(
"The horizontal offset where the "
2285 "GUI will be displayed. May only "
2286 "work if run in a window."));
2294 gs->setLabel(AppearanceSettings::tr(
"GUI Y offset"));
2298 gs->setHelpText(AppearanceSettings::tr(
"The vertical offset where the "
2299 "GUI will be displayed."));
2307 gc->
setLabel(AppearanceSettings::tr(
"Use GUI size for TV playback"));
2311 gc->
setHelpText(AppearanceSettings::tr(
"If enabled, use the above size for "
2312 "TV, otherwise use full screen."));
2320 gc->
setLabel(AppearanceSettings::tr(
"Force Full Screen for GUI and TV playback"));
2325 "Use Full Screen for GUI and TV playback independent of the settings for "
2326 "the GUI dimensions. This does not change the values of the GUI dimensions "
2327 "so it is easy to switch from window mode to full screen and back."));
2335 gc->
setLabel(VideoModeSettings::tr(
"Separate video modes for GUI and "
2341 "Switch video modes for playback depending on the source "
2342 "resolution and frame rate."));
2351 gs->setLabel(VideoModeSettings::tr(
"In X",
"Video mode width"));
2355 gs->setHelpText(VideoModeSettings::tr(
"Horizontal resolution of video "
2356 "which needs a special output "
2366 gs->setLabel(VideoModeSettings::tr(
"In Y",
"Video mode height"));
2370 gs->setHelpText(VideoModeSettings::tr(
"Vertical resolution of video "
2371 "which needs a special output "
2380 gc->
setLabel(VideoModeSettings::tr(
"GUI"));
2382 gc->
setHelpText(VideoModeSettings::tr(
"Resolution of screen when not "
2383 "watching a video."));
2386 std::vector<MythDisplayMode> scr = display->
GetVideoModes();
2387 for (
auto & vmode : scr)
2389 int w = vmode.Width();
2390 int h = vmode.Height();
2391 QString sel = QString(
"%1x%2").arg(w).arg(h);
2401 if ((w <= 0) || (h <= 0))
2410 gc->
setValue((i >= 0) ? i : scr.size() - 1);
2418 QString dhelp = VideoModeSettings::tr(
"Default screen resolution "
2419 "when watching a video.");
2420 QString ohelp = VideoModeSettings::tr(
"Screen resolution when watching a "
2421 "video at a specific resolution.");
2423 QString qstr = (idx<0) ?
"TVVidModeResolution" :
2424 QString(
"TVVidModeResolution%1").arg(idx);
2426 QString lstr = (idx<0) ? VideoModeSettings::tr(
"Video output") :
2427 VideoModeSettings::tr(
"Output");
2428 QString hstr = (idx<0) ? dhelp : ohelp;
2435 std::vector<MythDisplayMode> scr = display->
GetVideoModes();
2436 for (
auto & vmode : scr)
2438 QString sel = QString(
"%1x%2").arg(vmode.Width()).arg(vmode.Height());
2447 const QString previousValue =
getValue();
2451 QString resolution = setting->
getValue();
2456 for (
size_t i = 0; i < list.size(); ++i)
2458 QString sel = QString::number((
double) list[i],
'f', 3);
2460 hz50 = (fabs(50.0 - list[i]) < 0.01) ? i : hz50;
2461 hz60 = (fabs(60.0 - list[i]) < 0.01) ? i : hz60;
2467 if (wasUnchanged && previousValue ==
getValue())
2471 if (
"640x480" == resolution ||
"720x480" == resolution)
2473 if (
"640x576" == resolution ||
"720x576" == resolution)
2482 QStringList slist = res.split(
"x");
2487 if (2 == slist.size())
2489 width = slist[0].toInt(&ok0);
2490 height = slist[1].toInt(&ok1);
2493 std::vector<double> result;
2496 QSize
size(width, height);
2505 QString dhelp = VideoModeSettings::tr(
"Default refresh rate when watching "
2506 "a video. Leave at \"Auto\" to "
2507 "automatically use the best "
2509 QString ohelp = VideoModeSettings::tr(
"Refresh rate when watching a "
2510 "video at a specific resolution. "
2511 "Leave at \"Auto\" to automatically "
2512 "use the best available");
2514 QString qstr = (idx<0) ?
"TVVidModeRefreshRate" :
2515 QString(
"TVVidModeRefreshRate%1").arg(idx);
2517 QString lstr = VideoModeSettings::tr(
"Rate");
2518 QString hstr = (idx<0) ? dhelp : ohelp;
2528 QString dhelp = VideoModeSettings::tr(
"Aspect ratio when watching a "
2529 "video. Leave at \"%1\" to "
2530 "use ratio reported by the monitor. "
2531 "Set to 16:9 or 4:3 to force a "
2532 "specific aspect ratio.");
2536 QString ohelp = VideoModeSettings::tr(
"Aspect ratio when watching a "
2537 "video at a specific resolution. "
2538 "Leave at \"%1\" to use ratio "
2539 "reported by the monitor. Set to "
2540 "16:9 or 4:3 to force a specific "
2543 QString qstr = (idx<0) ?
"TVVidModeForceAspect" :
2544 QString(
"TVVidModeForceAspect%1").arg(idx);
2548 gc->
setLabel(VideoModeSettings::tr(
"Aspect"));
2550 QString hstr = (idx<0) ? dhelp : ohelp;
2552 gc->
setHelpText(hstr.arg(VideoModeSettings::tr(
"Default")));
2554 gc->
addSelection(VideoModeSettings::tr(
"Default"),
"0.0");
2570 pause->setLabel(VideoModeSettings::tr(
"Pause while switching video modes (ms)"));
2571 pause->setHelpText(VideoModeSettings::tr(
2572 "For most displays, switching video modes takes time and content can be missed. "
2573 "If non-zero, this setting will pause playback while the video mode is changed. "
2574 "The required pause length (in ms) will be dependant on the display's characteristics."));
2595 overrides->setLabel(tr(
"Overrides for specific video sizes"));
2597 for (
int idx = 0; idx < 3; ++idx)
2618 gc->
setLabel(AppearanceSettings::tr(
"Hide mouse cursor in MythTV"));
2622 gc->
setHelpText(AppearanceSettings::tr(
"Toggles mouse cursor visibility "
2623 "for touchscreens. By default "
2624 "MythTV will auto-hide the cursor "
2625 "if the mouse doesn't move for a "
2626 "period, this setting disables the "
2627 "cursor entirely."));
2636 gc->
setLabel(AppearanceSettings::tr(
"Use window border"));
2640 gc->
setHelpText(AppearanceSettings::tr(
"Toggles between windowed and "
2641 "borderless operation."));
2649 gc->
setLabel(AppearanceSettings::tr(
"Always On Top"));
2653 gc->
setHelpText(AppearanceSettings::tr(
"If enabled, MythTV will always be "
2662 gc->
setLabel(AppearanceSettings::tr(
"Smooth Transitions"));
2666 gc->
setHelpText(AppearanceSettings::tr(
"Enable smooth transitions with fade-in and fade-out of menu pages and enable GUI animations. "
2667 "Disabling this can make the GUI respond faster especially on low-powered machines."));
2674 "Never show startup screen");
2676 gs->setLabel(AppearanceSettings::tr(
"Startup Screen Delay"));
2680 gs->setHelpText(AppearanceSettings::tr(
2681 "The Startup Screen will show the progress of starting the frontend "
2682 "if frontend startup takes longer than this number of seconds."));
2691 gs->setLabel(AppearanceSettings::tr(
"GUI text zoom percentage"));
2695 gs->setHelpText(AppearanceSettings::tr
2696 (
"Adjust the themed defined font size by this percentage. "
2697 "mythfrontend needs restart for this to take effect."));
2705 gc->
setLabel(AppearanceSettings::tr(
"Date format"));
2708 QString sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2711 if (sampdate.month() == sampdate.day())
2713 sampdate = sampdate.addDays(1);
2714 sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2715 "tomorrow's date.");
2720 gc->
addSelection(locale.toString(sampdate,
"ddd MMM d"),
"ddd MMM d");
2721 gc->
addSelection(locale.toString(sampdate,
"ddd d MMM"),
"ddd d MMM");
2722 gc->
addSelection(locale.toString(sampdate,
"ddd MMMM d"),
"ddd MMMM d");
2723 gc->
addSelection(locale.toString(sampdate,
"ddd d MMMM"),
"ddd d MMMM");
2724 gc->
addSelection(locale.toString(sampdate,
"dddd MMM d"),
"dddd MMM d");
2725 gc->
addSelection(locale.toString(sampdate,
"dddd d MMM"),
"dddd d MMM");
2726 gc->
addSelection(locale.toString(sampdate,
"MMM d"),
"MMM d");
2727 gc->
addSelection(locale.toString(sampdate,
"d MMM"),
"d MMM");
2728 gc->
addSelection(locale.toString(sampdate,
"MM/dd"),
"MM/dd");
2729 gc->
addSelection(locale.toString(sampdate,
"dd/MM"),
"dd/MM");
2730 gc->
addSelection(locale.toString(sampdate,
"MM.dd"),
"MM.dd");
2731 gc->
addSelection(locale.toString(sampdate,
"dd.MM"),
"dd.MM");
2732 gc->
addSelection(locale.toString(sampdate,
"M/d/yyyy"),
"M/d/yyyy");
2733 gc->
addSelection(locale.toString(sampdate,
"d/M/yyyy"),
"d/M/yyyy");
2734 gc->
addSelection(locale.toString(sampdate,
"MM.dd.yyyy"),
"MM.dd.yyyy");
2735 gc->
addSelection(locale.toString(sampdate,
"dd.MM.yyyy"),
"dd.MM.yyyy");
2736 gc->
addSelection(locale.toString(sampdate,
"yyyy-MM-dd"),
"yyyy-MM-dd");
2737 gc->
addSelection(locale.toString(sampdate,
"ddd MMM d yyyy"),
"ddd MMM d yyyy");
2738 gc->
addSelection(locale.toString(sampdate,
"ddd d MMM yyyy"),
"ddd d MMM yyyy");
2739 gc->
addSelection(locale.toString(sampdate,
"ddd yyyy-MM-dd"),
"ddd yyyy-MM-dd");
2741 QString cn_long = QString(
"dddd yyyy") + QChar(0x5E74) +
2742 "M" + QChar(0x6708) +
"d"+ QChar(0x65E5);
2743 gc->
addSelection(locale.toString(sampdate, cn_long), cn_long);
2744 QString cn_med = QString(
"dddd ") +
2745 "M" + QChar(0x6708) +
"d"+ QChar(0x65E5);
2747 gc->
addSelection(locale.toString(sampdate, cn_med), cn_med);
2750 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred date format. %1")
2759 gc->
setLabel(AppearanceSettings::tr(
"Short date format"));
2763 QString sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2766 if (sampdate.month() == sampdate.day())
2768 sampdate = sampdate.addDays(1);
2769 sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2770 "tomorrow's date.");
2774 gc->
addSelection(locale.toString(sampdate,
"M/d"),
"M/d");
2775 gc->
addSelection(locale.toString(sampdate,
"d/M"),
"d/M");
2776 gc->
addSelection(locale.toString(sampdate,
"MM/dd"),
"MM/dd");
2777 gc->
addSelection(locale.toString(sampdate,
"dd/MM"),
"dd/MM");
2778 gc->
addSelection(locale.toString(sampdate,
"MM.dd"),
"MM.dd");
2779 gc->
addSelection(locale.toString(sampdate,
"dd.MM."),
"dd.MM.");
2780 gc->
addSelection(locale.toString(sampdate,
"M.d."),
"M.d.");
2781 gc->
addSelection(locale.toString(sampdate,
"d.M."),
"d.M.");
2782 gc->
addSelection(locale.toString(sampdate,
"MM-dd"),
"MM-dd");
2783 gc->
addSelection(locale.toString(sampdate,
"dd-MM"),
"dd-MM");
2784 gc->
addSelection(locale.toString(sampdate,
"MMM d"),
"MMM d");
2785 gc->
addSelection(locale.toString(sampdate,
"d MMM"),
"d MMM");
2786 gc->
addSelection(locale.toString(sampdate,
"ddd d"),
"ddd d");
2787 gc->
addSelection(locale.toString(sampdate,
"d ddd"),
"d ddd");
2788 gc->
addSelection(locale.toString(sampdate,
"ddd M/d"),
"ddd M/d");
2789 gc->
addSelection(locale.toString(sampdate,
"ddd d/M"),
"ddd d/M");
2790 gc->
addSelection(locale.toString(sampdate,
"ddd d.M"),
"ddd d.M");
2791 gc->
addSelection(locale.toString(sampdate,
"ddd dd.MM"),
"ddd dd.MM");
2792 gc->
addSelection(locale.toString(sampdate,
"M/d ddd"),
"M/d ddd");
2793 gc->
addSelection(locale.toString(sampdate,
"d/M ddd"),
"d/M ddd");
2795 QString cn_short1 = QString(
"M") + QChar(0x6708) +
"d" + QChar(0x65E5);
2797 gc->
addSelection(locale.toString(sampdate, cn_short1), cn_short1);
2799 QString cn_short2 = QString(
"ddd M") + QChar(0x6708) +
"d" + QChar(0x65E5);
2801 gc->
addSelection(locale.toString(sampdate, cn_short2), cn_short2);
2804 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred short date format. %1")
2813 gc->
setLabel(AppearanceSettings::tr(
"Time format"));
2815 QTime samptime = QTime::currentTime();
2819 gc->
addSelection(locale.toString(samptime,
"h:mm AP"),
"h:mm AP");
2820 gc->
addSelection(locale.toString(samptime,
"h:mm ap"),
"h:mm ap");
2821 gc->
addSelection(locale.toString(samptime,
"hh:mm AP"),
"hh:mm AP");
2822 gc->
addSelection(locale.toString(samptime,
"hh:mm ap"),
"hh:mm ap");
2823 gc->
addSelection(locale.toString(samptime,
"h:mm"),
"h:mm");
2824 gc->
addSelection(locale.toString(samptime,
"hh:mm"),
"hh:mm");
2825 gc->
addSelection(locale.toString(samptime,
"hh.mm"),
"hh.mm");
2826 gc->
addSelection(locale.toString(samptime,
"AP h:mm"),
"AP h:mm");
2828 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred time format. You "
2829 "must choose a format with \"AM\" "
2830 "or \"PM\" in it, otherwise your "
2831 "time display will be 24-hour or "
2832 "\"military\" time."));
2839 rgb->setLabel(AppearanceSettings::tr(
"Use full range RGB output"));
2840 rgb->setValue(
true);
2841 rgb->setHelpText(
"Enable (recommended) to supply full range RGB output to your display device. "
2842 "Disable to supply limited range RGB output. This setting applies to both the "
2843 "GUI and media playback. Ideally the value of this setting should match a "
2844 "similar setting on your TV or monitor.");
2852 gc->
setLabel(GeneralSettings::tr(
"Channel format"));
2854 gc->
addSelection(GeneralSettings::tr(
"number"),
"<num>");
2855 gc->
addSelection(GeneralSettings::tr(
"number callsign"),
"<num> <sign>");
2856 gc->
addSelection(GeneralSettings::tr(
"number name"),
"<num> <name>");
2857 gc->
addSelection(GeneralSettings::tr(
"callsign"),
"<sign>");
2858 gc->
addSelection(GeneralSettings::tr(
"name"),
"<name>");
2860 gc->
setHelpText(GeneralSettings::tr(
"Your preferred channel format."));
2871 gc->
setLabel(GeneralSettings::tr(
"Long channel format"));
2873 gc->
addSelection(GeneralSettings::tr(
"number"),
"<num>");
2874 gc->
addSelection(GeneralSettings::tr(
"number callsign"),
"<num> <sign>");
2875 gc->
addSelection(GeneralSettings::tr(
"number name"),
"<num> <name>");
2876 gc->
addSelection(GeneralSettings::tr(
"callsign"),
"<sign>");
2877 gc->
addSelection(GeneralSettings::tr(
"name"),
"<name>");
2879 gc->
setHelpText(GeneralSettings::tr(
"Your preferred long channel format."));
2890 gc->
setLabel(ChannelGroupSettings::tr(
"Remember last channel group"));
2892 gc->
setHelpText(ChannelGroupSettings::tr(
"If enabled, the EPG will "
2893 "initially display only the "
2894 "channels from the last channel "
2895 "group selected. Pressing \"4\" "
2896 "will toggle channel group."));
2907 gc->
setLabel(ChannelGroupSettings::tr(
"Default channel group"));
2913 gc->
addSelection(ChannelGroupSettings::tr(
"All Channels"),
"-1");
2915 ChannelGroupList::iterator it;
2917 for (it = changrplist.begin(); it < changrplist.end(); ++it)
2918 gc->
addSelection(it->m_name, QString(
"%1").arg(it->m_grpId));
2920 gc->
setHelpText(ChannelGroupSettings::tr(
"Default channel group to be "
2921 "shown in the EPG. Pressing "
2922 "GUIDE key will toggle channel "
2933 gc->
setLabel(GeneralSettings::tr(
"Browse/change channels from Channel "
2936 gc->
setHelpText(GeneralSettings::tr(
"If enabled, Live TV will browse or "
2937 "change channels from the selected "
2938 "channel group. The \"All Channels\" "
2939 "channel group may be selected to "
2940 "browse all channels."));
2950 gc->
setLabel(GeneralSettings::tr(
"Case-sensitive sorting"));
2952 gc->
setHelpText(GeneralSettings::tr(
"If enabled, all sorting will be "
2953 "case-sensitive. This would mean "
2954 "that \"bee movie\" would sort after "
2955 "\"Sea World\" as lower case letters "
2956 "sort after uppercase letters."));
2965 gc->
setLabel(GeneralSettings::tr(
"Remove prefixes when sorting"));
2968 "If enabled, all sorting will remove the common "
2969 "prefixes (The, A, An) from a string prior to "
2970 "sorting. For example, this would sort the titles "
2971 "\"Earth 2\", \"The Flash\", and \"Kings\" in that "
2972 "order. If disabled, they would sort as \"Earth 2\", "
2973 "\"Kings\", \"The Flash\"."));
2981 gc->
setLabel(MainGeneralSettings::tr(
"Names exempt from prefix removal"));
2984 "This list of names will be exempt from removing "
2985 "the common prefixes (The, A, An) from a title or "
2986 "filename. Enter multiple names separated by "
2995 gc->
setLabel(GeneralSettings::tr(
"Starting channel for Manual Record"));
2996 gc->
addSelection(GeneralSettings::tr(
"Guide Starting Channel"),
"1",
true);
2997 gc->
addSelection(GeneralSettings::tr(
"Last Manual Record Channel"),
"2");
2999 "When entering a new Manual Record Rule, "
3000 "the starting channel will default to this."));
3010 bc->setLabel(GeneralRecPrioritiesSettings::tr(
"Avoid back to back "
3014 GeneralRecPrioritiesSettings::tr(
"Selects the situations where the "
3015 "scheduler will avoid assigning shows "
3016 "to the same card if their end time "
3017 "and start time match. This will be "
3018 "allowed when necessary in order to "
3019 "resolve conflicts."));
3021 bc->addSelection(GeneralRecPrioritiesSettings::tr(
"Never"),
"0");
3022 bc->addSelection(GeneralRecPrioritiesSettings::tr(
"Different Channels"),
3024 bc->addSelection(GeneralRecPrioritiesSettings::tr(
"Always"),
"2");
3035 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Preferred input priority"));
3037 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3038 "a showing matches the "
3039 "preferred input selected "
3040 "in the 'Scheduling "
3041 "Options' section of the "
3042 "recording rule."));
3052 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"HDTV recording priority"));
3054 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3055 "a showing is marked as an "
3056 "HDTV broadcast in the TV "
3068 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Widescreen recording "
3071 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3072 "a showing is marked as "
3073 "widescreen in the TV "
3085 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Sign language recording "
3088 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority "
3089 "when a showing is "
3103 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"In-vision Subtitles "
3104 "Recording Priority"));
3106 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority "
3107 "when a showing is marked "
3108 "as having in-vision "
3120 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Subtitles/CC recording "
3123 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3124 "a showing is marked as "
3125 "having subtitles or "
3126 "closed captioning (CC) "
3138 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Hard of hearing priority"));
3140 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3141 "a showing is marked as "
3142 "having support for "
3143 "viewers with impaired "
3155 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Audio described priority"));
3157 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3158 "a showing is marked as "
3159 "being Audio Described."));
3170 ge->setLabel(EPGSettings::tr(
"Guide starts at channel"));
3174 ge->setHelpText(EPGSettings::tr(
"The program guide starts on this channel "
3175 "if it is run from outside of Live TV "
3176 "mode. Leave blank to enable Live TV "
3177 "automatic start channel."));
3186 gs->setLabel(EPGSettings::tr(
"Record threshold"));
3190 gs->setHelpText(EPGSettings::tr(
"Pressing SELECT on a show that is at "
3191 "least this many minutes into the future "
3192 "will schedule a recording."));
3200 gc->
setLabel(AppearanceSettings::tr(
"Language"));
3203 QStringList langs = langMap.values();
3207 if (langCode.isEmpty())
3212 for (
const auto & label : qAsConst(langs))
3214 QString value = langMap.key(label);
3215 gc->
addSelection(label, value, (value.toLower() == langCode));
3218 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred language for the "
3219 "user interface."));
3226 QString q = QString(
"ISO639Language%1").arg(i);
3229 if ((lang.isEmpty() || lang ==
"aar") &&
3238 for (; it != ite; ++it)
3240 QString desc = (*it);
3241 int idx = desc.indexOf(
";");
3243 desc = desc.left(idx);
3254 gc->
setLabel(AppearanceSettings::tr(
"Guide language #%1").arg(i+1));
3260 gc->
setHelpText(AppearanceSettings::tr(
"Your #%1 preferred language for "
3261 "Program Guide data and captions.")
3270 gc->
setLabel(MainGeneralSettings::tr(
"Enable Network Remote Control "
3273 gc->
setHelpText(MainGeneralSettings::tr(
"This enables support for "
3274 "controlling MythFrontend "
3275 "over the network."));
3286 gs->setLabel(MainGeneralSettings::tr(
"Network Remote Control port"));
3290 gs->setHelpText(MainGeneralSettings::tr(
"This specifies what port the "
3291 "Network Remote Control "
3292 "interface will listen on for "
3293 "new connections."));
3301 ge->setLabel(MainGeneralSettings::tr(
"UDP notify port"));
3303 ge->setValue(
"6948");
3305 ge->setHelpText(MainGeneralSettings::tr(
"MythTV will listen for "
3306 "connections from the "
3307 "\"mythutil\" program on "
3316 gc->
setLabel(MainGeneralSettings::tr(
"Enable CEC Control "
3318 gc->
setHelpText(MainGeneralSettings::tr(
"This enables "
3319 "controlling MythFrontend from a TV remote or powering the TV "
3320 "on and off from a MythTV remote "
3321 "if you have compatible hardware. "
3322 "These settings only take effect after a restart."));
3330 gc->
setLabel(MainGeneralSettings::tr(
"Allow Power On TV"));
3331 gc->
setHelpText(MainGeneralSettings::tr(
"Enables your TV to be powered "
3332 "on from MythTV remote or when MythTV starts "
3333 "if you have compatible hardware."));
3341 gc->
setLabel(MainGeneralSettings::tr(
"Allow Power Off TV"));
3342 gc->
setHelpText(MainGeneralSettings::tr(
"Enables your TV to be powered "
3343 "off from MythTV remote or when MythTV starts "
3344 "if you have compatible hardware."));
3352 gc->
setLabel(MainGeneralSettings::tr(
"Power on TV At Start"));
3354 "on your TV when you start MythTV "
3355 "if you have compatible hardware."));
3363 gc->
setLabel(MainGeneralSettings::tr(
"Power off TV At Exit"));
3365 "off your TV when you exit MythTV "
3366 "if you have compatible hardware."));
3371 #endif //USING_LIBCEC
3373 #ifdef USING_AIRPLAY
3379 gc->
setLabel(MainGeneralSettings::tr(
"Enable AirPlay"));
3381 gc->
setHelpText(MainGeneralSettings::tr(
"AirPlay lets you wirelessly view "
3382 "content on your TV from your "
3383 "iPhone, iPad, iPod Touch, or "
3384 "iTunes on your computer."));
3395 gc->
setLabel(MainGeneralSettings::tr(
"Only support AirTunes (no video)"));
3397 gc->
setHelpText(MainGeneralSettings::tr(
"Only stream audio from your "
3398 "iPhone, iPad, iPod Touch, or "
3399 "iTunes on your computer"));
3410 gc->
setLabel(MainGeneralSettings::tr(
"Require password"));
3414 gc->
setHelpText(MainGeneralSettings::tr(
"Require a password to use "
3415 "AirPlay. Your iPhone, iPad, iPod "
3416 "Touch, or iTunes on your computer "
3417 "will prompt you when required"));
3425 ge->setLabel(MainGeneralSettings::tr(
"Password"));
3427 ge->setValue(
"0000");
3429 ge->setHelpText(MainGeneralSettings::tr(
"Your iPhone, iPad, iPod Touch, or "
3430 "iTunes on your computer will "
3431 "prompt you for this password "
3440 hc->setLabel(MainGeneralSettings::tr(
"AirPlay - Password"));
3441 hc->addChild(AirPlayPasswordEnabled());
3442 hc->addChild(AirPlayPassword());
3451 gc->
setLabel(MainGeneralSettings::tr(
"AirPlay full screen playback"));
3455 gc->
setHelpText(MainGeneralSettings::tr(
"During music playback, displays "
3456 "album cover and various media "
3457 "information in full screen mode"));
3495 gc->
setLabel(PlaybackSettings::tr(
"Enable realtime priority threads"));
3497 gc->
setHelpText(PlaybackSettings::tr(
"When running mythfrontend with root "
3498 "privileges, some threads can be "
3499 "given enhanced priority. Disable "
3500 "this if MythFrontend freezes during "
3501 "video playback."));
3511 ge->setLabel(MainGeneralSettings::tr(
"Ignore devices"));
3515 ge->setHelpText(MainGeneralSettings::tr(
"If there are any devices that you "
3516 "do not want to be monitored, list "
3517 "them here with commas in-between. "
3518 "The plugins will ignore them. "
3519 "Requires restart."));
3527 gc->
setLabel(PlaybackSettings::tr(
"Sort titles"));
3529 gc->
addSelection(PlaybackSettings::tr(
"Alphabetically"),
3531 gc->
addSelection(PlaybackSettings::tr(
"By recording priority"),
3534 gc->
setHelpText(PlaybackSettings::tr(
"Sets the title sorting order when "
3535 "the view is set to Titles only."));
3543 gc->
setLabel(WatchListSettings::tr(
"Include the 'Watch List' group"));
3547 gc->
setHelpText(WatchListSettings::tr(
"The 'Watch List' is an abbreviated "
3548 "list of recordings sorted to "
3549 "highlight series and shows that "
3550 "need attention in order to keep up "
3559 gc->
setLabel(WatchListSettings::tr(
"Start from the Watch List view"));
3563 gc->
setHelpText(WatchListSettings::tr(
"If enabled, the 'Watch List' will "
3564 "be the initial view each time you "
3565 "enter the Watch Recordings screen"));
3573 gc->
setLabel(WatchListSettings::tr(
"Exclude recordings not set for "
3578 gc->
setHelpText(WatchListSettings::tr(
"Set this if you turn off "
3579 "Auto-Expire only for recordings "
3580 "that you've seen and intend to "
3581 "keep. This option will exclude "
3582 "these recordings from the "
3591 gs->setLabel(WatchListSettings::tr(
"Maximum days counted in the score"));
3595 gs->setHelpText(WatchListSettings::tr(
"The 'Watch List' scores are based "
3596 "on 1 point equals one day since "
3597 "recording. This option limits the "
3598 "maximum score due to age and "
3599 "affects other weighting factors."));
3607 gs->setLabel(WatchListSettings::tr(
"Days to exclude weekly episodes after "
3612 gs->setHelpText(WatchListSettings::tr(
"When an episode is deleted or "
3613 "marked as watched, other episodes "
3614 "of the series are excluded from the "
3615 "'Watch List' for this interval of "
3616 "time. Daily shows also have a "
3617 "smaller interval based on this "
3626 gc->
setLabel(MainGeneralSettings::tr(
"Media Monitor"));
3628 gc->
setHelpText(MainGeneralSettings::tr(
"This enables support for "
3629 "monitoring your CD/DVD drives for "
3630 "new disks and launching the "
3631 "proper plugin to handle them. "
3632 "Requires restart."));
3645 gc->
setLabel(LcdSettings::tr(
"Display time"));
3647 gc->
setHelpText(LcdSettings::tr(
"Display current time on idle LCD "
3659 gc->
setLabel(LcdSettings::tr(
"Display recording status"));
3661 gc->
setHelpText(LcdSettings::tr(
"Display current recordings information "
3662 "on LCD display."));
3673 gc->
setLabel(LcdSettings::tr(
"Display menus"));
3675 gc->
setHelpText(LcdSettings::tr(
"Display selected menu on LCD display. "));
3686 gs->setLabel(LcdSettings::tr(
"Menu pop-up time"));
3688 gs->setHelpText(LcdSettings::tr(
"How many seconds the menu will remain "
3689 "visible after navigation."));
3700 gc->
setLabel(LcdSettings::tr(
"Display music artist and title"));
3702 gc->
setHelpText(LcdSettings::tr(
"Display playing artist and song title in "
3703 "MythMusic on LCD display."));
3714 gc->
setLabel(LcdSettings::tr(
"Items"));
3716 gc->
addSelection(LcdSettings::tr(
"Artist - Title"),
"ArtistTitle");
3717 gc->
addSelection(LcdSettings::tr(
"Artist [Album] Title"),
3718 "ArtistAlbumTitle");
3720 gc->
setHelpText(LcdSettings::tr(
"Which items to show when playing music."));
3729 gc->
setLabel(LcdSettings::tr(
"Display channel information"));
3731 gc->
setHelpText(LcdSettings::tr(
"Display tuned channel information on LCD "
3743 gc->
setLabel(LcdSettings::tr(
"Display volume information"));
3745 gc->
setHelpText(LcdSettings::tr(
"Display volume level information "
3746 "on LCD display."));
3757 gc->
setLabel(LcdSettings::tr(
"Display generic information"));
3759 gc->
setHelpText(LcdSettings::tr(
"Display generic information on LCD display."));
3770 gc->
setLabel(LcdSettings::tr(
"Backlight always on"));
3772 gc->
setHelpText(LcdSettings::tr(
"Turn on the backlight permanently on the "
3783 gc->
setLabel(LcdSettings::tr(
"Heartbeat always on"));
3785 gc->
setHelpText(LcdSettings::tr(
"Turn on the LCD heartbeat."));
3796 gc->
setLabel(LcdSettings::tr(
"Display large clock"));
3798 gc->
setHelpText(LcdSettings::tr(
"On multiline displays try and display the "
3799 "time as large as possible."));
3810 ge->setLabel(LcdSettings::tr(
"LCD key order"));
3812 ge->setValue(
"ABCDEF");
3815 LcdSettings::tr(
"Enter the 6 Keypad Return Codes for your LCD keypad "
3816 "in the order in which you want the functions "
3817 "up/down/left/right/yes/no to operate. (See "
3818 "lcdproc/server/drivers/hd44780.c/keyMapMatrix[] "
3819 "or the matrix for your display)"));
3827 gc->
setLabel(LcdSettings::tr(
"Enable LCD device"));
3829 gc->
setHelpText(LcdSettings::tr(
"Use an LCD display to view MythTV status "
3855 gc->
setLabel(PlaybackSettings::tr(
"Enable gamma correction for video"));
3859 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, QuickTime will correct "
3860 "the gamma of the video to match "
3861 "your monitor. Turning this off can "
3862 "save some CPU cycles."));
3870 gc->
setLabel(PlaybackSettings::tr(
"Scale video as necessary"));
3874 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, video will be scaled to "
3875 "fit your window or screen. If "
3876 "unchecked, video will never be made "
3877 "larger than its actual pixel size."));
3885 gs->
setLabel(PlaybackSettings::tr(
"Frames to skip in fullscreen mode"));
3889 gs->
setHelpText(PlaybackSettings::tr(
"Video displayed in fullscreen or "
3890 "non-windowed mode will skip this "
3891 "many frames for each frame drawn. "
3892 "Set to 0 to show every frame. Only "
3893 "valid when either \"Use GUI size for "
3894 "TV playback\" or \"Run the frontend "
3895 "in a window\" is not checked."));
3903 gc->
setLabel(MacMainSettings::tr(
"Video in main window"));
3907 gc->
setHelpText(MacMainSettings::tr(
"If enabled, video will be displayed "
3908 "in the main GUI window. Disable this "
3909 "when you only want video on the "
3910 "desktop or in a floating window. Only "
3911 "valid when \"Use GUI size for TV "
3912 "playback\" and \"Run the frontend in "
3913 "a window\" are checked."));
3921 gs->
setLabel(MacMainSettings::tr(
"Frames to skip"));
3925 gs->
setHelpText(MacMainSettings::tr(
"Video in the main window will skip "
3926 "this many frames for each frame "
3927 "drawn. Set to 0 to show every "
3936 gs->
setLabel(MacMainSettings::tr(
"Opacity"));
3940 gs->
setHelpText(MacMainSettings::tr(
"The opacity of the main window. Set "
3941 "to 100 for completely opaque, set "
3942 "to 0 for completely transparent."));
3950 gc->
setLabel(MacFloatSettings::tr(
"Video in floating window"));
3954 gc->
setHelpText(MacFloatSettings::tr(
"If enabled, video will be displayed "
3955 "in a floating window. Only valid "
3956 "when \"Use GUI size for TV "
3957 "playback\" and \"Run the frontend "
3958 "in a window\" are checked."));
3966 gs->
setLabel(MacFloatSettings::tr(
"Frames to skip"));
3970 gs->
setHelpText(MacFloatSettings::tr(
"Video in the floating window will "
3971 "skip this many frames for each "
3972 "frame drawn. Set to 0 to show "
3981 gs->
setLabel(MacFloatSettings::tr(
"Opacity"));
3985 gs->
setHelpText(MacFloatSettings::tr(
"The opacity of the floating window. "
3986 "Set to 100 for completely opaque, "
3987 "set to 0 for completely "
3996 gc->
setLabel(MacDockSettings::tr(
"Video in the dock"));
4000 gc->
setHelpText(MacDockSettings::tr(
"If enabled, video will be displayed "
4001 "in the application's dock icon. Only "
4002 "valid when \"Use GUI size for TV "
4003 "playback\" and \"Run the frontend in "
4004 "a window\" are checked."));
4012 gs->
setLabel(MacDockSettings::tr(
"Frames to skip"));
4016 gs->
setHelpText(MacDockSettings::tr(
"Video in the dock icon will skip this "
4017 "many frames for each frame drawn. Set "
4018 "to 0 to show every frame."));
4026 gc->
setLabel(MacDesktopSettings::tr(
"Video on the desktop"));
4030 gc->
setHelpText(MacDesktopSettings::tr(
"If enabled, video will be "
4031 "displayed on the desktop, "
4032 "behind the Finder icons. "
4033 "Only valid when \"Use GUI "
4034 "size for TV playback\" and "
4035 "\"Run the frontend in a "
4036 "window\" are checked."));
4044 gs->
setLabel(MacDesktopSettings::tr(
"Frames to skip"));
4048 gs->
setHelpText(MacDesktopSettings::tr(
"Video on the desktop will skip "
4049 "this many frames for each frame "
4050 "drawn. Set to 0 to show every "
4075 setLabel(MainGeneralSettings::tr(
"Shutdown/Reboot Settings"));
4079 #ifndef Q_OS_ANDROID
4163 pin->setLabel(tr(
"Settings Access"));
4168 general->setLabel(tr(
"General"));
4173 if (sh->hasPrefixes()) {
4178 general->addChild(SortCaseSensitive());
4181 general->addChild(stripPrefixes);
4192 remotecontrol->setLabel(tr(
"Remote Control"));
4199 remotecontrol->addChild(cec);
4200 m_cecPowerOnTVAllowed = CECPowerOnTVAllowed();
4201 m_cecPowerOffTVAllowed = CECPowerOffTVAllowed();
4202 m_cecPowerOnTVOnStart = CECPowerOnTVOnStart();
4203 m_cecPowerOffTVOnExit = CECPowerOffTVOnExit();
4209 this, &MainGeneralSettings::cecChanged);
4211 this, &MainGeneralSettings::cecChanged);
4212 #endif // USING_LIBCEC
4215 #ifdef USING_AIRPLAY
4217 airplay->setLabel(tr(
"AirPlay Settings"));
4218 airplay->addChild(AirPlayEnabled());
4219 airplay->addChild(AirPlayFullScreen());
4220 airplay->addChild(AirPlayAudioOnly());
4221 airplay->addChild(AirPlayPasswordSettings());
4229 void MainGeneralSettings::cecChanged(
bool )
4231 if (m_cecPowerOnTVAllowed->boolValue())
4232 m_cecPowerOnTVOnStart->setEnabled(
true);
4235 m_cecPowerOnTVOnStart->setEnabled(
false);
4236 m_cecPowerOnTVOnStart->setValue(
false);
4239 if (m_cecPowerOffTVAllowed->boolValue())
4240 m_cecPowerOffTVOnExit->setEnabled(
true);
4243 m_cecPowerOffTVOnExit->setEnabled(
false);
4244 m_cecPowerOffTVOnExit->setValue(
false);
4247 #endif // USING_LIBCEC
4251 QStringList strlist( QString(
"REFRESH_BACKEND") );
4253 LOG(VB_GENERAL, LOG_ERR, QString(
"%1 called").arg(__FUNCTION__));
4276 setLabel(PlaybackSettings::tr(
"Scaling"));
4300 item->
SetText(PlaybackSettings::tr(
"No scaling"),
"value");
4304 item->
SetText(QString(
"%1%x%2%+%3%+%4%")
4337 auto *
menu =
new MythMenu(tr(
"Playback Profile Menu"),
this,
"mainmenu");
4349 menuPopup->SetReturnEvent(
this,
"mainmenu");
4351 if (menuPopup->Create())
4367 config->DecreasePriority();
4384 config->IncreasePriority();
4406 general->setLabel(tr(
"General Playback"));
4427 advanced->setLabel(tr(
"Advanced Playback Settings"));
4448 pbox->setLabel(tr(
"View Recordings"));
4457 pbox2->setLabel(tr(
"Recording Groups"));
4463 pbox->addChild(pbox2);
4472 pbox->addChild(playbackWatchList);
4476 seek->setLabel(tr(
"Seeking"));
4484 comms->setLabel(tr(
"Commercial Skip"));
4495 mac->
setLabel(tr(
"Mac OS X Video Settings"));
4550 general->setLabel(tr(
"General (Basic)"));
4559 autoexp->setLabel(tr(
"General (Auto-Expire)"));
4577 jobs->setLabel(tr(
"General (Jobs)"));
4588 general2->setLabel(tr(
"General (Advanced)"));
4600 changrp->setLabel(tr(
"General (Channel Groups)"));
4621 sched->setLabel(tr(
"Scheduler Options"));
4632 access->setLabel(tr(
"Accessibility Options"));
4661 setLabel(AppearanceSettings::tr(
"GUI dimension"));
4684 item->
SetText(AppearanceSettings::tr(
"Fullscreen"),
"value");
4688 item->
SetText(QString(
"%1x%2+%3+%4")
4704 QCoreApplication::processEvents();
4711 QList screens = QGuiApplication::screens();
4712 for (QScreen *qscreen : qAsConst(screens))
4724 screen->setLabel(tr(
"Theme / Screen Settings"));
4752 #ifdef USING_AIRPLAY
4753 screen->addChild(AirPlayFullScreen());
4759 std::vector<MythDisplayMode> scr = display->
GetVideoModes();
4766 dates->setLabel(tr(
"Localization"));
4787 gc->
setLabel(AppearanceSettings::tr(
"Select from Channel Group"));
4788 gc->addSelection(
"All Channels");
4792 for (
const auto &chgrp : list)
4794 gc->addSelection(chgrp.m_name);
4797 "Select the channel group to select channels from. "
4798 "\"All Channels\" lets you choose from all channels of all video sources. "
4799 "\"Priority\" lets you choose from all channels that have recording priority. "
4800 "The other values let you select a video source to choose channels from."));
4808 const QString &channum,
const QString &name);
4816 const QString &channum,
const QString &channame)
4817 : m_channelId(chanid)
4819 setLabel(QString(
"%1 %2").arg(channum, channame));
4820 setHelpText(ChannelGroupSettings::tr(
"Select/Unselect channels for this channel group"));
4825 : m_groupId(groupId)
4827 setLabel(groupName ==
"Favorites" ? tr(
"Favorites") : groupName);
4844 "INSERT INTO channelgroupnames (name) VALUE (:NEWNAME);";
4853 QString qstr2 =
"SELECT grpid FROM channelgroupnames "
4854 "WHERE name = :NEWNAME;";
4867 QString qstr =
"UPDATE channelgroupnames set name = :NEWNAME "
4868 " WHERE name = :OLDNAME ;";
4888 QList<StandardSetting *>::const_iterator i;
4889 for (i = children->constBegin(); i != children->constEnd(); ++i)
4891 if ((*i)->haveChanged())
4898 if (channel->boolValue())
4920 LOG(VB_GENERAL, LOG_INFO,
4921 QString(
"ChannelGroupSetting::LoadChannelGroup group:%1 groupId:%2")
4922 .arg(group).arg(groupId));
4928 it.second->setVisible(
false);
4945 if (fromGroupId == -1)
4948 "SELECT channel.chanid, channum, name, grpid FROM channel "
4949 "LEFT JOIN channelgroup "
4950 "ON (channel.chanid = channelgroup.chanid AND grpid = :GRPID) "
4951 "WHERE deleted IS NULL "
4953 "ORDER BY channum+0; ");
4959 "SELECT channel.chanid, channum, name, cg2.grpid FROM channel "
4960 "RIGHT JOIN channelgroup AS cg1 "
4961 "ON (channel.chanid = cg1.chanid AND cg1.grpid = :FROMGRPID) "
4962 "LEFT JOIN channelgroup AS cg2 "
4963 "ON (channel.chanid = cg2.chanid AND cg2.grpid = :GRPID) "
4964 "WHERE deleted IS NULL "
4966 "ORDER BY channum+0; ");
4968 query.
bindValue(
":FROMGRPID", fromGroupId);
4972 MythDB::DBError(
"ChannelGroupSetting::LoadChannelGroupChannels", query);
4975 while (query.
next())
4977 auto chanid = query.
value(0).toUInt();
4978 auto channum = query.
value(1).toString();
4979 auto name = query.
value(2).toString();
4980 auto checked = !query.
value(3).isNull();
4981 auto pair = std::make_pair(
m_groupId, chanid);
4987 checkBox = it->second;
5034 query.
prepare(
"DELETE FROM channelgroup WHERE grpid = :GRPID;");
5040 query.
prepare(
"DELETE FROM channelgroupnames WHERE grpid = :GRPID;");
5060 for (
auto it = list.begin(); it < list.end(); ++it)
5062 QString name = (it->m_name ==
"Favorites") ? tr(
"Favorites") : it->m_name;
5077 tr(
"Enter the name of the new channel group"));
5079 if (settingdialog->Create())
5087 delete settingdialog;
5094 button->setLabel(name);