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.") +
844 tr(
" Multithreaded decoding disabled-only one CPU "
845 "will be used, please recompile with "
846 "--enable-ffmpeg-pthreads to enable.")));
849 tr(
"When unchecked the deblocking loopfilter will be disabled. ") +
"\n" +
850 tr(
"Disabling will significantly reduce the load on the CPU for software decoding of "
851 "H.264 and HEVC material but may significantly reduce video quality."));
854 "The default scaler provides good quality in the majority of situations. "
855 "Higher quality scalers may offer some benefit when scaling very low "
856 "resolution material but may not be as fast."));
901 QString height_value;
905 for (
uint i = 0; i < 2; ++i)
907 QString pcmp =
m_item.
Get(QString(
"pref_cmp%1").arg(i));
910 QStringList clist = pcmp.split(
" ");
912 if (clist.size() < 3)
914 if (!width_value.isEmpty())
916 width_value.append(
"&");
917 height_value.append(
"&");
919 width_value.append(clist[0]+clist[1]);
920 height_value.append(clist[0]+clist[2]);
926 if (!width_value.isEmpty())
927 width_value.append(
"&");
928 width_value.append(
tmp);
933 if (!height_value.isEmpty())
934 height_value.append(
"&");
935 height_value.append(
tmp);
941 if (codecs.isEmpty())
953 if (upscale.isEmpty())
960 QStringList::const_iterator itr = decr.cbegin();
961 QStringList::const_iterator itn = decn.cbegin();
964 for (; (itr != decr.cend()) && (itn != decn.cend()); ++itr, ++itn)
967 found |= (*itr == pdecoder);
969 if (!found && !pdecoder.isEmpty())
973 if (!pmax_cpus.isEmpty())
979 if (!prenderer.isEmpty())
1013 ShowOkPopup(tr(
"Invalid width specification(%1), discarded").arg(val));
1027 ShowOkPopup(tr(
"Invalid height specification(%1), discarded").arg(val));
1041 ShowOkPopup(tr(
"Invalid frame rate specification(%1), discarded").arg(val));
1053 for (
const auto & rend : std::as_const(renderers))
1054 prenderer = (rend == vrenderer) ? vrenderer : prenderer;
1055 if (prenderer.isEmpty())
1059 for (
const auto & rend : std::as_const(renderers))
1061 if ((!rend.contains(
"null")))
1063 rend, (rend == prenderer));
1104 bool enabled =
true;
1135 QString quality = Deint->
getValue();
1137 values.append(quality);
1147 return values.join(
":");
1152 QStringList actions;
1157 if (std::any_of(actions.cbegin(), actions.cend(),
1158 [](
const QString &
action) { return action ==
"DELETE"; } ))
1169 QString message = tr(
"Remove this profile item?");
1173 if (confirmDelete->Create())
1181 delete confirmDelete;
1203 m_profileName(
std::move(profilename))
1214 QStringList restrict;
1216 if (!width.isEmpty())
1217 restrict << tr(
"Width",
"video formats") +
" " + width;
1219 if (!height.isEmpty())
1220 restrict << tr(
"Height",
"video formats") +
" " + height;
1222 if (!codecsval.isEmpty())
1223 restrict << tr(
"Formats",
"video formats") +
" " + codecsval.toUpper();
1225 if (!framerateval.isEmpty())
1226 restrict << tr(
"framerate") +
" " + framerateval;
1229 if (!restrict.isEmpty())
1230 str += restrict.join(
" ") +
" -> ";
1232 str +=
" " + tr(
"&",
"and") +
' ';
1249 for (
size_t i = 0; i <
m_items.size(); ++i)
1258 m_items[i].Set(
"pref_priority", QString::number(i + 1));
1282 LOG(VB_GENERAL, LOG_ERR,
1283 "PlaybackProfileConfig::Save() -- failed to delete items");
1290 LOG(VB_GENERAL, LOG_ERR,
1291 "PlaybackProfileConfig::Save() -- failed to save items");
1340 QString pri_i = QString::number(
m_items[indexA].GetPriority());
1341 QString pri_j = QString::number(
m_items[indexB].GetPriority());
1347 m_items[indexA].Set(
"pref_priority", pri_i);
1348 m_items[indexB].Set(
"pref_priority", pri_j);
1356 grouptrigger->setLabel(
1357 QCoreApplication::translate(
"PlaybackProfileConfigs",
1358 "Current Video Playback Profile"));
1365 if (!profiles.contains(
profile))
1367 profile = (profiles.contains(
"Normal")) ?
"Normal" : profiles[0];
1371 for (
const auto & prof : std::as_const(profiles))
1374 grouptrigger->addTargetedChild(prof,
1378 return grouptrigger;
1383 QString msg = tr(
"Enter Playback Profile Name");
1390 if (settingdialog->Create())
1398 delete settingdialog;
1407 if (not_ok_list.contains(name) || name.isEmpty())
1409 QString msg = (name.isEmpty()) ?
1410 tr(
"Sorry, playback group\nname cannot be blank.") :
1411 tr(
"Sorry, playback group name\n"
1412 "'%1' is already being used.").arg(name);
1428 std::array<QString,4> str
1430 PlaybackSettings::tr(
"Sort all sub-titles/multi-titles Ascending"),
1431 PlaybackSettings::tr(
"Sort all sub-titles/multi-titles Descending"),
1432 PlaybackSettings::tr(
"Sort sub-titles Descending, multi-titles "
1434 PlaybackSettings::tr(
"Sort sub-titles Ascending, multi-titles Descending"),
1437 QString
help = PlaybackSettings::tr(
"Selects how to sort show episodes. "
1438 "Sub-titles refers to the episodes "
1439 "listed under a specific show title. "
1440 "Multi-title refers to sections (e.g. "
1441 "\"All Programs\") which list multiple "
1442 "titles. Sections in parentheses are "
1447 gc->setLabel(PlaybackSettings::tr(
"Episode sort orderings"));
1449 for (
size_t i = 0; i < str.size(); ++i)
1450 gc->addSelection(str[i], QString::number(i));
1453 gc->setHelpText(
help);
1462 gc->setLabel(PlaybackSettings::tr(
"Sort episodes"));
1464 gc->addSelection(PlaybackSettings::tr(
"Record date"),
"Date");
1465 gc->addSelection(PlaybackSettings::tr(
"Season/Episode"),
"Season");
1466 gc->addSelection(PlaybackSettings::tr(
"Original air date"),
"OrigAirDate");
1467 gc->addSelection(PlaybackSettings::tr(
"Program ID"),
"Id");
1469 gc->setHelpText(PlaybackSettings::tr(
"Selects how to sort a show's "
1479 gs->setLabel(PlaybackSettings::tr(
"Fast forward/rewind reposition amount"));
1483 gs->setHelpText(PlaybackSettings::tr(
"When exiting sticky keys fast "
1484 "forward/rewind mode, reposition "
1485 "this many 1/100th seconds before "
1486 "resuming normal playback. This "
1487 "compensates for the reaction time "
1488 "between seeing where to resume "
1489 "playback and actually exiting "
1498 gc->setLabel(PlaybackSettings::tr(
"Reverse direction in fast "
1503 gc->setHelpText(PlaybackSettings::tr(
"If enabled, pressing the sticky "
1504 "rewind key in fast forward mode "
1505 "switches to rewind mode, and "
1506 "vice versa. If disabled, it will "
1507 "decrease the current speed or "
1508 "switch to play mode if the speed "
1509 "can't be decreased further."));
1527 paint->setLabel(AppearanceSettings::tr(
"Paint engine"));
1528 for (
const auto & option :
options)
1529 paint->addSelection(option, option, option == pref);
1531 paint->setHelpText(AppearanceSettings::tr(
"This selects what MythTV uses to draw. "));
1539 gc->setLabel(AppearanceSettings::tr(
"Menu theme"));
1543 QList<ThemeInfo>::iterator it;
1544 for( it = themelist.begin(); it != themelist.end(); ++it )
1546 gc->addSelection((*it).GetName(), (*it).GetDirectoryName(),
1547 (*it).GetDirectoryName() ==
"defaultmenu");
1557 QString fmt = beVBI.toLower().left(4);
1558 int sel = (fmt ==
"pal ") ? 1 : ((fmt ==
"ntsc") ? 2 : 0);
1562 gc->
setLabel(OSDSettings::tr(
"Decode VBI format"));
1566 gc->
addSelection(OSDSettings::tr(
"PAL teletext"),
"pal_txt",
1568 gc->
addSelection(OSDSettings::tr(
"NTSC closed caption"),
"ntsc_cc",
1572 OSDSettings::tr(
"If enabled, this overrides the mythtv-setup setting "
1573 "used during recording when decoding captions."));
1581 static const QRegularExpression crlf {
"[\r\n]" };
1582 static const QRegularExpression suffix {
"(//.*)" };
1586 gc->
setLabel(OSDSettings::tr(
"Subtitle Codec"));
1590 QScopedPointer<MythSystem>
1594 QString
results = cmd->GetStandardOutputStream()->readAll();
1595 QStringList list =
results.toLower().split(crlf, Qt::SkipEmptyParts);
1596 list.replaceInStrings(suffix,
"");
1599 for (
const auto & codec : std::as_const(list))
1601 QString val = QString(codec);
1612 gc->
setLabel(GeneralSettings::tr(
"Channel ordering"));
1614 gc->
addSelection(GeneralSettings::tr(
"channel number"),
"channum");
1615 gc->
addSelection(GeneralSettings::tr(
"callsign"),
"callsign");
1624 gs->setLabel(PlaybackSettings::tr(
"Vertical scaling"));
1628 gs->setHelpText(PlaybackSettings::tr(
"Adjust this if the image does not "
1629 "fill your screen vertically. Range "
1638 gs->setLabel(PlaybackSettings::tr(
"Horizontal scaling"));
1642 gs->setHelpText(PlaybackSettings::tr(
"Adjust this if the image does not "
1643 "fill your screen horizontally. Range "
1652 gs->setLabel(PlaybackSettings::tr(
"Scan displacement (X)"));
1656 gs->setHelpText(PlaybackSettings::tr(
"Adjust this to move the image "
1666 gs->setLabel(PlaybackSettings::tr(
"Scan displacement (Y)"));
1670 gs->setHelpText(PlaybackSettings::tr(
"Adjust this to move the image "
1680 gc->
setLabel(OSDSettings::tr(
"Always display closed captioning or "
1685 gc->
setHelpText(OSDSettings::tr(
"If enabled, captions will be displayed "
1686 "when playing back recordings or watching "
1687 "Live TV. Closed Captioning can be turned "
1688 "on or off by pressing \"T\" during"
1697 gc->
setLabel(OSDSettings::tr(
"Enable interactive TV"));
1701 gc->
setHelpText(OSDSettings::tr(
"If enabled, interactive TV applications "
1702 "(MHEG) will be activated. This is used "
1703 "for teletext and logos for radio and "
1704 "channels that are currently off-air."));
1711 gc->
setLabel(OSDSettings::tr(
"Enable network access for interactive TV"));
1713 gc->
setHelpText(OSDSettings::tr(
"If enabled, interactive TV applications "
1714 "(MHEG) will be able to access interactive "
1715 "content over the Internet. This is used "
1716 "for BBC iPlayer."));
1723 combo->setLabel(OSDSettings::tr(
"Visualiser for audio only playback"));
1724 combo->setHelpText(OSDSettings::tr(
"Select a visualisation to use when there "
1725 "is no video. Defaults to none."));
1726 combo->addSelection(
"None",
"");
1728 for (
const auto & visual : std::as_const(visuals))
1729 combo->addSelection(visual, visual);
1737 gc->
setLabel(OSDSettings::tr(
"Always use browse mode in Live TV"));
1741 gc->
setHelpText(OSDSettings::tr(
"If enabled, browse mode will "
1742 "automatically be activated whenever "
1743 "you use channel up/down while watching "
1752 gc->
setLabel(OSDSettings::tr(
"Browse all channels"));
1756 gc->
setHelpText(OSDSettings::tr(
"If enabled, browse mode will show "
1757 "channels on all available recording "
1758 "devices, instead of showing channels "
1759 "on just the current recorder."));
1767 gc->
setLabel(PlaybackSettings::tr(
"Playback from start of program"));
1771 gc->
setHelpText(PlaybackSettings::tr(
"If enabled and no bookmark is set, "
1772 "playback starts at the program "
1773 "scheduled start time rather than "
1774 "the beginning of the recording. "
1775 "Useful for automatically skipping "
1776 "'start early' parts of a recording."));
1784 gc->
setLabel(PlaybackSettings::tr(
"Action on playback exit"));
1786 gc->
addSelection(PlaybackSettings::tr(
"Just exit"),
"0");
1787 gc->
addSelection(PlaybackSettings::tr(
"Clear last played position and exit"),
"16");
1788 gc->
addSelection(PlaybackSettings::tr(
"Always prompt (excluding Live TV)"),
1790 gc->
addSelection(PlaybackSettings::tr(
"Always prompt (including Live TV)"),
1792 gc->
addSelection(PlaybackSettings::tr(
"Prompt for Live TV only"),
"8");
1794 gc->
setHelpText(PlaybackSettings::tr(
"If set to prompt, a menu will be "
1795 "displayed when you exit playback "
1796 "mode. The options available will "
1797 "allow you delete the recording, "
1798 "continue watching, or exit."));
1806 gc->
setLabel(PlaybackSettings::tr(
"Prompt at end of recording"));
1810 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, a menu will be displayed "
1811 "allowing you to delete the recording "
1812 "when it has finished playing."));
1820 gc->
setLabel(PlaybackSettings::tr(
"Enable Music Choice"));
1824 gc->
setHelpText(PlaybackSettings::tr(
"Enable this to improve playing of Music Choice channels "
1825 "or recordings from those channels. "
1826 "These are audio channels with slide show "
1827 "from some cable providers. "
1828 "In unusual situations this could cause lip sync problems "
1829 "watching normal videos or TV shows."));
1837 gc->
setLabel(PlaybackSettings::tr(
"Jump to program OSD"));
1841 gc->
setHelpText(PlaybackSettings::tr(
"Set the choice between viewing the "
1842 "current recording group in the OSD, "
1843 "or showing the 'Watch Recording' "
1844 "screen when 'Jump to Program' is "
1845 "activated. If enabled, the "
1846 "recordings are shown in the OSD"));
1854 gc->
setLabel(PlaybackSettings::tr(
"Continue playback when embedded"));
1858 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, TV playback continues "
1859 "when the TV window is embedded in "
1860 "the upcoming program list or "
1861 "recorded list. The default is to "
1862 "pause the recorded show when "
1871 gc->
setLabel(PlaybackSettings::tr(
"Automatically mark a recording as "
1876 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, when you exit near the "
1877 "end of a recording it will be marked "
1878 "as watched. The automatic detection "
1879 "is not foolproof, so do not enable "
1880 "this setting if you don't want an "
1881 "unwatched recording marked as "
1890 gc->
setLabel(PlaybackSettings::tr(
"Always show watched percent progress bar"));
1894 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, shows the watched percent "
1895 "progress bar even if the recording or "
1896 "video is marked as watched. "
1897 "Having a watched percent progress bar at "
1898 "all depends on the currently used theme."));
1906 gs->setLabel(PlaybackSettings::tr(
"Live TV idle timeout (mins)"));
1910 gs->setHelpText(PlaybackSettings::tr(
"Exit Live TV automatically if left "
1911 "idle for the specified number of "
1912 "minutes. 0 disables the timeout."));
1953 gc->
setLabel(MainGeneralSettings::tr(
"Use line edit virtual keyboards"));
1957 gc->
setHelpText(MainGeneralSettings::tr(
"If enabled, you can use a virtual "
1958 "keyboard in MythTV's line edit "
1959 "boxes. To use, hit SELECT (Enter "
1960 "or Space) while a line edit is in "
1969 gs->setLabel(MainGeneralSettings::tr(
"Idle time before entering standby "
1974 gs->setHelpText(MainGeneralSettings::tr(
"Number of minutes to wait when "
1975 "the frontend is idle before "
1976 "entering standby mode. Standby "
1977 "mode allows the backend to power "
1978 "down if configured to do so. Any "
1979 "remote or mouse input will cause "
1980 "the countdown to start again "
1981 "and/or exit idle mode. Video "
1982 "playback suspends the countdown. "
1983 "A value of zero prevents the "
1984 "frontend automatically entering "
1992 checkbox->setValue(
true);
1993 checkbox->setLabel(MainGeneralSettings::tr(
"Confirm before suspending/shutting down"));
1994 checkbox->setHelpText(MainGeneralSettings::tr(
1995 "If enabled (the default) then the user will always be asked to confirm before the system "
1996 "is shutdown, suspended or rebooted."));
2004 gc->
setLabel(MainGeneralSettings::tr(
"Customize exit menu options"));
2006 gc->
addSelection(MainGeneralSettings::tr(
"Default"),
"0");
2007 gc->
addSelection(MainGeneralSettings::tr(
"Show quit"),
"1");
2008 gc->
addSelection(MainGeneralSettings::tr(
"Show quit and suspend"),
"9");
2009 gc->
addSelection(MainGeneralSettings::tr(
"Show quit and shutdown"),
"2");
2010 gc->
addSelection(MainGeneralSettings::tr(
"Show quit, reboot and shutdown"),
"3");
2011 gc->
addSelection(MainGeneralSettings::tr(
"Show quit, reboot, shutdown and suspend"),
"10");
2012 gc->
addSelection(MainGeneralSettings::tr(
"Show shutdown"),
"4");
2013 gc->
addSelection(MainGeneralSettings::tr(
"Show reboot"),
"5");
2014 gc->
addSelection(MainGeneralSettings::tr(
"Show reboot and shutdown"),
"6");
2015 gc->
addSelection(MainGeneralSettings::tr(
"Show standby"),
"7");
2016 gc->
addSelection(MainGeneralSettings::tr(
"Show suspend"),
"8");
2018 QString helptext = MainGeneralSettings::tr(
"By default, only remote frontends are shown "
2019 "the shutdown option on the exit menu. Here "
2020 "you can force specific shutdown, reboot and suspend "
2021 "options to be displayed.");
2025 if (!supported.isEmpty())
2027 helptext.prepend(MainGeneralSettings::tr(
2028 "This system supports '%1' without additional setup. ")
2029 .arg(supported.join(
", ")));
2033 helptext.append(MainGeneralSettings::tr(
2034 " This system appears to have no power options available. Try "
2035 "setting the Halt/Reboot/Suspend commands below."));
2047 ge->setLabel(MainGeneralSettings::tr(
"Reboot command"));
2049 QString
help = MainGeneralSettings::tr(
2050 "Optional. Script to run if you select the reboot option from the "
2051 "exit menu, if the option is displayed. You must configure an "
2052 "exit key to display the exit menu.");
2055 help.append(MainGeneralSettings::tr(
2056 " Note: This system appears to support reboot without using this setting."));
2058 ge->setHelpText(
help);
2065 suspend->setLabel(MainGeneralSettings::tr(
"Suspend command"));
2066 suspend->setValue(
"");
2067 QString
help = MainGeneralSettings::tr(
2068 "Optional: Script to run if you select the suspend option from the "
2069 "exit menu, if the option is displayed.");
2073 help.append(MainGeneralSettings::tr(
2074 " Note: This system appears to support suspend without using this setting."));
2076 suspend->setHelpText(
help);
2083 ge->setLabel(MainGeneralSettings::tr(
"Halt command"));
2085 QString
help = MainGeneralSettings::tr(
"Optional. Script to run if you "
2086 "select the shutdown option from "
2087 "the exit menu, if the option is "
2088 "displayed. You must configure an "
2089 "exit key to display the exit "
2093 help.append(MainGeneralSettings::tr(
2094 " Note: This system appears to support shutdown without using this setting."));
2097 ge->setHelpText(
help);
2106 ge->setLabel(MainGeneralSettings::tr(
"LIRC daemon socket"));
2109 QString lirc_socket =
"/dev/lircd";
2112 lirc_socket =
"/var/run/lirc/lircd";
2114 ge->setValue(lirc_socket);
2116 QString
help = MainGeneralSettings::tr(
"UNIX socket or IP address[:port] "
2117 "to connect in order to communicate "
2118 "with the LIRC Daemon.");
2119 ge->setHelpText(
help);
2129 ge->setLabel(MainGeneralSettings::tr(
"CEC Device"));
2131 ge->setValue(
"/dev/cec0");
2133 QString
help = MainGeneralSettings::tr(
"CEC Device. Default is /dev/cec0 "
2134 "if you have only 1 HDMI output "
2136 ge->setHelpText(
help);
2147 ge->setLabel(MainGeneralSettings::tr(
"Screen shot path"));
2149 ge->setValue(
"/tmp/");
2151 ge->setHelpText(MainGeneralSettings::tr(
"Path to screenshot storage "
2152 "location. Should be writable "
2153 "by the frontend"));
2162 ge->setLabel(MainGeneralSettings::tr(
"Setup PIN code"));
2164 ge->setHelpText(MainGeneralSettings::tr(
"This PIN is used to control "
2165 "access to the setup menus. "
2166 "If you want to use this feature, "
2167 "then setting the value to all "
2168 "numbers will make your life much "
2169 "easier. Set it to blank to "
2170 "disable. If enabled, you will not "
2171 "be able to return to this screen "
2172 "and reset the Setup PIN without "
2173 "first entering the current PIN."));
2180 gc->
setLabel(AppearanceSettings::tr(
"Display on screen"));
2182 gc->
setHelpText(AppearanceSettings::tr(
"Run on the specified screen or "
2183 "spanning all screens."));
2192 gc->
setLabel(AppearanceSettings::tr(
"Screen aspect ratio"));
2193 gc->
addSelection(AppearanceSettings::tr(
"Auto (Assume square pixels)"),
"-1.0");
2194 gc->
addSelection(AppearanceSettings::tr(
"Auto (Detect from display)"),
"0.0");
2203 gc->
addSelection(AppearanceSettings::tr(
"16:18 (16:9 Above and below)"),
"0.8888");
2204 gc->
addSelection(AppearanceSettings::tr(
"32:10 (16:10 Side by side)"),
"3.2");
2205 gc->
addSelection(AppearanceSettings::tr(
"16:20 (16:10 Above and below)"),
"0.8");
2207 "This setting applies to video playback only, not to the GUI. "
2208 "Most modern displays have square pixels and the aspect ratio of the screen can be "
2209 "computed from the resolution (default). "
2210 "The aspect ratio can also be automatically detected from the connected display "
2211 "- though this may be slightly less accurate. If automatic detection fails, the correct "
2212 "aspect ratio can be specified here. Note: Some values (e.g 32:10) are "
2213 "primarily intended for multiscreen setups."));
2221 gc->
setLabel(PlaybackSettings::tr(
"Letterboxing color"));
2226 gc->
setHelpText(PlaybackSettings::tr(
"By default MythTV uses black "
2227 "letterboxing to match broadcaster "
2228 "letterboxing, but those with plasma "
2229 "screens may prefer gray to minimize "
2238 cb->
setLabel(PlaybackSettings::tr(
"Discard 3D stereoscopic fields"));
2240 "If 'Side by Side' or 'Top and Bottom' 3D material is detected, "
2241 "enabling this setting will discard one field (enabled by default)."));
2249 gc->
setLabel(PlaybackSettings::tr(
"Video aspect override"));
2254 gc->
setHelpText(PlaybackSettings::tr(
"When enabled, these will override "
2255 "the aspect ratio specified by any "
2256 "broadcaster for all video streams."));
2264 gc->
setLabel(PlaybackSettings::tr(
"Zoom"));
2273 gc->
setHelpText(PlaybackSettings::tr(
"When enabled, these will apply a "
2274 "predefined zoom to all video "
2275 "playback in MythTV."));
2285 gs->setLabel(AppearanceSettings::tr(
"GUI width (pixels)"));
2289 gs->setHelpText(AppearanceSettings::tr(
"The width of the GUI. Do not make "
2290 "the GUI wider than your actual "
2291 "screen resolution. Set to 0 to "
2292 "automatically scale to "
2301 gs->setLabel(AppearanceSettings::tr(
"GUI height (pixels)"));
2305 gs->setHelpText(AppearanceSettings::tr(
"The height of the GUI. Do not make "
2306 "the GUI taller than your actual "
2307 "screen resolution. Set to 0 to "
2308 "automatically scale to "
2317 gs->setLabel(AppearanceSettings::tr(
"GUI X offset"));
2321 gs->setHelpText(AppearanceSettings::tr(
"The horizontal offset where the "
2322 "GUI will be displayed. May only "
2323 "work if run in a window."));
2331 gs->setLabel(AppearanceSettings::tr(
"GUI Y offset"));
2335 gs->setHelpText(AppearanceSettings::tr(
"The vertical offset where the "
2336 "GUI will be displayed."));
2344 gc->
setLabel(AppearanceSettings::tr(
"Use GUI size for TV playback"));
2348 gc->
setHelpText(AppearanceSettings::tr(
"If enabled, use the above size for "
2349 "TV, otherwise use full screen."));
2357 gc->
setLabel(AppearanceSettings::tr(
"Force Full Screen for GUI and TV playback"));
2362 "Use Full Screen for GUI and TV playback independent of the settings for "
2363 "the GUI dimensions. This does not change the values of the GUI dimensions "
2364 "so it is easy to switch from window mode to full screen and back."));
2372 gc->
setLabel(VideoModeSettings::tr(
"Separate video modes for GUI and "
2378 "Switch video modes for playback depending on the source "
2379 "resolution and frame rate."));
2388 gs->setLabel(VideoModeSettings::tr(
"In X",
"Video mode width"));
2392 gs->setHelpText(VideoModeSettings::tr(
"Horizontal resolution of video "
2393 "which needs a special output "
2403 gs->setLabel(VideoModeSettings::tr(
"In Y",
"Video mode height"));
2407 gs->setHelpText(VideoModeSettings::tr(
"Vertical resolution of video "
2408 "which needs a special output "
2417 gc->
setLabel(VideoModeSettings::tr(
"GUI"));
2419 gc->
setHelpText(VideoModeSettings::tr(
"Resolution of screen when not "
2420 "watching a video."));
2423 std::vector<MythDisplayMode> scr = display->
GetVideoModes();
2424 for (
auto & vmode : scr)
2426 int w = vmode.Width();
2427 int h = vmode.Height();
2428 QString sel = QString(
"%1x%2").arg(w).arg(h);
2438 if ((w <= 0) || (h <= 0))
2447 gc->
setValue((i >= 0) ? i : scr.size() - 1);
2455 QString dhelp = VideoModeSettings::tr(
"Default screen resolution "
2456 "when watching a video.");
2457 QString ohelp = VideoModeSettings::tr(
"Screen resolution when watching a "
2458 "video at a specific resolution.");
2460 QString qstr = (idx<0) ?
"TVVidModeResolution" :
2461 QString(
"TVVidModeResolution%1").arg(idx);
2463 QString lstr = (idx<0) ? VideoModeSettings::tr(
"Video output") :
2464 VideoModeSettings::tr(
"Output");
2465 QString hstr = (idx<0) ? dhelp : ohelp;
2472 std::vector<MythDisplayMode> scr = display->
GetVideoModes();
2473 for (
auto & vmode : scr)
2475 QString sel = QString(
"%1x%2").arg(vmode.Width()).arg(vmode.Height());
2484 const QString previousValue =
getValue();
2488 QString resolution = setting->
getValue();
2493 for (
size_t i = 0; i < list.size(); ++i)
2495 QString sel = QString::number((
double) list[i],
'f', 3);
2497 hz50 = (fabs(50.0 - list[i]) < 0.01) ? i : hz50;
2498 hz60 = (fabs(60.0 - list[i]) < 0.01) ? i : hz60;
2504 if (wasUnchanged && previousValue ==
getValue())
2508 if (
"640x480" == resolution ||
"720x480" == resolution)
2510 if (
"640x576" == resolution ||
"720x576" == resolution)
2519 QStringList slist = res.split(
"x");
2524 if (2 == slist.size())
2526 width = slist[0].toInt(&ok0);
2527 height = slist[1].toInt(&ok1);
2530 std::vector<double> result;
2533 QSize
size(width, height);
2542 QString dhelp = VideoModeSettings::tr(
"Default refresh rate when watching "
2543 "a video. Leave at \"Auto\" to "
2544 "automatically use the best "
2546 QString ohelp = VideoModeSettings::tr(
"Refresh rate when watching a "
2547 "video at a specific resolution. "
2548 "Leave at \"Auto\" to automatically "
2549 "use the best available");
2551 QString qstr = (idx<0) ?
"TVVidModeRefreshRate" :
2552 QString(
"TVVidModeRefreshRate%1").arg(idx);
2554 QString lstr = VideoModeSettings::tr(
"Rate");
2555 QString hstr = (idx<0) ? dhelp : ohelp;
2565 QString dhelp = VideoModeSettings::tr(
"Aspect ratio when watching a "
2566 "video. Leave at \"%1\" to "
2567 "use ratio reported by the monitor. "
2568 "Set to 16:9 or 4:3 to force a "
2569 "specific aspect ratio.");
2573 QString ohelp = VideoModeSettings::tr(
"Aspect ratio when watching a "
2574 "video at a specific resolution. "
2575 "Leave at \"%1\" to use ratio "
2576 "reported by the monitor. Set to "
2577 "16:9 or 4:3 to force a specific "
2580 QString qstr = (idx<0) ?
"TVVidModeForceAspect" :
2581 QString(
"TVVidModeForceAspect%1").arg(idx);
2585 gc->
setLabel(VideoModeSettings::tr(
"Aspect"));
2587 QString hstr = (idx<0) ? dhelp : ohelp;
2589 gc->
setHelpText(hstr.arg(VideoModeSettings::tr(
"Default")));
2591 gc->
addSelection(VideoModeSettings::tr(
"Default"),
"0.0");
2607 pause->setLabel(VideoModeSettings::tr(
"Pause while switching video modes (ms)"));
2608 pause->setHelpText(VideoModeSettings::tr(
2609 "For most displays, switching video modes takes time and content can be missed. "
2610 "If non-zero, this setting will pause playback while the video mode is changed. "
2611 "The required pause length (in ms) will be dependant on the display's characteristics."));
2632 overrides->setLabel(tr(
"Overrides for specific video sizes"));
2634 for (
int idx = 0; idx < 3; ++idx)
2655 gc->
setLabel(AppearanceSettings::tr(
"Hide mouse cursor in MythTV"));
2659 gc->
setHelpText(AppearanceSettings::tr(
"Toggles mouse cursor visibility "
2660 "for touchscreens. By default "
2661 "MythTV will auto-hide the cursor "
2662 "if the mouse doesn't move for a "
2663 "period, this setting disables the "
2664 "cursor entirely."));
2673 gc->
setLabel(AppearanceSettings::tr(
"Use window border"));
2677 gc->
setHelpText(AppearanceSettings::tr(
"Toggles between windowed and "
2678 "borderless operation."));
2686 gc->
setLabel(AppearanceSettings::tr(
"Always On Top"));
2690 gc->
setHelpText(AppearanceSettings::tr(
"If enabled, MythTV will always be "
2699 gc->
setLabel(AppearanceSettings::tr(
"Smooth Transitions"));
2703 gc->
setHelpText(AppearanceSettings::tr(
"Enable smooth transitions with fade-in and fade-out of menu pages and enable GUI animations. "
2704 "Disabling this can make the GUI respond faster especially on low-powered machines."));
2711 "Never show startup screen");
2713 gs->setLabel(AppearanceSettings::tr(
"Startup Screen Delay"));
2717 gs->setHelpText(AppearanceSettings::tr(
2718 "The Startup Screen will show the progress of starting the frontend "
2719 "if frontend startup takes longer than this number of seconds."));
2728 gs->setLabel(AppearanceSettings::tr(
"GUI text zoom percentage"));
2732 gs->setHelpText(AppearanceSettings::tr
2733 (
"Adjust the themed defined font size by this percentage. "
2734 "mythfrontend needs restart for this to take effect."));
2742 gc->
setLabel(AppearanceSettings::tr(
"Date format"));
2745 QString sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2748 if (sampdate.month() == sampdate.day())
2750 sampdate = sampdate.addDays(1);
2751 sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2752 "tomorrow's date.");
2757 gc->
addSelection(locale.toString(sampdate,
"ddd MMM d"),
"ddd MMM d");
2758 gc->
addSelection(locale.toString(sampdate,
"ddd d MMM"),
"ddd d MMM");
2759 gc->
addSelection(locale.toString(sampdate,
"ddd MMMM d"),
"ddd MMMM d");
2760 gc->
addSelection(locale.toString(sampdate,
"ddd d MMMM"),
"ddd d MMMM");
2761 gc->
addSelection(locale.toString(sampdate,
"dddd MMM d"),
"dddd MMM d");
2762 gc->
addSelection(locale.toString(sampdate,
"dddd d MMM"),
"dddd d MMM");
2763 gc->
addSelection(locale.toString(sampdate,
"MMM d"),
"MMM d");
2764 gc->
addSelection(locale.toString(sampdate,
"d MMM"),
"d MMM");
2765 gc->
addSelection(locale.toString(sampdate,
"MM/dd"),
"MM/dd");
2766 gc->
addSelection(locale.toString(sampdate,
"dd/MM"),
"dd/MM");
2767 gc->
addSelection(locale.toString(sampdate,
"MM.dd"),
"MM.dd");
2768 gc->
addSelection(locale.toString(sampdate,
"dd.MM"),
"dd.MM");
2769 gc->
addSelection(locale.toString(sampdate,
"M/d/yyyy"),
"M/d/yyyy");
2770 gc->
addSelection(locale.toString(sampdate,
"d/M/yyyy"),
"d/M/yyyy");
2771 gc->
addSelection(locale.toString(sampdate,
"MM.dd.yyyy"),
"MM.dd.yyyy");
2772 gc->
addSelection(locale.toString(sampdate,
"dd.MM.yyyy"),
"dd.MM.yyyy");
2773 gc->
addSelection(locale.toString(sampdate,
"yyyy-MM-dd"),
"yyyy-MM-dd");
2774 gc->
addSelection(locale.toString(sampdate,
"ddd MMM d yyyy"),
"ddd MMM d yyyy");
2775 gc->
addSelection(locale.toString(sampdate,
"ddd d MMM yyyy"),
"ddd d MMM yyyy");
2776 gc->
addSelection(locale.toString(sampdate,
"ddd yyyy-MM-dd"),
"ddd yyyy-MM-dd");
2778 QString cn_long = QString(
"dddd yyyy") + QChar(0x5E74) +
2779 "M" + QChar(0x6708) +
"d"+ QChar(0x65E5);
2780 gc->
addSelection(locale.toString(sampdate, cn_long), cn_long);
2781 QString cn_med = QString(
"dddd ") +
2782 "M" + QChar(0x6708) +
"d"+ QChar(0x65E5);
2784 gc->
addSelection(locale.toString(sampdate, cn_med), cn_med);
2787 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred date format. %1")
2796 gc->
setLabel(AppearanceSettings::tr(
"Short date format"));
2800 QString sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2803 if (sampdate.month() == sampdate.day())
2805 sampdate = sampdate.addDays(1);
2806 sampleStr = AppearanceSettings::tr(
"Samples are shown using "
2807 "tomorrow's date.");
2811 gc->
addSelection(locale.toString(sampdate,
"M/d"),
"M/d");
2812 gc->
addSelection(locale.toString(sampdate,
"d/M"),
"d/M");
2813 gc->
addSelection(locale.toString(sampdate,
"MM/dd"),
"MM/dd");
2814 gc->
addSelection(locale.toString(sampdate,
"dd/MM"),
"dd/MM");
2815 gc->
addSelection(locale.toString(sampdate,
"MM.dd"),
"MM.dd");
2816 gc->
addSelection(locale.toString(sampdate,
"dd.MM."),
"dd.MM.");
2817 gc->
addSelection(locale.toString(sampdate,
"M.d."),
"M.d.");
2818 gc->
addSelection(locale.toString(sampdate,
"d.M."),
"d.M.");
2819 gc->
addSelection(locale.toString(sampdate,
"MM-dd"),
"MM-dd");
2820 gc->
addSelection(locale.toString(sampdate,
"dd-MM"),
"dd-MM");
2821 gc->
addSelection(locale.toString(sampdate,
"MMM d"),
"MMM d");
2822 gc->
addSelection(locale.toString(sampdate,
"d MMM"),
"d MMM");
2823 gc->
addSelection(locale.toString(sampdate,
"ddd d"),
"ddd d");
2824 gc->
addSelection(locale.toString(sampdate,
"d ddd"),
"d ddd");
2825 gc->
addSelection(locale.toString(sampdate,
"ddd M/d"),
"ddd M/d");
2826 gc->
addSelection(locale.toString(sampdate,
"ddd d/M"),
"ddd d/M");
2827 gc->
addSelection(locale.toString(sampdate,
"ddd d.M"),
"ddd d.M");
2828 gc->
addSelection(locale.toString(sampdate,
"ddd dd.MM"),
"ddd dd.MM");
2829 gc->
addSelection(locale.toString(sampdate,
"M/d ddd"),
"M/d ddd");
2830 gc->
addSelection(locale.toString(sampdate,
"d/M ddd"),
"d/M ddd");
2832 QString cn_short1 = QString(
"M") + QChar(0x6708) +
"d" + QChar(0x65E5);
2834 gc->
addSelection(locale.toString(sampdate, cn_short1), cn_short1);
2836 QString cn_short2 = QString(
"ddd M") + QChar(0x6708) +
"d" + QChar(0x65E5);
2838 gc->
addSelection(locale.toString(sampdate, cn_short2), cn_short2);
2841 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred short date format. %1")
2850 gc->
setLabel(AppearanceSettings::tr(
"Time format"));
2852 QTime samptime = QTime::currentTime();
2856 gc->
addSelection(locale.toString(samptime,
"h:mm AP"),
"h:mm AP");
2857 gc->
addSelection(locale.toString(samptime,
"h:mm ap"),
"h:mm ap");
2858 gc->
addSelection(locale.toString(samptime,
"hh:mm AP"),
"hh:mm AP");
2859 gc->
addSelection(locale.toString(samptime,
"hh:mm ap"),
"hh:mm ap");
2860 gc->
addSelection(locale.toString(samptime,
"h:mm"),
"h:mm");
2861 gc->
addSelection(locale.toString(samptime,
"hh:mm"),
"hh:mm");
2862 gc->
addSelection(locale.toString(samptime,
"hh.mm"),
"hh.mm");
2863 gc->
addSelection(locale.toString(samptime,
"AP h:mm"),
"AP h:mm");
2865 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred time format. You "
2866 "must choose a format with \"AM\" "
2867 "or \"PM\" in it, otherwise your "
2868 "time display will be 24-hour or "
2869 "\"military\" time."));
2876 rgb->setLabel(AppearanceSettings::tr(
"Use full range RGB output"));
2877 rgb->setValue(
true);
2878 rgb->setHelpText(AppearanceSettings::tr(
2879 "Enable (recommended) to supply full range RGB output to your display device. "
2880 "Disable to supply limited range RGB output. This setting applies to both the "
2881 "GUI and media playback. Ideally the value of this setting should match a "
2882 "similar setting on your TV or monitor."));
2890 gc->
setLabel(GeneralSettings::tr(
"Channel format"));
2892 gc->
addSelection(GeneralSettings::tr(
"number"),
"<num>");
2893 gc->
addSelection(GeneralSettings::tr(
"number callsign"),
"<num> <sign>");
2894 gc->
addSelection(GeneralSettings::tr(
"number name"),
"<num> <name>");
2895 gc->
addSelection(GeneralSettings::tr(
"callsign"),
"<sign>");
2896 gc->
addSelection(GeneralSettings::tr(
"name"),
"<name>");
2898 gc->
setHelpText(GeneralSettings::tr(
"Your preferred channel format."));
2909 gc->
setLabel(GeneralSettings::tr(
"Long channel format"));
2911 gc->
addSelection(GeneralSettings::tr(
"number"),
"<num>");
2912 gc->
addSelection(GeneralSettings::tr(
"number callsign"),
"<num> <sign>");
2913 gc->
addSelection(GeneralSettings::tr(
"number name"),
"<num> <name>");
2914 gc->
addSelection(GeneralSettings::tr(
"callsign"),
"<sign>");
2915 gc->
addSelection(GeneralSettings::tr(
"name"),
"<name>");
2917 gc->
setHelpText(GeneralSettings::tr(
"Your preferred long channel format."));
2928 gc->
setLabel(ChannelGroupSettings::tr(
"Remember last channel group"));
2930 gc->
setHelpText(ChannelGroupSettings::tr(
"If enabled, the EPG will "
2931 "initially display only the "
2932 "channels from the last channel "
2933 "group selected. Pressing \"4\" "
2934 "will toggle channel group."));
2945 gc->
setLabel(ChannelGroupSettings::tr(
"Default channel group"));
2951 gc->
addSelection(ChannelGroupSettings::tr(
"All Channels"),
"-1");
2953 ChannelGroupList::iterator it;
2955 for (it = changrplist.begin(); it < changrplist.end(); ++it)
2956 gc->
addSelection(it->m_name, QString(
"%1").arg(it->m_grpId));
2958 gc->
setHelpText(ChannelGroupSettings::tr(
"Default channel group to be "
2959 "shown in the EPG. Pressing "
2960 "GUIDE key will toggle channel "
2971 gc->
setLabel(GeneralSettings::tr(
"Browse/change channels from Channel "
2974 gc->
setHelpText(GeneralSettings::tr(
"If enabled, Live TV will browse or "
2975 "change channels from the selected "
2976 "channel group. The \"All Channels\" "
2977 "channel group may be selected to "
2978 "browse all channels."));
2988 gc->
setLabel(GeneralSettings::tr(
"Case-sensitive sorting"));
2990 gc->
setHelpText(GeneralSettings::tr(
"If enabled, all sorting will be "
2991 "case-sensitive. This would mean "
2992 "that \"bee movie\" would sort after "
2993 "\"Sea World\" as lower case letters "
2994 "sort after uppercase letters."));
3003 gc->
setLabel(GeneralSettings::tr(
"Remove prefixes when sorting"));
3006 "If enabled, all sorting will remove the common "
3007 "prefixes (The, A, An) from a string prior to "
3008 "sorting. For example, this would sort the titles "
3009 "\"Earth 2\", \"The Flash\", and \"Kings\" in that "
3010 "order. If disabled, they would sort as \"Earth 2\", "
3011 "\"Kings\", \"The Flash\"."));
3019 gc->
setLabel(MainGeneralSettings::tr(
"Names exempt from prefix removal"));
3022 "This list of names will be exempt from removing "
3023 "the common prefixes (The, A, An) from a title or "
3024 "filename. Enter multiple names separated by "
3033 gc->
setLabel(GeneralSettings::tr(
"Starting channel for Manual Record"));
3034 gc->
addSelection(GeneralSettings::tr(
"Guide Starting Channel"),
"1",
true);
3035 gc->
addSelection(GeneralSettings::tr(
"Last Manual Record Channel"),
"2");
3037 "When entering a new Manual Record Rule, "
3038 "the starting channel will default to this."));
3048 bc->setLabel(GeneralRecPrioritiesSettings::tr(
"Avoid back to back "
3052 GeneralRecPrioritiesSettings::tr(
"Selects the situations where the "
3053 "scheduler will avoid assigning shows "
3054 "to the same card if their end time "
3055 "and start time match. This will be "
3056 "allowed when necessary in order to "
3057 "resolve conflicts."));
3059 bc->addSelection(GeneralRecPrioritiesSettings::tr(
"Never"),
"0");
3060 bc->addSelection(GeneralRecPrioritiesSettings::tr(
"Different Channels"),
3062 bc->addSelection(GeneralRecPrioritiesSettings::tr(
"Always"),
"2");
3073 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Preferred input priority"));
3075 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3076 "a showing matches the "
3077 "preferred input selected "
3078 "in the 'Scheduling "
3079 "Options' section of the "
3080 "recording rule."));
3090 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"HDTV recording priority"));
3092 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3093 "a showing is marked as an "
3094 "HDTV broadcast in the TV "
3106 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Widescreen recording "
3109 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3110 "a showing is marked as "
3111 "widescreen in the TV "
3123 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Sign language recording "
3126 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority "
3127 "when a showing is "
3141 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"In-vision Subtitles "
3142 "Recording Priority"));
3144 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority "
3145 "when a showing is marked "
3146 "as having in-vision "
3158 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Subtitles/CC recording "
3161 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3162 "a showing is marked as "
3163 "having subtitles or "
3164 "closed captioning (CC) "
3176 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Hard of hearing priority"));
3178 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3179 "a showing is marked as "
3180 "having support for "
3181 "viewers with impaired "
3193 bs->
setLabel(GeneralRecPrioritiesSettings::tr(
"Audio described priority"));
3195 bs->
setHelpText(GeneralRecPrioritiesSettings::tr(
"Additional priority when "
3196 "a showing is marked as "
3197 "being Audio Described."));
3208 ge->setLabel(EPGSettings::tr(
"Guide starts at channel"));
3212 ge->setHelpText(EPGSettings::tr(
"The program guide starts on this channel "
3213 "if it is run from outside of Live TV "
3214 "mode. Leave blank to enable Live TV "
3215 "automatic start channel."));
3224 gs->setLabel(EPGSettings::tr(
"Record threshold"));
3228 gs->setHelpText(EPGSettings::tr(
"Pressing SELECT on a show that is at "
3229 "least this many minutes into the future "
3230 "will schedule a recording."));
3238 gc->
setLabel(AppearanceSettings::tr(
"Menu Language"));
3241 QStringList langs = langMap.values();
3245 if (langCode.isEmpty())
3250 for (
const auto & label : std::as_const(langs))
3252 QString value = langMap.key(label);
3253 gc->
addSelection(label, value, (value.toLower() == langCode));
3256 gc->
setHelpText(AppearanceSettings::tr(
"Your preferred language for the "
3257 "user interface."));
3265 gc->
setLabel(AppearanceSettings::tr(
"Audio Language"));
3268 QStringList langs = langMap.values();
3272 if (langCode.isEmpty())
3275 langCode = menuLangCode.isEmpty() ?
"en_US" : menuLangCode;
3280 for (
const auto & label : std::as_const(langs))
3282 QString value = langMap.key(label);
3283 gc->
addSelection(label, value, (value.toLower() == langCode));
3286 gc->
setHelpText(AppearanceSettings::tr(
"Preferred language for the "
3294 QString q = QString(
"ISO639Language%1").arg(i);
3297 if ((lang.isEmpty() || lang ==
"aar") &&
3306 for (; it != ite; ++it)
3308 QString desc = (*it);
3309 int idx = desc.indexOf(
";");
3311 desc = desc.left(idx);
3322 gc->
setLabel(AppearanceSettings::tr(
"Guide language #%1").arg(i+1));
3328 gc->
setHelpText(AppearanceSettings::tr(
"Your #%1 preferred language for "
3329 "Program Guide data and captions.")
3338 gc->
setLabel(MainGeneralSettings::tr(
"Enable Network Remote Control "
3341 gc->
setHelpText(MainGeneralSettings::tr(
"This enables support for "
3342 "controlling MythFrontend "
3343 "over the network."));
3354 gs->setLabel(MainGeneralSettings::tr(
"Network Remote Control port"));
3358 gs->setHelpText(MainGeneralSettings::tr(
"This specifies what port the "
3359 "Network Remote Control "
3360 "interface will listen on for "
3361 "new connections."));
3369 ge->setLabel(MainGeneralSettings::tr(
"UDP notify port"));
3371 ge->setValue(
"6948");
3373 ge->setHelpText(MainGeneralSettings::tr(
"MythTV will listen for "
3374 "connections from the "
3375 "\"mythutil\" program on "
3384 gc->
setLabel(MainGeneralSettings::tr(
"Enable CEC Control "
3386 gc->
setHelpText(MainGeneralSettings::tr(
"This enables "
3387 "controlling MythFrontend from a TV remote or powering the TV "
3388 "on and off from a MythTV remote "
3389 "if you have compatible hardware. "
3390 "These settings only take effect after a restart."));
3398 gc->
setLabel(MainGeneralSettings::tr(
"Allow Power On TV"));
3399 gc->
setHelpText(MainGeneralSettings::tr(
"Enables your TV to be powered "
3400 "on from MythTV remote or when MythTV starts "
3401 "if you have compatible hardware."));
3409 gc->
setLabel(MainGeneralSettings::tr(
"Allow Power Off TV"));
3410 gc->
setHelpText(MainGeneralSettings::tr(
"Enables your TV to be powered "
3411 "off from MythTV remote or when MythTV starts "
3412 "if you have compatible hardware."));
3420 gc->
setLabel(MainGeneralSettings::tr(
"Power on TV At Start"));
3422 "on your TV when you start MythTV "
3423 "if you have compatible hardware."));
3431 gc->
setLabel(MainGeneralSettings::tr(
"Power off TV At Exit"));
3433 "off your TV when you exit MythTV "
3434 "if you have compatible hardware."));
3447 gc->
setLabel(MainGeneralSettings::tr(
"Enable AirPlay"));
3449 gc->
setHelpText(MainGeneralSettings::tr(
"AirPlay lets you wirelessly view "
3450 "content on your TV from your "
3451 "iPhone, iPad, iPod Touch, or "
3452 "iTunes on your computer."));
3463 gc->
setLabel(MainGeneralSettings::tr(
"Only support AirTunes (no video)"));
3465 gc->
setHelpText(MainGeneralSettings::tr(
"Only stream audio from your "
3466 "iPhone, iPad, iPod Touch, or "
3467 "iTunes on your computer"));
3478 gc->
setLabel(MainGeneralSettings::tr(
"Require password"));
3482 gc->
setHelpText(MainGeneralSettings::tr(
"Require a password to use "
3483 "AirPlay. Your iPhone, iPad, iPod "
3484 "Touch, or iTunes on your computer "
3485 "will prompt you when required"));
3493 ge->setLabel(MainGeneralSettings::tr(
"Password"));
3495 ge->setValue(
"0000");
3497 ge->setHelpText(MainGeneralSettings::tr(
"Your iPhone, iPad, iPod Touch, or "
3498 "iTunes on your computer will "
3499 "prompt you for this password "
3508 hc->setLabel(MainGeneralSettings::tr(
"AirPlay - Password"));
3509 hc->addChild(AirPlayPasswordEnabled());
3510 hc->addChild(AirPlayPassword());
3519 gc->
setLabel(MainGeneralSettings::tr(
"AirPlay full screen playback"));
3523 gc->
setHelpText(MainGeneralSettings::tr(
"During music playback, displays "
3524 "album cover and various media "
3525 "information in full screen mode"));
3563 gc->
setLabel(PlaybackSettings::tr(
"Enable realtime priority threads"));
3565 gc->
setHelpText(PlaybackSettings::tr(
"When running mythfrontend with root "
3566 "privileges, some threads can be "
3567 "given enhanced priority. Disable "
3568 "this if MythFrontend freezes during "
3569 "video playback."));
3579 ge->setLabel(MainGeneralSettings::tr(
"Ignore devices"));
3583 ge->setHelpText(MainGeneralSettings::tr(
"If there are any devices that you "
3584 "do not want to be monitored, list "
3585 "them here with commas in-between. "
3586 "The plugins will ignore them. "
3587 "Requires restart."));
3595 gc->
setLabel(PlaybackSettings::tr(
"Sort titles"));
3597 gc->
addSelection(PlaybackSettings::tr(
"Alphabetically"),
3599 gc->
addSelection(PlaybackSettings::tr(
"By recording priority"),
3602 gc->
setHelpText(PlaybackSettings::tr(
"Sets the title sorting order when "
3603 "the view is set to Titles only."));
3611 gc->
setLabel(WatchListSettings::tr(
"Include the 'Watch List' group"));
3615 gc->
setHelpText(WatchListSettings::tr(
"The 'Watch List' is an abbreviated "
3616 "list of recordings sorted to "
3617 "highlight series and shows that "
3618 "need attention in order to keep up "
3627 gc->
setLabel(WatchListSettings::tr(
"Start from the Watch List view"));
3631 gc->
setHelpText(WatchListSettings::tr(
"If enabled, the 'Watch List' will "
3632 "be the initial view each time you "
3633 "enter the Watch Recordings screen"));
3641 gc->
setLabel(WatchListSettings::tr(
"Exclude recordings not set for "
3646 gc->
setHelpText(WatchListSettings::tr(
"Set this if you turn off "
3647 "Auto-Expire only for recordings "
3648 "that you've seen and intend to "
3649 "keep. This option will exclude "
3650 "these recordings from the "
3659 gs->setLabel(WatchListSettings::tr(
"Maximum days counted in the score"));
3663 gs->setHelpText(WatchListSettings::tr(
"The 'Watch List' scores are based "
3664 "on 1 point equals one day since "
3665 "recording. This option limits the "
3666 "maximum score due to age and "
3667 "affects other weighting factors."));
3675 gs->setLabel(WatchListSettings::tr(
"Days to exclude weekly episodes after "
3680 gs->setHelpText(WatchListSettings::tr(
"When an episode is deleted or "
3681 "marked as watched, other episodes "
3682 "of the series are excluded from the "
3683 "'Watch List' for this interval of "
3684 "time. Daily shows also have a "
3685 "smaller interval based on this "
3694 gc->
setLabel(MainGeneralSettings::tr(
"Media Monitor"));
3696 gc->
setHelpText(MainGeneralSettings::tr(
"This enables support for "
3697 "monitoring your CD/DVD drives for "
3698 "new disks and launching the "
3699 "proper plugin to handle them. "
3700 "Requires restart."));
3713 gc->
setLabel(LcdSettings::tr(
"Display time"));
3715 gc->
setHelpText(LcdSettings::tr(
"Display current time on idle LCD "
3727 gc->
setLabel(LcdSettings::tr(
"Display recording status"));
3729 gc->
setHelpText(LcdSettings::tr(
"Display current recordings information "
3730 "on LCD display."));
3741 gc->
setLabel(LcdSettings::tr(
"Display menus"));
3743 gc->
setHelpText(LcdSettings::tr(
"Display selected menu on LCD display. "));
3754 gs->setLabel(LcdSettings::tr(
"Menu pop-up time"));
3756 gs->setHelpText(LcdSettings::tr(
"How many seconds the menu will remain "
3757 "visible after navigation."));
3768 gc->
setLabel(LcdSettings::tr(
"Display music artist and title"));
3770 gc->
setHelpText(LcdSettings::tr(
"Display playing artist and song title in "
3771 "MythMusic on LCD display."));
3782 gc->
setLabel(LcdSettings::tr(
"Items"));
3784 gc->
addSelection(LcdSettings::tr(
"Artist - Title"),
"ArtistTitle");
3785 gc->
addSelection(LcdSettings::tr(
"Artist [Album] Title"),
3786 "ArtistAlbumTitle");
3788 gc->
setHelpText(LcdSettings::tr(
"Which items to show when playing music."));
3797 gc->
setLabel(LcdSettings::tr(
"Display channel information"));
3799 gc->
setHelpText(LcdSettings::tr(
"Display tuned channel information on LCD "
3811 gc->
setLabel(LcdSettings::tr(
"Display volume information"));
3813 gc->
setHelpText(LcdSettings::tr(
"Display volume level information "
3814 "on LCD display."));
3825 gc->
setLabel(LcdSettings::tr(
"Display generic information"));
3827 gc->
setHelpText(LcdSettings::tr(
"Display generic information on LCD display."));
3838 gc->
setLabel(LcdSettings::tr(
"Backlight always on"));
3840 gc->
setHelpText(LcdSettings::tr(
"Turn on the backlight permanently on the "
3851 gc->
setLabel(LcdSettings::tr(
"Heartbeat always on"));
3853 gc->
setHelpText(LcdSettings::tr(
"Turn on the LCD heartbeat."));
3864 gc->
setLabel(LcdSettings::tr(
"Display large clock"));
3866 gc->
setHelpText(LcdSettings::tr(
"On multiline displays try and display the "
3867 "time as large as possible."));
3878 ge->setLabel(LcdSettings::tr(
"LCD key order"));
3880 ge->setValue(
"ABCDEF");
3883 LcdSettings::tr(
"Enter the 6 Keypad Return Codes for your LCD keypad "
3884 "in the order in which you want the functions "
3885 "up/down/left/right/yes/no to operate. (See "
3886 "lcdproc/server/drivers/hd44780.c/keyMapMatrix[] "
3887 "or the matrix for your display)"));
3895 gc->
setLabel(LcdSettings::tr(
"Enable LCD device"));
3897 gc->
setHelpText(LcdSettings::tr(
"Use an LCD display to view MythTV status "
3923 gc->
setLabel(PlaybackSettings::tr(
"Enable gamma correction for video"));
3927 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, QuickTime will correct "
3928 "the gamma of the video to match "
3929 "your monitor. Turning this off can "
3930 "save some CPU cycles."));
3938 gc->
setLabel(PlaybackSettings::tr(
"Scale video as necessary"));
3942 gc->
setHelpText(PlaybackSettings::tr(
"If enabled, video will be scaled to "
3943 "fit your window or screen. If "
3944 "unchecked, video will never be made "
3945 "larger than its actual pixel size."));
3953 gs->
setLabel(PlaybackSettings::tr(
"Frames to skip in fullscreen mode"));
3957 gs->
setHelpText(PlaybackSettings::tr(
"Video displayed in fullscreen or "
3958 "non-windowed mode will skip this "
3959 "many frames for each frame drawn. "
3960 "Set to 0 to show every frame. Only "
3961 "valid when either \"Use GUI size for "
3962 "TV playback\" or \"Run the frontend "
3963 "in a window\" is not checked."));
3971 gc->
setLabel(MacMainSettings::tr(
"Video in main window"));
3975 gc->
setHelpText(MacMainSettings::tr(
"If enabled, video will be displayed "
3976 "in the main GUI window. Disable this "
3977 "when you only want video on the "
3978 "desktop or in a floating window. Only "
3979 "valid when \"Use GUI size for TV "
3980 "playback\" and \"Run the frontend in "
3981 "a window\" are checked."));
3989 gs->
setLabel(MacMainSettings::tr(
"Frames to skip"));
3993 gs->
setHelpText(MacMainSettings::tr(
"Video in the main window will skip "
3994 "this many frames for each frame "
3995 "drawn. Set to 0 to show every "
4004 gs->
setLabel(MacMainSettings::tr(
"Opacity"));
4008 gs->
setHelpText(MacMainSettings::tr(
"The opacity of the main window. Set "
4009 "to 100 for completely opaque, set "
4010 "to 0 for completely transparent."));
4018 gc->
setLabel(MacFloatSettings::tr(
"Video in floating window"));
4022 gc->
setHelpText(MacFloatSettings::tr(
"If enabled, video will be displayed "
4023 "in a floating window. Only valid "
4024 "when \"Use GUI size for TV "
4025 "playback\" and \"Run the frontend "
4026 "in a window\" are checked."));
4034 gs->
setLabel(MacFloatSettings::tr(
"Frames to skip"));
4038 gs->
setHelpText(MacFloatSettings::tr(
"Video in the floating window will "
4039 "skip this many frames for each "
4040 "frame drawn. Set to 0 to show "
4049 gs->
setLabel(MacFloatSettings::tr(
"Opacity"));
4053 gs->
setHelpText(MacFloatSettings::tr(
"The opacity of the floating window. "
4054 "Set to 100 for completely opaque, "
4055 "set to 0 for completely "
4064 gc->
setLabel(MacDockSettings::tr(
"Video in the dock"));
4068 gc->
setHelpText(MacDockSettings::tr(
"If enabled, video will be displayed "
4069 "in the application's dock icon. Only "
4070 "valid when \"Use GUI size for TV "
4071 "playback\" and \"Run the frontend in "
4072 "a window\" are checked."));
4080 gs->
setLabel(MacDockSettings::tr(
"Frames to skip"));
4084 gs->
setHelpText(MacDockSettings::tr(
"Video in the dock icon will skip this "
4085 "many frames for each frame drawn. Set "
4086 "to 0 to show every frame."));
4094 gc->
setLabel(MacDesktopSettings::tr(
"Video on the desktop"));
4098 gc->
setHelpText(MacDesktopSettings::tr(
"If enabled, video will be "
4099 "displayed on the desktop, "
4100 "behind the Finder icons. "
4101 "Only valid when \"Use GUI "
4102 "size for TV playback\" and "
4103 "\"Run the frontend in a "
4104 "window\" are checked."));
4112 gs->
setLabel(MacDesktopSettings::tr(
"Frames to skip"));
4116 gs->
setHelpText(MacDesktopSettings::tr(
"Video on the desktop will skip "
4117 "this many frames for each frame "
4118 "drawn. Set to 0 to show every "
4143 setLabel(MainGeneralSettings::tr(
"Shutdown/Reboot Settings"));
4231 pin->setLabel(tr(
"Settings Access"));
4236 general->setLabel(tr(
"General"));
4241 if (sh->hasPrefixes()) {
4246 general->addChild(SortCaseSensitive());
4249 general->addChild(stripPrefixes);
4260 remotecontrol->setLabel(tr(
"Remote Control"));
4267 remotecontrol->addChild(cec);
4269 m_cecPowerOnTVAllowed = CECPowerOnTVAllowed();
4270 m_cecPowerOffTVAllowed = CECPowerOffTVAllowed();
4271 m_cecPowerOnTVOnStart = CECPowerOnTVOnStart();
4272 m_cecPowerOffTVOnExit = CECPowerOffTVOnExit();
4278 this, &MainGeneralSettings::cecChanged);
4280 this, &MainGeneralSettings::cecChanged);
4286 airplay->setLabel(tr(
"AirPlay Settings"));
4287 airplay->addChild(AirPlayEnabled());
4288 airplay->addChild(AirPlayFullScreen());
4289 airplay->addChild(AirPlayAudioOnly());
4290 airplay->addChild(AirPlayPasswordSettings());
4298void MainGeneralSettings::cecChanged(
bool )
4300 if (m_cecPowerOnTVAllowed->boolValue())
4301 m_cecPowerOnTVOnStart->setEnabled(
true);
4304 m_cecPowerOnTVOnStart->setEnabled(
false);
4305 m_cecPowerOnTVOnStart->setValue(
false);
4308 if (m_cecPowerOffTVAllowed->boolValue())
4309 m_cecPowerOffTVOnExit->setEnabled(
true);
4312 m_cecPowerOffTVOnExit->setEnabled(
false);
4313 m_cecPowerOffTVOnExit->setValue(
false);
4320 QStringList strlist( QString(
"REFRESH_BACKEND") );
4322 LOG(VB_GENERAL, LOG_ERR, QString(
"%1 called").arg(__FUNCTION__));
4345 setLabel(PlaybackSettings::tr(
"Scaling"));
4369 item->
SetText(PlaybackSettings::tr(
"No scaling"),
"value");
4373 item->
SetText(QString(
"%1%x%2%+%3%+%4%")
4406 auto *
menu =
new MythMenu(tr(
"Playback Profile Menu"),
this,
"mainmenu");
4418 menuPopup->SetReturnEvent(
this,
"mainmenu");
4420 if (menuPopup->Create())
4436 config->DecreasePriority();
4453 config->IncreasePriority();
4475 general->setLabel(tr(
"General Playback"));
4497 advanced->setLabel(tr(
"Advanced Playback Settings"));
4503 advanced->addChild(VAAPIDevice());
4518 pbox->setLabel(tr(
"View Recordings"));
4527 pbox2->setLabel(tr(
"Recording Groups"));
4533 pbox->addChild(pbox2);
4542 pbox->addChild(playbackWatchList);
4546 seek->setLabel(tr(
"Seeking"));
4554 comms->setLabel(tr(
"Commercial Skip"));
4565 mac->
setLabel(tr(
"Mac OS X Video Settings"));
4620 general->setLabel(tr(
"General (Basic)"));
4629 autoexp->setLabel(tr(
"General (Auto-Expire)"));
4647 jobs->setLabel(tr(
"General (Jobs)"));
4658 general2->setLabel(tr(
"General (Advanced)"));
4670 changrp->setLabel(tr(
"General (Channel Groups)"));
4691 sched->setLabel(tr(
"Scheduler Options"));
4702 access->setLabel(tr(
"Accessibility Options"));
4731 setLabel(AppearanceSettings::tr(
"GUI dimension"));
4754 item->
SetText(AppearanceSettings::tr(
"Fullscreen"),
"value");
4758 item->
SetText(QString(
"%1x%2+%3+%4")
4774 QCoreApplication::processEvents();
4781 QList screens = QGuiApplication::screens();
4782 for (QScreen *qscreen : std::as_const(screens))
4797 screen->setLabel(tr(
"Theme / Screen Settings"));
4823 screen->addChild(AirPlayFullScreen());
4829 std::vector<MythDisplayMode> scr = display->
GetVideoModes();
4836 dates->setLabel(tr(
"Localization"));
4858 gc->
setLabel(AppearanceSettings::tr(
"Select from Channel Group"));
4859 gc->addSelection(
"All Channels");
4863 for (
const auto &chgrp : list)
4865 gc->addSelection(chgrp.m_name);
4868 "Select the channel group to select channels from. "
4869 "\"All Channels\" lets you choose from all channels of all video sources. "
4870 "\"Priority\" lets you choose from all channels that have recording priority. "
4871 "The other values let you select a video source to choose channels from."));
4879 const QString &channum,
const QString &name);
4887 const QString &channum,
const QString &channame)
4888 : m_channelId(chanid)
4890 setLabel(QString(
"%1 %2").arg(channum, channame));
4891 setHelpText(ChannelGroupSettings::tr(
"Select/Unselect channels for this channel group"));
4896 : m_groupId(groupId),
4899 setLabel(groupName ==
"Favorites" ? tr(
"Favorites") : groupName);
4929 QList<StandardSetting *>::const_iterator i;
4930 for (i = children->constBegin(); i != children->constEnd(); ++i)
4932 if ((*i)->haveChanged())
4939 if (channel->boolValue())
4961 LOG(VB_GENERAL, LOG_INFO,
4962 QString(
"ChannelGroupSetting::LoadChannelGroup group:%1 groupId:%2")
4963 .arg(group).arg(groupId));
4969 it.second->setVisible(
false);
4986 if (fromGroupId == -1)
4989 "SELECT channel.chanid, channum, name, grpid FROM channel "
4990 "LEFT JOIN channelgroup "
4991 "ON (channel.chanid = channelgroup.chanid AND grpid = :GRPID) "
4992 "WHERE deleted IS NULL "
4994 "ORDER BY channum+0; ");
5000 "SELECT channel.chanid, channum, name, cg2.grpid FROM channel "
5001 "RIGHT JOIN channelgroup AS cg1 "
5002 "ON (channel.chanid = cg1.chanid AND cg1.grpid = :FROMGRPID) "
5003 "LEFT JOIN channelgroup AS cg2 "
5004 "ON (channel.chanid = cg2.chanid AND cg2.grpid = :GRPID) "
5005 "WHERE deleted IS NULL "
5007 "ORDER BY channum+0; ");
5009 query.
bindValue(
":FROMGRPID", fromGroupId);
5013 MythDB::DBError(
"ChannelGroupSetting::LoadChannelGroupChannels", query);
5016 while (query.
next())
5018 auto chanid = query.
value(0).toUInt();
5019 auto channum = query.
value(1).toString();
5020 auto name = query.
value(2).toString();
5021 auto checked = !query.
value(3).isNull();
5022 auto pair = std::make_pair(
m_groupId, chanid);
5028 checkBox = it->second;
5075 query.
prepare(
"DELETE FROM channelgroup WHERE grpid = :GRPID;");
5081 query.
prepare(
"DELETE FROM channelgroupnames WHERE grpid = :GRPID;");
5101 for (
auto it = list.begin(); it < list.end(); ++it)
5103 QString name = (it->m_name ==
"Favorites") ? tr(
"Favorites") : it->m_name;
5118 tr(
"Enter the name of the new channel group"));
5120 if (settingdialog->Create())
5128 delete settingdialog;
5135 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)