本文整理汇总了C++中HostComboBox类的典型用法代码示例。如果您正苦于以下问题:C++ HostComboBox类的具体用法?C++ HostComboBox怎么用?C++ HostComboBox使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了HostComboBox类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: VerticalConfigurationGroup
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);
}
示例2: 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;
}
示例3: 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;
};
示例4: HostComboBox
static HostComboBox *PALNTSC()
{
HostComboBox *gc = new HostComboBox("MythArchiveVideoFormat");
gc->setLabel(QObject::tr("Video format"));
gc->addSelection("PAL");
gc->addSelection("NTSC");
gc->setHelpText(QObject::tr("Video format for DVD recordings, PAL or NTSC."));
return gc;
};
示例5: HostComboBox
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;
}
示例6: 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;
};
示例7: HostComboBox
static HostComboBox *SlideshowBackground()
{
HostComboBox *gc = new HostComboBox("SlideshowBackground");
gc->setLabel(QObject::tr("Type of background"));
// use names from /etc/X11/rgb.txt
gc->addSelection("theme","");
gc->addSelection("black");
gc->addSelection("white");
gc->setHelpText(QObject::tr("This is the type of background for each "
"picture in single view mode."));
return gc;
};
示例8: 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;
};
示例9: removeTarget
void TriggeredConfigurationGroup::removeTarget(QString triggerValue)
{
HostComboBox *combobox = dynamic_cast<HostComboBox*>(trigger);
if (!combobox)
return;
QMap<QString,Configurable*>::iterator cit = triggerMap.find(triggerValue);
if (cit == triggerMap.end())
return;
// remove trigger value from trigger combobox
combobox->removeSelection(triggerValue);
// actually remove the pane
configStack->removeChild(*cit);
triggerMap.erase(cit);
}
示例10: HostComboBox
static HostComboBox *LocalServerIP6()
{
HostComboBox *gc = new HostComboBox("BackendServerIP6");
gc->setLabel(QObject::tr("IPv6 address"));
QList<QHostAddress> list = QNetworkInterface::allAddresses();
QList<QHostAddress>::iterator it;
for (it = list.begin(); it != list.end(); ++it)
{
if ((*it).protocol() == QAbstractSocket::IPv6Protocol)
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
{
// Allow ability to have no value set, this disable IPv6
gc->addSelection("");
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;
}