本文整理汇总了C++中ConfigurationGroup::addChild方法的典型用法代码示例。如果您正苦于以下问题:C++ ConfigurationGroup::addChild方法的具体用法?C++ ConfigurationGroup::addChild怎么用?C++ ConfigurationGroup::addChild使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConfigurationGroup
的用法示例。
在下文中一共展示了ConfigurationGroup::addChild方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GalleryConfigurationGroup
GalleryConfigurationGroup() :
TriggeredConfigurationGroup(false, true, false, false)
{
setLabel(QObject::tr("MythGallery Settings (Slideshow)"));
setUseLabel(false);
#ifdef USING_OPENGL
HostCheckBox* useOpenGL = SlideshowUseOpenGL();
addChild(useOpenGL);
setTrigger(useOpenGL);
ConfigurationGroup* openGLConfig = new VerticalConfigurationGroup(false);
openGLConfig->addChild(SlideshowOpenGLTransition());
openGLConfig->addChild(SlideshowOpenGLTransitionLength());
addTarget("1", openGLConfig);
#endif
ConfigurationGroup* regularConfig = new VerticalConfigurationGroup(false);
regularConfig->addChild(MythGalleryOverlayCaption());
regularConfig->addChild(SlideshowTransition());
regularConfig->addChild(SlideshowBackground());
addTarget("0", regularConfig);
addChild(SlideshowDelay());
addChild(SlideshowRecursive());
}
示例2: VerticalConfigurationGroup
SCRConfig::SCRConfig(DiSEqCDevSCR &scr) : m_scr(scr)
{
ConfigurationGroup *group =
new VerticalConfigurationGroup(false, false);
group->setLabel(DeviceTree::tr("Unicable Configuration"));
group->addChild(new SCRUserBandSetting(scr));
group->addChild(new SCRFrequencySetting(scr));
group->addChild(new SCRPINSetting(scr));
group->addChild(new DeviceRepeatSetting(scr));
addChild(group);
}
示例3: VerticalConfigurationGroup
RotorConfig::RotorConfig(DiSEqCDevRotor &rotor) : m_rotor(rotor)
{
ConfigurationGroup *group =
new VerticalConfigurationGroup(false, false);
group->setLabel(DeviceTree::tr("Rotor Configuration"));
group->addChild(new DeviceDescrSetting(rotor));
group->addChild(new DeviceRepeatSetting(rotor));
ConfigurationGroup *tgroup =
new HorizontalConfigurationGroup(false, false, true, true);
RotorTypeSetting *rtype = new RotorTypeSetting(rotor);
connect(rtype, SIGNAL(valueChanged(const QString&)),
this, SLOT( SetType( const QString&)));
tgroup->addChild(rtype);
m_pos = new TransButtonSetting();
m_pos->setLabel(DeviceTree::tr("Positions"));
m_pos->setHelpText(DeviceTree::tr("Rotor position setup."));
m_pos->setEnabled(rotor.GetType() == DiSEqCDevRotor::kTypeDiSEqC_1_2);
connect(m_pos, SIGNAL(pressed(void)),
this, SLOT( RunRotorPositionsDialog(void)));
tgroup->addChild(m_pos);
group->addChild(tgroup);
group->addChild(new RotorLoSpeedSetting(rotor));
group->addChild(new RotorHiSpeedSetting(rotor));
group->addChild(DiSEqCLatitude());
group->addChild(DiSEqCLongitude());
addChild(group);
}
示例4: addChild
ProfileGroup::ProfileGroup()
{
// This must be first because it is needed to load/save the other settings
addChild(id = new ID());
addChild(is_default = new Is_default(*this));
ConfigurationGroup* profile = new VerticalConfigurationGroup(false);
profile->setLabel(QObject::tr("ProfileGroup"));
profile->addChild(name = new Name(*this));
CardInfo *cardInfo = new CardInfo(*this);
profile->addChild(cardInfo);
CardType::fillSelections(cardInfo);
host = new HostName(*this);
profile->addChild(host);
host->fillSelections();
addChild(profile);
};
示例5: MythFillSettings
MythFillSettings() :
TriggeredConfigurationGroup(false, true, false, false)
{
setLabel(QObject::tr("Program Schedule Downloading Options"));
setUseLabel(false);
Setting* fillEnabled = MythFillEnabled();
addChild(fillEnabled);
setTrigger(fillEnabled);
ConfigurationGroup* settings = new VerticalConfigurationGroup(false);
settings->addChild(MythFillDatabasePath());
settings->addChild(MythFillDatabaseArgs());
settings->addChild(MythFillMinHour());
settings->addChild(MythFillMaxHour());
settings->addChild(MythFillGrabberSuggestsTime());
addTarget("1", settings);
// show nothing if fillEnabled is off
addTarget("0", new VerticalConfigurationGroup(true));
};
示例6: HorizontalConfigurationGroup
ScanWizardConfig::ScanWizardConfig(
ScanWizard *_parent,
uint default_sourceid, uint default_cardid,
QString default_inputname) :
VerticalConfigurationGroup(false, true, false, false),
videoSource(new VideoSourceSelector(
default_sourceid, CardUtil::GetScanableInputTypes(), false)),
input(new InputSelector(default_cardid, default_inputname)),
scanType(new ScanTypeSetting()),
scanConfig(new ScanOptionalConfig(scanType)),
services(new DesiredServices()),
ftaOnly(new FreeToAirOnly()),
trustEncSI(new TrustEncSISetting())
{
setLabel(tr("Scan Configuration"));
ConfigurationGroup *cfg =
new HorizontalConfigurationGroup(false, false, true, true);
cfg->addChild(services);
cfg->addChild(ftaOnly);
cfg->addChild(trustEncSI);
addChild(videoSource);
addChild(input);
addChild(cfg);
addChild(scanType);
addChild(scanConfig);
connect(videoSource, SIGNAL(valueChanged(const QString&)),
scanConfig, SLOT( SetSourceID( const QString&)));
connect(videoSource, SIGNAL(valueChanged(const QString&)),
input, SLOT( SetSourceID( const QString&)));
connect(input, SIGNAL(valueChanged(const QString&)),
scanType, SLOT( SetInput( const QString&)));
connect(input, SIGNAL(valueChanged(const QString&)),
_parent, SLOT( SetInput( const QString&)));
}
示例7: addChild
MythGamePlayerSettings::MythGamePlayerSettings()
{
// must be first
addChild(id = new ID());
ConfigurationGroup *group = new VerticalConfigurationGroup(false, false);
group->setLabel(tr("Game Player Setup"));
group->addChild(name = new Name(*this));
group->addChild(new GameType(*this));
group->addChild(new Command(*this));
group->addChild(new RomPath(*this));
group->addChild(new WorkingDirPath(*this));
group->addChild(new Extensions(*this));
group->addChild(new AllowMultipleRoms(*this));
addChild(group);
};
示例8: HorizontalConfigurationGroup
ChannelScannerGUIScanPane::ChannelScannerGUIScanPane(
bool lock, bool strength,
bool snr, bool rotorpos,
QObject *target, const char *slot) :
VerticalConfigurationGroup(false, false, true, true),
ss(NULL), sn(NULL), pos(NULL),
progressBar(NULL), sl(NULL), sta(NULL)
{
setLabel(tr("Scan Progress"));
ConfigurationGroup *slg =
new HorizontalConfigurationGroup(false, false, true, true);
slg->addChild(sta = new TransLabelSetting());
sta->setLabel(tr("Status"));
sta->setValue(tr("Tuning"));
if (lock)
{
slg->addChild(sl = new TransLabelSetting());
sl->setValue(" "
" ");
}
addChild(slg);
if (rotorpos)
{
addChild(pos = new TransProgressSetting());
pos->setLabel(tr("Rotor Movement"));
}
ConfigurationGroup *ssg = NULL;
if (strength || snr)
ssg = new HorizontalConfigurationGroup(false, false, true, true);
if (strength)
{
ssg->addChild(ss = new TransProgressSetting());
ss->setLabel(tr("Signal Strength"));
}
if (snr)
{
ssg->addChild(sn = new TransProgressSetting());
sn->setLabel(tr("Signal/Noise"));
}
if (strength || snr)
addChild(ssg);
addChild(progressBar = new TransProgressSetting());
progressBar->setValue(0);
progressBar->setLabel(tr("Scan"));
addChild(log = new LogList());
TransButtonSetting *cancel = new TransButtonSetting();
cancel->setLabel(tr("Stop Scan"));
addChild(cancel);
connect(cancel, SIGNAL(pressed(void)), target, slot);
//Seem to need to do this as the constructor doesn't seem enough
setUseLabel(false);
setUseFrame(false);
}