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"));
753 m_parentConfig(parent),
758 const QString rangeHelp(tr(
" Valid formats for the setting are "
759 "[nnnn - nnnn], [> nnnn], [>= nnnn], [< nnnn], "
760 "[<= nnnn]. Also [nnnn] for an exact match. "
761 "You can also use more than 1 expression with & between."));
762 const QString rangeHelpDec(tr(
"Numbers can have up to 3 decimal places."));
765 "to videos with a selected width range. ") + rangeHelp);
768 "to videos with a selected height range. ") + rangeHelp);
779 "to a video format or formats. You can also type in a format "
780 "or several formats separated by space. "
781 "To find the format for a video use ffprobe and look at the "
782 "word after \"Video:\". Also you can get a complete list "
783 "of available formats with ffmpeg -codecs."));
786 "to a range of frame rates. ") + rangeHelp +
" "+rangeHelpDec);
793 for (
const auto & scaler : scalers)
796 QString shaderdesc =
"\t" + tr(
"Prefer OpenGL deinterlacers");
797 QString driverdesc =
"\t" + tr(
"Prefer driver deinterlacers");
798 QString shaderhelp = tr(
"If possible, use GLSL shaders for deinterlacing in "
799 "preference to software deinterlacers. Note: Even if "
800 "disabled, shaders may be used if deinterlacing is "
801 "enabled but software deinterlacers are unavailable.");
802 QString driverhelp = tr(
"If possible, use hardware drivers (e.g. VDPAU, VAAPI) "
803 "for deinterlacing in preference to software and OpenGL "
804 "deinterlacers. Note: Even if disabled, driver deinterlacers "
805 "may be used if deinterlacing is enabled but other "
806 "deinterlacers are unavailable.");
820 tr(
"Set the quality for single rate deinterlacing. Use 'None' to disable. "
821 "Higher quality deinterlacers require more system processing and resources. "
822 "Software deinterlacers are used by default unless OpenGL or driver preferences "
825 tr(
"Set the quality for double rate deinterlacing - which is only used "
826 "if the display can support the required frame rate. Use 'None' to "
827 "disable double rate deinterlacing."));
835 for (
const auto & option : std::as_const(
options))
842 tr(
"Maximum number of CPU cores used for video decoding and filtering.") +
844 tr(
" Multithreaded decoding disabled-only one CPU "
845 "will be used, please recompile with "
846 "--enable-ffmpeg-pthreads to enable.")));
849 tr(
"When unchecked the deblocking loopfilter will be disabled. ") +
"\n" +
850 tr(
"Disabling will significantly reduce the load on the CPU for software decoding of "
851 "H.264 and HEVC material but may significantly reduce video quality."));
854 "The default scaler provides good quality in the majority of situations. "
855 "Higher quality scalers may offer some benefit when scaling very low "
856 "resolution material but may not be as fast."));
901 QString height_value;
905 for (
uint i = 0; i < 2; ++i)
907 QString pcmp =
m_item.
Get(QString(
"pref_cmp%1").arg(i));
910 QStringList clist = pcmp.split(
" ");
912 if (clist.size() < 3)
914 if (!width_value.isEmpty())
916 width_value.append(
"&");
917 height_value.append(
"&");
919 width_value.append(clist[0]+clist[1]);
920 height_value.append(clist[0]+clist[2]);
926 if (!width_value.isEmpty())
927 width_value.append(
"&");
928 width_value.append(
tmp);
933 if (!height_value.isEmpty())
934 height_value.append(
"&");
935 height_value.append(
tmp);
941 if (codecs.isEmpty())
953 if (upscale.isEmpty())
960 QStringList::const_iterator itr = decr.cbegin();
961 QStringList::const_iterator itn = decn.cbegin();
964 for (; (itr != decr.cend()) && (itn != decn.cend()); ++itr, ++itn)
967 found |= (*itr == pdecoder);
969 if (!found && !pdecoder.isEmpty())
973 if (!pmax_cpus.isEmpty())
979 if (!prenderer.isEmpty())
1013 ShowOkPopup(tr(
"Invalid width specification(%1), discarded").arg(val));
1027 ShowOkPopup(tr(
"Invalid height specification(%1), discarded").arg(val));
1041 ShowOkPopup(tr(
"Invalid frame rate specification(%1), discarded").arg(val));
1053 for (
const auto & rend : std::as_const(renderers))
1054 prenderer = (rend == vrenderer) ? vrenderer : prenderer;
1055 if (prenderer.isEmpty())
1059 for (
const auto & rend : std::as_const(renderers))
1061 if ((!rend.contains(
"null")))
1063 rend, (rend == prenderer));
1104 bool enabled =
true;
1135 QString quality = Deint->
getValue();
1137 values.append(quality);
1147 return values.join(
":");
1152 QStringList actions;
1157 if (std::any_of(actions.cbegin(), actions.cend(),
1158 [](
const QString &
action) { return action ==
"DELETE"; } ))
1169 QString message = tr(
"Remove this profile item?");
1173 if (confirmDelete->Create())
1181 delete confirmDelete;
1203 m_profileName(std::move(profilename))
1214 QStringList restrict;
1216 if (!width.isEmpty())
1217 restrict << tr(
"Width",
"video formats") +
" " + width;
1219 if (!height.isEmpty())
1220 restrict << tr(
"Height",
"video formats") +
" " + height;
1222 if (!codecsval.isEmpty())
1223 restrict << tr(
"Formats",
"video formats") +
" " + codecsval.toUpper();
1225 if (!framerateval.isEmpty())
1226 restrict << tr(
"framerate") +
" " + framerateval;
1229 if (!restrict.isEmpty())
1230 str += restrict.join(
" ") +
" -> ";
1232 str +=
" " + tr(
"&",
"and") +
' ';
1249 for (
size_t i = 0; i <
m_items.size(); ++i)
1258 m_items[i].Set(
"pref_priority", QString::number(i + 1));
1282 LOG(VB_GENERAL, LOG_ERR,
1283 "PlaybackProfileConfig::Save() -- failed to delete items");
1290 LOG(VB_GENERAL, LOG_ERR,
1291 "PlaybackProfileConfig::Save() -- failed to save items");
1340 QString pri_i = QString::number(
m_items[indexA].GetPriority());
1341 QString pri_j = QString::number(
m_items[indexB].GetPriority());
1347 m_items[indexA].Set(
"pref_priority", pri_i);
1348 m_items[indexB].Set(
"pref_priority", pri_j);
1356 grouptrigger->setLabel(
1357 QCoreApplication::translate(
"PlaybackProfileConfigs",
1358 "Current Video Playback Profile"));
1365 if (!profiles.contains(
profile))
1367 profile = (profiles.contains(
"Normal")) ?
"Normal" : profiles[0];
1371 for (
const auto & prof : std::as_const(profiles))
1374 grouptrigger->addTargetedChild(prof,
1378 return grouptrigger;
1383 QString msg = tr(
"Enter Playback Profile Name");
1390 if (settingdialog->Create())
1398 delete settingdialog;
1407 if (not_ok_list.contains(name) || name.isEmpty())
1409 QString msg = (name.isEmpty()) ?
1410 tr(
"Sorry, playback group\nname cannot be blank.") :
1411 tr(
"Sorry, playback group name\n"
1412 "'%1' is already being used.").arg(name);
1428 std::array<QString,4> str
1430 PlaybackSettings::tr(
"Sort all sub-titles/multi-titles Ascending"),
1431 PlaybackSettings::tr(
"Sort all sub-titles/multi-titles Descending"),
1432 PlaybackSettings::tr(
"Sort sub-titles Descending, multi-titles "
1434 PlaybackSettings::tr(
"Sort sub-titles Ascending, multi-titles Descending"),
1437 QString
help = PlaybackSettings::tr(
"Selects how to sort show episodes. "
1438 "Sub-titles refers to the episodes "
1439 "listed under a specific show title. "
1440 "Multi-title refers to sections (e.g. "
1441 "\"All Programs\") which list multiple "
1442 "titles. Sections in parentheses are "
1447 gc->setLabel(PlaybackSettings::tr(
"Episode sort orderings"));
1449 for (
size_t i = 0; i < str.size(); ++i)
1450 gc->addSelection(str[i], QString::number(i));
1453 gc->setHelpText(
help);
1462 gc->setLabel(PlaybackSettings::tr(
"Sort episodes"));
1464 gc->addSelection(PlaybackSettings::tr(
"Record date"),
"Date");
1465 gc->addSelection(PlaybackSettings::tr(
"Season/Episode"),
"Season");
1466 gc->addSelection(PlaybackSettings::tr(
"Original air date"),
"OrigAirDate");
1467 gc->addSelection(PlaybackSettings::tr(
"Program ID"),
"Id");
1469 gc->setHelpText(PlaybackSettings::tr(
"Selects how to sort a show's "
1479 gs->setLabel(PlaybackSettings::tr(
"Fast forward/rewind reposition amount"));
1483 gs->setHelpText(PlaybackSettings::tr(
"When exiting sticky keys fast "
1484 "forward/rewind mode, reposition "
1485 "this many 1/100th seconds before "
1486 "resuming normal playback. This "
1487 "compensates for the reaction time "
1488 "between seeing where to resume "
1489 "playback and actually exiting "
1498 gc->setLabel(PlaybackSettings::tr(
"Reverse direction in fast "
1503 gc->setHelpText(PlaybackSettings::tr(
"If enabled, pressing the sticky "
1504 "rewind key in fast forward mode "
1505 "switches to rewind mode, and "
1506 "vice versa. If disabled, it will "
1507 "decrease the current speed or "
1508 "switch to play mode if the speed "
1509 "can't be decreased further."));
1527 paint->setLabel(AppearanceSettings::tr(
"Paint engine"));
1528 for (
const auto & option :
options)
1529 paint->addSelection(option, option, option == pref);
1531 paint->setHelpText(AppearanceSettings::tr(
"This selects what MythTV uses to draw. "));
1539 gc->setLabel(AppearanceSettings::tr(
"Menu theme"));
1543 QList<ThemeInfo>::iterator it;
1544 for( it = themelist.begin(); it != themelist.end(); ++it )
1546 gc->addSelection((*it).GetName(), (*it).GetDirectoryName(),
1547 (*it).GetDirectoryName() ==
"defaultmenu");
1557 QString fmt = beVBI.toLower().left(4);
1558 int sel = (fmt ==
"pal ") ? 1 : ((fmt ==
"ntsc") ? 2 : 0);
1562 gc->
setLabel(OSDSettings::tr(
"Decode VBI format"));
1566 gc->
addSelection(OSDSettings::tr(
"PAL teletext"),
"pal_txt",
1568 gc->
addSelection(OSDSettings::tr(
"NTSC closed caption"),
"ntsc_cc",
1572 OSDSettings::tr(
"If enabled, this overrides the mythtv-setup setting "
1573 "used during recording when decoding captions."));
1581 static const QRegularExpression crlf {
"[\r\n]" };
1582 static const QRegularExpression suffix {
"(//.*)" };
1586 gc->
setLabel(OSDSettings::tr(
"Subtitle Codec"));
1590 QScopedPointer<MythSystem>
1594 QString
results = cmd->GetStandardOutputStream()->readAll();
1595 QStringList list =
results.toLower().split(crlf, Qt::SkipEmptyParts);
1596 list.replaceInStrings(suffix,
"");
1599 for (
const auto & codec : std::as_const(list))
1601 QString val = QString(codec);
1612 gc->
setLabel(GeneralSettings::tr(
"Channel ordering"));
1614 gc->
addSelection(GeneralSettings::tr(
"channel number"),
"channum");
1615 gc->
addSelection(GeneralSettings::tr(
"callsign"),
"callsign");
1624 gs->setLabel(PlaybackSettings::tr(
"Vertical scaling"));
1628 gs->setHelpText(PlaybackSettings::tr(
"Adjust this if the image does not "
1629 "fill your screen vertically. Range "
1638 gs->setLabel(PlaybackSettings::tr(
"Horizontal scaling"));
1642 gs->setHelpText(PlaybackSettings::tr(
"Adjust this if the image does not "
1643 "fill your screen horizontally. Range "
1652 gs->setLabel(PlaybackSettings::tr(
"Scan displacement (X)"));
1656 gs->setHelpText(PlaybackSettings::tr(
"Adjust this to move the image "
1666 gs->setLabel(PlaybackSettings::tr(
"Scan displacement (Y)"));
1670 gs->setHelpText(PlaybackSettings::tr(
"Adjust this to move the image "
1680 gc->
setLabel(OSDSettings::tr(
"Always display closed captioning or "
1685 gc->
setHelpText(OSDSettings::tr(
"If enabled, captions will be displayed "
1686 "when playing back recordings or watching "
1687 "Live TV. Closed Captioning can be turned "
1688 "on or off by pressing \"T\" during"
1697 gc->
setLabel(OSDSettings::tr(
"Enable interactive TV"));
1701 gc->
setHelpText(OSDSettings::tr(
"If enabled, interactive TV applications "
1702 "(MHEG) will be activated. This is used "
1703 "for teletext and logos for radio and "
1704 "channels that are currently off-air."));
1711 gc->
setLabel(OSDSettings::tr(
"Enable network access for interactive TV"));
1713 gc->
setHelpText(OSDSettings::tr(
"If enabled, interactive TV applications "
1714 "(MHEG) will be able to access interactive "
1715 "content over the Internet. This is used "
1716 "for BBC iPlayer."));
1723 combo->setLabel(OSDSettings::tr(
"Visualiser for audio only playback"));
1724 combo->setHelpText(OSDSettings::tr(
"Select a visualisation to use when there "
1725 "is no video. Defaults to none."));
1726 combo->addSelection(
"None",
"");
1728 for (
const auto & visual : std::as_const(visuals))
1729 combo->addSelection(visual, visual);
1737 gc->
setLabel(OSDSettings::tr(
"Always use browse mode in Live TV"));
1741 gc->
setHelpText(OSDSettings::tr(
"If enabled, browse mode will "
1742 "automatically be activated whenever "
1743 "you use channel up/down while watching "
1752 gc->
setLabel(OSDSettings::tr(
"Browse all channels"));
1756 gc->
setHelpText(OSDSettings::tr(
"If enabled, browse mode will show "
1757 "channels on all available recording "
1758 "devices, instead of showing channels "
1759 "on just the current recorder."));
1767 gc->
setLabel(PlaybackSettings::tr(
"Playback from start of program"));
1771 gc->
setHelpText(PlaybackSettings::tr(
"If enabled and no bookmark is set, "
1772 "playback starts at the program "
1773 "scheduled start time rather than "
1774 "the beginning of the recording. "
1775 "Useful for automatically skipping "
1776 "'start early' parts of a recording."));
1784 gc->
setLabel(PlaybackSettings::tr(
"Action on playback exit"));
1786 gc->
addSelection(PlaybackSettings::tr(
"Just exit"),
"0");
1787 gc->
addSelection(PlaybackSettings::tr(
"Clear last played position and exit"),
"16");
1788 gc->
addSelection(PlaybackSettings::tr(
"Always prompt (excluding Live TV)"),
1790 gc->
addSelection(PlaybackSettings::tr(
"Always prompt (including Live TV)"),
1792 gc->
addSelection(PlaybackSettings::tr(
"Prompt for Live TV only"),
"8");
1794 gc->
setHelpText(PlaybackSettings::tr(
"If set to prompt, a menu will be "
1795 "displayed when you exit playback "
1796 "mode. The options available will "
1797 "allow you delete the recording, "
1798 "continue watching, or exit."));
1806 gc->
setLabel(PlaybackSettings::tr(
"Prompt at end of recording"));
1810 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, a menu will be displayed "
1811 "allowing you to delete the recording "
1812 "when it has finished playing."));
1820 gc->
setLabel(PlaybackSettings::tr(
"Enable Music Choice"));
1824 gc->
setHelpText(PlaybackSettings::tr(
"Enable this to improve playing of Music Choice channels "
1825 "or recordings from those channels. "
1826 "These are audio channels with slide show "
1827 "from some cable providers. "
1828 "In unusual situations this could cause lip sync problems "
1829 "watching normal videos or TV shows."));
1837 gc->
setLabel(PlaybackSettings::tr(
"Jump to program OSD"));
1841 gc->
setHelpText(PlaybackSettings::tr(
"Set the choice between viewing the "
1842 "current recording group in the OSD, "
1843 "or showing the 'Watch Recording' "
1844 "screen when 'Jump to Program' is "
1845 "activated. If enabled, the "
1846 "recordings are shown in the OSD"));
1854 gc->
setLabel(PlaybackSettings::tr(
"Continue playback when embedded"));
1858 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, TV playback continues "
1859 "when the TV window is embedded in "
1860 "the upcoming program list or "
1861 "recorded list. The default is to "
1862 "pause the recorded show when "
1871 gc->
setLabel(PlaybackSettings::tr(
"Automatically mark a recording as "
1876 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, when you exit near the "
1877 "end of a recording it will be marked "
1878 "as watched. The automatic detection "
1879 "is not foolproof, so do not enable "
1880 "this setting if you don't want an "
1881 "unwatched recording marked as "
1890 gc->
setLabel(PlaybackSettings::tr(
"Always show watched percent progress bar"));
1894 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, shows the watched percent "
1895 "progress bar even if the recording or "
1896 "video is marked as watched. "
1897 "Having a watched percent progress bar at "
1898 "all depends on the currently used theme."));
1906 gs->setLabel(PlaybackSettings::tr(
"Live TV idle timeout (mins)"));
1910 gs->setHelpText(PlaybackSettings::tr(
"Exit Live TV automatically if left "
1911 "idle for the specified number of "
1912 "minutes. 0 disables the timeout."));
1953 gc->
setLabel(MainGeneralSettings::tr(
"Use line edit virtual keyboards"));
1957 gc->
setHelpText(MainGeneralSettings::tr(
"If enabled, you can use a virtual "
1958 "keyboard in MythTV's line edit "
1959 "boxes. To use, hit SELECT (Enter "
1960 "or Space) while a line edit is in "
1969 gs->setLabel(MainGeneralSettings::tr(
"Idle time before entering standby "
1974 gs->setHelpText(MainGeneralSettings::tr(
"Number of minutes to wait when "
1975 "the frontend is idle before "
1976 "entering standby mode. Standby "
1977 "mode allows the backend to power "
1978 "down if configured to do so. Any "
1979 "remote or mouse input will cause "
1980 "the countdown to start again "
1981 "and/or exit idle mode. Video "
1982 "playback suspends the countdown. "
1983 "A value of zero prevents the "
1984 "frontend automatically entering "
1992 checkbox->setValue(
true);
1993 checkbox->setLabel(MainGeneralSettings::tr(
"Confirm before suspending/shutting down"));
1994 checkbox->setHelpText(MainGeneralSettings::tr(
1995 "If enabled (the default) then the user will always be asked to confirm before the system "
1996 "is shutdown, suspended or rebooted."));
2004 gc->
setLabel(MainGeneralSettings::tr(
"Customize exit menu options"));
2006 gc->
addSelection(MainGeneralSettings::tr(
"Default"),
"0");
2007 gc->
addSelection(MainGeneralSettings::tr(
"Show quit"),
"1");
2008 gc->
addSelection(MainGeneralSettings::tr(
"Show quit and suspend"),
"9");
2009 gc->
addSelection(MainGeneralSettings::tr(
"Show quit and shutdown"),
"2");
2010 gc->
addSelection(MainGeneralSettings::tr(
"Show quit, reboot and shutdown"),
"3");
2011 gc->
addSelection(MainGeneralSettings::tr(
"Show quit, reboot, shutdown and suspend"),
"10");
2012 gc->
addSelection(MainGeneralSettings::tr(
"Show shutdown"),
"4");
2013 gc->
addSelection(MainGeneralSettings::tr(
"Show reboot"),
"5");
2014 gc->
addSelection(MainGeneralSettings::tr(
"Show reboot and shutdown"),
"6");
2015 gc->
addSelection(MainGeneralSettings::tr(
"Show standby"),
"7");
2016 gc->
addSelection(MainGeneralSettings::tr(
"Show suspend"),
"8");
2018 QString helptext = MainGeneralSettings::tr(
"By default, only remote frontends are shown "
2019 "the shutdown option on the exit menu. Here "
2020 "you can force specific shutdown, reboot and suspend "
2021 "options to be displayed.");
2025 if (!supported.isEmpty())
2027 helptext.prepend(MainGeneralSettings::tr(
2028 "This system supports '%1' without additional setup. ")
2029 .arg(supported.join(
", ")));
2033 helptext.append(MainGeneralSettings::tr(
2034 " This system appears to have no power options available. Try "
2035 "setting the Halt/Reboot/Suspend commands below."));
2043 #ifndef Q_OS_ANDROID
2047 ge->setLabel(MainGeneralSettings::tr(
"Reboot command"));
2049 QString
help = MainGeneralSettings::tr(
2050 "Optional. Script to run if you select the reboot option from the "
2051 "exit menu, if the option is displayed. You must configure an "
2052 "exit key to display the exit menu.");
2055 help.append(MainGeneralSettings::tr(
2056 " Note: This system appears to support reboot without using this setting."));
2058 ge->setHelpText(
help);
2065 suspend->setLabel(MainGeneralSettings::tr(
"Suspend command"));
2066 suspend->setValue(
"");
2067 QString
help = MainGeneralSettings::tr(
2068 "Optional: Script to run if you select the suspend option from the "
2069 "exit menu, if the option is displayed.");
2073 help.append(MainGeneralSettings::tr(
2074 " Note: This system appears to support suspend without using this setting."));
2076 suspend->setHelpText(
help);
2083 ge->setLabel(MainGeneralSettings::tr(
"Halt command"));
2085 QString
help = MainGeneralSettings::tr(
"Optional. Script to run if you "
2086 "select the shutdown option from "
2087 "the exit menu, if the option is "
2088 "displayed. You must configure an "
2089 "exit key to display the exit "
2093 help.append(MainGeneralSettings::tr(
2094 " Note: This system appears to support shutdown without using this setting."));
2097 ge->setHelpText(
help);
2106 ge->setLabel(MainGeneralSettings::tr(
"LIRC daemon socket"));
2109 QString lirc_socket =
"/dev/lircd";
2112 lirc_socket =
"/var/run/lirc/lircd";
2114 ge->setValue(lirc_socket);
2116 QString
help = MainGeneralSettings::tr(
"UNIX socket or IP address[:port] "
2117 "to connect in order to communicate "
2118 "with the LIRC Daemon.");
2119 ge->setHelpText(
help);
2128 ge->setLabel(MainGeneralSettings::tr(
"CEC Device"));
2130 ge->setValue(
"/dev/cec0");
2132 QString
help = MainGeneralSettings::tr(
"CEC Device. Default is /dev/cec0 "
2133 "if you have only 1 HDMI output "
2135 ge->setHelpText(
help);
2145 ge->setLabel(MainGeneralSettings::tr(
"Screen shot path"));
2147 ge->setValue(
"/tmp/");
2149 ge->setHelpText(MainGeneralSettings::tr(
"Path to screenshot storage "
2150 "location. Should be writable "
2151 "by the frontend"));
2160 ge->setLabel(MainGeneralSettings::tr(
"Setup PIN code"));
2162 ge->setHelpText(MainGeneralSettings::tr(
"This PIN is used to control "
2163 "access to the setup menus. "
2164 "If you want to use this feature, "
2165 "then setting the value to all "
2166 "numbers will make your life much "
2167 "easier. Set it to blank to "
2168 "disable. If enabled, you will not "
2169 "be able to return to this screen "
2170 "and reset the Setup PIN without "
2171 "first entering the current PIN."));
2178 gc->
setLabel(AppearanceSettings::tr(
"Display on screen"));
2180 gc->
setHelpText(AppearanceSettings::tr(
"Run on the specified screen or "
2181 "spanning all screens."));
2190 gc->
setLabel(AppearanceSettings::tr(
"Screen aspect ratio"));
2191 gc->
addSelection(AppearanceSettings::tr(
"Auto (Assume square pixels)"),
"-1.0");
2192 gc->
addSelection(AppearanceSettings::tr(
"Auto (Detect from display)"),
"0.0");
2201 gc->
addSelection(AppearanceSettings::tr(
"16:18 (16:9 Above and below)"),
"0.8888");
2202 gc->
addSelection(AppearanceSettings::tr(
"32:10 (16:10 Side by side)"),
"3.2");
2203 gc->
addSelection(AppearanceSettings::tr(
"16:20 (16:10 Above and below)"),
"0.8");
2205 "This setting applies to video playback only, not to the GUI. "
2206 "Most modern displays have square pixels and the aspect ratio of the screen can be "
2207 "computed from the resolution (default). "
2208 "The aspect ratio can also be automatically detected from the connected display "
2209 "- though this may be slightly less accurate. If automatic detection fails, the correct "
2210 "aspect ratio can be specified here. Note: Some values (e.g 32:10) are "
2211 "primarily intended for multiscreen setups."));
2219 gc->
setLabel(PlaybackSettings::tr(
"Letterboxing color"));
2224 gc->
setHelpText(PlaybackSettings::tr(
"By default MythTV uses black "
2225 "letterboxing to match broadcaster "
2226 "letterboxing, but those with plasma "
2227 "screens may prefer gray to minimize "
2236 cb->
setLabel(PlaybackSettings::tr(
"Discard 3D stereoscopic fields"));
2238 "If 'Side by Side' or 'Top and Bottom' 3D material is detected, "
2239 "enabling this setting will discard one field (enabled by default)."));
2247 gc->
setLabel(PlaybackSettings::tr(
"Video aspect override"));
2252 gc->
setHelpText(PlaybackSettings::tr(
"When enabled, these will override "
2253 "the aspect ratio specified by any "
2254 "broadcaster for all video streams."));
2262 gc->
setLabel(PlaybackSettings::tr(
"Zoom"));
2271 gc->
setHelpText(PlaybackSettings::tr(
"When enabled, these will apply a "
2272 "predefined zoom to all video "
2273 "playback in MythTV."));
2283 gs->setLabel(AppearanceSettings::tr(
"GUI width (pixels)"));
2287 gs->setHelpText(AppearanceSettings::tr(
"The width of the GUI. Do not make "
2288 "the GUI wider than your actual "
2289 "screen resolution. Set to 0 to "
2290 "automatically scale to "
2299 gs->setLabel(AppearanceSettings::tr(
"GUI height (pixels)"));
2303 gs->setHelpText(AppearanceSettings::tr(
"The height of the GUI. Do not make "
2304 "the GUI taller than your actual "
2305 "screen resolution. Set to 0 to "
2306 "automatically scale to "
2315 gs->setLabel(AppearanceSettings::tr(
"GUI X offset"));
2319 gs->setHelpText(AppearanceSettings::tr(
"The horizontal offset where the "
2320 "GUI will be displayed. May only "
2321 "work if run in a window."));
2329 gs->setLabel(AppearanceSettings::tr(
"GUI Y offset"));
2333 gs->setHelpText(AppearanceSettings::tr(
"The vertical offset where the "
2334 "GUI will be displayed."));
2342 gc->
setLabel(AppearanceSettings::tr(
"Use GUI size for TV playback"));
2346 gc->
setHelpText(AppearanceSettings::tr(
"If enabled, use the above size for "
2347 "TV, otherwise use full screen."));
2355 gc->
setLabel(AppearanceSettings::tr(
"Force Full Screen for GUI and TV playback"));
2360 "Use Full Screen for GUI and TV playback independent of the settings for "
2361 "the GUI dimensions. This does not change the values of the GUI dimensions "
2362 "so it is easy to switch from window mode to full screen and back."));
2370 gc->
setLabel(VideoModeSettings::tr(
"Separate video modes for GUI and "
2376 "Switch video modes for playback depending on the source "
2377 "resolution and frame rate."));
2386 gs->setLabel(VideoModeSettings::tr(
"In X",
"Video mode width"));
2390 gs->setHelpText(VideoModeSettings::tr(
"Horizontal resolution of video "
2391 "which needs a special output "
2401 gs->setLabel(VideoModeSettings::tr(
"In Y",
"Video mode height"));
2405 gs->setHelpText(VideoModeSettings::tr(
"Vertical resolution of video "
2406 "which needs a special output "
2415 gc->
setLabel(VideoModeSettings::tr(
"GUI"));
2417 gc->
setHelpText(VideoModeSettings::tr(
"Resolution of screen when not "
2418 "watching a video."));
2421 std::vector<MythDisplayMode> scr = display->
GetVideoModes();
2422 for (
auto & vmode : scr)
2424 int w = vmode.Width();
2425 int h = vmode.Height();
2426 QString sel = QString(
"%1x%2").arg(w).arg(h);
2436 if ((w <= 0) || (h <= 0))
2445 gc->
setValue((i >= 0) ? i : scr.size() - 1);
2453 QString dhelp = VideoModeSettings::tr(
"Default screen resolution "
2454 "when watching a video.");
2455 QString ohelp = VideoModeSettings::tr(
"Screen resolution when watching a "
2456 "video at a specific resolution.");
2458 QString qstr = (idx<0) ?
"TVVidModeResolution" :
2459 QString(
"TVVidModeResolution%1").arg(idx);
2461 QString lstr = (idx<0) ? VideoModeSettings::tr(
"Video output") :
2462 VideoModeSettings::tr(
"Output");
2463 QString hstr = (idx<0) ? dhelp : ohelp;
2470 std::vector<MythDisplayMode> scr = display->
GetVideoModes();
2471 for (
auto & vmode : scr)
2473 QString sel = QString(
"%1x%2").arg(vmode.Width()).arg(vmode.Height());
2482 const QString previousValue =
getValue();
2486 QString resolution = setting->
getValue();
2491 for (
size_t i = 0; i < list.size(); ++i)
2493 QString sel = QString::number((
double) list[i],
'f', 3);
2495 hz50 = (fabs(50.0 - list[i]) < 0.01) ? i : hz50;
2496 hz60 = (fabs(60.0 - list[i]) < 0.01) ? i : hz60;
2502 if (wasUnchanged && previousValue ==
getValue())
2506 if (
"640x480" == resolution ||
"720x480" == resolution)
2508 if (
"640x576" == resolution ||
"720x576" == resolution)
2517 QStringList slist = res.split(
"x");
2522 if (2 == slist.size())
2524 width = slist[0].toInt(&ok0);
2525 height = slist[1].toInt(&ok1);
2528 std::vector<double> result;
2531 QSize
size(width, height);
2540 QString dhelp = VideoModeSettings::tr(
"Default refresh rate when watching "
2541 "a video. Leave at \"Auto\" to "
2542 "automatically use the best "
2544 QString ohelp = VideoModeSettings::tr(
"Refresh rate when watching a "
2545 "video at a specific resolution. "
2546 "Leave at \"Auto\" to automatically "
2547 "use the best available");
2549 QString qstr = (idx<0) ?
"TVVidModeRefreshRate" :
2550 QString(
"TVVidModeRefreshRate%1").arg(idx);
2552 QString lstr = VideoModeSettings::tr(
"Rate");
2553 QString hstr = (idx<0) ? dhelp : ohelp;
2563 QString dhelp = VideoModeSettings::tr(
"Aspect ratio when watching a "
2564 "video. Leave at \"%1\" to "
2565 "use ratio reported by the monitor. "
2566 "Set to 16:9 or 4:3 to force a "
2567 "specific aspect ratio.");
2571 QString ohelp = VideoModeSettings::tr(
"Aspect ratio when watching a "
2572 "video at a specific resolution. "
2573 "Leave at \"%1\" to use ratio "
2574 "reported by the monitor. Set to "
2575 "16:9 or 4:3 to force a specific "
2578 QString qstr = (idx<0) ?
"TVVidModeForceAspect" :
2579 QString(
"TVVidModeForceAspect%1").arg(idx);
2583 gc->
setLabel(VideoModeSettings::tr(
"Aspect"));
2585 QString hstr = (idx<0) ? dhelp : ohelp;
2587 gc->
setHelpText(hstr.arg(VideoModeSettings::tr(
"Default")));
2589 gc->
addSelection(VideoModeSettings::tr(
"Default"),
"0.0");
2605 pause->setLabel(VideoModeSettings::tr(
"Pause while switching video modes (ms)"));
2606 pause->setHelpText(VideoModeSettings::tr(
2607 "For most displays, switching video modes takes time and content can be missed. "
2608 "If non-zero, this setting will pause playback while the video mode is changed. "
2609 "The required pause length (in ms) will be dependant on the display's characteristics."));
2630 overrides->setLabel(tr(
"Overrides for specific video sizes"));
2632 for (
int idx = 0; idx < 3; ++idx)
2653 gc->
setLabel(AppearanceSettings::tr(
"Hide mouse cursor in MythTV"));
2657 gc->
setHelpText(AppearanceSettings::tr(
"Toggles mouse cursor visibility "
2658 "for touchscreens. By default "
2659 "MythTV will auto-hide the cursor "
2660 "if the mouse doesn't move for a "
2661 "period, this setting disables the "
2662 "cursor entirely."));
2671 gc->
setLabel(AppearanceSettings::tr(
"Use window border"));
2675 gc->
setHelpText(AppearanceSettings::tr(
"Toggles between windowed and "
2676 "borderless operation."));
2684 gc->
setLabel(AppearanceSettings::tr(
"Always On Top"));
2688 gc->
setHelpText(AppearanceSettings::tr(
"If enabled, MythTV will always be "
2697 gc->
setLabel(AppearanceSettings::tr(
"Smooth Transitions"));
2701 gc->
setHelpText(AppearanceSettings::tr(
"Enable smooth transitions with fade-in and fade-out of menu pages and enable GUI animations. "
2702 "Disabling this can make the GUI respond faster especially on low-powered machines."));
2709 "Never show startup screen");
2711 gs->setLabel(AppearanceSettings::tr(
"Startup Screen Delay"));
2715 gs->setHelpText(AppearanceSettings::tr(
2716 "The Startup Screen will show the progress of starting the frontend "
2717 "if frontend startup takes longer than this number of seconds."));
2726 gs->setLabel(AppearanceSettings::tr(
"GUI text zoom percentage"));
2730 gs->setHelpText(AppearanceSettings::tr
2731 (
"Adjust the themed defined font size by this percentage. "
2732 "mythfrontend needs restart for this to take effect."));
2740 gc->
setLabel(AppearanceSettings::tr(
"Date format"));
2743 QString sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2746 if (sampdate.month() == sampdate.day())
2748 sampdate = sampdate.addDays(1);
2749 sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2750 "tomorrow's date.");
2755 gc->
addSelection(locale.toString(sampdate,
"ddd MMM d"),
"ddd MMM d");
2756 gc->
addSelection(locale.toString(sampdate,
"ddd d MMM"),
"ddd d MMM");
2757 gc->
addSelection(locale.toString(sampdate,
"ddd MMMM d"),
"ddd MMMM d");
2758 gc->
addSelection(locale.toString(sampdate,
"ddd d MMMM"),
"ddd d MMMM");
2759 gc->
addSelection(locale.toString(sampdate,
"dddd MMM d"),
"dddd MMM d");
2760 gc->
addSelection(locale.toString(sampdate,
"dddd d MMM"),
"dddd d MMM");
2761 gc->
addSelection(locale.toString(sampdate,
"MMM d"),
"MMM d");
2762 gc->
addSelection(locale.toString(sampdate,
"d MMM"),
"d MMM");
2763 gc->
addSelection(locale.toString(sampdate,
"MM/dd"),
"MM/dd");
2764 gc->
addSelection(locale.toString(sampdate,
"dd/MM"),
"dd/MM");
2765 gc->
addSelection(locale.toString(sampdate,
"MM.dd"),
"MM.dd");
2766 gc->
addSelection(locale.toString(sampdate,
"dd.MM"),
"dd.MM");
2767 gc->
addSelection(locale.toString(sampdate,
"M/d/yyyy"),
"M/d/yyyy");
2768 gc->
addSelection(locale.toString(sampdate,
"d/M/yyyy"),
"d/M/yyyy");
2769 gc->
addSelection(locale.toString(sampdate,
"MM.dd.yyyy"),
"MM.dd.yyyy");
2770 gc->
addSelection(locale.toString(sampdate,
"dd.MM.yyyy"),
"dd.MM.yyyy");
2771 gc->
addSelection(locale.toString(sampdate,
"yyyy-MM-dd"),
"yyyy-MM-dd");
2772 gc->
addSelection(locale.toString(sampdate,
"ddd MMM d yyyy"),
"ddd MMM d yyyy");
2773 gc->
addSelection(locale.toString(sampdate,
"ddd d MMM yyyy"),
"ddd d MMM yyyy");
2774 gc->
addSelection(locale.toString(sampdate,
"ddd yyyy-MM-dd"),
"ddd yyyy-MM-dd");
2776 QString cn_long = QString(
"dddd yyyy") + QChar(0x5E74) +
2777 "M" + QChar(0x6708) +
"d"+ QChar(0x65E5);
2778 gc->
addSelection(locale.toString(sampdate, cn_long), cn_long);
2779 QString cn_med = QString(
"dddd ") +
2780 "M" + QChar(0x6708) +
"d"+ QChar(0x65E5);
2782 gc->
addSelection(locale.toString(sampdate, cn_med), cn_med);
2785 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred date format. %1")
2794 gc->
setLabel(AppearanceSettings::tr(
"Short date format"));
2798 QString sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2801 if (sampdate.month() == sampdate.day())
2803 sampdate = sampdate.addDays(1);
2804 sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2805 "tomorrow's date.");
2809 gc->
addSelection(locale.toString(sampdate,
"M/d"),
"M/d");
2810 gc->
addSelection(locale.toString(sampdate,
"d/M"),
"d/M");
2811 gc->
addSelection(locale.toString(sampdate,
"MM/dd"),
"MM/dd");
2812 gc->
addSelection(locale.toString(sampdate,
"dd/MM"),
"dd/MM");
2813 gc->
addSelection(locale.toString(sampdate,
"MM.dd"),
"MM.dd");
2814 gc->
addSelection(locale.toString(sampdate,
"dd.MM."),
"dd.MM.");
2815 gc->
addSelection(locale.toString(sampdate,
"M.d."),
"M.d.");
2816 gc->
addSelection(locale.toString(sampdate,
"d.M."),
"d.M.");
2817 gc->
addSelection(locale.toString(sampdate,
"MM-dd"),
"MM-dd");
2818 gc->
addSelection(locale.toString(sampdate,
"dd-MM"),
"dd-MM");
2819 gc->
addSelection(locale.toString(sampdate,
"MMM d"),
"MMM d");
2820 gc->
addSelection(locale.toString(sampdate,
"d MMM"),
"d MMM");
2821 gc->
addSelection(locale.toString(sampdate,
"ddd d"),
"ddd d");
2822 gc->
addSelection(locale.toString(sampdate,
"d ddd"),
"d ddd");
2823 gc->
addSelection(locale.toString(sampdate,
"ddd M/d"),
"ddd M/d");
2824 gc->
addSelection(locale.toString(sampdate,
"ddd d/M"),
"ddd d/M");
2825 gc->
addSelection(locale.toString(sampdate,
"ddd d.M"),
"ddd d.M");
2826 gc->
addSelection(locale.toString(sampdate,
"ddd dd.MM"),
"ddd dd.MM");
2827 gc->
addSelection(locale.toString(sampdate,
"M/d ddd"),
"M/d ddd");
2828 gc->
addSelection(locale.toString(sampdate,
"d/M ddd"),
"d/M ddd");
2830 QString cn_short1 = QString(
"M") + QChar(0x6708) +
"d" + QChar(0x65E5);
2832 gc->
addSelection(locale.toString(sampdate, cn_short1), cn_short1);
2834 QString cn_short2 = QString(
"ddd M") + QChar(0x6708) +
"d" + QChar(0x65E5);
2836 gc->
addSelection(locale.toString(sampdate, cn_short2), cn_short2);
2839 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred short date format. %1")
2848 gc->
setLabel(AppearanceSettings::tr(
"Time format"));
2850 QTime samptime = QTime::currentTime();
2854 gc->
addSelection(locale.toString(samptime,
"h:mm AP"),
"h:mm AP");
2855 gc->
addSelection(locale.toString(samptime,
"h:mm ap"),
"h:mm ap");
2856 gc->
addSelection(locale.toString(samptime,
"hh:mm AP"),
"hh:mm AP");
2857 gc->
addSelection(locale.toString(samptime,
"hh:mm ap"),
"hh:mm ap");
2858 gc->
addSelection(locale.toString(samptime,
"h:mm"),
"h:mm");
2859 gc->
addSelection(locale.toString(samptime,
"hh:mm"),
"hh:mm");
2860 gc->
addSelection(locale.toString(samptime,
"hh.mm"),
"hh.mm");
2861 gc->
addSelection(locale.toString(samptime,
"AP h:mm"),
"AP h:mm");
2863 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred time format. You "
2864 "must choose a format with \"AM\" "
2865 "or \"PM\" in it, otherwise your "
2866 "time display will be 24-hour or "
2867 "\"military\" time."));
2874 rgb->setLabel(AppearanceSettings::tr(
"Use full range RGB output"));
2875 rgb->setValue(
true);
2876 rgb->setHelpText(AppearanceSettings::tr(
2877 "Enable (recommended) to supply full range RGB output to your display device. "
2878 "Disable to supply limited range RGB output. This setting applies to both the "
2879 "GUI and media playback. Ideally the value of this setting should match a "
2880 "similar setting on your TV or monitor."));
2888 gc->
setLabel(GeneralSettings::tr(
"Channel format"));
2890 gc->
addSelection(GeneralSettings::tr(
"number"),
"<num>");
2891 gc->
addSelection(GeneralSettings::tr(
"number callsign"),
"<num> <sign>");
2892 gc->
addSelection(GeneralSettings::tr(
"number name"),
"<num> <name>");
2893 gc->
addSelection(GeneralSettings::tr(
"callsign"),
"<sign>");
2894 gc->
addSelection(GeneralSettings::tr(
"name"),
"<name>");
2896 gc->
setHelpText(GeneralSettings::tr(
"Your preferred channel format."));
2907 gc->
setLabel(GeneralSettings::tr(
"Long channel format"));
2909 gc->
addSelection(GeneralSettings::tr(
"number"),
"<num>");
2910 gc->
addSelection(GeneralSettings::tr(
"number callsign"),
"<num> <sign>");
2911 gc->
addSelection(GeneralSettings::tr(
"number name"),
"<num> <name>");
2912 gc->
addSelection(GeneralSettings::tr(
"callsign"),
"<sign>");
2913 gc->
addSelection(GeneralSettings::tr(
"name"),
"<name>");
2915 gc->
setHelpText(GeneralSettings::tr(
"Your preferred long channel format."));
2926 gc->
setLabel(ChannelGroupSettings::tr(
"Remember last channel group"));
2928 gc->
setHelpText(ChannelGroupSettings::tr(
"If enabled, the EPG will "
2929 "initially display only the "
2930 "channels from the last channel "
2931 "group selected. Pressing \"4\" "
2932 "will toggle channel group."));
2943 gc->
setLabel(ChannelGroupSettings::tr(
"Default channel group"));
2949 gc->
addSelection(ChannelGroupSettings::tr(
"All Channels"),
"-1");
2951 ChannelGroupList::iterator it;
2953 for (it = changrplist.begin(); it < changrplist.end(); ++it)
2954 gc->
addSelection(it->m_name, QString(
"%1").arg(it->m_grpId));
2956 gc->
setHelpText(ChannelGroupSettings::tr(
"Default channel group to be "
2957 "shown in the EPG. Pressing "
2958 "GUIDE key will toggle channel "
2969 gc->
setLabel(GeneralSettings::tr(
"Browse/change channels from Channel "
2972 gc->
setHelpText(GeneralSettings::tr(
"If enabled, Live TV will browse or "
2973 "change channels from the selected "
2974 "channel group. The \"All Channels\" "
2975 "channel group may be selected to "
2976 "browse all channels."));
2986 gc->
setLabel(GeneralSettings::tr(
"Case-sensitive sorting"));
2988 gc->
setHelpText(GeneralSettings::tr(
"If enabled, all sorting will be "
2989 "case-sensitive. This would mean "
2990 "that \"bee movie\" would sort after "
2991 "\"Sea World\" as lower case letters "
2992 "sort after uppercase letters."));
3001 gc->
setLabel(GeneralSettings::tr(
"Remove prefixes when sorting"));
3004 "If enabled, all sorting will remove the common "
3005 "prefixes (The, A, An) from a string prior to "
3006 "sorting. For example, this would sort the titles "
3007 "\"Earth 2\", \"The Flash\", and \"Kings\" in that "
3008 "order. If disabled, they would sort as \"Earth 2\", "
3009 "\"Kings\", \"The Flash\"."));
3017 gc->
setLabel(MainGeneralSettings::tr(
"Names exempt from prefix removal"));
3020 "This list of names will be exempt from removing "
3021 "the common prefixes (The, A, An) from a title or "
3022 "filename. Enter multiple names separated by "
3031 gc->
setLabel(GeneralSettings::tr(
"Starting channel for Manual Record"));
3032 gc->
addSelection(GeneralSettings::tr(
"Guide Starting Channel"),
"1",
true);
3033 gc->
addSelection(GeneralSettings::tr(
"Last Manual Record Channel"),
"2");
3035 "When entering a new Manual Record Rule, "
3036 "the starting channel will default to this."));
3046 bc->setLabel(GeneralRecPrioritiesSettings::tr(
"Avoid back to back "
3050 GeneralRecPrioritiesSettings::tr(
"Selects the situations where the "
3051 "scheduler will avoid assigning shows "
3052 "to the same card if their end time "
3053 "and start time match. This will be "
3054 "allowed when necessary in order to "
3055 "resolve conflicts."));
3057 bc->addSelection(GeneralRecPrioritiesSettings::tr(
"Never"),
"0");
3058 bc->addSelection(GeneralRecPrioritiesSettings::tr(
"Different Channels"),
3060 bc->addSelection(GeneralRecPrioritiesSettings::tr(
"Always"),
"2");
3071 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Preferred input priority"));
3073 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3074 "a showing matches the "
3075 "preferred input selected "
3076 "in the 'Scheduling "
3077 "Options' section of the "
3078 "recording rule."));
3088 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"HDTV recording priority"));
3090 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3091 "a showing is marked as an "
3092 "HDTV broadcast in the TV "
3104 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Widescreen recording "
3107 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3108 "a showing is marked as "
3109 "widescreen in the TV "
3121 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Sign language recording "
3124 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority "
3125 "when a showing is "
3139 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"In-vision Subtitles "
3140 "Recording Priority"));
3142 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority "
3143 "when a showing is marked "
3144 "as having in-vision "
3156 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Subtitles/CC recording "
3159 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3160 "a showing is marked as "
3161 "having subtitles or "
3162 "closed captioning (CC) "
3174 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Hard of hearing priority"));
3176 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3177 "a showing is marked as "
3178 "having support for "
3179 "viewers with impaired "
3191 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Audio described priority"));
3193 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3194 "a showing is marked as "
3195 "being Audio Described."));
3206 ge->setLabel(EPGSettings::tr(
"Guide starts at channel"));
3210 ge->setHelpText(EPGSettings::tr(
"The program guide starts on this channel "
3211 "if it is run from outside of Live TV "
3212 "mode. Leave blank to enable Live TV "
3213 "automatic start channel."));
3222 gs->setLabel(EPGSettings::tr(
"Record threshold"));
3226 gs->setHelpText(EPGSettings::tr(
"Pressing SELECT on a show that is at "
3227 "least this many minutes into the future "
3228 "will schedule a recording."));
3236 gc->
setLabel(AppearanceSettings::tr(
"Menu Language"));
3239 QStringList langs = langMap.values();
3243 if (langCode.isEmpty())
3248 for (
const auto & label : std::as_const(langs))
3250 QString value = langMap.key(label);
3251 gc->
addSelection(label, value, (value.toLower() == langCode));
3254 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred language for the "
3255 "user interface."));
3263 gc->
setLabel(AppearanceSettings::tr(
"Audio Language"));
3266 QStringList langs = langMap.values();
3270 if (langCode.isEmpty())
3273 langCode = menuLangCode.isEmpty() ?
"en_US" : menuLangCode;
3278 for (
const auto & label : std::as_const(langs))
3280 QString value = langMap.key(label);
3281 gc->
addSelection(label, value, (value.toLower() == langCode));
3284 gc->
setHelpText(AppearanceSettings::tr(
"Preferred language for the "
3292 QString q = QString(
"ISO639Language%1").arg(i);
3295 if ((lang.isEmpty() || lang ==
"aar") &&
3304 for (; it != ite; ++it)
3306 QString desc = (*it);
3307 int idx = desc.indexOf(
";");
3309 desc = desc.left(idx);
3320 gc->
setLabel(AppearanceSettings::tr(
"Guide language #%1").arg(i+1));
3326 gc->
setHelpText(AppearanceSettings::tr(
"Your #%1 preferred language for "
3327 "Program Guide data and captions.")
3336 gc->
setLabel(MainGeneralSettings::tr(
"Enable Network Remote Control "
3339 gc->
setHelpText(MainGeneralSettings::tr(
"This enables support for "
3340 "controlling MythFrontend "
3341 "over the network."));
3352 gs->setLabel(MainGeneralSettings::tr(
"Network Remote Control port"));
3356 gs->setHelpText(MainGeneralSettings::tr(
"This specifies what port the "
3357 "Network Remote Control "
3358 "interface will listen on for "
3359 "new connections."));
3367 ge->setLabel(MainGeneralSettings::tr(
"UDP notify port"));
3369 ge->setValue(
"6948");
3371 ge->setHelpText(MainGeneralSettings::tr(
"MythTV will listen for "
3372 "connections from the "
3373 "\"mythutil\" program on "
3382 gc->
setLabel(MainGeneralSettings::tr(
"Enable CEC Control "
3384 gc->
setHelpText(MainGeneralSettings::tr(
"This enables "
3385 "controlling MythFrontend from a TV remote or powering the TV "
3386 "on and off from a MythTV remote "
3387 "if you have compatible hardware. "
3388 "These settings only take effect after a restart."));
3396 gc->
setLabel(MainGeneralSettings::tr(
"Allow Power On TV"));
3397 gc->
setHelpText(MainGeneralSettings::tr(
"Enables your TV to be powered "
3398 "on from MythTV remote or when MythTV starts "
3399 "if you have compatible hardware."));
3407 gc->
setLabel(MainGeneralSettings::tr(
"Allow Power Off TV"));
3408 gc->
setHelpText(MainGeneralSettings::tr(
"Enables your TV to be powered "
3409 "off from MythTV remote or when MythTV starts "
3410 "if you have compatible hardware."));
3418 gc->
setLabel(MainGeneralSettings::tr(
"Power on TV At Start"));
3420 "on your TV when you start MythTV "
3421 "if you have compatible hardware."));
3429 gc->
setLabel(MainGeneralSettings::tr(
"Power off TV At Exit"));
3431 "off your TV when you exit MythTV "
3432 "if you have compatible hardware."));
3437 #endif //USING_LIBCEC
3439 #ifdef USING_AIRPLAY
3445 gc->
setLabel(MainGeneralSettings::tr(
"Enable AirPlay"));
3447 gc->
setHelpText(MainGeneralSettings::tr(
"AirPlay lets you wirelessly view "
3448 "content on your TV from your "
3449 "iPhone, iPad, iPod Touch, or "
3450 "iTunes on your computer."));
3461 gc->
setLabel(MainGeneralSettings::tr(
"Only support AirTunes (no video)"));
3463 gc->
setHelpText(MainGeneralSettings::tr(
"Only stream audio from your "
3464 "iPhone, iPad, iPod Touch, or "
3465 "iTunes on your computer"));
3476 gc->
setLabel(MainGeneralSettings::tr(
"Require password"));
3480 gc->
setHelpText(MainGeneralSettings::tr(
"Require a password to use "
3481 "AirPlay. Your iPhone, iPad, iPod "
3482 "Touch, or iTunes on your computer "
3483 "will prompt you when required"));
3491 ge->setLabel(MainGeneralSettings::tr(
"Password"));
3493 ge->setValue(
"0000");
3495 ge->setHelpText(MainGeneralSettings::tr(
"Your iPhone, iPad, iPod Touch, or "
3496 "iTunes on your computer will "
3497 "prompt you for this password "
3506 hc->setLabel(MainGeneralSettings::tr(
"AirPlay - Password"));
3507 hc->addChild(AirPlayPasswordEnabled());
3508 hc->addChild(AirPlayPassword());
3517 gc->
setLabel(MainGeneralSettings::tr(
"AirPlay full screen playback"));
3521 gc->
setHelpText(MainGeneralSettings::tr(
"During music playback, displays "
3522 "album cover and various media "
3523 "information in full screen mode"));
3561 gc->
setLabel(PlaybackSettings::tr(
"Enable realtime priority threads"));
3563 gc->
setHelpText(PlaybackSettings::tr(
"When running mythfrontend with root "
3564 "privileges, some threads can be "
3565 "given enhanced priority. Disable "
3566 "this if MythFrontend freezes during "
3567 "video playback."));
3577 ge->setLabel(MainGeneralSettings::tr(
"Ignore devices"));
3581 ge->setHelpText(MainGeneralSettings::tr(
"If there are any devices that you "
3582 "do not want to be monitored, list "
3583 "them here with commas in-between. "
3584 "The plugins will ignore them. "
3585 "Requires restart."));
3593 gc->
setLabel(PlaybackSettings::tr(
"Sort titles"));
3595 gc->
addSelection(PlaybackSettings::tr(
"Alphabetically"),
3597 gc->
addSelection(PlaybackSettings::tr(
"By recording priority"),
3600 gc->
setHelpText(PlaybackSettings::tr(
"Sets the title sorting order when "
3601 "the view is set to Titles only."));
3609 gc->
setLabel(WatchListSettings::tr(
"Include the 'Watch List' group"));
3613 gc->
setHelpText(WatchListSettings::tr(
"The 'Watch List' is an abbreviated "
3614 "list of recordings sorted to "
3615 "highlight series and shows that "
3616 "need attention in order to keep up "
3625 gc->
setLabel(WatchListSettings::tr(
"Start from the Watch List view"));
3629 gc->
setHelpText(WatchListSettings::tr(
"If enabled, the 'Watch List' will "
3630 "be the initial view each time you "
3631 "enter the Watch Recordings screen"));
3639 gc->
setLabel(WatchListSettings::tr(
"Exclude recordings not set for "
3644 gc->
setHelpText(WatchListSettings::tr(
"Set this if you turn off "
3645 "Auto-Expire only for recordings "
3646 "that you've seen and intend to "
3647 "keep. This option will exclude "
3648 "these recordings from the "
3657 gs->setLabel(WatchListSettings::tr(
"Maximum days counted in the score"));
3661 gs->setHelpText(WatchListSettings::tr(
"The 'Watch List' scores are based "
3662 "on 1 point equals one day since "
3663 "recording. This option limits the "
3664 "maximum score due to age and "
3665 "affects other weighting factors."));
3673 gs->setLabel(WatchListSettings::tr(
"Days to exclude weekly episodes after "
3678 gs->setHelpText(WatchListSettings::tr(
"When an episode is deleted or "
3679 "marked as watched, other episodes "
3680 "of the series are excluded from the "
3681 "'Watch List' for this interval of "
3682 "time. Daily shows also have a "
3683 "smaller interval based on this "
3692 gc->
setLabel(MainGeneralSettings::tr(
"Media Monitor"));
3694 gc->
setHelpText(MainGeneralSettings::tr(
"This enables support for "
3695 "monitoring your CD/DVD drives for "
3696 "new disks and launching the "
3697 "proper plugin to handle them. "
3698 "Requires restart."));
3711 gc->
setLabel(LcdSettings::tr(
"Display time"));
3713 gc->
setHelpText(LcdSettings::tr(
"Display current time on idle LCD "
3725 gc->
setLabel(LcdSettings::tr(
"Display recording status"));
3727 gc->
setHelpText(LcdSettings::tr(
"Display current recordings information "
3728 "on LCD display."));
3739 gc->
setLabel(LcdSettings::tr(
"Display menus"));
3741 gc->
setHelpText(LcdSettings::tr(
"Display selected menu on LCD display. "));
3752 gs->setLabel(LcdSettings::tr(
"Menu pop-up time"));
3754 gs->setHelpText(LcdSettings::tr(
"How many seconds the menu will remain "
3755 "visible after navigation."));
3766 gc->
setLabel(LcdSettings::tr(
"Display music artist and title"));
3768 gc->
setHelpText(LcdSettings::tr(
"Display playing artist and song title in "
3769 "MythMusic on LCD display."));
3780 gc->
setLabel(LcdSettings::tr(
"Items"));
3782 gc->
addSelection(LcdSettings::tr(
"Artist - Title"),
"ArtistTitle");
3783 gc->
addSelection(LcdSettings::tr(
"Artist [Album] Title"),
3784 "ArtistAlbumTitle");
3786 gc->
setHelpText(LcdSettings::tr(
"Which items to show when playing music."));
3795 gc->
setLabel(LcdSettings::tr(
"Display channel information"));
3797 gc->
setHelpText(LcdSettings::tr(
"Display tuned channel information on LCD "
3809 gc->
setLabel(LcdSettings::tr(
"Display volume information"));
3811 gc->
setHelpText(LcdSettings::tr(
"Display volume level information "
3812 "on LCD display."));
3823 gc->
setLabel(LcdSettings::tr(
"Display generic information"));
3825 gc->
setHelpText(LcdSettings::tr(
"Display generic information on LCD display."));
3836 gc->
setLabel(LcdSettings::tr(
"Backlight always on"));
3838 gc->
setHelpText(LcdSettings::tr(
"Turn on the backlight permanently on the "
3849 gc->
setLabel(LcdSettings::tr(
"Heartbeat always on"));
3851 gc->
setHelpText(LcdSettings::tr(
"Turn on the LCD heartbeat."));
3862 gc->
setLabel(LcdSettings::tr(
"Display large clock"));
3864 gc->
setHelpText(LcdSettings::tr(
"On multiline displays try and display the "
3865 "time as large as possible."));
3876 ge->setLabel(LcdSettings::tr(
"LCD key order"));
3878 ge->setValue(
"ABCDEF");
3881 LcdSettings::tr(
"Enter the 6 Keypad Return Codes for your LCD keypad "
3882 "in the order in which you want the functions "
3883 "up/down/left/right/yes/no to operate. (See "
3884 "lcdproc/server/drivers/hd44780.c/keyMapMatrix[] "
3885 "or the matrix for your display)"));
3893 gc->
setLabel(LcdSettings::tr(
"Enable LCD device"));
3895 gc->
setHelpText(LcdSettings::tr(
"Use an LCD display to view MythTV status "
3921 gc->
setLabel(PlaybackSettings::tr(
"Enable gamma correction for video"));
3925 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, QuickTime will correct "
3926 "the gamma of the video to match "
3927 "your monitor. Turning this off can "
3928 "save some CPU cycles."));
3936 gc->
setLabel(PlaybackSettings::tr(
"Scale video as necessary"));
3940 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, video will be scaled to "
3941 "fit your window or screen. If "
3942 "unchecked, video will never be made "
3943 "larger than its actual pixel size."));
3951 gs->
setLabel(PlaybackSettings::tr(
"Frames to skip in fullscreen mode"));
3955 gs->
setHelpText(PlaybackSettings::tr(
"Video displayed in fullscreen or "
3956 "non-windowed mode will skip this "
3957 "many frames for each frame drawn. "
3958 "Set to 0 to show every frame. Only "
3959 "valid when either \"Use GUI size for "
3960 "TV playback\" or \"Run the frontend "
3961 "in a window\" is not checked."));
3969 gc->
setLabel(MacMainSettings::tr(
"Video in main window"));
3973 gc->
setHelpText(MacMainSettings::tr(
"If enabled, video will be displayed "
3974 "in the main GUI window. Disable this "
3975 "when you only want video on the "
3976 "desktop or in a floating window. Only "
3977 "valid when \"Use GUI size for TV "
3978 "playback\" and \"Run the frontend in "
3979 "a window\" are checked."));
3987 gs->
setLabel(MacMainSettings::tr(
"Frames to skip"));
3991 gs->
setHelpText(MacMainSettings::tr(
"Video in the main window will skip "
3992 "this many frames for each frame "
3993 "drawn. Set to 0 to show every "
4002 gs->
setLabel(MacMainSettings::tr(
"Opacity"));
4006 gs->
setHelpText(MacMainSettings::tr(
"The opacity of the main window. Set "
4007 "to 100 for completely opaque, set "
4008 "to 0 for completely transparent."));
4016 gc->
setLabel(MacFloatSettings::tr(
"Video in floating window"));
4020 gc->
setHelpText(MacFloatSettings::tr(
"If enabled, video will be displayed "
4021 "in a floating window. Only valid "
4022 "when \"Use GUI size for TV "
4023 "playback\" and \"Run the frontend "
4024 "in a window\" are checked."));
4032 gs->
setLabel(MacFloatSettings::tr(
"Frames to skip"));
4036 gs->
setHelpText(MacFloatSettings::tr(
"Video in the floating window will "
4037 "skip this many frames for each "
4038 "frame drawn. Set to 0 to show "
4047 gs->
setLabel(MacFloatSettings::tr(
"Opacity"));
4051 gs->
setHelpText(MacFloatSettings::tr(
"The opacity of the floating window. "
4052 "Set to 100 for completely opaque, "
4053 "set to 0 for completely "
4062 gc->
setLabel(MacDockSettings::tr(
"Video in the dock"));
4066 gc->
setHelpText(MacDockSettings::tr(
"If enabled, video will be displayed "
4067 "in the application's dock icon. Only "
4068 "valid when \"Use GUI size for TV "
4069 "playback\" and \"Run the frontend in "
4070 "a window\" are checked."));
4078 gs->
setLabel(MacDockSettings::tr(
"Frames to skip"));
4082 gs->
setHelpText(MacDockSettings::tr(
"Video in the dock icon will skip this "
4083 "many frames for each frame drawn. Set "
4084 "to 0 to show every frame."));
4092 gc->
setLabel(MacDesktopSettings::tr(
"Video on the desktop"));
4096 gc->
setHelpText(MacDesktopSettings::tr(
"If enabled, video will be "
4097 "displayed on the desktop, "
4098 "behind the Finder icons. "
4099 "Only valid when \"Use GUI "
4100 "size for TV playback\" and "
4101 "\"Run the frontend in a "
4102 "window\" are checked."));
4110 gs->
setLabel(MacDesktopSettings::tr(
"Frames to skip"));
4114 gs->
setHelpText(MacDesktopSettings::tr(
"Video on the desktop will skip "
4115 "this many frames for each frame "
4116 "drawn. Set to 0 to show every "
4141 setLabel(MainGeneralSettings::tr(
"Shutdown/Reboot Settings"));
4145 #ifndef Q_OS_ANDROID
4229 pin->setLabel(tr(
"Settings Access"));
4234 general->setLabel(tr(
"General"));
4239 if (sh->hasPrefixes()) {
4244 general->addChild(SortCaseSensitive());
4247 general->addChild(stripPrefixes);
4258 remotecontrol->setLabel(tr(
"Remote Control"));
4265 remotecontrol->addChild(cec);
4267 m_cecPowerOnTVAllowed = CECPowerOnTVAllowed();
4268 m_cecPowerOffTVAllowed = CECPowerOffTVAllowed();
4269 m_cecPowerOnTVOnStart = CECPowerOnTVOnStart();
4270 m_cecPowerOffTVOnExit = CECPowerOffTVOnExit();
4276 this, &MainGeneralSettings::cecChanged);
4278 this, &MainGeneralSettings::cecChanged);
4279 #endif // USING_LIBCEC
4282 #ifdef USING_AIRPLAY
4284 airplay->setLabel(tr(
"AirPlay Settings"));
4285 airplay->addChild(AirPlayEnabled());
4286 airplay->addChild(AirPlayFullScreen());
4287 airplay->addChild(AirPlayAudioOnly());
4288 airplay->addChild(AirPlayPasswordSettings());
4296 void MainGeneralSettings::cecChanged(
bool )
4298 if (m_cecPowerOnTVAllowed->boolValue())
4299 m_cecPowerOnTVOnStart->setEnabled(
true);
4302 m_cecPowerOnTVOnStart->setEnabled(
false);
4303 m_cecPowerOnTVOnStart->setValue(
false);
4306 if (m_cecPowerOffTVAllowed->boolValue())
4307 m_cecPowerOffTVOnExit->setEnabled(
true);
4310 m_cecPowerOffTVOnExit->setEnabled(
false);
4311 m_cecPowerOffTVOnExit->setValue(
false);
4314 #endif // USING_LIBCEC
4318 QStringList strlist( QString(
"REFRESH_BACKEND") );
4320 LOG(VB_GENERAL, LOG_ERR, QString(
"%1 called").arg(__FUNCTION__));
4343 setLabel(PlaybackSettings::tr(
"Scaling"));
4367 item->
SetText(PlaybackSettings::tr(
"No scaling"),
"value");
4371 item->
SetText(QString(
"%1%x%2%+%3%+%4%")
4404 auto *
menu =
new MythMenu(tr(
"Playback Profile Menu"),
this,
"mainmenu");
4416 menuPopup->SetReturnEvent(
this,
"mainmenu");
4418 if (menuPopup->Create())
4434 config->DecreasePriority();
4451 config->IncreasePriority();
4473 general->setLabel(tr(
"General Playback"));
4495 advanced->setLabel(tr(
"Advanced Playback Settings"));
4516 pbox->setLabel(tr(
"View Recordings"));
4525 pbox2->setLabel(tr(
"Recording Groups"));
4531 pbox->addChild(pbox2);
4540 pbox->addChild(playbackWatchList);
4544 seek->setLabel(tr(
"Seeking"));
4552 comms->setLabel(tr(
"Commercial Skip"));
4563 mac->
setLabel(tr(
"Mac OS X Video Settings"));
4618 general->setLabel(tr(
"General (Basic)"));
4627 autoexp->setLabel(tr(
"General (Auto-Expire)"));
4645 jobs->setLabel(tr(
"General (Jobs)"));
4656 general2->setLabel(tr(
"General (Advanced)"));
4668 changrp->setLabel(tr(
"General (Channel Groups)"));
4689 sched->setLabel(tr(
"Scheduler Options"));
4700 access->setLabel(tr(
"Accessibility Options"));
4729 setLabel(AppearanceSettings::tr(
"GUI dimension"));
4752 item->
SetText(AppearanceSettings::tr(
"Fullscreen"),
"value");
4756 item->
SetText(QString(
"%1x%2+%3+%4")
4772 QCoreApplication::processEvents();
4779 QList screens = QGuiApplication::screens();
4780 for (QScreen *qscreen : std::as_const(screens))
4795 screen->setLabel(tr(
"Theme / Screen Settings"));
4820 #ifdef USING_AIRPLAY
4821 screen->addChild(AirPlayFullScreen());
4827 std::vector<MythDisplayMode> scr = display->
GetVideoModes();
4834 dates->setLabel(tr(
"Localization"));
4856 gc->
setLabel(AppearanceSettings::tr(
"Select from Channel Group"));
4857 gc->addSelection(
"All Channels");
4861 for (
const auto &chgrp : list)
4863 gc->addSelection(chgrp.m_name);
4866 "Select the channel group to select channels from. "
4867 "\"All Channels\" lets you choose from all channels of all video sources. "
4868 "\"Priority\" lets you choose from all channels that have recording priority. "
4869 "The other values let you select a video source to choose channels from."));
4877 const QString &channum,
const QString &name);
4885 const QString &channum,
const QString &channame)
4886 : m_channelId(chanid)
4888 setLabel(QString(
"%1 %2").arg(channum, channame));
4889 setHelpText(ChannelGroupSettings::tr(
"Select/Unselect channels for this channel group"));
4894 : m_groupId(groupId),
4897 setLabel(groupName ==
"Favorites" ? tr(
"Favorites") : groupName);
4927 QList<StandardSetting *>::const_iterator i;
4928 for (i = children->constBegin(); i != children->constEnd(); ++i)
4930 if ((*i)->haveChanged())
4937 if (channel->boolValue())
4959 LOG(VB_GENERAL, LOG_INFO,
4960 QString(
"ChannelGroupSetting::LoadChannelGroup group:%1 groupId:%2")
4961 .arg(group).arg(groupId));
4967 it.second->setVisible(
false);
4984 if (fromGroupId == -1)
4987 "SELECT channel.chanid, channum, name, grpid FROM channel "
4988 "LEFT JOIN channelgroup "
4989 "ON (channel.chanid = channelgroup.chanid AND grpid = :GRPID) "
4990 "WHERE deleted IS NULL "
4992 "ORDER BY channum+0; ");
4998 "SELECT channel.chanid, channum, name, cg2.grpid FROM channel "
4999 "RIGHT JOIN channelgroup AS cg1 "
5000 "ON (channel.chanid = cg1.chanid AND cg1.grpid = :FROMGRPID) "
5001 "LEFT JOIN channelgroup AS cg2 "
5002 "ON (channel.chanid = cg2.chanid AND cg2.grpid = :GRPID) "
5003 "WHERE deleted IS NULL "
5005 "ORDER BY channum+0; ");
5007 query.
bindValue(
":FROMGRPID", fromGroupId);
5011 MythDB::DBError(
"ChannelGroupSetting::LoadChannelGroupChannels", query);
5014 while (query.
next())
5016 auto chanid = query.
value(0).toUInt();
5017 auto channum = query.
value(1).toString();
5018 auto name = query.
value(2).toString();
5019 auto checked = !query.
value(3).isNull();
5020 auto pair = std::make_pair(
m_groupId, chanid);
5026 checkBox = it->second;
5073 query.
prepare(
"DELETE FROM channelgroup WHERE grpid = :GRPID;");
5079 query.
prepare(
"DELETE FROM channelgroupnames WHERE grpid = :GRPID;");
5099 for (
auto it = list.begin(); it < list.end(); ++it)
5101 QString name = (it->m_name ==
"Favorites") ? tr(
"Favorites") : it->m_name;
5116 tr(
"Enter the name of the new channel group"));
5118 if (settingdialog->Create())
5126 delete settingdialog;
5133 button->setLabel(name);