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 "
477class 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."));
845 tr(
"When unchecked the deblocking loopfilter will be disabled. ") +
"\n" +
846 tr(
"Disabling will significantly reduce the load on the CPU for software decoding of "
847 "H.264 and HEVC material but may significantly reduce video quality."));
850 "The default scaler provides good quality in the majority of situations. "
851 "Higher quality scalers may offer some benefit when scaling very low "
852 "resolution material but may not be as fast."));
897 QString height_value;
901 for (
uint i = 0; i < 2; ++i)
903 QString pcmp =
m_item.
Get(QString(
"pref_cmp%1").arg(i));
906 QStringList clist = pcmp.split(
" ");
908 if (clist.size() < 3)
910 if (!width_value.isEmpty())
912 width_value.append(
"&");
913 height_value.append(
"&");
915 width_value.append(clist[0]+clist[1]);
916 height_value.append(clist[0]+clist[2]);
922 if (!width_value.isEmpty())
923 width_value.append(
"&");
924 width_value.append(
tmp);
929 if (!height_value.isEmpty())
930 height_value.append(
"&");
931 height_value.append(
tmp);
937 if (codecs.isEmpty())
949 if (upscale.isEmpty())
956 QStringList::const_iterator itr = decr.cbegin();
957 QStringList::const_iterator itn = decn.cbegin();
960 for (; (itr != decr.cend()) && (itn != decn.cend()); ++itr, ++itn)
963 found |= (*itr == pdecoder);
965 if (!found && !pdecoder.isEmpty())
969 if (!pmax_cpus.isEmpty())
975 if (!prenderer.isEmpty())
1009 ShowOkPopup(tr(
"Invalid width specification(%1), discarded").arg(val));
1023 ShowOkPopup(tr(
"Invalid height specification(%1), discarded").arg(val));
1037 ShowOkPopup(tr(
"Invalid frame rate specification(%1), discarded").arg(val));
1049 for (
const auto & rend : std::as_const(renderers))
1050 prenderer = (rend == vrenderer) ? vrenderer : prenderer;
1051 if (prenderer.isEmpty())
1055 for (
const auto & rend : std::as_const(renderers))
1057 if ((!rend.contains(
"null")))
1059 rend, (rend == prenderer));
1100 bool enabled =
true;
1131 QString quality = Deint->
getValue();
1133 values.append(quality);
1143 return values.join(
":");
1148 QStringList actions;
1153 if (std::any_of(actions.cbegin(), actions.cend(),
1154 [](
const QString &
action) { return action ==
"DELETE"; } ))
1165 QString message = tr(
"Remove this profile item?");
1169 if (confirmDelete->Create())
1177 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())
1394 delete settingdialog;
1403 if (not_ok_list.contains(name) || name.isEmpty())
1405 QString msg = (name.isEmpty()) ?
1406 tr(
"Sorry, playback group\nname cannot be blank.") :
1407 tr(
"Sorry, playback group name\n"
1408 "'%1' is already being used.").arg(name);
1424 std::array<QString,4> str
1426 PlaybackSettings::tr(
"Sort all sub-titles/multi-titles Ascending"),
1427 PlaybackSettings::tr(
"Sort all sub-titles/multi-titles Descending"),
1428 PlaybackSettings::tr(
"Sort sub-titles Descending, multi-titles "
1430 PlaybackSettings::tr(
"Sort sub-titles Ascending, multi-titles Descending"),
1433 QString
help = PlaybackSettings::tr(
"Selects how to sort show episodes. "
1434 "Sub-titles refers to the episodes "
1435 "listed under a specific show title. "
1436 "Multi-title refers to sections (e.g. "
1437 "\"All Programs\") which list multiple "
1438 "titles. Sections in parentheses are "
1443 gc->setLabel(PlaybackSettings::tr(
"Episode sort orderings"));
1445 for (
size_t i = 0; i < str.size(); ++i)
1446 gc->addSelection(str[i], QString::number(i));
1449 gc->setHelpText(
help);
1458 gc->setLabel(PlaybackSettings::tr(
"Sort episodes"));
1460 gc->addSelection(PlaybackSettings::tr(
"Record date"),
"Date");
1461 gc->addSelection(PlaybackSettings::tr(
"Season/Episode"),
"Season");
1462 gc->addSelection(PlaybackSettings::tr(
"Original air date"),
"OrigAirDate");
1463 gc->addSelection(PlaybackSettings::tr(
"Program ID"),
"Id");
1465 gc->setHelpText(PlaybackSettings::tr(
"Selects how to sort a show's "
1475 gs->setLabel(PlaybackSettings::tr(
"Fast forward/rewind reposition amount"));
1479 gs->setHelpText(PlaybackSettings::tr(
"When exiting sticky keys fast "
1480 "forward/rewind mode, reposition "
1481 "this many 1/100th seconds before "
1482 "resuming normal playback. This "
1483 "compensates for the reaction time "
1484 "between seeing where to resume "
1485 "playback and actually exiting "
1494 gc->setLabel(PlaybackSettings::tr(
"Reverse direction in fast "
1499 gc->setHelpText(PlaybackSettings::tr(
"If enabled, pressing the sticky "
1500 "rewind key in fast forward mode "
1501 "switches to rewind mode, and "
1502 "vice versa. If disabled, it will "
1503 "decrease the current speed or "
1504 "switch to play mode if the speed "
1505 "can't be decreased further."));
1523 paint->setLabel(AppearanceSettings::tr(
"Paint engine"));
1524 for (
const auto & option :
options)
1525 paint->addSelection(option, option, option == pref);
1527 paint->setHelpText(AppearanceSettings::tr(
"This selects what MythTV uses to draw. "));
1535 gc->setLabel(AppearanceSettings::tr(
"Menu theme"));
1539 QList<ThemeInfo>::iterator it;
1540 for( it = themelist.begin(); it != themelist.end(); ++it )
1542 gc->addSelection((*it).GetName(), (*it).GetDirectoryName(),
1543 (*it).GetDirectoryName() ==
"defaultmenu");
1553 QString fmt = beVBI.toLower().left(4);
1554 int sel = (fmt ==
"pal ") ? 1 : ((fmt ==
"ntsc") ? 2 : 0);
1558 gc->
setLabel(OSDSettings::tr(
"Decode VBI format"));
1562 gc->
addSelection(OSDSettings::tr(
"PAL teletext"),
"pal_txt",
1564 gc->
addSelection(OSDSettings::tr(
"NTSC closed caption"),
"ntsc_cc",
1568 OSDSettings::tr(
"If enabled, this overrides the mythtv-setup setting "
1569 "used during recording when decoding captions."));
1577 static const QRegularExpression crlf {
"[\r\n]" };
1578 static const QRegularExpression suffix {
"(//.*)" };
1582 gc->
setLabel(OSDSettings::tr(
"Subtitle Codec"));
1586 QScopedPointer<MythSystem>
1590 QString
results = cmd->GetStandardOutputStream()->readAll();
1591 QStringList list =
results.toLower().split(crlf, Qt::SkipEmptyParts);
1592 list.replaceInStrings(suffix,
"");
1595 for (
const auto & codec : std::as_const(list))
1597 QString val = QString(codec);
1608 gc->
setLabel(GeneralSettings::tr(
"Channel ordering"));
1610 gc->
addSelection(GeneralSettings::tr(
"channel number"),
"channum");
1611 gc->
addSelection(GeneralSettings::tr(
"callsign"),
"callsign");
1620 gs->setLabel(PlaybackSettings::tr(
"Vertical scaling"));
1624 gs->setHelpText(PlaybackSettings::tr(
"Adjust this if the image does not "
1625 "fill your screen vertically. Range "
1634 gs->setLabel(PlaybackSettings::tr(
"Horizontal scaling"));
1638 gs->setHelpText(PlaybackSettings::tr(
"Adjust this if the image does not "
1639 "fill your screen horizontally. Range "
1648 gs->setLabel(PlaybackSettings::tr(
"Scan displacement (X)"));
1652 gs->setHelpText(PlaybackSettings::tr(
"Adjust this to move the image "
1662 gs->setLabel(PlaybackSettings::tr(
"Scan displacement (Y)"));
1666 gs->setHelpText(PlaybackSettings::tr(
"Adjust this to move the image "
1676 gc->
setLabel(OSDSettings::tr(
"Always display closed captioning or "
1681 gc->
setHelpText(OSDSettings::tr(
"If enabled, captions will be displayed "
1682 "when playing back recordings or watching "
1683 "Live TV. Closed Captioning can be turned "
1684 "on or off by pressing \"T\" during"
1693 gc->
setLabel(OSDSettings::tr(
"Enable interactive TV"));
1697 gc->
setHelpText(OSDSettings::tr(
"If enabled, interactive TV applications "
1698 "(MHEG) will be activated. This is used "
1699 "for teletext and logos for radio and "
1700 "channels that are currently off-air."));
1707 gc->
setLabel(OSDSettings::tr(
"Enable network access for interactive TV"));
1709 gc->
setHelpText(OSDSettings::tr(
"If enabled, interactive TV applications "
1710 "(MHEG) will be able to access interactive "
1711 "content over the Internet. This is used "
1712 "for BBC iPlayer."));
1719 combo->setLabel(OSDSettings::tr(
"Visualiser for audio only playback"));
1720 combo->setHelpText(OSDSettings::tr(
"Select a visualisation to use when there "
1721 "is no video. Defaults to none."));
1722 combo->addSelection(
"None",
"");
1724 for (
const auto & visual : std::as_const(visuals))
1725 combo->addSelection(visual, visual);
1733 gc->
setLabel(OSDSettings::tr(
"Always use browse mode in Live TV"));
1737 gc->
setHelpText(OSDSettings::tr(
"If enabled, browse mode will "
1738 "automatically be activated whenever "
1739 "you use channel up/down while watching "
1748 gc->
setLabel(OSDSettings::tr(
"Browse all channels"));
1752 gc->
setHelpText(OSDSettings::tr(
"If enabled, browse mode will show "
1753 "channels on all available recording "
1754 "devices, instead of showing channels "
1755 "on just the current recorder."));
1763 gc->
setLabel(PlaybackSettings::tr(
"Playback from start of program"));
1767 gc->
setHelpText(PlaybackSettings::tr(
"If enabled and no bookmark is set, "
1768 "playback starts at the program "
1769 "scheduled start time rather than "
1770 "the beginning of the recording. "
1771 "Useful for automatically skipping "
1772 "'start early' parts of a recording."));
1780 gc->
setLabel(PlaybackSettings::tr(
"Action on playback exit"));
1782 gc->
addSelection(PlaybackSettings::tr(
"Just exit"),
"0");
1783 gc->
addSelection(PlaybackSettings::tr(
"Clear last played position and exit"),
"16");
1784 gc->
addSelection(PlaybackSettings::tr(
"Always prompt (excluding Live TV)"),
1786 gc->
addSelection(PlaybackSettings::tr(
"Always prompt (including Live TV)"),
1788 gc->
addSelection(PlaybackSettings::tr(
"Prompt for Live TV only"),
"8");
1790 gc->
setHelpText(PlaybackSettings::tr(
"If set to prompt, a menu will be "
1791 "displayed when you exit playback "
1792 "mode. The options available will "
1793 "allow you delete the recording, "
1794 "continue watching, or exit."));
1802 gc->
setLabel(PlaybackSettings::tr(
"Prompt at end of recording"));
1806 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, a menu will be displayed "
1807 "allowing you to delete the recording "
1808 "when it has finished playing."));
1816 gc->
setLabel(PlaybackSettings::tr(
"Enable Music Choice"));
1820 gc->
setHelpText(PlaybackSettings::tr(
"Enable this to improve playing of Music Choice channels "
1821 "or recordings from those channels. "
1822 "These are audio channels with slide show "
1823 "from some cable providers. "
1824 "In unusual situations this could cause lip sync problems "
1825 "watching normal videos or TV shows."));
1833 gc->
setLabel(PlaybackSettings::tr(
"Jump to program OSD"));
1837 gc->
setHelpText(PlaybackSettings::tr(
"Set the choice between viewing the "
1838 "current recording group in the OSD, "
1839 "or showing the 'Watch Recording' "
1840 "screen when 'Jump to Program' is "
1841 "activated. If enabled, the "
1842 "recordings are shown in the OSD"));
1850 gc->
setLabel(PlaybackSettings::tr(
"Continue playback when embedded"));
1854 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, TV playback continues "
1855 "when the TV window is embedded in "
1856 "the upcoming program list or "
1857 "recorded list. The default is to "
1858 "pause the recorded show when "
1867 gc->
setLabel(PlaybackSettings::tr(
"Automatically mark a recording as "
1872 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, when you exit near the "
1873 "end of a recording it will be marked "
1874 "as watched. The automatic detection "
1875 "is not foolproof, so do not enable "
1876 "this setting if you don't want an "
1877 "unwatched recording marked as "
1886 gc->
setLabel(PlaybackSettings::tr(
"Always show watched percent progress bar"));
1890 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, shows the watched percent "
1891 "progress bar even if the recording or "
1892 "video is marked as watched. "
1893 "Having a watched percent progress bar at "
1894 "all depends on the currently used theme."));
1902 gs->setLabel(PlaybackSettings::tr(
"Live TV idle timeout (mins)"));
1906 gs->setHelpText(PlaybackSettings::tr(
"Exit Live TV automatically if left "
1907 "idle for the specified number of "
1908 "minutes. 0 disables the timeout."));
1949 gc->
setLabel(MainGeneralSettings::tr(
"Use line edit virtual keyboards"));
1953 gc->
setHelpText(MainGeneralSettings::tr(
"If enabled, you can use a virtual "
1954 "keyboard in MythTV's line edit "
1955 "boxes. To use, hit SELECT (Enter "
1956 "or Space) while a line edit is in "
1965 gs->setLabel(MainGeneralSettings::tr(
"Idle time before entering standby "
1970 gs->setHelpText(MainGeneralSettings::tr(
"Number of minutes to wait when "
1971 "the frontend is idle before "
1972 "entering standby mode. Standby "
1973 "mode allows the backend to power "
1974 "down if configured to do so. Any "
1975 "remote or mouse input will cause "
1976 "the countdown to start again "
1977 "and/or exit idle mode. Video "
1978 "playback suspends the countdown. "
1979 "A value of zero prevents the "
1980 "frontend automatically entering "
1988 checkbox->setLabel(MainGeneralSettings::tr(
"Confirm before suspending/shutting down"));
1989 checkbox->setHelpText(MainGeneralSettings::tr(
1990 "If enabled (the default) then the user will always be asked to confirm before the system "
1991 "is shutdown, suspended or rebooted."));
1992 checkbox->setValue(
true);
2000 gc->
setLabel(MainGeneralSettings::tr(
"Customize exit menu options"));
2002 gc->
addSelection(MainGeneralSettings::tr(
"Default"),
"0");
2003 gc->
addSelection(MainGeneralSettings::tr(
"Show quit"),
"1");
2004 gc->
addSelection(MainGeneralSettings::tr(
"Show quit and suspend"),
"9");
2005 gc->
addSelection(MainGeneralSettings::tr(
"Show quit and shutdown"),
"2");
2006 gc->
addSelection(MainGeneralSettings::tr(
"Show quit, reboot and shutdown"),
"3");
2007 gc->
addSelection(MainGeneralSettings::tr(
"Show quit, reboot, shutdown and suspend"),
"10");
2008 gc->
addSelection(MainGeneralSettings::tr(
"Show shutdown"),
"4");
2009 gc->
addSelection(MainGeneralSettings::tr(
"Show reboot"),
"5");
2010 gc->
addSelection(MainGeneralSettings::tr(
"Show reboot and shutdown"),
"6");
2011 gc->
addSelection(MainGeneralSettings::tr(
"Show standby"),
"7");
2012 gc->
addSelection(MainGeneralSettings::tr(
"Show suspend"),
"8");
2014 QString helptext = MainGeneralSettings::tr(
"By default, only remote frontends are shown "
2015 "the shutdown option on the exit menu. Here "
2016 "you can force specific shutdown, reboot and suspend "
2017 "options to be displayed.");
2021 if (!supported.isEmpty())
2023 helptext.prepend(MainGeneralSettings::tr(
2024 "This system supports '%1' without additional setup. ")
2025 .arg(supported.join(
", ")));
2029 helptext.append(MainGeneralSettings::tr(
2030 " This system appears to have no power options available. Try "
2031 "setting the Halt/Reboot/Suspend commands below."));
2043 ge->setLabel(MainGeneralSettings::tr(
"Reboot command"));
2045 QString
help = MainGeneralSettings::tr(
2046 "Optional. Script to run if you select the reboot option from the "
2047 "exit menu, if the option is displayed. You must configure an "
2048 "exit key to display the exit menu.");
2051 help.append(MainGeneralSettings::tr(
2052 " Note: This system appears to support reboot without using this setting."));
2054 ge->setHelpText(
help);
2061 suspend->setLabel(MainGeneralSettings::tr(
"Suspend command"));
2062 suspend->setValue(
"");
2063 QString
help = MainGeneralSettings::tr(
2064 "Optional: Script to run if you select the suspend option from the "
2065 "exit menu, if the option is displayed.");
2069 help.append(MainGeneralSettings::tr(
2070 " Note: This system appears to support suspend without using this setting."));
2072 suspend->setHelpText(
help);
2079 ge->setLabel(MainGeneralSettings::tr(
"Halt command"));
2081 QString
help = MainGeneralSettings::tr(
"Optional. Script to run if you "
2082 "select the shutdown option from "
2083 "the exit menu, if the option is "
2084 "displayed. You must configure an "
2085 "exit key to display the exit "
2089 help.append(MainGeneralSettings::tr(
2090 " Note: This system appears to support shutdown without using this setting."));
2093 ge->setHelpText(
help);
2102 ge->setLabel(MainGeneralSettings::tr(
"LIRC daemon socket"));
2105 QString lirc_socket =
"/dev/lircd";
2108 lirc_socket =
"/var/run/lirc/lircd";
2110 ge->setValue(lirc_socket);
2112 QString
help = MainGeneralSettings::tr(
"UNIX socket or IP address[:port] "
2113 "to connect in order to communicate "
2114 "with the LIRC Daemon.");
2115 ge->setHelpText(
help);
2125 ge->setLabel(MainGeneralSettings::tr(
"CEC Device"));
2127 ge->setValue(
"/dev/cec0");
2129 QString
help = MainGeneralSettings::tr(
"CEC Device. Default is /dev/cec0 "
2130 "if you have only 1 HDMI output "
2132 ge->setHelpText(
help);
2143 ge->setLabel(MainGeneralSettings::tr(
"Screen shot path"));
2145 ge->setValue(
"/tmp/");
2147 ge->setHelpText(MainGeneralSettings::tr(
"Path to screenshot storage "
2148 "location. Should be writable "
2149 "by the frontend"));
2158 ge->setLabel(MainGeneralSettings::tr(
"Setup PIN code"));
2160 ge->setHelpText(MainGeneralSettings::tr(
"This PIN is used to control "
2161 "access to the setup menus. "
2162 "If you want to use this feature, "
2163 "then setting the value to all "
2164 "numbers will make your life much "
2165 "easier. Set it to blank to "
2166 "disable. If enabled, you will not "
2167 "be able to return to this screen "
2168 "and reset the Setup PIN without "
2169 "first entering the current PIN."));
2176 gc->
setLabel(AppearanceSettings::tr(
"Display on screen"));
2178 gc->
setHelpText(AppearanceSettings::tr(
"Run on the specified screen or "
2179 "spanning all screens."));
2188 gc->
setLabel(AppearanceSettings::tr(
"Screen aspect ratio"));
2189 gc->
addSelection(AppearanceSettings::tr(
"Auto (Assume square pixels)"),
"-1.0");
2190 gc->
addSelection(AppearanceSettings::tr(
"Auto (Detect from display)"),
"0.0");
2199 gc->
addSelection(AppearanceSettings::tr(
"16:18 (16:9 Above and below)"),
"0.8888");
2200 gc->
addSelection(AppearanceSettings::tr(
"32:10 (16:10 Side by side)"),
"3.2");
2201 gc->
addSelection(AppearanceSettings::tr(
"16:20 (16:10 Above and below)"),
"0.8");
2203 "This setting applies to video playback only, not to the GUI. "
2204 "Most modern displays have square pixels and the aspect ratio of the screen can be "
2205 "computed from the resolution (default). "
2206 "The aspect ratio can also be automatically detected from the connected display "
2207 "- though this may be slightly less accurate. If automatic detection fails, the correct "
2208 "aspect ratio can be specified here. Note: Some values (e.g 32:10) are "
2209 "primarily intended for multiscreen setups."));
2217 gc->
setLabel(PlaybackSettings::tr(
"Letterboxing color"));
2222 gc->
setHelpText(PlaybackSettings::tr(
"By default MythTV uses black "
2223 "letterboxing to match broadcaster "
2224 "letterboxing, but those with plasma "
2225 "screens may prefer gray to minimize "
2233 cb->
setLabel(PlaybackSettings::tr(
"Discard 3D stereoscopic fields"));
2235 "If 'Side by Side' or 'Top and Bottom' 3D material is detected, "
2236 "enabling this setting will discard one field (enabled by default)."));
2245 gc->
setLabel(PlaybackSettings::tr(
"Video aspect override"));
2250 gc->
setHelpText(PlaybackSettings::tr(
"When enabled, these will override "
2251 "the aspect ratio specified by any "
2252 "broadcaster for all video streams."));
2260 gc->
setLabel(PlaybackSettings::tr(
"Zoom"));
2269 gc->
setHelpText(PlaybackSettings::tr(
"When enabled, these will apply a "
2270 "predefined zoom to all video "
2271 "playback in MythTV."));
2281 gs->setLabel(AppearanceSettings::tr(
"GUI width (pixels)"));
2285 gs->setHelpText(AppearanceSettings::tr(
"The width of the GUI. Do not make "
2286 "the GUI wider than your actual "
2287 "screen resolution. Set to 0 to "
2288 "automatically scale to "
2297 gs->setLabel(AppearanceSettings::tr(
"GUI height (pixels)"));
2301 gs->setHelpText(AppearanceSettings::tr(
"The height of the GUI. Do not make "
2302 "the GUI taller than your actual "
2303 "screen resolution. Set to 0 to "
2304 "automatically scale to "
2313 gs->setLabel(AppearanceSettings::tr(
"GUI X offset"));
2317 gs->setHelpText(AppearanceSettings::tr(
"The horizontal offset where the "
2318 "GUI will be displayed. May only "
2319 "work if run in a window."));
2327 gs->setLabel(AppearanceSettings::tr(
"GUI Y offset"));
2331 gs->setHelpText(AppearanceSettings::tr(
"The vertical offset where the "
2332 "GUI will be displayed."));
2340 gc->
setLabel(AppearanceSettings::tr(
"Use GUI size for TV playback"));
2344 gc->
setHelpText(AppearanceSettings::tr(
"If enabled, use the above size for "
2345 "TV, otherwise use full screen."));
2353 gc->
setLabel(AppearanceSettings::tr(
"Force Full Screen for GUI and TV playback"));
2358 "Use Full Screen for GUI and TV playback independent of the settings for "
2359 "the GUI dimensions. This does not change the values of the GUI dimensions "
2360 "so it is easy to switch from window mode to full screen and back."));
2368 gc->
setLabel(VideoModeSettings::tr(
"Separate video modes for GUI and "
2374 "Switch video modes for playback depending on the source "
2375 "resolution and frame rate."));
2384 gs->setLabel(VideoModeSettings::tr(
"In X",
"Video mode width"));
2388 gs->setHelpText(VideoModeSettings::tr(
"Horizontal resolution of video "
2389 "which needs a special output "
2399 gs->setLabel(VideoModeSettings::tr(
"In Y",
"Video mode height"));
2403 gs->setHelpText(VideoModeSettings::tr(
"Vertical resolution of video "
2404 "which needs a special output "
2413 gc->
setLabel(VideoModeSettings::tr(
"GUI"));
2415 gc->
setHelpText(VideoModeSettings::tr(
"Resolution of screen when not "
2416 "watching a video."));
2419 std::vector<MythDisplayMode> scr = display->
GetVideoModes();
2420 for (
auto & vmode : scr)
2422 int w = vmode.Width();
2423 int h = vmode.Height();
2424 QString sel = QString(
"%1x%2").arg(w).arg(h);
2434 if ((w <= 0) || (h <= 0))
2443 gc->
setValue((i >= 0) ? i : scr.size() - 1);
2451 QString dhelp = VideoModeSettings::tr(
"Default screen resolution "
2452 "when watching a video.");
2453 QString ohelp = VideoModeSettings::tr(
"Screen resolution when watching a "
2454 "video at a specific resolution.");
2456 QString qstr = (idx<0) ?
"TVVidModeResolution" :
2457 QString(
"TVVidModeResolution%1").arg(idx);
2459 QString lstr = (idx<0) ? VideoModeSettings::tr(
"Video output") :
2460 VideoModeSettings::tr(
"Output");
2461 QString hstr = (idx<0) ? dhelp : ohelp;
2468 std::vector<MythDisplayMode> scr = display->
GetVideoModes();
2469 for (
auto & vmode : scr)
2471 QString sel = QString(
"%1x%2").arg(vmode.Width()).arg(vmode.Height());
2480 const QString previousValue =
getValue();
2484 QString resolution = setting->
getValue();
2489 for (
size_t i = 0; i < list.size(); ++i)
2491 QString sel = QString::number((
double) list[i],
'f', 3);
2493 hz50 = (fabs(50.0 - list[i]) < 0.01) ? i : hz50;
2494 hz60 = (fabs(60.0 - list[i]) < 0.01) ? i : hz60;
2500 if (wasUnchanged && previousValue ==
getValue())
2504 if (
"640x480" == resolution ||
"720x480" == resolution)
2506 if (
"640x576" == resolution ||
"720x576" == resolution)
2515 QStringList slist = res.split(
"x");
2520 if (2 == slist.size())
2522 width = slist[0].toInt(&ok0);
2523 height = slist[1].toInt(&ok1);
2526 std::vector<double> result;
2529 QSize
size(width, height);
2538 QString dhelp = VideoModeSettings::tr(
"Default refresh rate when watching "
2539 "a video. Leave at \"Auto\" to "
2540 "automatically use the best "
2542 QString ohelp = VideoModeSettings::tr(
"Refresh rate when watching a "
2543 "video at a specific resolution. "
2544 "Leave at \"Auto\" to automatically "
2545 "use the best available");
2547 QString qstr = (idx<0) ?
"TVVidModeRefreshRate" :
2548 QString(
"TVVidModeRefreshRate%1").arg(idx);
2550 QString lstr = VideoModeSettings::tr(
"Rate");
2551 QString hstr = (idx<0) ? dhelp : ohelp;
2561 QString dhelp = VideoModeSettings::tr(
"Aspect ratio when watching a "
2562 "video. Leave at \"%1\" to "
2563 "use ratio reported by the monitor. "
2564 "Set to 16:9 or 4:3 to force a "
2565 "specific aspect ratio.");
2569 QString ohelp = VideoModeSettings::tr(
"Aspect ratio when watching a "
2570 "video at a specific resolution. "
2571 "Leave at \"%1\" to use ratio "
2572 "reported by the monitor. Set to "
2573 "16:9 or 4:3 to force a specific "
2576 QString qstr = (idx<0) ?
"TVVidModeForceAspect" :
2577 QString(
"TVVidModeForceAspect%1").arg(idx);
2581 gc->
setLabel(VideoModeSettings::tr(
"Aspect"));
2583 QString hstr = (idx<0) ? dhelp : ohelp;
2585 gc->
setHelpText(hstr.arg(VideoModeSettings::tr(
"Default")));
2587 gc->
addSelection(VideoModeSettings::tr(
"Default"),
"0.0");
2603 pause->setLabel(VideoModeSettings::tr(
"Pause while switching video modes (ms)"));
2604 pause->setHelpText(VideoModeSettings::tr(
2605 "For most displays, switching video modes takes time and content can be missed. "
2606 "If non-zero, this setting will pause playback while the video mode is changed. "
2607 "The required pause length (in ms) will be dependant on the display's characteristics."));
2628 overrides->setLabel(tr(
"Overrides for specific video sizes"));
2630 for (
int idx = 0; idx < 3; ++idx)
2651 gc->
setLabel(AppearanceSettings::tr(
"Hide mouse cursor in MythTV"));
2655 gc->
setHelpText(AppearanceSettings::tr(
"Toggles mouse cursor visibility "
2656 "for touchscreens. By default "
2657 "MythTV will auto-hide the cursor "
2658 "if the mouse doesn't move for a "
2659 "period, this setting disables the "
2660 "cursor entirely."));
2669 gc->
setLabel(AppearanceSettings::tr(
"Use window border"));
2673 gc->
setHelpText(AppearanceSettings::tr(
"Toggles between windowed and "
2674 "borderless operation."));
2682 gc->
setLabel(AppearanceSettings::tr(
"Always On Top"));
2686 gc->
setHelpText(AppearanceSettings::tr(
"If enabled, MythTV will always be "
2695 gc->
setLabel(AppearanceSettings::tr(
"Smooth Transitions"));
2699 gc->
setHelpText(AppearanceSettings::tr(
"Enable smooth transitions with fade-in and fade-out of menu pages and enable GUI animations. "
2700 "Disabling this can make the GUI respond faster especially on low-powered machines."));
2707 "Never show startup screen");
2709 gs->setLabel(AppearanceSettings::tr(
"Startup Screen Delay"));
2713 gs->setHelpText(AppearanceSettings::tr(
2714 "The Startup Screen will show the progress of starting the frontend "
2715 "if frontend startup takes longer than this number of seconds."));
2724 gs->setLabel(AppearanceSettings::tr(
"GUI text zoom percentage"));
2728 gs->setHelpText(AppearanceSettings::tr
2729 (
"Adjust the themed defined font size by this percentage. "
2730 "mythfrontend needs restart for this to take effect."));
2738 gc->
setLabel(AppearanceSettings::tr(
"Date format"));
2741 QString sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2744 if (sampdate.month() == sampdate.day())
2746 sampdate = sampdate.addDays(1);
2747 sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2748 "tomorrow's date.");
2753 gc->
addSelection(locale.toString(sampdate,
"ddd MMM d"),
"ddd MMM d");
2754 gc->
addSelection(locale.toString(sampdate,
"ddd d MMM"),
"ddd d MMM");
2755 gc->
addSelection(locale.toString(sampdate,
"ddd MMMM d"),
"ddd MMMM d");
2756 gc->
addSelection(locale.toString(sampdate,
"ddd d MMMM"),
"ddd d MMMM");
2757 gc->
addSelection(locale.toString(sampdate,
"dddd MMM d"),
"dddd MMM d");
2758 gc->
addSelection(locale.toString(sampdate,
"dddd d MMM"),
"dddd d MMM");
2759 gc->
addSelection(locale.toString(sampdate,
"MMM d"),
"MMM d");
2760 gc->
addSelection(locale.toString(sampdate,
"d MMM"),
"d MMM");
2761 gc->
addSelection(locale.toString(sampdate,
"MM/dd"),
"MM/dd");
2762 gc->
addSelection(locale.toString(sampdate,
"dd/MM"),
"dd/MM");
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,
"M/d/yyyy"),
"M/d/yyyy");
2766 gc->
addSelection(locale.toString(sampdate,
"d/M/yyyy"),
"d/M/yyyy");
2767 gc->
addSelection(locale.toString(sampdate,
"MM.dd.yyyy"),
"MM.dd.yyyy");
2768 gc->
addSelection(locale.toString(sampdate,
"dd.MM.yyyy"),
"dd.MM.yyyy");
2769 gc->
addSelection(locale.toString(sampdate,
"yyyy-MM-dd"),
"yyyy-MM-dd");
2770 gc->
addSelection(locale.toString(sampdate,
"ddd MMM d yyyy"),
"ddd MMM d yyyy");
2771 gc->
addSelection(locale.toString(sampdate,
"ddd d MMM yyyy"),
"ddd d MMM yyyy");
2772 gc->
addSelection(locale.toString(sampdate,
"ddd yyyy-MM-dd"),
"ddd yyyy-MM-dd");
2774 QString cn_long = QString(
"dddd yyyy") + QChar(0x5E74) +
2775 "M" + QChar(0x6708) +
"d"+ QChar(0x65E5);
2776 gc->
addSelection(locale.toString(sampdate, cn_long), cn_long);
2777 QString cn_med = QString(
"dddd ") +
2778 "M" + QChar(0x6708) +
"d"+ QChar(0x65E5);
2780 gc->
addSelection(locale.toString(sampdate, cn_med), cn_med);
2783 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred date format. %1")
2792 gc->
setLabel(AppearanceSettings::tr(
"Short date format"));
2796 QString sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2799 if (sampdate.month() == sampdate.day())
2801 sampdate = sampdate.addDays(1);
2802 sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2803 "tomorrow's date.");
2807 gc->
addSelection(locale.toString(sampdate,
"M/d"),
"M/d");
2808 gc->
addSelection(locale.toString(sampdate,
"d/M"),
"d/M");
2809 gc->
addSelection(locale.toString(sampdate,
"MM/dd"),
"MM/dd");
2810 gc->
addSelection(locale.toString(sampdate,
"dd/MM"),
"dd/MM");
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,
"M.d."),
"M.d.");
2814 gc->
addSelection(locale.toString(sampdate,
"d.M."),
"d.M.");
2815 gc->
addSelection(locale.toString(sampdate,
"MM-dd"),
"MM-dd");
2816 gc->
addSelection(locale.toString(sampdate,
"dd-MM"),
"dd-MM");
2817 gc->
addSelection(locale.toString(sampdate,
"MMM d"),
"MMM d");
2818 gc->
addSelection(locale.toString(sampdate,
"d MMM"),
"d MMM");
2819 gc->
addSelection(locale.toString(sampdate,
"ddd d"),
"ddd d");
2820 gc->
addSelection(locale.toString(sampdate,
"d ddd"),
"d ddd");
2821 gc->
addSelection(locale.toString(sampdate,
"ddd M/d"),
"ddd M/d");
2822 gc->
addSelection(locale.toString(sampdate,
"ddd d/M"),
"ddd d/M");
2823 gc->
addSelection(locale.toString(sampdate,
"ddd d.M"),
"ddd d.M");
2824 gc->
addSelection(locale.toString(sampdate,
"ddd dd.MM"),
"ddd dd.MM");
2825 gc->
addSelection(locale.toString(sampdate,
"M/d ddd"),
"M/d ddd");
2826 gc->
addSelection(locale.toString(sampdate,
"d/M ddd"),
"d/M ddd");
2828 QString cn_short1 = QString(
"M") + QChar(0x6708) +
"d" + QChar(0x65E5);
2830 gc->
addSelection(locale.toString(sampdate, cn_short1), cn_short1);
2832 QString cn_short2 = QString(
"ddd M") + QChar(0x6708) +
"d" + QChar(0x65E5);
2834 gc->
addSelection(locale.toString(sampdate, cn_short2), cn_short2);
2837 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred short date format. %1")
2846 gc->
setLabel(AppearanceSettings::tr(
"Time format"));
2848 QTime samptime = QTime::currentTime();
2852 gc->
addSelection(locale.toString(samptime,
"h:mm AP"),
"h:mm AP");
2853 gc->
addSelection(locale.toString(samptime,
"h:mm ap"),
"h:mm ap");
2854 gc->
addSelection(locale.toString(samptime,
"hh:mm AP"),
"hh:mm AP");
2855 gc->
addSelection(locale.toString(samptime,
"hh:mm ap"),
"hh:mm ap");
2856 gc->
addSelection(locale.toString(samptime,
"h:mm"),
"h:mm");
2857 gc->
addSelection(locale.toString(samptime,
"hh:mm"),
"hh:mm");
2858 gc->
addSelection(locale.toString(samptime,
"hh.mm"),
"hh.mm");
2859 gc->
addSelection(locale.toString(samptime,
"AP h:mm"),
"AP h:mm");
2861 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred time format. You "
2862 "must choose a format with \"AM\" "
2863 "or \"PM\" in it, otherwise your "
2864 "time display will be 24-hour or "
2865 "\"military\" time."));
2872 rgb->setLabel(AppearanceSettings::tr(
"Use full range RGB output"));
2873 rgb->setValue(
true);
2874 rgb->setHelpText(AppearanceSettings::tr(
2875 "Enable (recommended) to supply full range RGB output to your display device. "
2876 "Disable to supply limited range RGB output. This setting applies to both the "
2877 "GUI and media playback. Ideally the value of this setting should match a "
2878 "similar setting on your TV or monitor."));
2886 gc->
setLabel(GeneralSettings::tr(
"Channel format"));
2888 gc->
addSelection(GeneralSettings::tr(
"number"),
"<num>");
2889 gc->
addSelection(GeneralSettings::tr(
"number callsign"),
"<num> <sign>");
2890 gc->
addSelection(GeneralSettings::tr(
"number name"),
"<num> <name>");
2891 gc->
addSelection(GeneralSettings::tr(
"callsign"),
"<sign>");
2892 gc->
addSelection(GeneralSettings::tr(
"name"),
"<name>");
2894 gc->
setHelpText(GeneralSettings::tr(
"Your preferred channel format."));
2905 gc->
setLabel(GeneralSettings::tr(
"Long channel format"));
2907 gc->
addSelection(GeneralSettings::tr(
"number"),
"<num>");
2908 gc->
addSelection(GeneralSettings::tr(
"number callsign"),
"<num> <sign>");
2909 gc->
addSelection(GeneralSettings::tr(
"number name"),
"<num> <name>");
2910 gc->
addSelection(GeneralSettings::tr(
"callsign"),
"<sign>");
2911 gc->
addSelection(GeneralSettings::tr(
"name"),
"<name>");
2913 gc->
setHelpText(GeneralSettings::tr(
"Your preferred long channel format."));
2924 gc->
setLabel(ChannelGroupSettings::tr(
"Remember last channel group"));
2926 gc->
setHelpText(ChannelGroupSettings::tr(
"If enabled, the EPG will "
2927 "initially display only the "
2928 "channels from the last channel "
2929 "group selected. Pressing \"4\" "
2930 "will toggle channel group."));
2941 gc->
setLabel(ChannelGroupSettings::tr(
"Default channel group"));
2947 gc->
addSelection(ChannelGroupSettings::tr(
"All Channels"),
"-1");
2949 ChannelGroupList::iterator it;
2951 for (it = changrplist.begin(); it < changrplist.end(); ++it)
2952 gc->
addSelection(it->m_name, QString(
"%1").arg(it->m_grpId));
2954 gc->
setHelpText(ChannelGroupSettings::tr(
"Default channel group to be "
2955 "shown in the EPG. Pressing "
2956 "GUIDE key will toggle channel "
2967 gc->
setLabel(GeneralSettings::tr(
"Browse/change channels from Channel "
2970 gc->
setHelpText(GeneralSettings::tr(
"If enabled, Live TV will browse or "
2971 "change channels from the selected "
2972 "channel group. The \"All Channels\" "
2973 "channel group may be selected to "
2974 "browse all channels."));
2984 gc->
setLabel(GeneralSettings::tr(
"Case-sensitive sorting"));
2986 gc->
setHelpText(GeneralSettings::tr(
"If enabled, all sorting will be "
2987 "case-sensitive. This would mean "
2988 "that \"bee movie\" would sort after "
2989 "\"Sea World\" as lower case letters "
2990 "sort after uppercase letters."));
2999 gc->
setLabel(GeneralSettings::tr(
"Remove prefixes when sorting"));
3002 "If enabled, all sorting will remove the common "
3003 "prefixes (The, A, An) from a string prior to "
3004 "sorting. For example, this would sort the titles "
3005 "\"Earth 2\", \"The Flash\", and \"Kings\" in that "
3006 "order. If disabled, they would sort as \"Earth 2\", "
3007 "\"Kings\", \"The Flash\"."));
3015 gc->
setLabel(MainGeneralSettings::tr(
"Names exempt from prefix removal"));
3018 "This list of names will be exempt from removing "
3019 "the common prefixes (The, A, An) from a title or "
3020 "filename. Enter multiple names separated by "
3029 gc->
setLabel(GeneralSettings::tr(
"Starting channel for Manual Record"));
3030 gc->
addSelection(GeneralSettings::tr(
"Guide Starting Channel"),
"1",
true);
3031 gc->
addSelection(GeneralSettings::tr(
"Last Manual Record Channel"),
"2");
3033 "When entering a new Manual Record Rule, "
3034 "the starting channel will default to this."));
3044 bc->setLabel(GeneralRecPrioritiesSettings::tr(
"Avoid back to back "
3048 GeneralRecPrioritiesSettings::tr(
"Selects the situations where the "
3049 "scheduler will avoid assigning shows "
3050 "to the same card if their end time "
3051 "and start time match. This will be "
3052 "allowed when necessary in order to "
3053 "resolve conflicts."));
3055 bc->addSelection(GeneralRecPrioritiesSettings::tr(
"Never"),
"0");
3056 bc->addSelection(GeneralRecPrioritiesSettings::tr(
"Different Channels"),
3058 bc->addSelection(GeneralRecPrioritiesSettings::tr(
"Always"),
"2");
3069 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Preferred input priority"));
3071 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3072 "a showing matches the "
3073 "preferred input selected "
3074 "in the 'Scheduling "
3075 "Options' section of the "
3076 "recording rule."));
3086 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"HDTV recording priority"));
3088 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3089 "a showing is marked as an "
3090 "HDTV broadcast in the TV "
3102 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Widescreen recording "
3105 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3106 "a showing is marked as "
3107 "widescreen in the TV "
3119 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Sign language recording "
3122 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority "
3123 "when a showing is "
3137 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"In-vision Subtitles "
3138 "Recording Priority"));
3140 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority "
3141 "when a showing is marked "
3142 "as having in-vision "
3154 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Subtitles/CC recording "
3157 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3158 "a showing is marked as "
3159 "having subtitles or "
3160 "closed captioning (CC) "
3172 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Hard of hearing priority"));
3174 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3175 "a showing is marked as "
3176 "having support for "
3177 "viewers with impaired "
3189 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Audio described priority"));
3191 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3192 "a showing is marked as "
3193 "being Audio Described."));
3204 ge->setLabel(EPGSettings::tr(
"Guide starts at channel"));
3208 ge->setHelpText(EPGSettings::tr(
"The program guide starts on this channel "
3209 "if it is run from outside of Live TV "
3210 "mode. Leave blank to enable Live TV "
3211 "automatic start channel."));
3220 gs->setLabel(EPGSettings::tr(
"Record threshold"));
3224 gs->setHelpText(EPGSettings::tr(
"Pressing SELECT on a show that is at "
3225 "least this many minutes into the future "
3226 "will schedule a recording."));
3234 gc->
setLabel(AppearanceSettings::tr(
"Menu Language"));
3237 QStringList langs = langMap.values();
3241 if (langCode.isEmpty())
3246 for (
const auto & label : std::as_const(langs))
3248 QString value = langMap.key(label);
3249 gc->
addSelection(label, value, (value.toLower() == langCode));
3252 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred language for the "
3253 "user interface."));
3261 gc->
setLabel(AppearanceSettings::tr(
"Audio Language"));
3264 QStringList langs = langMap.values();
3268 if (langCode.isEmpty())
3271 langCode = menuLangCode.isEmpty() ?
"en_US" : menuLangCode;
3276 for (
const auto & label : std::as_const(langs))
3278 QString value = langMap.key(label);
3279 gc->
addSelection(label, value, (value.toLower() == langCode));
3282 gc->
setHelpText(AppearanceSettings::tr(
"Preferred language for the "
3290 QString q = QString(
"ISO639Language%1").arg(i);
3293 if ((lang.isEmpty() || lang ==
"aar") &&
3302 for (; it != ite; ++it)
3304 QString desc = (*it);
3305 int idx = desc.indexOf(
";");
3307 desc = desc.left(idx);
3318 gc->
setLabel(AppearanceSettings::tr(
"Guide language #%1").arg(i+1));
3324 gc->
setHelpText(AppearanceSettings::tr(
"Your #%1 preferred language for "
3325 "Program Guide data and captions.")
3334 gc->
setLabel(MainGeneralSettings::tr(
"Enable Network Remote Control "
3337 gc->
setHelpText(MainGeneralSettings::tr(
"This enables support for "
3338 "controlling MythFrontend "
3339 "over the network."));
3350 gs->setLabel(MainGeneralSettings::tr(
"Network Remote Control port"));
3354 gs->setHelpText(MainGeneralSettings::tr(
"This specifies what port the "
3355 "Network Remote Control "
3356 "interface will listen on for "
3357 "new connections."));
3365 ge->setLabel(MainGeneralSettings::tr(
"UDP notify port"));
3367 ge->setValue(
"6948");
3369 ge->setHelpText(MainGeneralSettings::tr(
"MythTV will listen for "
3370 "connections from the "
3371 "\"mythutil\" program on "
3380 gc->
setLabel(MainGeneralSettings::tr(
"Enable CEC Control "
3382 gc->
setHelpText(MainGeneralSettings::tr(
"This enables "
3383 "controlling MythFrontend from a TV remote or powering the TV "
3384 "on and off from a MythTV remote "
3385 "if you have compatible hardware. "
3386 "These settings only take effect after a restart."));
3394 gc->
setLabel(MainGeneralSettings::tr(
"Allow Power On TV"));
3395 gc->
setHelpText(MainGeneralSettings::tr(
"Enables your TV to be powered "
3396 "on from MythTV remote or when MythTV starts "
3397 "if you have compatible hardware."));
3405 gc->
setLabel(MainGeneralSettings::tr(
"Allow Power Off TV"));
3406 gc->
setHelpText(MainGeneralSettings::tr(
"Enables your TV to be powered "
3407 "off from MythTV remote or when MythTV starts "
3408 "if you have compatible hardware."));
3416 gc->
setLabel(MainGeneralSettings::tr(
"Power on TV At Start"));
3418 "on your TV when you start MythTV "
3419 "if you have compatible hardware."));
3427 gc->
setLabel(MainGeneralSettings::tr(
"Power off TV At Exit"));
3429 "off your TV when you exit MythTV "
3430 "if you have compatible hardware."));
3443 gc->
setLabel(MainGeneralSettings::tr(
"Enable AirPlay"));
3445 gc->
setHelpText(MainGeneralSettings::tr(
"AirPlay lets you wirelessly view "
3446 "content on your TV from your "
3447 "iPhone, iPad, iPod Touch, or "
3448 "iTunes on your computer."));
3459 gc->
setLabel(MainGeneralSettings::tr(
"Only support AirTunes (no video)"));
3461 gc->
setHelpText(MainGeneralSettings::tr(
"Only stream audio from your "
3462 "iPhone, iPad, iPod Touch, or "
3463 "iTunes on your computer"));
3474 gc->
setLabel(MainGeneralSettings::tr(
"Require password"));
3478 gc->
setHelpText(MainGeneralSettings::tr(
"Require a password to use "
3479 "AirPlay. Your iPhone, iPad, iPod "
3480 "Touch, or iTunes on your computer "
3481 "will prompt you when required"));
3489 ge->setLabel(MainGeneralSettings::tr(
"Password"));
3491 ge->setValue(
"0000");
3493 ge->setHelpText(MainGeneralSettings::tr(
"Your iPhone, iPad, iPod Touch, or "
3494 "iTunes on your computer will "
3495 "prompt you for this password "
3504 hc->setLabel(MainGeneralSettings::tr(
"AirPlay - Password"));
3505 hc->addChild(AirPlayPasswordEnabled());
3506 hc->addChild(AirPlayPassword());
3515 gc->
setLabel(MainGeneralSettings::tr(
"AirPlay full screen playback"));
3519 gc->
setHelpText(MainGeneralSettings::tr(
"During music playback, displays "
3520 "album cover and various media "
3521 "information in full screen mode"));
3559 gc->
setLabel(PlaybackSettings::tr(
"Enable realtime priority threads"));
3561 gc->
setHelpText(PlaybackSettings::tr(
"When running mythfrontend with root "
3562 "privileges, some threads can be "
3563 "given enhanced priority. Disable "
3564 "this if MythFrontend freezes during "
3565 "video playback."));
3575 ge->setLabel(MainGeneralSettings::tr(
"Ignore devices"));
3579 ge->setHelpText(MainGeneralSettings::tr(
"If there are any devices that you "
3580 "do not want to be monitored, list "
3581 "them here with commas in-between. "
3582 "The plugins will ignore them. "
3583 "Requires restart."));
3591 gc->
setLabel(PlaybackSettings::tr(
"Sort titles"));
3593 gc->
addSelection(PlaybackSettings::tr(
"Alphabetically"),
3595 gc->
addSelection(PlaybackSettings::tr(
"By recording priority"),
3598 gc->
setHelpText(PlaybackSettings::tr(
"Sets the title sorting order when "
3599 "the view is set to Titles only."));
3607 gc->
setLabel(WatchListSettings::tr(
"Include the 'Watch List' group"));
3611 gc->
setHelpText(WatchListSettings::tr(
"The 'Watch List' is an abbreviated "
3612 "list of recordings sorted to "
3613 "highlight series and shows that "
3614 "need attention in order to keep up "
3623 gc->
setLabel(WatchListSettings::tr(
"Start from the Watch List view"));
3627 gc->
setHelpText(WatchListSettings::tr(
"If enabled, the 'Watch List' will "
3628 "be the initial view each time you "
3629 "enter the Watch Recordings screen"));
3637 gc->
setLabel(WatchListSettings::tr(
"Exclude recordings not set for "
3642 gc->
setHelpText(WatchListSettings::tr(
"Set this if you turn off "
3643 "Auto-Expire only for recordings "
3644 "that you've seen and intend to "
3645 "keep. This option will exclude "
3646 "these recordings from the "
3655 gs->setLabel(WatchListSettings::tr(
"Maximum days counted in the score"));
3659 gs->setHelpText(WatchListSettings::tr(
"The 'Watch List' scores are based "
3660 "on 1 point equals one day since "
3661 "recording. This option limits the "
3662 "maximum score due to age and "
3663 "affects other weighting factors."));
3671 gs->setLabel(WatchListSettings::tr(
"Days to exclude weekly episodes after "
3676 gs->setHelpText(WatchListSettings::tr(
"When an episode is deleted or "
3677 "marked as watched, other episodes "
3678 "of the series are excluded from the "
3679 "'Watch List' for this interval of "
3680 "time. Daily shows also have a "
3681 "smaller interval based on this "
3690 gc->
setLabel(MainGeneralSettings::tr(
"Media Monitor"));
3692 gc->
setHelpText(MainGeneralSettings::tr(
"This enables support for "
3693 "monitoring your CD/DVD drives for "
3694 "new disks and launching the "
3695 "proper plugin to handle them. "
3696 "Requires restart."));
3709 gc->
setLabel(LcdSettings::tr(
"Display time"));
3711 gc->
setHelpText(LcdSettings::tr(
"Display current time on idle LCD "
3723 gc->
setLabel(LcdSettings::tr(
"Display recording status"));
3725 gc->
setHelpText(LcdSettings::tr(
"Display current recordings information "
3726 "on LCD display."));
3737 gc->
setLabel(LcdSettings::tr(
"Display menus"));
3739 gc->
setHelpText(LcdSettings::tr(
"Display selected menu on LCD display. "));
3750 gs->setLabel(LcdSettings::tr(
"Menu pop-up time"));
3752 gs->setHelpText(LcdSettings::tr(
"How many seconds the menu will remain "
3753 "visible after navigation."));
3764 gc->
setLabel(LcdSettings::tr(
"Display music artist and title"));
3766 gc->
setHelpText(LcdSettings::tr(
"Display playing artist and song title in "
3767 "MythMusic on LCD display."));
3778 gc->
setLabel(LcdSettings::tr(
"Items"));
3780 gc->
addSelection(LcdSettings::tr(
"Artist - Title"),
"ArtistTitle");
3781 gc->
addSelection(LcdSettings::tr(
"Artist [Album] Title"),
3782 "ArtistAlbumTitle");
3784 gc->
setHelpText(LcdSettings::tr(
"Which items to show when playing music."));
3793 gc->
setLabel(LcdSettings::tr(
"Display channel information"));
3795 gc->
setHelpText(LcdSettings::tr(
"Display tuned channel information on LCD "
3807 gc->
setLabel(LcdSettings::tr(
"Display volume information"));
3809 gc->
setHelpText(LcdSettings::tr(
"Display volume level information "
3810 "on LCD display."));
3821 gc->
setLabel(LcdSettings::tr(
"Display generic information"));
3823 gc->
setHelpText(LcdSettings::tr(
"Display generic information on LCD display."));
3834 gc->
setLabel(LcdSettings::tr(
"Backlight always on"));
3836 gc->
setHelpText(LcdSettings::tr(
"Turn on the backlight permanently on the "
3847 gc->
setLabel(LcdSettings::tr(
"Heartbeat always on"));
3849 gc->
setHelpText(LcdSettings::tr(
"Turn on the LCD heartbeat."));
3860 gc->
setLabel(LcdSettings::tr(
"Display large clock"));
3862 gc->
setHelpText(LcdSettings::tr(
"On multiline displays try and display the "
3863 "time as large as possible."));
3874 ge->setLabel(LcdSettings::tr(
"LCD key order"));
3876 ge->setValue(
"ABCDEF");
3879 LcdSettings::tr(
"Enter the 6 Keypad Return Codes for your LCD keypad "
3880 "in the order in which you want the functions "
3881 "up/down/left/right/yes/no to operate. (See "
3882 "lcdproc/server/drivers/hd44780.c/keyMapMatrix[] "
3883 "or the matrix for your display)"));
3891 gc->
setLabel(LcdSettings::tr(
"Enable LCD device"));
3893 gc->
setHelpText(LcdSettings::tr(
"Use an LCD display to view MythTV status "
3919 gc->
setLabel(PlaybackSettings::tr(
"Enable gamma correction for video"));
3923 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, QuickTime will correct "
3924 "the gamma of the video to match "
3925 "your monitor. Turning this off can "
3926 "save some CPU cycles."));
3934 gc->
setLabel(PlaybackSettings::tr(
"Scale video as necessary"));
3938 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, video will be scaled to "
3939 "fit your window or screen. If "
3940 "unchecked, video will never be made "
3941 "larger than its actual pixel size."));
3949 gs->
setLabel(PlaybackSettings::tr(
"Frames to skip in fullscreen mode"));
3953 gs->
setHelpText(PlaybackSettings::tr(
"Video displayed in fullscreen or "
3954 "non-windowed mode will skip this "
3955 "many frames for each frame drawn. "
3956 "Set to 0 to show every frame. Only "
3957 "valid when either \"Use GUI size for "
3958 "TV playback\" or \"Run the frontend "
3959 "in a window\" is not checked."));
3967 gc->
setLabel(MacMainSettings::tr(
"Video in main window"));
3971 gc->
setHelpText(MacMainSettings::tr(
"If enabled, video will be displayed "
3972 "in the main GUI window. Disable this "
3973 "when you only want video on the "
3974 "desktop or in a floating window. Only "
3975 "valid when \"Use GUI size for TV "
3976 "playback\" and \"Run the frontend in "
3977 "a window\" are checked."));
3985 gs->
setLabel(MacMainSettings::tr(
"Frames to skip"));
3989 gs->
setHelpText(MacMainSettings::tr(
"Video in the main window will skip "
3990 "this many frames for each frame "
3991 "drawn. Set to 0 to show every "
4000 gs->
setLabel(MacMainSettings::tr(
"Opacity"));
4004 gs->
setHelpText(MacMainSettings::tr(
"The opacity of the main window. Set "
4005 "to 100 for completely opaque, set "
4006 "to 0 for completely transparent."));
4014 gc->
setLabel(MacFloatSettings::tr(
"Video in floating window"));
4018 gc->
setHelpText(MacFloatSettings::tr(
"If enabled, video will be displayed "
4019 "in a floating window. Only valid "
4020 "when \"Use GUI size for TV "
4021 "playback\" and \"Run the frontend "
4022 "in a window\" are checked."));
4030 gs->
setLabel(MacFloatSettings::tr(
"Frames to skip"));
4034 gs->
setHelpText(MacFloatSettings::tr(
"Video in the floating window will "
4035 "skip this many frames for each "
4036 "frame drawn. Set to 0 to show "
4045 gs->
setLabel(MacFloatSettings::tr(
"Opacity"));
4049 gs->
setHelpText(MacFloatSettings::tr(
"The opacity of the floating window. "
4050 "Set to 100 for completely opaque, "
4051 "set to 0 for completely "
4060 gc->
setLabel(MacDockSettings::tr(
"Video in the dock"));
4064 gc->
setHelpText(MacDockSettings::tr(
"If enabled, video will be displayed "
4065 "in the application's dock icon. Only "
4066 "valid when \"Use GUI size for TV "
4067 "playback\" and \"Run the frontend in "
4068 "a window\" are checked."));
4076 gs->
setLabel(MacDockSettings::tr(
"Frames to skip"));
4080 gs->
setHelpText(MacDockSettings::tr(
"Video in the dock icon will skip this "
4081 "many frames for each frame drawn. Set "
4082 "to 0 to show every frame."));
4090 gc->
setLabel(MacDesktopSettings::tr(
"Video on the desktop"));
4094 gc->
setHelpText(MacDesktopSettings::tr(
"If enabled, video will be "
4095 "displayed on the desktop, "
4096 "behind the Finder icons. "
4097 "Only valid when \"Use GUI "
4098 "size for TV playback\" and "
4099 "\"Run the frontend in a "
4100 "window\" are checked."));
4108 gs->
setLabel(MacDesktopSettings::tr(
"Frames to skip"));
4112 gs->
setHelpText(MacDesktopSettings::tr(
"Video on the desktop will skip "
4113 "this many frames for each frame "
4114 "drawn. Set to 0 to show every "
4139 setLabel(MainGeneralSettings::tr(
"Shutdown/Reboot Settings"));
4227 pin->setLabel(tr(
"Settings Access"));
4232 general->setLabel(tr(
"General"));
4237 if (sh->hasPrefixes()) {
4242 general->addChild(SortCaseSensitive());
4245 general->addChild(stripPrefixes);
4256 remotecontrol->setLabel(tr(
"Remote Control"));
4263 remotecontrol->addChild(cec);
4265 m_cecPowerOnTVAllowed = CECPowerOnTVAllowed();
4266 m_cecPowerOffTVAllowed = CECPowerOffTVAllowed();
4267 m_cecPowerOnTVOnStart = CECPowerOnTVOnStart();
4268 m_cecPowerOffTVOnExit = CECPowerOffTVOnExit();
4274 this, &MainGeneralSettings::cecChanged);
4276 this, &MainGeneralSettings::cecChanged);
4282 airplay->setLabel(tr(
"AirPlay Settings"));
4283 airplay->addChild(AirPlayEnabled());
4284 airplay->addChild(AirPlayFullScreen());
4285 airplay->addChild(AirPlayAudioOnly());
4286 airplay->addChild(AirPlayPasswordSettings());
4294void MainGeneralSettings::cecChanged(
bool )
4296 if (m_cecPowerOnTVAllowed->boolValue())
4297 m_cecPowerOnTVOnStart->setEnabled(
true);
4300 m_cecPowerOnTVOnStart->setEnabled(
false);
4301 m_cecPowerOnTVOnStart->setValue(
false);
4304 if (m_cecPowerOffTVAllowed->boolValue())
4305 m_cecPowerOffTVOnExit->setEnabled(
true);
4308 m_cecPowerOffTVOnExit->setEnabled(
false);
4309 m_cecPowerOffTVOnExit->setValue(
false);
4316 QStringList strlist( QString(
"REFRESH_BACKEND") );
4318 LOG(VB_GENERAL, LOG_ERR, QString(
"%1 called").arg(__FUNCTION__));
4341 setLabel(PlaybackSettings::tr(
"Scaling"));
4365 item->
SetText(PlaybackSettings::tr(
"No scaling"),
"value");
4369 item->
SetText(QString(
"%1%x%2%+%3%+%4%")
4402 auto *
menu =
new MythMenu(tr(
"Playback Profile Menu"),
this,
"mainmenu");
4414 menuPopup->SetReturnEvent(
this,
"mainmenu");
4416 if (menuPopup->Create())
4432 config->DecreasePriority();
4449 config->IncreasePriority();
4471 general->setLabel(tr(
"General Playback"));
4493 advanced->setLabel(tr(
"Advanced Playback Settings"));
4499 advanced->addChild(VAAPIDevice());
4514 pbox->setLabel(tr(
"View Recordings"));
4523 pbox2->setLabel(tr(
"Recording Groups"));
4529 pbox->addChild(pbox2);
4538 pbox->addChild(playbackWatchList);
4542 seek->setLabel(tr(
"Seeking"));
4550 comms->setLabel(tr(
"Commercial Skip"));
4561 mac->
setLabel(tr(
"Mac OS X Video Settings"));
4616 general->setLabel(tr(
"General (Basic)"));
4625 autoexp->setLabel(tr(
"General (Auto-Expire)"));
4643 jobs->setLabel(tr(
"General (Jobs)"));
4654 general2->setLabel(tr(
"General (Advanced)"));
4666 changrp->setLabel(tr(
"General (Channel Groups)"));
4687 sched->setLabel(tr(
"Scheduler Options"));
4698 access->setLabel(tr(
"Accessibility Options"));
4727 setLabel(AppearanceSettings::tr(
"GUI dimension"));
4750 item->
SetText(AppearanceSettings::tr(
"Fullscreen"),
"value");
4754 item->
SetText(QString(
"%1x%2+%3+%4")
4770 QCoreApplication::processEvents();
4777 QList screens = QGuiApplication::screens();
4778 for (QScreen *qscreen : std::as_const(screens))
4793 screen->setLabel(tr(
"Theme / Screen Settings"));
4819 screen->addChild(AirPlayFullScreen());
4825 std::vector<MythDisplayMode> scr = display->
GetVideoModes();
4832 dates->setLabel(tr(
"Localization"));
4854 gc->
setLabel(AppearanceSettings::tr(
"Select from Channel Group"));
4855 gc->addSelection(
"All Channels");
4859 for (
const auto &chgrp : list)
4861 gc->addSelection(chgrp.m_name);
4864 "Select the channel group to select channels from. "
4865 "\"All Channels\" lets you choose from all channels of all video sources. "
4866 "\"Priority\" lets you choose from all channels that have recording priority. "
4867 "The other values let you select a video source to choose channels from."));
4875 const QString &channum,
const QString &name);
4883 const QString &channum,
const QString &channame)
4884 : m_channelId(chanid)
4886 setLabel(QString(
"%1 %2").arg(channum, channame));
4887 setHelpText(ChannelGroupSettings::tr(
"Select/Unselect channels for this channel group"));
4892 : m_groupId(groupId),
4895 setLabel(groupName ==
"Favorites" ? tr(
"Favorites") : groupName);
4925 QList<StandardSetting *>::const_iterator i;
4926 for (i = children->constBegin(); i != children->constEnd(); ++i)
4928 if ((*i)->haveChanged())
4935 if (channel->boolValue())
4957 LOG(VB_GENERAL, LOG_INFO,
4958 QString(
"ChannelGroupSetting::LoadChannelGroup group:%1 groupId:%2")
4959 .arg(group).arg(groupId));
4965 it.second->setVisible(
false);
4982 if (fromGroupId == -1)
4985 "SELECT channel.chanid, channum, name, grpid FROM channel "
4986 "LEFT JOIN channelgroup "
4987 "ON (channel.chanid = channelgroup.chanid AND grpid = :GRPID) "
4988 "WHERE deleted IS NULL "
4990 "ORDER BY channum+0; ");
4996 "SELECT channel.chanid, channum, name, cg2.grpid FROM channel "
4997 "RIGHT JOIN channelgroup AS cg1 "
4998 "ON (channel.chanid = cg1.chanid AND cg1.grpid = :FROMGRPID) "
4999 "LEFT JOIN channelgroup AS cg2 "
5000 "ON (channel.chanid = cg2.chanid AND cg2.grpid = :GRPID) "
5001 "WHERE deleted IS NULL "
5003 "ORDER BY channum+0; ");
5005 query.
bindValue(
":FROMGRPID", fromGroupId);
5009 MythDB::DBError(
"ChannelGroupSetting::LoadChannelGroupChannels", query);
5012 while (query.
next())
5014 auto chanid = query.
value(0).toUInt();
5015 auto channum = query.
value(1).toString();
5016 auto name = query.
value(2).toString();
5017 auto checked = !query.
value(3).isNull();
5018 auto pair = std::make_pair(
m_groupId, chanid);
5024 checkBox = it->second;
5071 query.
prepare(
"DELETE FROM channelgroup WHERE grpid = :GRPID;");
5077 query.
prepare(
"DELETE FROM channelgroupnames WHERE grpid = :GRPID;");
5097 for (
auto it = list.begin(); it < list.end(); ++it)
5099 QString name = (it->m_name ==
"Favorites") ? tr(
"Favorites") : it->m_name;
5114 tr(
"Enter the name of the new channel group"));
5116 if (settingdialog->Create())
5124 delete settingdialog;
5131 button->setLabel(name);
std::vector< ChannelGroupItem > ChannelGroupList
void PopulateScreens(int Screens)
void applyChange() override
HostComboBoxSetting * m_screenAspect
HostComboBoxSetting * m_screen
uint getChannelId() const
ChannelCheckBoxSetting(uint chanid, const QString &channum, const QString &name)
TransTextEditSetting * m_groupName
ChannelGroupSetting(const QString &groupName, int groupId)
std::map< std::pair< int, uint >, TransMythUICheckBoxSetting * > m_boxMap
HostComboBoxSetting * m_groupSelection
void LoadChannelGroup(void)
void LoadChannelGroupChannels(void)
void deleteEntry(void) override
bool canDelete(void) override
static ChannelGroupList GetAutomaticChannelGroups(bool includeEmpty=true)
static bool AddChannel(uint chanid, int changrpid)
static ChannelGroupList GetChannelGroups(bool includeEmpty=true)
static bool DeleteChannel(uint chanid, int changrpid)
static ChannelGroupList GetManualChannelGroups(bool includeEmpty=true)
static int GetChannelGroupId(const QString &changroupname)
static int AddChannelGroup(const QString &groupName)
static bool UpdateChannelGroup(const QString &oldName, const QString &newName)
void ShowNewGroupDialog(void) const
void CreateNewGroup(const QString &name)
GeneralRecPrioritiesSettings()
void updateButton(MythUIButtonListItem *item) override
This method is called whenever the UI need to reflect a change Reimplement this If you widget need a ...
void updateButton(MythUIButtonListItem *item) override
This method is called whenever the UI need to reflect a change Reimplement this If you widget need a ...
StandardSetting * m_offsetX
StandardSetting * m_height
void childChanged(StandardSetting *) override
StandardSetting * m_offsetY
StandardSetting * m_width
static std::vector< double > GetRefreshRates(const QString &resolution)
virtual void ChangeResolution(StandardSetting *setting)
QSqlQuery wrapper that fetches a DB connection from the connection pool.
bool prepare(const QString &query)
QSqlQuery::prepare() is not thread safe in Qt <= 3.3.2.
QVariant value(int i) const
bool isActive(void) const
bool exec(void)
Wrap QSqlQuery::exec() so we can display SQL.
void bindValue(const QString &placeholder, const QVariant &val)
Add a single binding.
bool next(void)
Wrap QSqlQuery::next() so we can display the query results.
static MSqlQueryInfo InitCon(ConnectionReuse _reuse=kNormalConnection)
Only use this in combination with MSqlQuery constructor.
void applyChange() override
Dialog asking for user confirmation.
QString GetHostName(void)
QString GetSetting(const QString &key, const QString &defaultval="")
bool SendReceiveStringList(QStringList &strlist, bool quickTimeout=false, bool block=true)
Send a message to the backend and wait for a response.
QString GetLanguage(void)
Returns two character ISO-639 language descriptor for UI language.
void GetResolutionSetting(const QString &type, int &width, int &height, double &forced_aspect, double &refresh_rate, int index=-1)
static void DBError(const QString &where, const MSqlQuery &query)
Basic menu dialog, message and a list of options.
static int FindBestMatch(const MythDisplayModes &Modes, const MythDisplayMode &Mode, double &TargetRate)
MythDisplayRates GetRefreshRates(QSize Size)
virtual bool VideoModesAvailable()
void ScreenCountChanged(int Screens)
virtual const MythDisplayModes & GetVideoModes()
static QString GetExtraScreenInfo(QScreen *qScreen)
static int GetScreenCount()
MythDisplay * GetDisplay()
void JumpTo(const QString &Destination, bool Pop=true)
MythScreenStack * GetStack(const QString &Stackname)
static MUI_PUBLIC QStringList GetPainters()
static MUI_PUBLIC QString GetDefaultPainter()
bool IsFeatureSupported(Feature Supported)
static MythPower * AcquireRelease(void *Reference, bool Acquire, std::chrono::seconds MinimumDelay=0s)
QStringList GetFeatureList(void)
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
static MythSystem * Create(const QStringList &args, uint flags=kMSNone, const QString &startPath=QString(), Priority cpuPriority=kInheritPriority, Priority diskPriority=kInheritPriority)
Dialog prompting the user to enter a text string.
static QMap< QString, QString > getLanguages(void)
void setValue(const QString &newValue) override
void updateButton(MythUIButtonListItem *item) override
This method is called whenever the UI need to reflect a change Reimplement this If you widget need a ...
virtual int size(void) const
void addSelection(const QString &label, QString value=QString(), bool select=false)
void setValue(int value) override
static bool WindowIsAlwaysFullscreen()
Return true if the current platform only supports fullscreen windows.
QList< ThemeInfo > GetThemes(ThemeType Type)
static QString HaveVAAPI(bool ReCheck=false)
Check whether VAAPI is available and not emulated via VDPAU.
void Set(const QString &Value, const QString &Data)
bool CheckRange(const QString &Key, float Value, bool *Ok=nullptr) const
QString Get(const QString &Value) const
static QString GetDecoderHelp(const QString &Decoder=QString())
static QStringList GetDecoders()
static QString GetDefaultProfileName(const QString &HostName)
static void CreateProfiles(const QString &HostName)
static uint CreateProfileGroup(const QString &ProfileName, const QString &HostName)
static bool DeleteDB(uint GroupId, const std::vector< MythVideoProfileItem > &Items)
static bool SaveDB(uint GroupId, std::vector< MythVideoProfileItem > &Items)
static uint GetProfileGroupID(const QString &ProfileName, const QString &HostName)
static const QList< QPair< QString, QString > > & GetDeinterlacers()
static std::vector< std::pair< QString, QString > > GetUpscalers()
static void SetDefaultProfileName(const QString &ProfileName, const QString &HostName)
static void InitStatics(bool Reinit=false)
static QString GetPreferredVideoRenderer(const QString &Decoder)
static QStringList GetProfiles(const QString &HostName)
static std::vector< MythVideoProfileItem > LoadDB(uint GroupId)
static QStringList GetDecoderNames()
static bool DeleteProfileGroup(const QString &GroupName, const QString &HostName)
static QString GetVideoRendererName(const QString &Renderer)
static QStringList GetVideoRenderers(const QString &Decoder)
static QString GetVideoRendererHelp(const QString &Renderer)
static QString GetDecoderName(const QString &Decoder)
void childChanged(StandardSetting *) override
void updateButton(MythUIButtonListItem *item) override
This method is called whenever the UI need to reflect a change Reimplement this If you widget need a ...
StandardSetting * m_horizScan
StandardSetting * m_yScan
StandardSetting * m_vertScan
StandardSetting * m_xScan
std::vector< PlaybackProfileItemConfig * > m_profiles
PlaybackProfileConfig(QString profilename, StandardSetting *parent)
TransMythUICheckBoxSetting * m_markForDeletion
void swap(int indexA, int indexB)
std::vector< MythVideoProfileItem > m_items
void DeleteProfileItem(PlaybackProfileItemConfig *profile)
ButtonStandardSetting * m_addNewEntry
void InitUI(StandardSetting *parent)
std::vector< MythVideoProfileItem > m_delItems
void ReloadSettings(void)
StandardSetting * InitProfileItem(uint i, StandardSetting *parent)
void decoderChanged(const QString &dec)
TransTextEditSetting * m_heightRange
void framerateChanged(const QString &val)
TransMythUICheckBoxSetting * m_skipLoop
static QString GetQuality(TransMythUIComboBoxSetting *Deint, TransMythUICheckBoxSetting *Shader, TransMythUICheckBoxSetting *Driver)
TransMythUIComboBoxSetting * m_singleDeint
TransTextEditSetting * m_widthRange
TransTextEditSetting * m_framerate
void DoDeleteSlot(bool doDelete)
void DecreasePriority(void)
TransMythUICheckBoxSetting * m_doubleDriver
TransMythUIComboBoxSetting * m_upscaler
void DoubleQualityChanged(const QString &Quality)
MythVideoProfileItem & m_item
MythUIComboBoxSetting * m_codecs
PlaybackProfileConfig * m_parentConfig
void widthChanged(const QString &val)
TransMythUICheckBoxSetting * m_singleDriver
uint GetIndex(void) const
TransMythUICheckBoxSetting * m_singleShader
TransMythUICheckBoxSetting * m_doubleShader
static void LoadQuality(TransMythUIComboBoxSetting *Deint, TransMythUICheckBoxSetting *Shader, TransMythUICheckBoxSetting *Driver, QString &Value)
Parse the required deinterlacing quality and preferences.
bool keyPressEvent(QKeyEvent *e) override
PlaybackProfileItemConfig(PlaybackProfileConfig *parent, uint idx, MythVideoProfileItem &_item)
TransMythUIComboBoxSetting * m_doubleDeint
TransMythUISpinBoxSetting * m_maxCpus
TransMythUIComboBoxSetting * m_decoder
void vrenderChanged(const QString &renderer)
void heightChanged(const QString &val)
void ShowDeleteDialog(void) const
void IncreasePriority(void)
void SingleQualityChanged(const QString &Quality)
TransMythUIComboBoxSetting * m_vidRend
void DeleteProfileItem(void)
void MoveProfileItemDown(void)
void ShowPlaybackProfileMenu(MythUIButtonListItem *item)
void ShowMenu(void) override
void MoveProfileItemUp(void)
PlaybackSettingsDialog(MythScreenStack *stack)
void NewPlaybackProfileSlot(void) const
MythUIComboBoxSetting * m_playbackProfiles
void CreateNewPlaybackProfileSlot(const QString &name)
ButtonStandardSetting * m_newPlaybackProfileButton
static QString i18n(const QString &msg)
Translations for play,recording, & storage groups +.
void childChanged(StandardSetting *) override
StandardSetting * m_rebootCommand
StandardSetting * m_overrideExitMenu
StandardSetting * m_confirmCommand
StandardSetting * m_suspendCommand
StandardSetting * m_haltCommand
MythUIButtonList * m_buttonList
virtual void addChild(StandardSetting *child)
bool isVisible(void) const
virtual void setReadOnly(bool readonly)
void addTargetedChild(const QString &value, StandardSetting *setting)
virtual void clearSettings()
void settingsChanged(StandardSetting *selectedSetting=nullptr)
virtual void setHelpText(const QString &str)
QString getLabel(void) const
StandardSetting * getParent() const
void ShouldRedraw(StandardSetting *setting)
void setVisible(bool visible)
virtual QList< StandardSetting * > * getSubSettings()
bool haveChanged()
Return true if the setting have changed or any of its children.
virtual void setValue(const QString &newValue)
void removeTargetedChild(const QString &value, StandardSetting *child)
void valueChanged(const QString &newValue)
virtual QString getValue(void) const
virtual void setEnabled(bool enabled)
virtual void setLabel(QString str)
void setChanged(bool changed)
void updateButton(MythUIButtonListItem *item) override
This method is called whenever the UI need to reflect a change Reimplement this If you widget need a ...
VideoModeSettings(const char *c)
static QStringList GetVisualiserList(RenderType type)
static GlobalSpinBoxSetting * RecordPreRoll()
static HostCheckBoxSetting * LCDShowMusic()
static HostCheckBoxSetting * LCDShowVolume()
static HostCheckBoxSetting * LCDBigClock()
static GlobalSpinBoxSetting * DeletedMaxAge()
static HostSpinBoxSetting * GuiHeight()
static HostCheckBoxSetting * LCDShowRecStatus()
static HostSpinBoxSetting * LiveTVIdleTimeout()
static GlobalSpinBoxSetting * GRSignLangRecPriority()
static GlobalSpinBoxSetting * GROnScrSubRecPriority()
static HostSpinBoxSetting * StartupScreenDelay()
static HostCheckBoxSetting * LCDEnable()
static HostCheckBoxSetting * BrowseAllTuners()
static HostCheckBoxSetting * JumpToProgramOSD()
static HostCheckBoxSetting * PlaybackWatchList()
static GlobalSpinBoxSetting * GRHDTVRecPriority()
static GlobalSpinBoxSetting * MaximumCommercialSkip()
static HostCheckBoxSetting * SmartForward()
static GlobalSpinBoxSetting * MaxStartGap()
static HostCheckBoxSetting * AlwaysOnTop()
static HostTextEditSetting * LCDKeyString()
static GlobalComboBoxSetting * ISO639PreferredLanguage(uint i)
static GlobalComboBoxSetting * OverTimeCategory()
static HostCheckBoxSetting * EnableMHEG()
static HostComboBoxSetting * ChannelFormat()
static HostComboBoxSetting * MenuTheme()
static HostCheckBoxSetting * PersistentBrowseMode()
static HostComboBoxSetting * Visualiser()
static HostSpinBoxSetting * FrontendIdleTimeout()
static HostComboBoxSetting * ColourPrimaries()
static GlobalComboBoxSetting * MythLanguage()
static HostCheckBoxSetting * PlaybackWLStart()
static HostTextEditSetting * DefaultTVChannel()
static HostCheckBoxSetting * UseVirtualKeyboard()
static HostComboBoxSetting * ScreenSelection()
static HostCheckBoxSetting * EnableMHEGic()
static GlobalSpinBoxSetting * AutoExpireExtraSpace()
static HostCheckBoxSetting * EnableMediaMon()
static HostCheckBoxSetting * AutomaticSetWatched()
static HostCheckBoxSetting * LCDBacklightOn()
static HostTextEditSetting * ScreenShotPath()
static HostComboBoxSetting * AutomaticChannelGroupSelection()
static HostComboBoxSetting * GuiVidModeResolution()
static HostTextEditSetting * IgnoreMedia()
static HostSpinBoxSetting * PlaybackWLMaxAge()
static GlobalCheckBoxSetting * RerecordWatched()
static HostCheckBoxSetting * LCDShowChannel()
static HostCheckBoxSetting * ChannelGroupRememberLast()
static HostCheckBoxSetting * ChromaUpsampling()
static HostSpinBoxSetting * GuiWidth()
static GlobalSpinBoxSetting * GRCCRecPriority()
static HostTextEditSetting * HaltCommand(MythPower *Power)
static HostCheckBoxSetting * FFmpegDemuxer()
static GlobalSpinBoxSetting * AutoExpireLiveTVMaxAge()
static GlobalSpinBoxSetting * GRWSRecPriority()
static HostComboBoxSetting * ChannelGroupDefault()
static HostComboBoxSetting * LCDShowMusicItems()
static GlobalComboBoxSetting * ManualRecordStartChanType()
static HostCheckBoxSetting * ForceFullScreen()
static HostCheckBoxSetting * ConfirmPowerEvent()
static GlobalSpinBoxSetting * RecordOverTime()
static GlobalComboBoxSetting * AutoExpireMethod()
static GlobalSpinBoxSetting * MergeShortCommBreaks()
static HostCheckBoxSetting * RecGroupMod()
static HostCheckBoxSetting * PBBStartInTitle()
static GlobalSpinBoxSetting * GRPrefInputRecPriority()
static HostComboBoxSetting * ScreenAspectRatio()
static HostCheckBoxSetting * LCDShowMenu()
static HostCheckBoxSetting * BrowseChannelGroup()
static HostComboBoxSetting * ChannelOrdering()
static HostCheckBoxSetting * LCDShowTime()
static GlobalSpinBoxSetting * GRHardHearRecPriority()
static HostComboBoxSetting * TVVidModeResolution(int idx=-1)
static HostSpinBoxSetting * VertScanPercentage()
static HostSpinBoxSetting * PlaybackWLBlackOut()
static HostComboBoxSetting * PlayBoxOrdering()
static HostComboBoxSetting * LongChannelFormat()
static HostSpinBoxSetting * XScanDisplacement()
static HostCheckBoxSetting * EndOfRecordingExitPrompt()
static HostCheckBoxSetting * RunInWindow()
static HostComboBoxSetting * AutoCommercialSkip()
static HostCheckBoxSetting * RealtimePriority()
static HostTextEditSetting * UDPNotifyPort()
static HostCheckBoxSetting * ContinueEmbeddedTVPlay()
static HostCheckBoxSetting * HideMouseCursor()
static HostTextEditSetting * SetupPinCode()
static HostTextEditSetting * SuspendCommand(MythPower *Power)
static HostRefreshRateComboBoxSetting * TVVidModeRefreshRate(int idx=-1)
static HostComboBoxSetting * DisplayRecGroup()
static GlobalComboBoxSetting * GRSchedOpenEnd()
static HostComboBoxSetting * LetterboxingColour()
static GlobalSpinBoxSetting * GRAudioDescRecPriority()
static HostComboBoxSetting * PlaybackExitPrompt()
static GroupSetting * CategoryOverTimeSettings()
static GlobalCheckBoxSetting * AggressiveCommDetect()
static HostTextEditSetting * LircDaemonDevice()
static HostComboBoxSetting * OverrideExitMenu(MythPower *Power)
static HostComboBoxSetting * TVVidModeForceAspect(int idx=-1)
static HostComboBoxSetting * MythTimeFormat()
static HostCheckBoxSetting * UseVideoModes()
static GlobalTextEditSetting * SortPrefixExceptions()
static HostSpinBoxSetting * AudioReadAhead()
static GlobalCheckBoxSetting * CommFlagFast()
static HostCheckBoxSetting * LCDHeartBeatOn()
static GlobalSpinBoxSetting * CategoryOverTime()
static HostCheckBoxSetting * LCDShowGeneric()
static HostSpinBoxSetting * NetworkControlPort()
static HostSpinBoxSetting * VidModeWidth(int idx)
static HostCheckBoxSetting * DefaultCCMode()
static void ISO639_fill_selections(MythUIComboBoxSetting *widget, uint i)
static HostComboBoxSetting * MythShortDateFormat()
static void AddPaintEngine(GroupSetting *Group)
static GlobalSpinBoxSetting * DeferAutoTranscodeDays()
static HostComboBoxSetting * AdjustFill()
static HostSpinBoxSetting * VideoModeChangePause(void)
static HostCheckBoxSetting * GUIRGBLevels()
static HostCheckBoxSetting * NetworkControlEnabled()
static HostSpinBoxSetting * VidModeHeight(int idx)
static HostCheckBoxSetting * MusicChoiceEnabled()
static HostSpinBoxSetting * FFRewReposTime()
static GlobalCheckBoxSetting * SortStripPrefixes()
static HostSpinBoxSetting * EPGRecThreshold()
static HostComboBoxSetting * DisplayGroupTitleSort()
static HostSpinBoxSetting * YScanDisplacement()
static HostCheckBoxSetting * StereoDiscard()
static GlobalComboBoxSetting * AudioLanguage()
static GlobalSpinBoxSetting * AutoExpireDayPriority()
static GlobalSpinBoxSetting * MinimumRecordingQuality()
static HostCheckBoxSetting * SmoothTransitions()
static HostComboBoxSetting * CurrentPlaybackProfile()
static HostSpinBoxSetting * GuiOffsetX()
static HostComboBoxSetting * AspectOverride()
static HostSpinBoxSetting * LCDPopupTime()
static HostCheckBoxSetting * UseProgStartMark()
static HostCheckBoxSetting * PlaybackWLAutoExpire()
static GlobalComboBoxSetting * CommercialSkipMethod()
static HostCheckBoxSetting * QueryInitialFilter()
static HostCheckBoxSetting * RememberRecGroup()
static HostSpinBoxSetting * CommRewindAmount()
static HostCheckBoxSetting * FFRewReverse()
static GlobalCheckBoxSetting * AutoExpireWatchedPriority()
static HostSpinBoxSetting * CommNotifyAmount()
static HostSpinBoxSetting * HorizScanPercentage()
static HostComboBoxSetting * PlayBoxEpisodeSort()
static HostTextEditSetting * RebootCommand(MythPower *Power)
static HostSpinBoxSetting * GuiOffsetY()
static HostComboBoxSetting * MythDateFormatCB()
static GlobalSpinBoxSetting * MaxEndGap()
static HostComboBoxSetting * SubtitleCodec()
static HostCheckBoxSetting * AlwaysShowWatchedProgress()
static HostSpinBoxSetting * GUIFontZoom()
static HostCheckBoxSetting * GuiSizeForTV()
QMap< int, QString > iso639_key_to_english_name
QString iso639_str2_to_str3(const QString &str2)
ISO 639-1 and ISO 639-2 support functions.
static QString iso639_key_to_str3(int code)
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
MythConfirmationDialog * ShowOkPopup(const QString &message, bool showCancel)
Non-blocking version of MythPopupBox::showOkPopup()
static bool VERBOSE_LEVEL_CHECK(uint64_t mask, LogLevel_t level)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
MythMainWindow * GetMythMainWindow(void)
std::shared_ptr< MythSortHelper > getMythSortHelper(void)
Get a pointer to the MythSortHelper singleton.
void resetMythSortHelper(void)
Delete the MythSortHelper singleton.
@ kMSStdOut
allow access to stdout
@ kMSDontDisableDrawing
avoid disabling UI drawing
QMap< QString, bool > Setting
static MythThemedMenu * menu
MythUIHelper * GetMythUI()
static constexpr const char * PREF_DEC
static constexpr const char * PREF_DEINT1X
static constexpr const char * DEINT_QUALITY_MEDIUM
static constexpr const char * DEINT_QUALITY_HIGH
static constexpr const char * DEINT_QUALITY_SHADER
static constexpr const char * PREF_LOOP
static constexpr const char * DEINT_QUALITY_LOW
static constexpr const char * PREF_UPSCALE
static constexpr const char * COND_RATE
static constexpr const char * COND_CODECS
static constexpr const char * PREF_CPUS
static constexpr const char * DEINT_QUALITY_NONE
static constexpr const char * COND_HEIGHT
static constexpr const char * PREF_RENDER
static constexpr const char * PREF_DEINT2X
static constexpr uint VIDEO_MAX_CPUS
static constexpr const char * UPSCALE_DEFAULT
static constexpr const char * DEINT_QUALITY_DRIVER
static constexpr const char * COND_WIDTH
QString toString(const QDateTime &raw_dt, uint format)
Returns formatted string representing the time.
QDateTime current(bool stripped)
Returns current Date and Time in UTC.
std::deque< int > GetPreferredSkipTypeCombinations(void)
QString SkipTypeToString(int flags)
VERBOSE_PREAMBLE Most true
QString toDBString(PrimariesMode Mode)
@ kAdjustFill_AutoDetect_DefaultHalf
@ kAdjustFill_AutoDetect_DefaultOff
QString toUserString(PrimariesMode Mode)