本文整理汇总了C++中HostComboBox::setHelpText方法的典型用法代码示例。如果您正苦于以下问题:C++ HostComboBox::setHelpText方法的具体用法?C++ HostComboBox::setHelpText怎么用?C++ HostComboBox::setHelpText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HostComboBox
的用法示例。
在下文中一共展示了HostComboBox::setHelpText方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: VerticalConfigurationGroup
ThumbSettings::ThumbSettings() : VerticalConfigurationGroup()
{
setLabel(tr("Thumbnails"));
HostComboBox *order = new HostComboBox("GalleryImageOrder");
order->setLabel(tr("Image Order"));
order->setHelpText(tr("The order that pictures/videos are shown in thumbnail "
"view and ordered slideshows."));
order->addSelection(tr("Filename (A-Z)"), QString::number(kSortByNameAsc));
order->addSelection(tr("Reverse Filename (Z-A)"), QString::number(kSortByNameDesc));
order->addSelection(tr("Exif Date (oldest first)"), QString::number(kSortByDateAsc));
order->addSelection(tr("Reverse Exif Date (newest first)"), QString::number(kSortByDateDesc));
order->addSelection(tr("File Modified Time (oldest first)"), QString::number(kSortByModTimeAsc));
order->addSelection(tr("Reverse File Modified Time (newest first)"), QString::number(kSortByModTimeDesc));
order->addSelection(tr("File Extension (A-Z)"), QString::number(kSortByExtAsc));
order->addSelection(tr("Reverse File Extension (Z-A)"), QString::number(kSortByExtDesc));
order->addSelection(tr("File Size (smallest first)"), QString::number(kSortBySizeAsc));
order->addSelection(tr("Reverse File Size (largest first)"), QString::number(kSortBySizeDesc));
addChild(order);
HostComboBox *orderDir = new HostComboBox("GalleryDirOrder");
orderDir->setLabel(tr("Directory Order"));
orderDir->setHelpText(tr("The order that dirctories are shown and traversed "
"in recursive slideshows."));
orderDir->addSelection(tr("Filename (A-Z)"), QString::number(kSortByNameAsc));
orderDir->addSelection(tr("Reverse Filename (Z-A)"), QString::number(kSortByNameDesc));
orderDir->addSelection(tr("File Modified Time (oldest first)"), QString::number(kSortByModTimeAsc));
orderDir->addSelection(tr("Reverse File Modified Time (newest first)"), QString::number(kSortByModTimeDesc));
addChild(orderDir);
HostComboBox *fmt = new HostComboBox("GalleryDateFormat");
fmt->setLabel(tr("Date Format"));
QDateTime sampdate = MythDate::fromString("2002-05-03");
ADD_FORMAT(sampdate, "dd/MM/yy");
ADD_FORMAT(sampdate, "dd-MM-yy");
ADD_FORMAT(sampdate, "d/M/yy");
ADD_FORMAT(sampdate, "d-M-yy");
ADD_FORMAT(sampdate, "MM/dd/yy");
ADD_FORMAT(sampdate, "MM-dd-yy");
ADD_FORMAT(sampdate, "M/d/yy");
ADD_FORMAT(sampdate, "M-d-yy");
ADD_FORMAT(sampdate, "yyyy/MM/dd");
ADD_FORMAT(sampdate, "yyyy-MM-dd");
ADD_FORMAT(sampdate, QString("yyyy") % QChar(0x5E74) %
"M" % QChar(0x6708) % "d" % QChar(0x65E5)); // yyyy年M月d日
fmt->setHelpText(tr("Date format of thumbnail captions. Other places use the system date format. "
"Sample shows 3rd May 2002."));
addChild(fmt);
}
示例2: dev
HostComboBox *AudioMixerSettings::MixerDevice()
{
HostComboBox *gc = new HostComboBox("MixerDevice", true);
gc->setLabel(QObject::tr("Mixer device"));
#ifdef USING_OSS
QDir dev("/dev", "mixer*", QDir::Name, QDir::System);
gc->fillSelectionsFromDir(dev);
dev.setPath("/dev/sound");
if (dev.exists())
{
gc->fillSelectionsFromDir(dev);
}
#endif
#ifdef USING_ALSA
gc->addSelection("ALSA:default", "ALSA:default");
#endif
#ifdef USING_MINGW
gc->addSelection("DirectX:", "DirectX:");
gc->addSelection("Windows:", "Windows:");
#endif
#if !defined(USING_MINGW)
gc->addSelection("software", "software");
gc->setHelpText(QObject::tr("Setting the mixer device to \"software\" "
"lets MythTV control the volume of all audio at the "
"expense of a slight quality loss."));
#endif
return gc;
}
示例3: if
static HostComboBox *LocalServerIP6()
{
HostComboBox *gc = new HostComboBox("BackendServerIP6");
gc->setLabel(QObject::tr("IPv6 address"));
QList<QHostAddress> list = ServerPool::DefaultListenIPv6();
QList<QHostAddress>::iterator it;
for (it = list.begin(); it != list.end(); ++it)
{
gc->addSelection((*it).toString(), (*it).toString());
}
#if defined(QT_NO_IPV6)
gc->setEnabled(false);
gc->setValue("");
#else
if (list.isEmpty())
{
gc->setEnabled(false);
gc->setValue("");
}
else if (list.contains(QHostAddress("::1")))
gc->setValue("::1");
#endif
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."));
return gc;
}
示例4: availableTransitions
SlideSettings::SlideSettings() : VerticalConfigurationGroup()
{
setLabel(tr("Slideshow"));
HostComboBox *tranBox = new HostComboBox("GalleryTransitionType");
tranBox->setLabel(tr("Transition"));
tranBox->setHelpText(tr("Effect to use between slides"));
// Initialise selected transition
TransitionRegistry availableTransitions(GetMythPainter()->SupportsAnimation());
TransitionMap transitions = availableTransitions.GetAll();
QMapIterator<int, Transition*> i(transitions);
while (i.hasNext())
{
i.next();
tranBox->addSelection(i.value()->objectName(), QString::number(i.key()));
}
addChild(tranBox);
HostSpinBox *slide = new HostSpinBox("GallerySlideShowTime", 100, 60000, 100);
slide->setLabel(tr("Slide Duration (ms)"));
slide->setHelpText(tr("The time that a slide is displayed (between transitions), "
"in milliseconds."));
addChild(slide);
HostSpinBox *transition = new HostSpinBox("GalleryTransitionTime", 100, 60000, 100);
transition->setLabel(tr("Transition Duration (ms)"));
transition->setHelpText(tr("The time that each transition lasts, in milliseconds."));
addChild(transition);
}
示例5: HostComboBox
static HostComboBox *ZMDateFormat()
{
HostComboBox *gc = new HostComboBox("ZoneMinderDateFormat");
gc->setLabel(QObject::tr("Date format"));
QDate sampdate = MythDate::current().toLocalTime().date();
QString sampleStr =
QObject::tr("Samples are shown using today's date.");
if (sampdate.month() == sampdate.day())
{
sampdate = sampdate.addDays(1);
sampleStr =
QObject::tr("Samples are shown using tomorrow's date.");
}
gc->addSelection(sampdate.toString("ddd - dd/MM"), "ddd - dd/MM");
gc->addSelection(sampdate.toString("ddd MMM d"), "ddd MMM d");
gc->addSelection(sampdate.toString("ddd MMMM d"), "ddd MMMM d");
gc->addSelection(sampdate.toString("MMM d"), "MMM d");
gc->addSelection(sampdate.toString("MM/dd"), "MM/dd");
gc->addSelection(sampdate.toString("MM.dd"), "MM.dd");
gc->addSelection(sampdate.toString("ddd d MMM"), "ddd d MMM");
gc->addSelection(sampdate.toString("M/d/yyyy"), "M/d/yyyy");
gc->addSelection(sampdate.toString("dd.MM.yyyy"), "dd.MM.yyyy");
gc->addSelection(sampdate.toString("yyyy-MM-dd"), "yyyy-MM-dd");
gc->addSelection(sampdate.toString("ddd MMM d yyyy"), "ddd MMM d yyyy");
gc->addSelection(sampdate.toString("ddd yyyy-MM-dd"), "ddd yyyy-MM-dd");
gc->addSelection(sampdate.toString("ddd dd MMM yyyy"), "ddd dd MMM yyyy");
gc->setHelpText(QObject::tr("Your preferred date format to use on the events screens.")
+ " " + sampleStr);
return gc;
}
示例6: HostComboBox
static HostComboBox *MythArchiveDateFormat()
{
HostComboBox *gc = new HostComboBox("MythArchiveDateFormat");
gc->setLabel(QObject::tr("Date format"));
QDate sampdate = QDate::currentDate();
QString sampleStr =
QObject::tr("Samples are shown using today's date.");
if (sampdate.month() == sampdate.day())
{
sampdate = sampdate.addDays(1);
sampleStr =
QObject::tr("Samples are shown using tomorrow's date.");
}
gc->addSelection(sampdate.toString("ddd MMM d"), "%a %b %d");
gc->addSelection(sampdate.toString("ddd MMMM d"), "%a %B %d");
gc->addSelection(sampdate.toString("MMM d"), "%b %d");
gc->addSelection(sampdate.toString("MM/dd"), "%m/%d");
gc->addSelection(sampdate.toString("MM.dd"), "%m.%d");
gc->addSelection(sampdate.toString("ddd d MMM"), "%a %d %b");
gc->addSelection(sampdate.toString("M/d/yyyy"), "%m/%d/%Y");
gc->addSelection(sampdate.toString("dd.MM.yyyy"), "%d.%m.%Y");
gc->addSelection(sampdate.toString("yyyy-MM-dd"), "%Y-%m-%d");
gc->addSelection(sampdate.toString("ddd MMM d yyyy"), "%a %b %d %Y");
gc->addSelection(sampdate.toString("ddd yyyy-MM-dd"), "%a %Y-%m-%d");
gc->addSelection(sampdate.toString("ddd dd MMM yyyy"), "%a %d %b %Y");
gc->setHelpText(QObject::tr("Your preferred date format to use on DVD menus.") + " " +
sampleStr);
return gc;
}
示例7: HostComboBox
HostComboBox *AudioConfigSettings::AudioUpmixType()
{
HostComboBox *gc = new HostComboBox("AudioUpmixType",false);
gc->setLabel(QObject::tr("Upmix Quality"));
gc->addSelection(QObject::tr("Good"), "1");
gc->addSelection(QObject::tr("Best"), "2", true); // default
gc->setHelpText(QObject::tr("Set the audio surround-upconversion quality."));
return gc;
}
示例8: HostComboBox
static HostComboBox *CDDiskSize()
{
HostComboBox *gc = new HostComboBox("CDDiskSize");
gc->setLabel(QObject::tr("Disk Size"));
gc->addSelection(QObject::tr("650MB/75min"), "1");
gc->addSelection(QObject::tr("700MB/80min"), "2");
gc->setHelpText(QObject::tr("Default CD Capacity."));
return gc;
};
示例9: HostComboBox
static HostComboBox *MythGalleryFilterType()
{
HostComboBox *gc = new HostComboBox("GalleryFilterType");
gc->setLabel(QObject::tr("Type filter"));
gc->addSelection("All", QString::number(kTypeFilterAll));
gc->addSelection("Images only", QString::number(kTypeFilterImagesOnly));
gc->addSelection("Movies only", QString::number(kTypeFilterMoviesOnly));
gc->setHelpText(QObject::tr("This is the type filter for the displayed "
"thumbnails."));
return gc;
};
示例10: HostComboBox
static HostComboBox *MythGallerySortOrder()
{
HostComboBox *gc = new HostComboBox("GallerySortOrder");
gc->setLabel(QObject::tr("Sort order when browsing"));
gc->addSelection("Name (A-Z alpha)", QString::number(QDir::Name | QDir::DirsFirst | QDir::IgnoreCase));
gc->addSelection("Reverse Name (Z-A alpha)", QString::number(QDir::Name | QDir::DirsFirst | QDir::IgnoreCase | QDir::Reversed));
gc->addSelection("Mod Time (earliest first)", QString::number(QDir::Time | QDir::DirsFirst | QDir::IgnoreCase | QDir::Reversed));
gc->addSelection("Reverse Mod Time (most recent first)", QString::number(QDir::Time | QDir::DirsFirst | QDir::IgnoreCase));
gc->setHelpText(QObject::tr("This is the sort order for the displayed "
"picture thumbnails."));
return gc;
};
示例11: HostComboBox
static HostComboBox *WakeupTimeFormat()
{
HostComboBox *gc = new HostComboBox("MythShutdownWakeupTimeFmt", true);
gc->setLabel(QObject::tr("Wakeup time format"));
gc->addSelection("time_t");
gc->addSelection("yyyy-MM-dd hh:mm:ss");
gc->setHelpText(QObject::tr("The format of the time string passed to the "
"\'Set Wakeup Time Command\' as $time. See "
"QT::QDateTime.toString() for details. Set to 'time_t' for "
"seconds since epoch (use time_t for nvram_wakeup)."));
return gc;
};
示例12: HostComboBox
static HostComboBox *JobQueueCPU()
{
HostComboBox *gc = new HostComboBox("JobQueueCPU");
gc->setLabel(QObject::tr("CPU usage"));
gc->addSelection(QObject::tr("Low"), "0");
gc->addSelection(QObject::tr("Medium"), "1");
gc->addSelection(QObject::tr("High"), "2");
gc->setHelpText(QObject::tr("This setting controls approximately how "
"much CPU jobs in the queue may consume. "
"On 'High', all available CPU time may be used, "
"which could cause problems on slower systems." ));
return gc;
};