LNBConfig::LNBConfig(DiSEqCDevLNB &lnb) { ConfigurationGroup *group = new VerticalConfigurationGroup(false, false); group->setLabel(DeviceTree::tr("LNB Configuration")); group->addChild(new DeviceDescrSetting(lnb)); LNBPresetSetting *preset = new LNBPresetSetting(lnb); group->addChild(preset); m_type = new LNBTypeSetting(lnb); group->addChild(m_type); m_lof_switch = new LNBLOFSwitchSetting(lnb); group->addChild(m_lof_switch); m_lof_lo = new LNBLOFLowSetting(lnb); group->addChild(m_lof_lo); m_lof_hi = new LNBLOFHighSetting(lnb); group->addChild(m_lof_hi); m_pol_inv = new LNBPolarityInvertedSetting(lnb); group->addChild(m_pol_inv); connect(m_type, SIGNAL(valueChanged(const QString&)), this, SLOT( UpdateType( void))); connect(preset, SIGNAL(valueChanged(const QString&)), this, SLOT( SetPreset( const QString&))); addChild(group); }
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); }
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); }
PlayGroup::PlayGroup(QString _name) : name(_name) { ConfigurationGroup* cgroup = new VerticalConfigurationGroup(false); cgroup->setLabel(getName() + " " + QObject::tr("Group", "Play Group")); cgroup->addChild(new TitleMatch(*this)); cgroup->addChild(new SkipAhead(*this)); cgroup->addChild(new SkipBack(*this)); cgroup->addChild(new JumpMinutes(*this)); cgroup->addChild(new TimeStretch(*this)); addChild(cgroup); };
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); };
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); };
SwitchConfig::SwitchConfig(DiSEqCDevSwitch &switch_dev) { ConfigurationGroup *group = new VerticalConfigurationGroup(false, false); group->setLabel(DeviceTree::tr("Switch Configuration")); group->addChild(new DeviceDescrSetting(switch_dev)); group->addChild(new DeviceRepeatSetting(switch_dev)); m_type = new SwitchTypeSetting(switch_dev); group->addChild(m_type); m_address = new SwitchAddressSetting(switch_dev); group->addChild(m_address); m_ports = new SwitchPortsSetting(switch_dev); group->addChild(m_ports); connect(m_type, SIGNAL(valueChanged(const QString&)), this, SLOT( update(void))); addChild(group); }