static HostLineEdit *NonID3FileNameFormat() { HostLineEdit *gc = new HostLineEdit("NonID3FileNameFormat"); gc->setLabel(QObject::tr("Filename Format")); gc->setValue("GENRE/ARTIST/ALBUM/TRACK_TITLE"); gc->setHelpText(QObject::tr("Directory and filename Format used to grab " "information if no ID3 information is found. Accepts " "GENRE, ARTIST, ALBUM, TITLE, ARTIST_TITLE and " "TRACK_TITLE.")); return gc; };
static HostLineEdit *MiscStatusScript() { HostLineEdit *he = new HostLineEdit("MiscStatusScript"); he->setLabel(QObject::tr("Miscellaneous status application")); he->setValue(""); he->setHelpText(QObject::tr("External application or script that outputs " "extra information for inclusion in the " "backend status page. See http://www.mythtv." "org/wiki/Miscellaneous_Status_Information")); return he; }
static HostLineEdit *LocalSecurityPin() { HostLineEdit *gc = new HostLineEdit("SecurityPin"); gc->setLabel(QObject::tr("Security PIN (required)")); gc->setValue(""); gc->setHelpText(QObject::tr("PIN code required for a frontend to connect " "to the backend. Blank prevents all " "connections; 0000 allows any client to " "connect.")); return gc; };
static HostLineEdit *TreeLevels() { HostLineEdit *gc = new HostLineEdit("TreeLevels", true); gc->setLabel(QObject::tr("Tree Sorting")); gc->setValue("splitartist artist album title"); gc->setHelpText(QObject::tr("Order in which to sort the Music " "Tree. Possible values are a space-separated list of " "genre, splitartist, splitartist1, artist, album, and " "title OR the keyword \"directory\" to indicate that " "the onscreen tree mirrors the filesystem.")); return gc; };
static HostLineEdit *GameFavTreeLevels() { HostLineEdit *gc = new HostLineEdit("GameFavTreeLevels"); gc->setLabel(MythGameGeneralSettings::tr("Favorite display order")); gc->setValue("gamename"); gc->setHelpText(MythGameGeneralSettings::tr("Order in which to sort the " "games marked as favorites " "- this is for all systems. " "Available choices: system, " "year, genre and gamename")); return gc; }
// General Settings static HostLineEdit *GameAllTreeLevels() { HostLineEdit *gc = new HostLineEdit("GameAllTreeLevels"); gc->setLabel(MythGameGeneralSettings::tr("Game display order")); gc->setValue("system gamename"); gc->setHelpText(MythGameGeneralSettings::tr("Order in which to sort the " "games - this is for all " "systems. Available choices: " "system, year, genre and " "gamename")); return gc; }
static HostLineEdit *MythShutdownNvramRestartCmd() { HostLineEdit *gc = new HostLineEdit("MythShutdownNvramRestartCmd"); gc->setLabel(MythShutdownSettings::tr("nvram-wakeup Restart Command")); gc->setValue("/sbin/grub-set-default 1"); gc->setHelpText(MythShutdownSettings::tr("Command to run if your bios " "requires you to reboot to allow nvram-wakeup settings " "to take effect. Leave blank if your bios does not " "require a reboot. See the README file for more " "examples.")); return gc; };
static HostLineEdit *MythGalleryDir() { HostLineEdit *gc = new HostLineEdit("GalleryDir"); gc->setLabel(QObject::tr("Directory that holds images")); #ifdef Q_WS_MACX gc->setValue(QDir::homePath() + "/Pictures"); #else gc->setValue("/var/lib/pictures"); #endif gc->setHelpText(QObject::tr("This directory must exist and " "MythGallery needs to have read permission.")); return gc; };
static HostLineEdit *LocalServerIP() { HostLineEdit *gc = new HostLineEdit("BackendServerIP"); gc->setLabel(QObject::tr("IP address")); gc->setValue("127.0.0.1"); gc->setHelpText(QObject::tr("Enter the IP address of this machine. " "Use an externally accessible address (ie, not " "127.0.0.1) if you are going to be running a frontend " "on a different machine than this one. Note, in IPv6 " "setups, this is still required for certain extras " "such as UPnP.")); return gc; };
static HostLineEdit *SetMusicDirectory() { HostLineEdit *gc = new HostLineEdit("MusicLocation"); gc->setLabel(QObject::tr("Directory to hold music")); #ifdef Q_WS_MACX gc->setValue(QDir::homePath() + "/Music"); #else gc->setValue("/mnt/store/music/"); #endif gc->setHelpText(QObject::tr("This directory must exist, and the user " "running MythMusic needs to have write permission " "to the directory.")); return gc; };
/*! \brief Settings for Importing \param enable True if password has been entered */ ImportSettings::ImportSettings(bool enable) : VerticalConfigurationGroup() { setLabel(tr("Import")); setEnabled(enable); HostLineEdit *script = new HostLineEdit("GalleryImportCmd", true); script->setLabel(tr("Import Command")); script->setHelpText(tr("Command/script that can be run from the menu. " "\n%TMPDIR% will be replaced by a new temporary directory, " "which the import dialog will show automatically. The " "directory will be removed when Gallery exits.")); script->setEnabled(enable); addChild(script); }
static HostLineEdit *LocalServerIP6() { HostLineEdit *gc = new HostLineEdit("BackendServerIP6"); gc->setLabel(QObject::tr("IPv6 address")); gc->setValue("::1"); gc->setHelpText(QObject::tr("Enter the IPv6 address of this machine. " "Use an externally accessible address (ie, not " "::1) if you are going to be running a frontend " "on a different machine than this one.")); #if defined(QT_NO_IPV6) gc->setEnabled(false); #else if (ServerPool::DefaultListenIPv6().isEmpty()) gc->setEnabled(false); #endif return gc; }