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 : std::as_const(
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 : std::as_const(renderers))
1052 prenderer = (rend == vrenderer) ? vrenderer : prenderer;
1053 if (prenderer.isEmpty())
1057 for (
const auto & rend : std::as_const(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 : std::as_const(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 QStringList list =
results.toLower().split(crlf, Qt::SkipEmptyParts);
1590 list.replaceInStrings(suffix,
"");
1593 for (
const auto & codec : std::as_const(list))
1595 QString val = QString(codec);
1606 gc->
setLabel(GeneralSettings::tr(
"Channel ordering"));
1608 gc->
addSelection(GeneralSettings::tr(
"channel number"),
"channum");
1609 gc->
addSelection(GeneralSettings::tr(
"callsign"),
"callsign");
1618 gs->setLabel(PlaybackSettings::tr(
"Vertical scaling"));
1622 gs->setHelpText(PlaybackSettings::tr(
"Adjust this if the image does not "
1623 "fill your screen vertically. Range "
1632 gs->setLabel(PlaybackSettings::tr(
"Horizontal scaling"));
1636 gs->setHelpText(PlaybackSettings::tr(
"Adjust this if the image does not "
1637 "fill your screen horizontally. Range "
1646 gs->setLabel(PlaybackSettings::tr(
"Scan displacement (X)"));
1650 gs->setHelpText(PlaybackSettings::tr(
"Adjust this to move the image "
1660 gs->setLabel(PlaybackSettings::tr(
"Scan displacement (Y)"));
1664 gs->setHelpText(PlaybackSettings::tr(
"Adjust this to move the image "
1674 gc->
setLabel(OSDSettings::tr(
"Always display closed captioning or "
1679 gc->
setHelpText(OSDSettings::tr(
"If enabled, captions will be displayed "
1680 "when playing back recordings or watching "
1681 "Live TV. Closed Captioning can be turned "
1682 "on or off by pressing \"T\" during"
1691 gc->
setLabel(OSDSettings::tr(
"Enable interactive TV"));
1695 gc->
setHelpText(OSDSettings::tr(
"If enabled, interactive TV applications "
1696 "(MHEG) will be activated. This is used "
1697 "for teletext and logos for radio and "
1698 "channels that are currently off-air."));
1705 gc->
setLabel(OSDSettings::tr(
"Enable network access for interactive TV"));
1707 gc->
setHelpText(OSDSettings::tr(
"If enabled, interactive TV applications "
1708 "(MHEG) will be able to access interactive "
1709 "content over the Internet. This is used "
1710 "for BBC iPlayer."));
1717 combo->setLabel(OSDSettings::tr(
"Visualiser for audio only playback"));
1718 combo->setHelpText(OSDSettings::tr(
"Select a visualisation to use when there "
1719 "is no video. Defaults to none."));
1720 combo->addSelection(
"None",
"");
1722 for (
const auto & visual : std::as_const(visuals))
1723 combo->addSelection(visual, visual);
1731 gc->
setLabel(OSDSettings::tr(
"Always use browse mode in Live TV"));
1735 gc->
setHelpText(OSDSettings::tr(
"If enabled, browse mode will "
1736 "automatically be activated whenever "
1737 "you use channel up/down while watching "
1746 gc->
setLabel(OSDSettings::tr(
"Browse all channels"));
1750 gc->
setHelpText(OSDSettings::tr(
"If enabled, browse mode will show "
1751 "channels on all available recording "
1752 "devices, instead of showing channels "
1753 "on just the current recorder."));
1761 gc->
setLabel(PlaybackSettings::tr(
"Playback from start of program"));
1765 gc->
setHelpText(PlaybackSettings::tr(
"If enabled and no bookmark is set, "
1766 "playback starts at the program "
1767 "scheduled start time rather than "
1768 "the beginning of the recording. "
1769 "Useful for automatically skipping "
1770 "'start early' parts of a recording."));
1778 gc->
setLabel(PlaybackSettings::tr(
"Action on playback exit"));
1780 gc->
addSelection(PlaybackSettings::tr(
"Just exit"),
"0");
1781 gc->
addSelection(PlaybackSettings::tr(
"Clear last played position and exit"),
"16");
1782 gc->
addSelection(PlaybackSettings::tr(
"Always prompt (excluding Live TV)"),
1784 gc->
addSelection(PlaybackSettings::tr(
"Always prompt (including Live TV)"),
1786 gc->
addSelection(PlaybackSettings::tr(
"Prompt for Live TV only"),
"8");
1788 gc->
setHelpText(PlaybackSettings::tr(
"If set to prompt, a menu will be "
1789 "displayed when you exit playback "
1790 "mode. The options available will "
1791 "allow you delete the recording, "
1792 "continue watching, or exit."));
1800 gc->
setLabel(PlaybackSettings::tr(
"Prompt at end of recording"));
1804 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, a menu will be displayed "
1805 "allowing you to delete the recording "
1806 "when it has finished playing."));
1814 gc->
setLabel(PlaybackSettings::tr(
"Enable Music Choice"));
1818 gc->
setHelpText(PlaybackSettings::tr(
"Enable this to improve playing of Music Choice channels "
1819 "or recordings from those channels. "
1820 "These are audio channels with slide show "
1821 "from some cable providers. "
1822 "In unusual situations this could cause lip sync problems "
1823 "watching normal videos or TV shows."));
1831 gc->
setLabel(PlaybackSettings::tr(
"Jump to program OSD"));
1835 gc->
setHelpText(PlaybackSettings::tr(
"Set the choice between viewing the "
1836 "current recording group in the OSD, "
1837 "or showing the 'Watch Recording' "
1838 "screen when 'Jump to Program' is "
1839 "activated. If enabled, the "
1840 "recordings are shown in the OSD"));
1848 gc->
setLabel(PlaybackSettings::tr(
"Continue playback when embedded"));
1852 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, TV playback continues "
1853 "when the TV window is embedded in "
1854 "the upcoming program list or "
1855 "recorded list. The default is to "
1856 "pause the recorded show when "
1865 gc->
setLabel(PlaybackSettings::tr(
"Automatically mark a recording as "
1870 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, when you exit near the "
1871 "end of a recording it will be marked "
1872 "as watched. The automatic detection "
1873 "is not foolproof, so do not enable "
1874 "this setting if you don't want an "
1875 "unwatched recording marked as "
1884 gc->
setLabel(PlaybackSettings::tr(
"Always show watched percent progress bar"));
1888 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, shows the watched percent "
1889 "progress bar even if the recording or "
1890 "video is marked as watched. "
1891 "Having a watched percent progress bar at "
1892 "all depends on the currently used theme."));
1900 gs->setLabel(PlaybackSettings::tr(
"Live TV idle timeout (mins)"));
1904 gs->setHelpText(PlaybackSettings::tr(
"Exit Live TV automatically if left "
1905 "idle for the specified number of "
1906 "minutes. 0 disables the timeout."));
1947 gc->
setLabel(MainGeneralSettings::tr(
"Use line edit virtual keyboards"));
1951 gc->
setHelpText(MainGeneralSettings::tr(
"If enabled, you can use a virtual "
1952 "keyboard in MythTV's line edit "
1953 "boxes. To use, hit SELECT (Enter "
1954 "or Space) while a line edit is in "
1963 gs->setLabel(MainGeneralSettings::tr(
"Idle time before entering standby "
1968 gs->setHelpText(MainGeneralSettings::tr(
"Number of minutes to wait when "
1969 "the frontend is idle before "
1970 "entering standby mode. Standby "
1971 "mode allows the backend to power "
1972 "down if configured to do so. Any "
1973 "remote or mouse input will cause "
1974 "the countdown to start again "
1975 "and/or exit idle mode. Video "
1976 "playback suspends the countdown. "
1977 "A value of zero prevents the "
1978 "frontend automatically entering "
1986 checkbox->setValue(
true);
1987 checkbox->setLabel(MainGeneralSettings::tr(
"Confirm before suspending/shutting down"));
1988 checkbox->setHelpText(MainGeneralSettings::tr(
1989 "If enabled (the default) then the user will always be asked to confirm before the system "
1990 "is shutdown, suspended or rebooted."));
1998 gc->
setLabel(MainGeneralSettings::tr(
"Customize exit menu options"));
2000 gc->
addSelection(MainGeneralSettings::tr(
"Default"),
"0");
2001 gc->
addSelection(MainGeneralSettings::tr(
"Show quit"),
"1");
2002 gc->
addSelection(MainGeneralSettings::tr(
"Show quit and suspend"),
"9");
2003 gc->
addSelection(MainGeneralSettings::tr(
"Show quit and shutdown"),
"2");
2004 gc->
addSelection(MainGeneralSettings::tr(
"Show quit, reboot and shutdown"),
"3");
2005 gc->
addSelection(MainGeneralSettings::tr(
"Show quit, reboot, shutdown and suspend"),
"10");
2006 gc->
addSelection(MainGeneralSettings::tr(
"Show shutdown"),
"4");
2007 gc->
addSelection(MainGeneralSettings::tr(
"Show reboot"),
"5");
2008 gc->
addSelection(MainGeneralSettings::tr(
"Show reboot and shutdown"),
"6");
2009 gc->
addSelection(MainGeneralSettings::tr(
"Show standby"),
"7");
2010 gc->
addSelection(MainGeneralSettings::tr(
"Show suspend"),
"8");
2012 QString helptext = MainGeneralSettings::tr(
"By default, only remote frontends are shown "
2013 "the shutdown option on the exit menu. Here "
2014 "you can force specific shutdown, reboot and suspend "
2015 "options to be displayed.");
2019 if (!supported.isEmpty())
2021 helptext.prepend(MainGeneralSettings::tr(
2022 "This system supports '%1' without additional setup. ")
2023 .arg(supported.join(
", ")));
2027 helptext.append(MainGeneralSettings::tr(
2028 " This system appears to have no power options available. Try "
2029 "setting the Halt/Reboot/Suspend commands below."));
2037 #ifndef Q_OS_ANDROID
2041 ge->setLabel(MainGeneralSettings::tr(
"Reboot command"));
2043 QString
help = MainGeneralSettings::tr(
2044 "Optional. Script to run if you select the reboot option from the "
2045 "exit menu, if the option is displayed. You must configure an "
2046 "exit key to display the exit menu.");
2049 help.append(MainGeneralSettings::tr(
2050 " Note: This system appears to support reboot without using this setting."));
2052 ge->setHelpText(
help);
2059 suspend->setLabel(MainGeneralSettings::tr(
"Suspend command"));
2060 suspend->setValue(
"");
2061 QString
help = MainGeneralSettings::tr(
2062 "Optional: Script to run if you select the suspend option from the "
2063 "exit menu, if the option is displayed.");
2067 help.append(MainGeneralSettings::tr(
2068 " Note: This system appears to support suspend without using this setting."));
2070 suspend->setHelpText(
help);
2077 ge->setLabel(MainGeneralSettings::tr(
"Halt command"));
2079 QString
help = MainGeneralSettings::tr(
"Optional. Script to run if you "
2080 "select the shutdown option from "
2081 "the exit menu, if the option is "
2082 "displayed. You must configure an "
2083 "exit key to display the exit "
2087 help.append(MainGeneralSettings::tr(
2088 " Note: This system appears to support shutdown without using this setting."));
2091 ge->setHelpText(
help);
2100 ge->setLabel(MainGeneralSettings::tr(
"LIRC daemon socket"));
2103 QString lirc_socket =
"/dev/lircd";
2105 if (!QFile::exists(lirc_socket))
2106 lirc_socket =
"/var/run/lirc/lircd";
2108 ge->setValue(lirc_socket);
2110 QString
help = MainGeneralSettings::tr(
"UNIX socket or IP address[:port] "
2111 "to connect in order to communicate "
2112 "with the LIRC Daemon.");
2113 ge->setHelpText(
help);
2122 ge->setLabel(MainGeneralSettings::tr(
"Screen shot path"));
2124 ge->setValue(
"/tmp/");
2126 ge->setHelpText(MainGeneralSettings::tr(
"Path to screenshot storage "
2127 "location. Should be writable "
2128 "by the frontend"));
2137 ge->setLabel(MainGeneralSettings::tr(
"Setup PIN code"));
2139 ge->setHelpText(MainGeneralSettings::tr(
"This PIN is used to control "
2140 "access to the setup menus. "
2141 "If you want to use this feature, "
2142 "then setting the value to all "
2143 "numbers will make your life much "
2144 "easier. Set it to blank to "
2145 "disable. If enabled, you will not "
2146 "be able to return to this screen "
2147 "and reset the Setup PIN without "
2148 "first entering the current PIN."));
2155 gc->
setLabel(AppearanceSettings::tr(
"Display on screen"));
2157 gc->
setHelpText(AppearanceSettings::tr(
"Run on the specified screen or "
2158 "spanning all screens."));
2167 gc->
setLabel(AppearanceSettings::tr(
"Screen aspect ratio"));
2168 gc->
addSelection(AppearanceSettings::tr(
"Auto (Assume square pixels)"),
"-1.0");
2169 gc->
addSelection(AppearanceSettings::tr(
"Auto (Detect from display)"),
"0.0");
2178 gc->
addSelection(AppearanceSettings::tr(
"16:18 (16:9 Above and below)"),
"0.8888");
2179 gc->
addSelection(AppearanceSettings::tr(
"32:10 (16:10 Side by side)"),
"3.2");
2180 gc->
addSelection(AppearanceSettings::tr(
"16:20 (16:10 Above and below)"),
"0.8");
2182 "This setting applies to video playback only, not to the GUI. "
2183 "Most modern displays have square pixels and the aspect ratio of the screen can be "
2184 "computed from the resolution (default). "
2185 "The aspect ratio can also be automatically detected from the connected display "
2186 "- though this may be slightly less accurate. If automatic detection fails, the correct "
2187 "aspect ratio can be specified here. Note: Some values (e.g 32:10) are "
2188 "primarily intended for multiscreen setups."));
2196 gc->
setLabel(PlaybackSettings::tr(
"Letterboxing color"));
2201 gc->
setHelpText(PlaybackSettings::tr(
"By default MythTV uses black "
2202 "letterboxing to match broadcaster "
2203 "letterboxing, but those with plasma "
2204 "screens may prefer gray to minimize "
2213 cb->
setLabel(PlaybackSettings::tr(
"Discard 3D stereoscopic fields"));
2215 "If 'Side by Side' or 'Top and Bottom' 3D material is detected, "
2216 "enabling this setting will discard one field (enabled by default)."));
2224 gc->
setLabel(PlaybackSettings::tr(
"Video aspect override"));
2229 gc->
setHelpText(PlaybackSettings::tr(
"When enabled, these will override "
2230 "the aspect ratio specified by any "
2231 "broadcaster for all video streams."));
2239 gc->
setLabel(PlaybackSettings::tr(
"Zoom"));
2248 gc->
setHelpText(PlaybackSettings::tr(
"When enabled, these will apply a "
2249 "predefined zoom to all video "
2250 "playback in MythTV."));
2260 gs->setLabel(AppearanceSettings::tr(
"GUI width (pixels)"));
2264 gs->setHelpText(AppearanceSettings::tr(
"The width of the GUI. Do not make "
2265 "the GUI wider than your actual "
2266 "screen resolution. Set to 0 to "
2267 "automatically scale to "
2276 gs->setLabel(AppearanceSettings::tr(
"GUI height (pixels)"));
2280 gs->setHelpText(AppearanceSettings::tr(
"The height of the GUI. Do not make "
2281 "the GUI taller than your actual "
2282 "screen resolution. Set to 0 to "
2283 "automatically scale to "
2292 gs->setLabel(AppearanceSettings::tr(
"GUI X offset"));
2296 gs->setHelpText(AppearanceSettings::tr(
"The horizontal offset where the "
2297 "GUI will be displayed. May only "
2298 "work if run in a window."));
2306 gs->setLabel(AppearanceSettings::tr(
"GUI Y offset"));
2310 gs->setHelpText(AppearanceSettings::tr(
"The vertical offset where the "
2311 "GUI will be displayed."));
2319 gc->
setLabel(AppearanceSettings::tr(
"Use GUI size for TV playback"));
2323 gc->
setHelpText(AppearanceSettings::tr(
"If enabled, use the above size for "
2324 "TV, otherwise use full screen."));
2332 gc->
setLabel(AppearanceSettings::tr(
"Force Full Screen for GUI and TV playback"));
2337 "Use Full Screen for GUI and TV playback independent of the settings for "
2338 "the GUI dimensions. This does not change the values of the GUI dimensions "
2339 "so it is easy to switch from window mode to full screen and back."));
2347 gc->
setLabel(VideoModeSettings::tr(
"Separate video modes for GUI and "
2353 "Switch video modes for playback depending on the source "
2354 "resolution and frame rate."));
2363 gs->setLabel(VideoModeSettings::tr(
"In X",
"Video mode width"));
2367 gs->setHelpText(VideoModeSettings::tr(
"Horizontal resolution of video "
2368 "which needs a special output "
2378 gs->setLabel(VideoModeSettings::tr(
"In Y",
"Video mode height"));
2382 gs->setHelpText(VideoModeSettings::tr(
"Vertical resolution of video "
2383 "which needs a special output "
2392 gc->
setLabel(VideoModeSettings::tr(
"GUI"));
2394 gc->
setHelpText(VideoModeSettings::tr(
"Resolution of screen when not "
2395 "watching a video."));
2398 std::vector<MythDisplayMode> scr = display->
GetVideoModes();
2399 for (
auto & vmode : scr)
2401 int w = vmode.Width();
2402 int h = vmode.Height();
2403 QString sel = QString(
"%1x%2").arg(w).arg(h);
2413 if ((w <= 0) || (h <= 0))
2422 gc->
setValue((i >= 0) ? i : scr.size() - 1);
2430 QString dhelp = VideoModeSettings::tr(
"Default screen resolution "
2431 "when watching a video.");
2432 QString ohelp = VideoModeSettings::tr(
"Screen resolution when watching a "
2433 "video at a specific resolution.");
2435 QString qstr = (idx<0) ?
"TVVidModeResolution" :
2436 QString(
"TVVidModeResolution%1").arg(idx);
2438 QString lstr = (idx<0) ? VideoModeSettings::tr(
"Video output") :
2439 VideoModeSettings::tr(
"Output");
2440 QString hstr = (idx<0) ? dhelp : ohelp;
2447 std::vector<MythDisplayMode> scr = display->
GetVideoModes();
2448 for (
auto & vmode : scr)
2450 QString sel = QString(
"%1x%2").arg(vmode.Width()).arg(vmode.Height());
2459 const QString previousValue =
getValue();
2463 QString resolution = setting->
getValue();
2468 for (
size_t i = 0; i < list.size(); ++i)
2470 QString sel = QString::number((
double) list[i],
'f', 3);
2472 hz50 = (fabs(50.0 - list[i]) < 0.01) ? i : hz50;
2473 hz60 = (fabs(60.0 - list[i]) < 0.01) ? i : hz60;
2479 if (wasUnchanged && previousValue ==
getValue())
2483 if (
"640x480" == resolution ||
"720x480" == resolution)
2485 if (
"640x576" == resolution ||
"720x576" == resolution)
2494 QStringList slist = res.split(
"x");
2499 if (2 == slist.size())
2501 width = slist[0].toInt(&ok0);
2502 height = slist[1].toInt(&ok1);
2505 std::vector<double> result;
2508 QSize
size(width, height);
2517 QString dhelp = VideoModeSettings::tr(
"Default refresh rate when watching "
2518 "a video. Leave at \"Auto\" to "
2519 "automatically use the best "
2521 QString ohelp = VideoModeSettings::tr(
"Refresh rate when watching a "
2522 "video at a specific resolution. "
2523 "Leave at \"Auto\" to automatically "
2524 "use the best available");
2526 QString qstr = (idx<0) ?
"TVVidModeRefreshRate" :
2527 QString(
"TVVidModeRefreshRate%1").arg(idx);
2529 QString lstr = VideoModeSettings::tr(
"Rate");
2530 QString hstr = (idx<0) ? dhelp : ohelp;
2540 QString dhelp = VideoModeSettings::tr(
"Aspect ratio when watching a "
2541 "video. Leave at \"%1\" to "
2542 "use ratio reported by the monitor. "
2543 "Set to 16:9 or 4:3 to force a "
2544 "specific aspect ratio.");
2548 QString ohelp = VideoModeSettings::tr(
"Aspect ratio when watching a "
2549 "video at a specific resolution. "
2550 "Leave at \"%1\" to use ratio "
2551 "reported by the monitor. Set to "
2552 "16:9 or 4:3 to force a specific "
2555 QString qstr = (idx<0) ?
"TVVidModeForceAspect" :
2556 QString(
"TVVidModeForceAspect%1").arg(idx);
2560 gc->
setLabel(VideoModeSettings::tr(
"Aspect"));
2562 QString hstr = (idx<0) ? dhelp : ohelp;
2564 gc->
setHelpText(hstr.arg(VideoModeSettings::tr(
"Default")));
2566 gc->
addSelection(VideoModeSettings::tr(
"Default"),
"0.0");
2582 pause->setLabel(VideoModeSettings::tr(
"Pause while switching video modes (ms)"));
2583 pause->setHelpText(VideoModeSettings::tr(
2584 "For most displays, switching video modes takes time and content can be missed. "
2585 "If non-zero, this setting will pause playback while the video mode is changed. "
2586 "The required pause length (in ms) will be dependant on the display's characteristics."));
2607 overrides->setLabel(tr(
"Overrides for specific video sizes"));
2609 for (
int idx = 0; idx < 3; ++idx)
2630 gc->
setLabel(AppearanceSettings::tr(
"Hide mouse cursor in MythTV"));
2634 gc->
setHelpText(AppearanceSettings::tr(
"Toggles mouse cursor visibility "
2635 "for touchscreens. By default "
2636 "MythTV will auto-hide the cursor "
2637 "if the mouse doesn't move for a "
2638 "period, this setting disables the "
2639 "cursor entirely."));
2648 gc->
setLabel(AppearanceSettings::tr(
"Use window border"));
2652 gc->
setHelpText(AppearanceSettings::tr(
"Toggles between windowed and "
2653 "borderless operation."));
2661 gc->
setLabel(AppearanceSettings::tr(
"Always On Top"));
2665 gc->
setHelpText(AppearanceSettings::tr(
"If enabled, MythTV will always be "
2674 gc->
setLabel(AppearanceSettings::tr(
"Smooth Transitions"));
2678 gc->
setHelpText(AppearanceSettings::tr(
"Enable smooth transitions with fade-in and fade-out of menu pages and enable GUI animations. "
2679 "Disabling this can make the GUI respond faster especially on low-powered machines."));
2686 "Never show startup screen");
2688 gs->setLabel(AppearanceSettings::tr(
"Startup Screen Delay"));
2692 gs->setHelpText(AppearanceSettings::tr(
2693 "The Startup Screen will show the progress of starting the frontend "
2694 "if frontend startup takes longer than this number of seconds."));
2703 gs->setLabel(AppearanceSettings::tr(
"GUI text zoom percentage"));
2707 gs->setHelpText(AppearanceSettings::tr
2708 (
"Adjust the themed defined font size by this percentage. "
2709 "mythfrontend needs restart for this to take effect."));
2717 gc->
setLabel(AppearanceSettings::tr(
"Date format"));
2720 QString sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2723 if (sampdate.month() == sampdate.day())
2725 sampdate = sampdate.addDays(1);
2726 sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2727 "tomorrow's date.");
2732 gc->
addSelection(locale.toString(sampdate,
"ddd MMM d"),
"ddd MMM d");
2733 gc->
addSelection(locale.toString(sampdate,
"ddd d MMM"),
"ddd d MMM");
2734 gc->
addSelection(locale.toString(sampdate,
"ddd MMMM d"),
"ddd MMMM d");
2735 gc->
addSelection(locale.toString(sampdate,
"ddd d MMMM"),
"ddd d MMMM");
2736 gc->
addSelection(locale.toString(sampdate,
"dddd MMM d"),
"dddd MMM d");
2737 gc->
addSelection(locale.toString(sampdate,
"dddd d MMM"),
"dddd d MMM");
2738 gc->
addSelection(locale.toString(sampdate,
"MMM d"),
"MMM d");
2739 gc->
addSelection(locale.toString(sampdate,
"d MMM"),
"d MMM");
2740 gc->
addSelection(locale.toString(sampdate,
"MM/dd"),
"MM/dd");
2741 gc->
addSelection(locale.toString(sampdate,
"dd/MM"),
"dd/MM");
2742 gc->
addSelection(locale.toString(sampdate,
"MM.dd"),
"MM.dd");
2743 gc->
addSelection(locale.toString(sampdate,
"dd.MM"),
"dd.MM");
2744 gc->
addSelection(locale.toString(sampdate,
"M/d/yyyy"),
"M/d/yyyy");
2745 gc->
addSelection(locale.toString(sampdate,
"d/M/yyyy"),
"d/M/yyyy");
2746 gc->
addSelection(locale.toString(sampdate,
"MM.dd.yyyy"),
"MM.dd.yyyy");
2747 gc->
addSelection(locale.toString(sampdate,
"dd.MM.yyyy"),
"dd.MM.yyyy");
2748 gc->
addSelection(locale.toString(sampdate,
"yyyy-MM-dd"),
"yyyy-MM-dd");
2749 gc->
addSelection(locale.toString(sampdate,
"ddd MMM d yyyy"),
"ddd MMM d yyyy");
2750 gc->
addSelection(locale.toString(sampdate,
"ddd d MMM yyyy"),
"ddd d MMM yyyy");
2751 gc->
addSelection(locale.toString(sampdate,
"ddd yyyy-MM-dd"),
"ddd yyyy-MM-dd");
2753 QString cn_long = QString(
"dddd yyyy") + QChar(0x5E74) +
2754 "M" + QChar(0x6708) +
"d"+ QChar(0x65E5);
2755 gc->
addSelection(locale.toString(sampdate, cn_long), cn_long);
2756 QString cn_med = QString(
"dddd ") +
2757 "M" + QChar(0x6708) +
"d"+ QChar(0x65E5);
2759 gc->
addSelection(locale.toString(sampdate, cn_med), cn_med);
2762 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred date format. %1")
2771 gc->
setLabel(AppearanceSettings::tr(
"Short date format"));
2775 QString sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2778 if (sampdate.month() == sampdate.day())
2780 sampdate = sampdate.addDays(1);
2781 sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2782 "tomorrow's date.");
2786 gc->
addSelection(locale.toString(sampdate,
"M/d"),
"M/d");
2787 gc->
addSelection(locale.toString(sampdate,
"d/M"),
"d/M");
2788 gc->
addSelection(locale.toString(sampdate,
"MM/dd"),
"MM/dd");
2789 gc->
addSelection(locale.toString(sampdate,
"dd/MM"),
"dd/MM");
2790 gc->
addSelection(locale.toString(sampdate,
"MM.dd"),
"MM.dd");
2791 gc->
addSelection(locale.toString(sampdate,
"dd.MM."),
"dd.MM.");
2792 gc->
addSelection(locale.toString(sampdate,
"M.d."),
"M.d.");
2793 gc->
addSelection(locale.toString(sampdate,
"d.M."),
"d.M.");
2794 gc->
addSelection(locale.toString(sampdate,
"MM-dd"),
"MM-dd");
2795 gc->
addSelection(locale.toString(sampdate,
"dd-MM"),
"dd-MM");
2796 gc->
addSelection(locale.toString(sampdate,
"MMM d"),
"MMM d");
2797 gc->
addSelection(locale.toString(sampdate,
"d MMM"),
"d MMM");
2798 gc->
addSelection(locale.toString(sampdate,
"ddd d"),
"ddd d");
2799 gc->
addSelection(locale.toString(sampdate,
"d ddd"),
"d ddd");
2800 gc->
addSelection(locale.toString(sampdate,
"ddd M/d"),
"ddd M/d");
2801 gc->
addSelection(locale.toString(sampdate,
"ddd d/M"),
"ddd d/M");
2802 gc->
addSelection(locale.toString(sampdate,
"ddd d.M"),
"ddd d.M");
2803 gc->
addSelection(locale.toString(sampdate,
"ddd dd.MM"),
"ddd dd.MM");
2804 gc->
addSelection(locale.toString(sampdate,
"M/d ddd"),
"M/d ddd");
2805 gc->
addSelection(locale.toString(sampdate,
"d/M ddd"),
"d/M ddd");
2807 QString cn_short1 = QString(
"M") + QChar(0x6708) +
"d" + QChar(0x65E5);
2809 gc->
addSelection(locale.toString(sampdate, cn_short1), cn_short1);
2811 QString cn_short2 = QString(
"ddd M") + QChar(0x6708) +
"d" + QChar(0x65E5);
2813 gc->
addSelection(locale.toString(sampdate, cn_short2), cn_short2);
2816 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred short date format. %1")
2825 gc->
setLabel(AppearanceSettings::tr(
"Time format"));
2827 QTime samptime = QTime::currentTime();
2831 gc->
addSelection(locale.toString(samptime,
"h:mm AP"),
"h:mm AP");
2832 gc->
addSelection(locale.toString(samptime,
"h:mm ap"),
"h:mm ap");
2833 gc->
addSelection(locale.toString(samptime,
"hh:mm AP"),
"hh:mm AP");
2834 gc->
addSelection(locale.toString(samptime,
"hh:mm ap"),
"hh:mm ap");
2835 gc->
addSelection(locale.toString(samptime,
"h:mm"),
"h:mm");
2836 gc->
addSelection(locale.toString(samptime,
"hh:mm"),
"hh:mm");
2837 gc->
addSelection(locale.toString(samptime,
"hh.mm"),
"hh.mm");
2838 gc->
addSelection(locale.toString(samptime,
"AP h:mm"),
"AP h:mm");
2840 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred time format. You "
2841 "must choose a format with \"AM\" "
2842 "or \"PM\" in it, otherwise your "
2843 "time display will be 24-hour or "
2844 "\"military\" time."));
2851 rgb->setLabel(AppearanceSettings::tr(
"Use full range RGB output"));
2852 rgb->setValue(
true);
2853 rgb->setHelpText(AppearanceSettings::tr(
2854 "Enable (recommended) to supply full range RGB output to your display device. "
2855 "Disable to supply limited range RGB output. This setting applies to both the "
2856 "GUI and media playback. Ideally the value of this setting should match a "
2857 "similar setting on your TV or monitor."));
2865 gc->
setLabel(GeneralSettings::tr(
"Channel format"));
2867 gc->
addSelection(GeneralSettings::tr(
"number"),
"<num>");
2868 gc->
addSelection(GeneralSettings::tr(
"number callsign"),
"<num> <sign>");
2869 gc->
addSelection(GeneralSettings::tr(
"number name"),
"<num> <name>");
2870 gc->
addSelection(GeneralSettings::tr(
"callsign"),
"<sign>");
2871 gc->
addSelection(GeneralSettings::tr(
"name"),
"<name>");
2873 gc->
setHelpText(GeneralSettings::tr(
"Your preferred channel format."));
2884 gc->
setLabel(GeneralSettings::tr(
"Long channel format"));
2886 gc->
addSelection(GeneralSettings::tr(
"number"),
"<num>");
2887 gc->
addSelection(GeneralSettings::tr(
"number callsign"),
"<num> <sign>");
2888 gc->
addSelection(GeneralSettings::tr(
"number name"),
"<num> <name>");
2889 gc->
addSelection(GeneralSettings::tr(
"callsign"),
"<sign>");
2890 gc->
addSelection(GeneralSettings::tr(
"name"),
"<name>");
2892 gc->
setHelpText(GeneralSettings::tr(
"Your preferred long channel format."));
2903 gc->
setLabel(ChannelGroupSettings::tr(
"Remember last channel group"));
2905 gc->
setHelpText(ChannelGroupSettings::tr(
"If enabled, the EPG will "
2906 "initially display only the "
2907 "channels from the last channel "
2908 "group selected. Pressing \"4\" "
2909 "will toggle channel group."));
2920 gc->
setLabel(ChannelGroupSettings::tr(
"Default channel group"));
2926 gc->
addSelection(ChannelGroupSettings::tr(
"All Channels"),
"-1");
2928 ChannelGroupList::iterator it;
2930 for (it = changrplist.begin(); it < changrplist.end(); ++it)
2931 gc->
addSelection(it->m_name, QString(
"%1").arg(it->m_grpId));
2933 gc->
setHelpText(ChannelGroupSettings::tr(
"Default channel group to be "
2934 "shown in the EPG. Pressing "
2935 "GUIDE key will toggle channel "
2946 gc->
setLabel(GeneralSettings::tr(
"Browse/change channels from Channel "
2949 gc->
setHelpText(GeneralSettings::tr(
"If enabled, Live TV will browse or "
2950 "change channels from the selected "
2951 "channel group. The \"All Channels\" "
2952 "channel group may be selected to "
2953 "browse all channels."));
2963 gc->
setLabel(GeneralSettings::tr(
"Case-sensitive sorting"));
2965 gc->
setHelpText(GeneralSettings::tr(
"If enabled, all sorting will be "
2966 "case-sensitive. This would mean "
2967 "that \"bee movie\" would sort after "
2968 "\"Sea World\" as lower case letters "
2969 "sort after uppercase letters."));
2978 gc->
setLabel(GeneralSettings::tr(
"Remove prefixes when sorting"));
2981 "If enabled, all sorting will remove the common "
2982 "prefixes (The, A, An) from a string prior to "
2983 "sorting. For example, this would sort the titles "
2984 "\"Earth 2\", \"The Flash\", and \"Kings\" in that "
2985 "order. If disabled, they would sort as \"Earth 2\", "
2986 "\"Kings\", \"The Flash\"."));
2994 gc->
setLabel(MainGeneralSettings::tr(
"Names exempt from prefix removal"));
2997 "This list of names will be exempt from removing "
2998 "the common prefixes (The, A, An) from a title or "
2999 "filename. Enter multiple names separated by "
3008 gc->
setLabel(GeneralSettings::tr(
"Starting channel for Manual Record"));
3009 gc->
addSelection(GeneralSettings::tr(
"Guide Starting Channel"),
"1",
true);
3010 gc->
addSelection(GeneralSettings::tr(
"Last Manual Record Channel"),
"2");
3012 "When entering a new Manual Record Rule, "
3013 "the starting channel will default to this."));
3023 bc->setLabel(GeneralRecPrioritiesSettings::tr(
"Avoid back to back "
3027 GeneralRecPrioritiesSettings::tr(
"Selects the situations where the "
3028 "scheduler will avoid assigning shows "
3029 "to the same card if their end time "
3030 "and start time match. This will be "
3031 "allowed when necessary in order to "
3032 "resolve conflicts."));
3034 bc->addSelection(GeneralRecPrioritiesSettings::tr(
"Never"),
"0");
3035 bc->addSelection(GeneralRecPrioritiesSettings::tr(
"Different Channels"),
3037 bc->addSelection(GeneralRecPrioritiesSettings::tr(
"Always"),
"2");
3048 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Preferred input priority"));
3050 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3051 "a showing matches the "
3052 "preferred input selected "
3053 "in the 'Scheduling "
3054 "Options' section of the "
3055 "recording rule."));
3065 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"HDTV recording priority"));
3067 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3068 "a showing is marked as an "
3069 "HDTV broadcast in the TV "
3081 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Widescreen recording "
3084 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3085 "a showing is marked as "
3086 "widescreen in the TV "
3098 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Sign language recording "
3101 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority "
3102 "when a showing is "
3116 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"In-vision Subtitles "
3117 "Recording Priority"));
3119 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority "
3120 "when a showing is marked "
3121 "as having in-vision "
3133 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Subtitles/CC recording "
3136 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3137 "a showing is marked as "
3138 "having subtitles or "
3139 "closed captioning (CC) "
3151 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Hard of hearing priority"));
3153 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3154 "a showing is marked as "
3155 "having support for "
3156 "viewers with impaired "
3168 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Audio described priority"));
3170 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3171 "a showing is marked as "
3172 "being Audio Described."));
3183 ge->setLabel(EPGSettings::tr(
"Guide starts at channel"));
3187 ge->setHelpText(EPGSettings::tr(
"The program guide starts on this channel "
3188 "if it is run from outside of Live TV "
3189 "mode. Leave blank to enable Live TV "
3190 "automatic start channel."));
3199 gs->setLabel(EPGSettings::tr(
"Record threshold"));
3203 gs->setHelpText(EPGSettings::tr(
"Pressing SELECT on a show that is at "
3204 "least this many minutes into the future "
3205 "will schedule a recording."));
3213 gc->
setLabel(AppearanceSettings::tr(
"Menu Language"));
3216 QStringList langs = langMap.values();
3220 if (langCode.isEmpty())
3225 for (
const auto & label : std::as_const(langs))
3227 QString value = langMap.key(label);
3228 gc->
addSelection(label, value, (value.toLower() == langCode));
3231 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred language for the "
3232 "user interface."));
3240 gc->
setLabel(AppearanceSettings::tr(
"Audio Language"));
3243 QStringList langs = langMap.values();
3247 if (langCode.isEmpty())
3250 langCode = menuLangCode.isEmpty() ?
"en_US" : menuLangCode;
3255 for (
const auto & label : std::as_const(langs))
3257 QString value = langMap.key(label);
3258 gc->
addSelection(label, value, (value.toLower() == langCode));
3261 gc->
setHelpText(AppearanceSettings::tr(
"Preferred language for the "
3269 QString q = QString(
"ISO639Language%1").arg(i);
3272 if ((lang.isEmpty() || lang ==
"aar") &&
3281 for (; it != ite; ++it)
3283 QString desc = (*it);
3284 int idx = desc.indexOf(
";");
3286 desc = desc.left(idx);
3297 gc->
setLabel(AppearanceSettings::tr(
"Guide language #%1").arg(i+1));
3303 gc->
setHelpText(AppearanceSettings::tr(
"Your #%1 preferred language for "
3304 "Program Guide data and captions.")
3313 gc->
setLabel(MainGeneralSettings::tr(
"Enable Network Remote Control "
3316 gc->
setHelpText(MainGeneralSettings::tr(
"This enables support for "
3317 "controlling MythFrontend "
3318 "over the network."));
3329 gs->setLabel(MainGeneralSettings::tr(
"Network Remote Control port"));
3333 gs->setHelpText(MainGeneralSettings::tr(
"This specifies what port the "
3334 "Network Remote Control "
3335 "interface will listen on for "
3336 "new connections."));
3344 ge->setLabel(MainGeneralSettings::tr(
"UDP notify port"));
3346 ge->setValue(
"6948");
3348 ge->setHelpText(MainGeneralSettings::tr(
"MythTV will listen for "
3349 "connections from the "
3350 "\"mythutil\" program on "
3359 gc->
setLabel(MainGeneralSettings::tr(
"Enable CEC Control "
3361 gc->
setHelpText(MainGeneralSettings::tr(
"This enables "
3362 "controlling MythFrontend from a TV remote or powering the TV "
3363 "on and off from a MythTV remote "
3364 "if you have compatible hardware. "
3365 "These settings only take effect after a restart."));
3373 gc->
setLabel(MainGeneralSettings::tr(
"Allow Power On TV"));
3374 gc->
setHelpText(MainGeneralSettings::tr(
"Enables your TV to be powered "
3375 "on from MythTV remote or when MythTV starts "
3376 "if you have compatible hardware."));
3384 gc->
setLabel(MainGeneralSettings::tr(
"Allow Power Off TV"));
3385 gc->
setHelpText(MainGeneralSettings::tr(
"Enables your TV to be powered "
3386 "off from MythTV remote or when MythTV starts "
3387 "if you have compatible hardware."));
3395 gc->
setLabel(MainGeneralSettings::tr(
"Power on TV At Start"));
3397 "on your TV when you start MythTV "
3398 "if you have compatible hardware."));
3406 gc->
setLabel(MainGeneralSettings::tr(
"Power off TV At Exit"));
3408 "off your TV when you exit MythTV "
3409 "if you have compatible hardware."));
3414 #endif //USING_LIBCEC
3416 #ifdef USING_AIRPLAY
3422 gc->
setLabel(MainGeneralSettings::tr(
"Enable AirPlay"));
3424 gc->
setHelpText(MainGeneralSettings::tr(
"AirPlay lets you wirelessly view "
3425 "content on your TV from your "
3426 "iPhone, iPad, iPod Touch, or "
3427 "iTunes on your computer."));
3438 gc->
setLabel(MainGeneralSettings::tr(
"Only support AirTunes (no video)"));
3440 gc->
setHelpText(MainGeneralSettings::tr(
"Only stream audio from your "
3441 "iPhone, iPad, iPod Touch, or "
3442 "iTunes on your computer"));
3453 gc->
setLabel(MainGeneralSettings::tr(
"Require password"));
3457 gc->
setHelpText(MainGeneralSettings::tr(
"Require a password to use "
3458 "AirPlay. Your iPhone, iPad, iPod "
3459 "Touch, or iTunes on your computer "
3460 "will prompt you when required"));
3468 ge->setLabel(MainGeneralSettings::tr(
"Password"));
3470 ge->setValue(
"0000");
3472 ge->setHelpText(MainGeneralSettings::tr(
"Your iPhone, iPad, iPod Touch, or "
3473 "iTunes on your computer will "
3474 "prompt you for this password "
3483 hc->setLabel(MainGeneralSettings::tr(
"AirPlay - Password"));
3484 hc->addChild(AirPlayPasswordEnabled());
3485 hc->addChild(AirPlayPassword());
3494 gc->
setLabel(MainGeneralSettings::tr(
"AirPlay full screen playback"));
3498 gc->
setHelpText(MainGeneralSettings::tr(
"During music playback, displays "
3499 "album cover and various media "
3500 "information in full screen mode"));
3538 gc->
setLabel(PlaybackSettings::tr(
"Enable realtime priority threads"));
3540 gc->
setHelpText(PlaybackSettings::tr(
"When running mythfrontend with root "
3541 "privileges, some threads can be "
3542 "given enhanced priority. Disable "
3543 "this if MythFrontend freezes during "
3544 "video playback."));
3554 ge->setLabel(MainGeneralSettings::tr(
"Ignore devices"));
3558 ge->setHelpText(MainGeneralSettings::tr(
"If there are any devices that you "
3559 "do not want to be monitored, list "
3560 "them here with commas in-between. "
3561 "The plugins will ignore them. "
3562 "Requires restart."));
3570 gc->
setLabel(PlaybackSettings::tr(
"Sort titles"));
3572 gc->
addSelection(PlaybackSettings::tr(
"Alphabetically"),
3574 gc->
addSelection(PlaybackSettings::tr(
"By recording priority"),
3577 gc->
setHelpText(PlaybackSettings::tr(
"Sets the title sorting order when "
3578 "the view is set to Titles only."));
3586 gc->
setLabel(WatchListSettings::tr(
"Include the 'Watch List' group"));
3590 gc->
setHelpText(WatchListSettings::tr(
"The 'Watch List' is an abbreviated "
3591 "list of recordings sorted to "
3592 "highlight series and shows that "
3593 "need attention in order to keep up "
3602 gc->
setLabel(WatchListSettings::tr(
"Start from the Watch List view"));
3606 gc->
setHelpText(WatchListSettings::tr(
"If enabled, the 'Watch List' will "
3607 "be the initial view each time you "
3608 "enter the Watch Recordings screen"));
3616 gc->
setLabel(WatchListSettings::tr(
"Exclude recordings not set for "
3621 gc->
setHelpText(WatchListSettings::tr(
"Set this if you turn off "
3622 "Auto-Expire only for recordings "
3623 "that you've seen and intend to "
3624 "keep. This option will exclude "
3625 "these recordings from the "
3634 gs->setLabel(WatchListSettings::tr(
"Maximum days counted in the score"));
3638 gs->setHelpText(WatchListSettings::tr(
"The 'Watch List' scores are based "
3639 "on 1 point equals one day since "
3640 "recording. This option limits the "
3641 "maximum score due to age and "
3642 "affects other weighting factors."));
3650 gs->setLabel(WatchListSettings::tr(
"Days to exclude weekly episodes after "
3655 gs->setHelpText(WatchListSettings::tr(
"When an episode is deleted or "
3656 "marked as watched, other episodes "
3657 "of the series are excluded from the "
3658 "'Watch List' for this interval of "
3659 "time. Daily shows also have a "
3660 "smaller interval based on this "
3669 gc->
setLabel(MainGeneralSettings::tr(
"Media Monitor"));
3671 gc->
setHelpText(MainGeneralSettings::tr(
"This enables support for "
3672 "monitoring your CD/DVD drives for "
3673 "new disks and launching the "
3674 "proper plugin to handle them. "
3675 "Requires restart."));
3688 gc->
setLabel(LcdSettings::tr(
"Display time"));
3690 gc->
setHelpText(LcdSettings::tr(
"Display current time on idle LCD "
3702 gc->
setLabel(LcdSettings::tr(
"Display recording status"));
3704 gc->
setHelpText(LcdSettings::tr(
"Display current recordings information "
3705 "on LCD display."));
3716 gc->
setLabel(LcdSettings::tr(
"Display menus"));
3718 gc->
setHelpText(LcdSettings::tr(
"Display selected menu on LCD display. "));
3729 gs->setLabel(LcdSettings::tr(
"Menu pop-up time"));
3731 gs->setHelpText(LcdSettings::tr(
"How many seconds the menu will remain "
3732 "visible after navigation."));
3743 gc->
setLabel(LcdSettings::tr(
"Display music artist and title"));
3745 gc->
setHelpText(LcdSettings::tr(
"Display playing artist and song title in "
3746 "MythMusic on LCD display."));
3757 gc->
setLabel(LcdSettings::tr(
"Items"));
3759 gc->
addSelection(LcdSettings::tr(
"Artist - Title"),
"ArtistTitle");
3760 gc->
addSelection(LcdSettings::tr(
"Artist [Album] Title"),
3761 "ArtistAlbumTitle");
3763 gc->
setHelpText(LcdSettings::tr(
"Which items to show when playing music."));
3772 gc->
setLabel(LcdSettings::tr(
"Display channel information"));
3774 gc->
setHelpText(LcdSettings::tr(
"Display tuned channel information on LCD "
3786 gc->
setLabel(LcdSettings::tr(
"Display volume information"));
3788 gc->
setHelpText(LcdSettings::tr(
"Display volume level information "
3789 "on LCD display."));
3800 gc->
setLabel(LcdSettings::tr(
"Display generic information"));
3802 gc->
setHelpText(LcdSettings::tr(
"Display generic information on LCD display."));
3813 gc->
setLabel(LcdSettings::tr(
"Backlight always on"));
3815 gc->
setHelpText(LcdSettings::tr(
"Turn on the backlight permanently on the "
3826 gc->
setLabel(LcdSettings::tr(
"Heartbeat always on"));
3828 gc->
setHelpText(LcdSettings::tr(
"Turn on the LCD heartbeat."));
3839 gc->
setLabel(LcdSettings::tr(
"Display large clock"));
3841 gc->
setHelpText(LcdSettings::tr(
"On multiline displays try and display the "
3842 "time as large as possible."));
3853 ge->setLabel(LcdSettings::tr(
"LCD key order"));
3855 ge->setValue(
"ABCDEF");
3858 LcdSettings::tr(
"Enter the 6 Keypad Return Codes for your LCD keypad "
3859 "in the order in which you want the functions "
3860 "up/down/left/right/yes/no to operate. (See "
3861 "lcdproc/server/drivers/hd44780.c/keyMapMatrix[] "
3862 "or the matrix for your display)"));
3870 gc->
setLabel(LcdSettings::tr(
"Enable LCD device"));
3872 gc->
setHelpText(LcdSettings::tr(
"Use an LCD display to view MythTV status "
3898 gc->
setLabel(PlaybackSettings::tr(
"Enable gamma correction for video"));
3902 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, QuickTime will correct "
3903 "the gamma of the video to match "
3904 "your monitor. Turning this off can "
3905 "save some CPU cycles."));
3913 gc->
setLabel(PlaybackSettings::tr(
"Scale video as necessary"));
3917 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, video will be scaled to "
3918 "fit your window or screen. If "
3919 "unchecked, video will never be made "
3920 "larger than its actual pixel size."));
3928 gs->
setLabel(PlaybackSettings::tr(
"Frames to skip in fullscreen mode"));
3932 gs->
setHelpText(PlaybackSettings::tr(
"Video displayed in fullscreen or "
3933 "non-windowed mode will skip this "
3934 "many frames for each frame drawn. "
3935 "Set to 0 to show every frame. Only "
3936 "valid when either \"Use GUI size for "
3937 "TV playback\" or \"Run the frontend "
3938 "in a window\" is not checked."));
3946 gc->
setLabel(MacMainSettings::tr(
"Video in main window"));
3950 gc->
setHelpText(MacMainSettings::tr(
"If enabled, video will be displayed "
3951 "in the main GUI window. Disable this "
3952 "when you only want video on the "
3953 "desktop or in a floating window. Only "
3954 "valid when \"Use GUI size for TV "
3955 "playback\" and \"Run the frontend in "
3956 "a window\" are checked."));
3964 gs->
setLabel(MacMainSettings::tr(
"Frames to skip"));
3968 gs->
setHelpText(MacMainSettings::tr(
"Video in the main window will skip "
3969 "this many frames for each frame "
3970 "drawn. Set to 0 to show every "
3979 gs->
setLabel(MacMainSettings::tr(
"Opacity"));
3983 gs->
setHelpText(MacMainSettings::tr(
"The opacity of the main window. Set "
3984 "to 100 for completely opaque, set "
3985 "to 0 for completely transparent."));
3993 gc->
setLabel(MacFloatSettings::tr(
"Video in floating window"));
3997 gc->
setHelpText(MacFloatSettings::tr(
"If enabled, video will be displayed "
3998 "in a floating window. Only valid "
3999 "when \"Use GUI size for TV "
4000 "playback\" and \"Run the frontend "
4001 "in a window\" are checked."));
4009 gs->
setLabel(MacFloatSettings::tr(
"Frames to skip"));
4013 gs->
setHelpText(MacFloatSettings::tr(
"Video in the floating window will "
4014 "skip this many frames for each "
4015 "frame drawn. Set to 0 to show "
4024 gs->
setLabel(MacFloatSettings::tr(
"Opacity"));
4028 gs->
setHelpText(MacFloatSettings::tr(
"The opacity of the floating window. "
4029 "Set to 100 for completely opaque, "
4030 "set to 0 for completely "
4039 gc->
setLabel(MacDockSettings::tr(
"Video in the dock"));
4043 gc->
setHelpText(MacDockSettings::tr(
"If enabled, video will be displayed "
4044 "in the application's dock icon. Only "
4045 "valid when \"Use GUI size for TV "
4046 "playback\" and \"Run the frontend in "
4047 "a window\" are checked."));
4055 gs->
setLabel(MacDockSettings::tr(
"Frames to skip"));
4059 gs->
setHelpText(MacDockSettings::tr(
"Video in the dock icon will skip this "
4060 "many frames for each frame drawn. Set "
4061 "to 0 to show every frame."));
4069 gc->
setLabel(MacDesktopSettings::tr(
"Video on the desktop"));
4073 gc->
setHelpText(MacDesktopSettings::tr(
"If enabled, video will be "
4074 "displayed on the desktop, "
4075 "behind the Finder icons. "
4076 "Only valid when \"Use GUI "
4077 "size for TV playback\" and "
4078 "\"Run the frontend in a "
4079 "window\" are checked."));
4087 gs->
setLabel(MacDesktopSettings::tr(
"Frames to skip"));
4091 gs->
setHelpText(MacDesktopSettings::tr(
"Video on the desktop will skip "
4092 "this many frames for each frame "
4093 "drawn. Set to 0 to show every "
4118 setLabel(MainGeneralSettings::tr(
"Shutdown/Reboot Settings"));
4122 #ifndef Q_OS_ANDROID
4206 pin->setLabel(tr(
"Settings Access"));
4211 general->setLabel(tr(
"General"));
4216 if (sh->hasPrefixes()) {
4221 general->addChild(SortCaseSensitive());
4224 general->addChild(stripPrefixes);
4235 remotecontrol->setLabel(tr(
"Remote Control"));
4242 remotecontrol->addChild(cec);
4243 m_cecPowerOnTVAllowed = CECPowerOnTVAllowed();
4244 m_cecPowerOffTVAllowed = CECPowerOffTVAllowed();
4245 m_cecPowerOnTVOnStart = CECPowerOnTVOnStart();
4246 m_cecPowerOffTVOnExit = CECPowerOffTVOnExit();
4252 this, &MainGeneralSettings::cecChanged);
4254 this, &MainGeneralSettings::cecChanged);
4255 #endif // USING_LIBCEC
4258 #ifdef USING_AIRPLAY
4260 airplay->setLabel(tr(
"AirPlay Settings"));
4261 airplay->addChild(AirPlayEnabled());
4262 airplay->addChild(AirPlayFullScreen());
4263 airplay->addChild(AirPlayAudioOnly());
4264 airplay->addChild(AirPlayPasswordSettings());
4272 void MainGeneralSettings::cecChanged(
bool )
4274 if (m_cecPowerOnTVAllowed->boolValue())
4275 m_cecPowerOnTVOnStart->setEnabled(
true);
4278 m_cecPowerOnTVOnStart->setEnabled(
false);
4279 m_cecPowerOnTVOnStart->setValue(
false);
4282 if (m_cecPowerOffTVAllowed->boolValue())
4283 m_cecPowerOffTVOnExit->setEnabled(
true);
4286 m_cecPowerOffTVOnExit->setEnabled(
false);
4287 m_cecPowerOffTVOnExit->setValue(
false);
4290 #endif // USING_LIBCEC
4294 QStringList strlist( QString(
"REFRESH_BACKEND") );
4296 LOG(VB_GENERAL, LOG_ERR, QString(
"%1 called").arg(__FUNCTION__));
4319 setLabel(PlaybackSettings::tr(
"Scaling"));
4343 item->
SetText(PlaybackSettings::tr(
"No scaling"),
"value");
4347 item->
SetText(QString(
"%1%x%2%+%3%+%4%")
4380 auto *
menu =
new MythMenu(tr(
"Playback Profile Menu"),
this,
"mainmenu");
4392 menuPopup->SetReturnEvent(
this,
"mainmenu");
4394 if (menuPopup->Create())
4410 config->DecreasePriority();
4427 config->IncreasePriority();
4449 general->setLabel(tr(
"General Playback"));
4471 advanced->setLabel(tr(
"Advanced Playback Settings"));
4492 pbox->setLabel(tr(
"View Recordings"));
4501 pbox2->setLabel(tr(
"Recording Groups"));
4507 pbox->addChild(pbox2);
4516 pbox->addChild(playbackWatchList);
4520 seek->setLabel(tr(
"Seeking"));
4528 comms->setLabel(tr(
"Commercial Skip"));
4539 mac->
setLabel(tr(
"Mac OS X Video Settings"));
4594 general->setLabel(tr(
"General (Basic)"));
4603 autoexp->setLabel(tr(
"General (Auto-Expire)"));
4621 jobs->setLabel(tr(
"General (Jobs)"));
4632 general2->setLabel(tr(
"General (Advanced)"));
4644 changrp->setLabel(tr(
"General (Channel Groups)"));
4665 sched->setLabel(tr(
"Scheduler Options"));
4676 access->setLabel(tr(
"Accessibility Options"));
4705 setLabel(AppearanceSettings::tr(
"GUI dimension"));
4728 item->
SetText(AppearanceSettings::tr(
"Fullscreen"),
"value");
4732 item->
SetText(QString(
"%1x%2+%3+%4")
4748 QCoreApplication::processEvents();
4755 QList screens = QGuiApplication::screens();
4756 for (QScreen *qscreen : std::as_const(screens))
4768 screen->setLabel(tr(
"Theme / Screen Settings"));
4796 #ifdef USING_AIRPLAY
4797 screen->addChild(AirPlayFullScreen());
4803 std::vector<MythDisplayMode> scr = display->
GetVideoModes();
4810 dates->setLabel(tr(
"Localization"));
4832 gc->
setLabel(AppearanceSettings::tr(
"Select from Channel Group"));
4833 gc->addSelection(
"All Channels");
4837 for (
const auto &chgrp : list)
4839 gc->addSelection(chgrp.m_name);
4842 "Select the channel group to select channels from. "
4843 "\"All Channels\" lets you choose from all channels of all video sources. "
4844 "\"Priority\" lets you choose from all channels that have recording priority. "
4845 "The other values let you select a video source to choose channels from."));
4853 const QString &channum,
const QString &name);
4861 const QString &channum,
const QString &channame)
4862 : m_channelId(chanid)
4864 setLabel(QString(
"%1 %2").arg(channum, channame));
4865 setHelpText(ChannelGroupSettings::tr(
"Select/Unselect channels for this channel group"));
4870 : m_groupId(groupId)
4872 setLabel(groupName ==
"Favorites" ? tr(
"Favorites") : groupName);
4889 "INSERT INTO channelgroupnames (name) VALUE (:NEWNAME);";
4898 QString qstr2 =
"SELECT grpid FROM channelgroupnames "
4899 "WHERE name = :NEWNAME;";
4912 QString qstr =
"UPDATE channelgroupnames set name = :NEWNAME "
4913 " WHERE name = :OLDNAME ;";
4933 QList<StandardSetting *>::const_iterator i;
4934 for (i = children->constBegin(); i != children->constEnd(); ++i)
4936 if ((*i)->haveChanged())
4943 if (channel->boolValue())
4965 LOG(VB_GENERAL, LOG_INFO,
4966 QString(
"ChannelGroupSetting::LoadChannelGroup group:%1 groupId:%2")
4967 .arg(group).arg(groupId));
4973 it.second->setVisible(
false);
4990 if (fromGroupId == -1)
4993 "SELECT channel.chanid, channum, name, grpid FROM channel "
4994 "LEFT JOIN channelgroup "
4995 "ON (channel.chanid = channelgroup.chanid AND grpid = :GRPID) "
4996 "WHERE deleted IS NULL "
4998 "ORDER BY channum+0; ");
5004 "SELECT channel.chanid, channum, name, cg2.grpid FROM channel "
5005 "RIGHT JOIN channelgroup AS cg1 "
5006 "ON (channel.chanid = cg1.chanid AND cg1.grpid = :FROMGRPID) "
5007 "LEFT JOIN channelgroup AS cg2 "
5008 "ON (channel.chanid = cg2.chanid AND cg2.grpid = :GRPID) "
5009 "WHERE deleted IS NULL "
5011 "ORDER BY channum+0; ");
5013 query.
bindValue(
":FROMGRPID", fromGroupId);
5017 MythDB::DBError(
"ChannelGroupSetting::LoadChannelGroupChannels", query);
5020 while (query.
next())
5022 auto chanid = query.
value(0).toUInt();
5023 auto channum = query.
value(1).toString();
5024 auto name = query.
value(2).toString();
5025 auto checked = !query.
value(3).isNull();
5026 auto pair = std::make_pair(
m_groupId, chanid);
5032 checkBox = it->second;
5079 query.
prepare(
"DELETE FROM channelgroup WHERE grpid = :GRPID;");
5085 query.
prepare(
"DELETE FROM channelgroupnames WHERE grpid = :GRPID;");
5105 for (
auto it = list.begin(); it < list.end(); ++it)
5107 QString name = (it->m_name ==
"Favorites") ? tr(
"Favorites") : it->m_name;
5122 tr(
"Enter the name of the new channel group"));
5124 if (settingdialog->Create())
5132 delete settingdialog;
5139 button->setLabel(name);